On 24 May 2010, at 17:38, Manik Surtani wrote:
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. :)
Fair enough.
I'll make sure this is correctly documented - thanks for the feedback!
> 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(a)jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev