My requirement is to keep set of rules in a cache memory and retrieve both Key and Value. As im new to the redis i create a sample rule in the redis client as follows
can this key and value take through Spring data redis?
if it is possible how? i went through several tutorials i only see set values using redis template and get the relevant value?
Thanks Dasun.
i went through several tutorials i only see set values using redis template and get the relevant value?
Yes , because that is how most of us do it :)
I really like RedisTemplate
.
As said in their documentations:
Helper class that simplifies Redis data access code. Performs automatic serialization/deserialization between the given objects and the underlying binary data in the Redis store.
So my tip is , to do what I did when implementing our entire caching service, to check some of those tutorials, since it would make your life easier.