'Is there a way we can fetch data from Redis Hash in batches using Spring Data Redis?

Actually, we are fetching data from a Redis hash. But as the size of the data in the hash increases with time, a read timeout exception started coming. We are using Jedis as a client to connect to Redis from spring boot. So, what we want if, we can fetch the data in batches from the Redis itself. So, that the read timeout exception could be avoided. As, of now we have increased the timeout and things are working. But, it might fail in the future if load tend increase.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source