I am trying to implement Cache and CacheManager to utilize Redis as a session store. Redis is a key/value store in which the keys and values are normally strings. I'm actually using Grails, and the inbuilt Grails JSON converters make it very straightforward to create a JSON string from a SimpleSession object (which is what I need to 'put' with the Cache implementation). My problem is implementing 'get'. How do I recreate a SimpleSession object from a JSON string? I imagine I could write some code to loop through the accessor methods and create one that way, but I was hoping there was some other much simpler way which I've overlooked.

Reply via email to