Created
June 6, 2020 15:04
-
-
Save ldclakmal/444f5f1aeb3263bdad46a1174efc2038 to your computer and use it in GitHub Desktop.
Cache Usage without Error Handling
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
_ = check cache.put("key1", "value1"); | |
string value = <string> check cache.get("key1"); | |
_ = check cache.invalidate("key1"); | |
_ = check cache.invalidateAll(); | |
boolean hasKey = cache.hasKey("key1"); | |
string[] keys = cache.keys(); | |
int size = cache.size(); | |
int capacity = cache.capacity(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment