This content has been marked as final.
Show 1 reply
-
1. Re: using cache for application objects
belaban Dec 16, 2002 8:35 PM (in response to leogsilv)Soon to come:
Cache cache; // init somehow
boolean sync_mode=true;
boolean use_locking=true;
// synchronous call, plus use locking
cache.put("mykey", mySerializableObject, sync_mode, use_locking);
// asynchronous by default, no locking
cache.put("anotherkey", "Hello world");
or
Cache cache; // init somehow
cache.configure("file:/home/bela/myCacheConfig.xml");
// configures cache to be synchronous and locking
// synchronous and uses locking because cache was configured so
// by default
cache.put("anotherkey", "Hello world");
Bela