Last active
August 29, 2015 14:27
-
-
Save noelyahan/5ba7881cdbebc106b27d to your computer and use it in GitHub Desktop.
Simple cache creation in v0.5 jcache
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
CacheManager cacheManager = Caching.getCacheManagerFactory().getCacheManager("sampleCacheManager"); | |
Cache<String, Integer> cache = cacheManager.getCache("sampleCache"); | |
String key = "1"; | |
int value1 = 9876; | |
cache.put(key, value1); | |
int value = cache.get(key).intValue(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment