Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.