-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
希望增加一个缓存自动清理功能或机制。 #2843
Comments
php think clear --cache |
主要是自动判断的机制。 |
定时清理就行了吧 文件缓存之外的也没这个需求 |
就跟redis的内存不足的清理机制差不多,看看别人有没有需求吧 |
清理缓存时,如果有正在读取的缓存key或正在写入的缓存key。会跳过吗,还是会清理出错。 |
清理两天前的日志 $ find /home/wwwlogs/web/ -name "*.log" -mtime +2 -exec rm -f {} \; |
感觉这个只能增加缓存读写的性能开销 吃力不讨好 命令行单独执行则不影响 |
使用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
比如文件驱动,设置缓存空间大小,满了就清理最旧的部分。
The text was updated successfully, but these errors were encountered: