caching - How to place java objects into coherence and read from coherence cache -


i looking coherence cache, need place map object cache.

can 1 let me know how keep java objects coherence cache?

thanks, naresh.

its simple hasmap put operation.

import com.tangosol.net.cachefactory; import com.tangosol.net.namedcache;  namedcache cache = cachefactory.getcache("virtualcache");  string key = "key"; hashmap value = new hashmap<string,string>(); value.put("key1","val1"); cache.put(key, value);  hashmap value = (hashmap) cache.get(key); 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -