Created
December 4, 2021 22:29
-
-
Save varunu28/6752df00079b280fadf90b219b37ac6c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| if (cache.containsKey(key)): | |
| return cache.get(key) | |
| else: | |
| value = fetchFromDb(key) | |
| cache.put(key, value) | |
| return value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment