I'm new to Redis and could not find any information on that online so asking it here.
Suppose I have multiple database Redis cluster and I'm using LRU/LFU eviction policy.
I wonder if Redis eviction policy is database based? What I mean is, suppose I'm trying to insert a new item to DB 0 and I ran out of memory, will Redis evict items in DB 0 and complete the insertion? Or will it evict an item in any database based on the eviction policy?
I would expect that the eviction will be in the same virtual database.
In case the eviction policy is across different databases, what will happen if I reach the size limit of the database? Will it evict the keys inside that DB based on the eviction policy or the inserts will just fail?
Thanks.