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

How can I get the total size of the cache or get the cache path? #441

Open
CPRen0 opened this issue Jan 9, 2024 · 8 comments
Open

How can I get the total size of the cache or get the cache path? #441

CPRen0 opened this issue Jan 9, 2024 · 8 comments

Comments

@CPRen0
Copy link

CPRen0 commented Jan 9, 2024

I'd like to show the cache size for users, please how can I get the total size of the cache or get the cache path?

@boyXiong
Copy link

boyXiong commented Apr 1, 2024

+1 are you solve that ?

@CPRen0
Copy link
Author

CPRen0 commented Apr 1, 2024

+1 are you solve that ?

After reading the source code, you can know the cache path.
'getTemporaryDirectory()'

Uploading 截屏2024-04-01 14.56.27.png…

@boyXiong
Copy link

boyXiong commented Apr 1, 2024

I want to customize the cache path to manage these cached files without having them delete themselves. Are you implementing the FileSystem yourself? Thank you

@CPRen0
Copy link
Author

CPRen0 commented Apr 1, 2024

I want to customize the cache path to manage these cached files without having them delete themselves. Are you implementing the FileSystem yourself? Thank you

I'm sorry, I didn't do that

@CPRen0
Copy link
Author

CPRen0 commented Apr 1, 2024

I want to customize the cache path to manage these cached files without having them delete themselves. Are you implementing the FileSystem yourself? Thank you

我只是使用了默认的存储方式,在默认的基础上进行了一个简单的封装,把过期时间和最大存储数量进行了个配置

@boyXiong
Copy link

boyXiong commented Apr 1, 2024

牛逼啊, 是自己实现了 FileSystem 中的 createFile 方法吗,这个方法 可以用来实现自定义存储路径吗,谢谢

@CPRen0
Copy link
Author

CPRen0 commented Apr 1, 2024

牛逼啊, 是自己实现了 FileSystem 中的 createFile 方法吗,这个方法 可以用来实现自定义存储路径吗,谢谢

没有没有,我只是在DefaultCacheManager上进行修改的,存储方式仍和原来一样

@boyXiong
Copy link

boyXiong commented Apr 1, 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

2 participants