lundi 8 juin 2015

using redis for main memory of java program

Initially I had a java class having a maps and few variables. Now I want to shift my data to redis for persistence. I want to use redis as my primary and only memory for holding all the data. But this contradicts object oriented approach. How should I go about implementing the functions of that class, as all data will be in redis. Thus object will only have functions (even there is no need for creating object by converting all functions to static). Is there some proper way to implement this?

Aucun commentaire:

Enregistrer un commentaire