接口有多个参数,怎么拼接key呢?
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
@Cached(name = "test", key = "#request.userId", expire = 6, timeUnit = TimeUnit.HOURS)
@CacheRefresh(refresh = 1, stopRefreshAfterLastAccess = 2, timeUnit = TimeUnit.HOURS)
@CachePenetrationProtect(timeout = 1)
public void test (Reques request);
如果 request里面有id ,name,age 缓存key怎么添加呢?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the JetCache annotations shown in the example, especially @Cached and its key expression. Determine whether combining request.userId, id, name, and age is already supported or requires a defined API change; done means the expected multi-field key behavior and usage are documented or implemented, with any relevant validation covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100