Quantcast
Viewing latest article 2
Browse Latest Browse All 2

How can I get customized value from Redis cache?

I am working on Redis with spring boot. And I am new in Redis. I am stuck in a problem where I need customized data from Redis cache.

For example, the key is 1 and the object stored in Redis is

{
    name,
    age,
    DOB,
    ...    
}

and I want to retrieve only 2 two of them from Redis e.g. name and age But for a given key Redis returns the complete object. But I need only custom fields from that object.

I have no idea how to get over this problem and I cannot do like just to cache only 2 required fields. Caching of the complete object is required for other purposes.

Please help. Thanks in advance.


Viewing latest article 2
Browse Latest Browse All 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>