Created
August 15, 2015 05:47
-
-
Save noelyahan/1ffd0dd97f345bb547b5 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
CacheManager cacheManager = Caching.getCachingProvider().getCacheManager(); | |
//CacheManager cacheManager = Caching.getCachingProvider().getCacheManager(new URI("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