alibaba / alibaba/jetcache

接口有多个参数,怎么拼接key呢?

Open
#549 2 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.