Oracle Coherence Cache Mangement

Oracle has got Coherence Cache management product by acquiring Tangasole. Coherence provides data management and cacheing service. It is not just simple caching service. It provides much more than it, such as 
  • Distributed
  • replicated 
  • reliable
  • scalable 
  • clustered 
  • automatic load balanced 
  • consistent 
  • indexed
 in-memory  data management.  

Using Coherence, you can have distributed cache management over clustered network. IT provides several implementations , such as 
  • Local Cache 
  • Replicated Cache
  • Partitioned
  • Near Cache 
The most interesting feature is ease of installation and implementation. Installation of coherence is only one step process, just include jars in path.  
Following are few step to install, implement and test it [ Only basic implementation ]
1. Installation
Download and unzip step up  archive from Oracle Coherence home page

2.  Update Classpath
Include coherence.jar in  your CLASS_PATH, you will find this jar at coherence_home/lib/

3. Implementing using java 
//Create named cache using CacheFactory 
NamedCache cache = CacheFactory.getCache("cache_name");

//using cache, putting data in cache
cache.put("key","value");

//accessing data 
Object value = cahce.get("key");


That's it, only simple 2-3 steps and you are done with installing, putting and accessing get 

Comments

Popular posts from this blog

State Design Pattern by Example

Eclipse command framework core expression: Property tester

Composite Design Pattern by example