On Sep 13, 2013, at 12:05 AM, Ray Tsang <saturnism(a)gmail.com> wrote:
What's the best way to deal w/ storing MarshalledValue in a cache
store such as JPA CacheStore?
It seems like if MarshalledValue is stored, the same type is expected when loaded?
You get a MarshalledEntry, and calling getValueBytes() will take care of taking the
MarshalledValue and converting to a byte[]. That's what the SingleFileStore does,
irrespective of the type of the value. That doesn't work for you?
Cheers,
Thanks,
On Wed, Sep 11, 2013 at 5:24 PM, Ray Tsang <saturnism(a)gmail.com> wrote:
Mircea,
I saw I could use CacheLoaderException for load()... But what should be used for write()?
Should errors occurred during write() continue to throw CacheLoaderException? or, can it
throw any RuntimeException?
Thanks,
On Fri, Sep 6, 2013 at 9:38 AM, Ray Tsang <saturnism(a)gmail.com> wrote:
I'd be happy to take a look.
I also wrote an offheap memory store on my GitHub if you missed it.
It can be easily refitted for general purpose mapdb store.
On Sep 6, 2013, at 9:33, Mircea Markus <mmarkus(a)redhat.com> wrote:
> Hi Ray,
>
> Part of Infinispan 6.0 we revamped the CacheStore API. I've migrated the LevelDB
store to the new API, do you feel like giving it a go with the Hibernate one?
>
> Cheers,
> --
> Mircea Markus
> Infinispan lead (
www.infinispan.org)
>
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/infinispan-dev
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Galder Zamarreño
galder(a)redhat.com
twitter.com/galderz
Project Lead, Escalante
http://escalante.io
Engineer, Infinispan
http://infinispan.org