We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ttlcache is really a great thing. We save the state in intervals and on exit of the application in a yaml file.
We reload the state of the cache values on restart of the application.
What we miss is a function SetUnsafe which can be used without mutex locking. So it would be much faster on bulk reload.
There is a set function but this is only locally and cannot be used globally.
The text was updated successfully, but these errors were encountered:
This might be a good feature. We've got two options here:
SetBulk()
WithInitialData()
I presume the first option would work better in your situation?
Sorry, something went wrong.
For me both are good options.
For SetBulk just return an error or nil is sufficient for me. Maybe others see this differently
Because this will be used mainly on startup a WithInitialData option also is a good variant.
In the wild it will be rarely needed that a bulk update is needed after a start I guess. But who knows?
No branches or pull requests
ttlcache is really a great thing. We save the state in intervals and on exit of the application in a yaml file.
We reload the state of the cache values on restart of the application.
What we miss is a function SetUnsafe which can be used without mutex locking. So it would be much faster on bulk reload.
There is a set function but this is only locally and cannot be used globally.
The text was updated successfully, but these errors were encountered: