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
We need TrySet/TrySetAsync methods for providers.
TrySet
TrySetAsync
If we want to add a cache with an existed key, we should not handle it and return false.
If the cache is not an existed key, we should add it to the cached value and return true.
None
bool TrySet<T>(string cacheKey, T cacheValue, TimeSpan expiration); Task<bool> TrySetAsync<T>(string cacheKey, T cacheValue, TimeSpan expiration);
The text was updated successfully, but these errors were encountered:
✨ TrySet #64
6ddd50d
Version 0.4.2 contains this caching API.
Sorry, something went wrong.
catcherwong
No branches or pull requests
Description
We need
TrySet
/TrySetAsync
methods for providers.If we want to add a cache with an existed key, we should not handle it and return false.
If the cache is not an existed key, we should add it to the cached value and return true.
Steps to Reproduce
None
Related code
Specifications
None
The text was updated successfully, but these errors were encountered: