Hi,

How can we create a cache instance that's local to the running JVM? I tried
using a cache name which has a prefix as "$_local_$.", but it doesn't seem
to work. Meaning that when I have two nodes in the same cluster, when the
cache is created on one node, the cache get I do on the other node returns
the cached object. Which means that this cache is still a distributed
cache. Is there anything wrong I'm doing or any other ways to achieve
$subject?

The code I use to get the cache instance is as below.

Caching.getCacheManager(
        
APIConstants.API_MANAGER_CACHE_MANAGER).getCache("$_local_$.GATEWAY_TOKEN_CACHE");


Thanks,

NuwanD.

-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : [email protected]
Phone : +94 777 775 729
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to