Hi, Actually it’s not a difficult task to write a cache entry in a byte representation into a storage if it’s needed. The easiest way is just to take an instance of a marshaller that is globally used (ignite.configuration().getMarshaller()) and convert a value and a key of an entry passed to CacheStore.write(Cache.Entry<? extends K, ? extends V> entry) with a call like marshaller.marshal(val.getValue()).
What is more interesting is to implement a CacheStore for some other persistent store. You can refer to existed implementations of CacheJdbcBlobStore and CassandraCacheStore. — Denis > On May 25, 2016, at 5:50 PM, guill-melo <[email protected]> wrote: > > Hello Denis, > I am not trying to add this to production, I am investigating the > feasibility of having a CacheStore that writes to HBase or something similar > in a byte[] representation of the BynaryObject, as it is more efficient than > java.io. > > I am trying to see what I can do with the API, as I am very new to it and > am quite excited about it. > > Thank you Denis > > > > -- > View this message in context: > http://apache-ignite-users.70518.x6.nabble.com/Working-Directly-with-Binary-objects-tp5131p5197.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com.
