How to enable backup of the cached data

Cacheonix support forum is dedicated to support requests, bug reports and feature suggestions.
w2know
Posts: 1
Joined: Tue Oct 02, 2012 3:10 am

How to enable backup of the cached data

Postby w2know » Tue Oct 02, 2012 3:20 am

How can I enable the cache system to backup the cached data to an external store such as a file or a database?

Is it supported?

If it is not supported, any suggestion to implement a backup solution is appreciated!

simeshev

Postby simeshev » Thu Oct 04, 2012 10:46 pm

The best way to store the cached data in the database in Cacheonix is to implement interface cacheonix.cache.datastore.DataStore and configure your cache to use it:

http://downloads.cacheonix.com/download ... Store.html


Cacheonix will call DataStore.store() method after each call to cache.put(). Your implementation of DataStore is responsible for issuing actual database updates.


Let me know if this answers your question or if you need more help with this.

Regards,

Slava Imeshev


Return to “Cacheonix Support”

Who is online

Users browsing this forum: No registered users and 1 guest