Last active
May 18, 2020 15:48
-
-
Save ritikesh/b0de6486ce709828fde67bed951517b9 to your computer and use it in GitHub Desktop.
blog gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install memoize_until | |
> irb | |
irb:> require 'memoize_until' | |
irb:> MemoizeUntil.hour(:default) { | |
irb:> $redis.get("APP_CONFIGS") | |
irb:> } | |
irb:> # memoizes(until the end of the day) and returns the result of #PerformSomeComplexOperation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment