alibaba / alibaba/jetcache

如何获取缓存到redis里key的全名,否则通过 模糊匹配性能太差。

Open
#930 5 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

背景:

1. 在order服务使用了@Cached 进行了缓存,key是el表达式动态计算的。
2. 在admin服务 活动变更的时候,清楚order这个缓存

问题:

1. 因为是spel动态计算的,所以仅知道缓存的前缀。
2. 在admin服务清理的时候 通过 模糊匹配性能太差。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the @Cached SpEL key-generation path and the Redis cache-clearing path described for order and admin; no files or tests are named. Done should be an agreed, efficient way for admin to identify and clear the complete keys generated by order without fuzzy matching, with coverage for the dynamic-key case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, redis, spring
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.