Is it possible that sometimes fetching redis cache data also takes more time than out last resposnses time due to memory in my PC?
Is it possible that sometimes fetching redis cache data also takes more time than out last resposnses time due to memory in my PC?
2
Answers
When getting Redis cached data in a PC, the difference in response time can be affected by a variety of factors,such as Redis server load,Network latency,BigKeys and so on.So the time may be longer or shorter.
If you don’t set
maxmemory
in redis.conf and you use all the memory you have, Redis will happily use up swap space as well. So, you’ll want to setmaxmemory
.And while you’re at it, you’ll probably want to set an eviction policy too. There are several to chose from: