-
Notifications
You must be signed in to change notification settings - Fork 596
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
items never expire? #105
Comments
Hi, can you show your code? It's hard to guess what you're doing 😉 |
@unisqu I missed it too, you need to also set Here's a config that I'm using that does expire items after 30 minutes cacheConfig := bigcache.Config {
Shards: 1024,
LifeWindow: 30 * time.Minute,
CleanWindow: 30 * time.Minute,
MaxEntriesInWindow: 1000 * 30 * 60,
MaxEntrySize: 500,
Verbose: true,
HardMaxCacheSize: 1024,
OnRemove: nil,
Logger: cacheLog,
} |
Closing as resolved. :) |
im getting this error too, I have set a clean window to 1hr, and a lifetime of 12hr, but content is not getting cleaned. Code:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just realised that my items don't expire within 1 min. how to expire items?
The text was updated successfully, but these errors were encountered: