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

Add GetWithFallback method to fallback non existent or expired keys #306

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Glebvvss
Copy link

@Glebvvss Glebvvss commented Feb 9, 2022

Simple feature, which can increase usability. After implementation we will not need to check key on existent before each time to use. It can help in situations when cached value can be expired after sometime and we need to recalculate new value, but for understand it we need to check key on existent and manually recalculate value. It can cost some amount lines of code or we can white that code incorrect

@Glebvvss Glebvvss force-pushed the get_or_set_feature branch 5 times, most recently from d92b26b to 470baf8 Compare February 10, 2022 11:18
@Glebvvss Glebvvss changed the title Add GetOrSet method to fallback non existent or expired keys Add GetWithFallback method to fallback non existent or expired keys Feb 10, 2022
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

Successfully merging this pull request may close these issues.

1 participant