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.