[infinispan-dev] thoughts on RemoteCacheStore

Manik Surtani manik at jboss.org
Mon May 24 10:38:23 EDT 2010


On 24 May 2010, at 15:33, Mircea Markus wrote:

>> 
>> Hmm, perhaps then RemoteCache should put(key, InternalCacheValue) so that this stuff is not lost?  On get(key), you get a InternalCacheValue.  I.e., your RemoteCache should be a RemoteCache<K, InternalCacheValue<V>>
> I guess it depends on the setup. If remote cluster is "independent", e.g. used by other parties as an EmbeddedCache or even as anCacheServer through hotrod, then it can only contains actual key-values.

Yeah I don't think such complications should be encouraged.  :)

> Otherwise, if the cluster is *only* used as an remote store, then your approach works.
> Timestamp information is not lost on puts (put(k,v. duration) being called on remote cache, but on get only - where is this information used on gets?

This is used when putting stuff in the data container after loading from the cache loader.  If the information is not present then stuff becomes immortal which may be incorrect.

--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org







More information about the infinispan-dev mailing list