Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否支持配置过期 #2

Open
Silentdoer opened this issue Jul 19, 2022 · 2 comments
Open

能否支持配置过期 #2

Silentdoer opened this issue Jul 19, 2022 · 2 comments

Comments

@Silentdoer
Copy link

它能够拦截set,按理应该也能拦截get预先判断是否已经过期,比如已过期则清除数据返回Null

@Allen-1998
Copy link
Owner

配置过期时间确实是一个比较常见的应用场景,不过它与持久化存储本质上属于两个功能,我觉得另写一个插件来做这件事会更好一些

@sunpm
Copy link

sunpm commented May 14, 2024

配置过期时间确实是一个比较常见的应用场景,不过它与持久化存储本质上属于两个功能,我觉得另写一个插件来做这件事会更好一些

是否可以在写和读的时候添加前置和后置的回调呢?在前置中添加自定义时间戳,后置判断时间戳是否通过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants