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

可以设置缓存时间吗 #53

Closed
LiuDongCai opened this issue Sep 29, 2018 · 1 comment
Closed

可以设置缓存时间吗 #53

LiuDongCai opened this issue Sep 29, 2018 · 1 comment

Comments

@LiuDongCai
Copy link

代替SharedPreferences
可以设置缓存时间吗?
比如我缓存时效为1小时,1小时之后拿到的value需要为空或null

@lingol
Copy link
Collaborator

lingol commented Sep 29, 2018

No. Data expiration is useful in some cases, no doubt about that. But there's no elegant way to achieve it inside storage framework, I'm afraid.

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

2 participants