title: Is there a database based key eviction policy in redis when RAM is full
body: <p>I am using 5 databases in my redis server. I want to evict keys belonging to a particular DB using LRU mechanism. Is it possible ?</p>
  
  <p>I read this: <a href="https://stackoverflow.com/questions/16370278/how-to-make-redis-choose-lru-eviction-policy-for-only-some-of-the-keys">how-to-make-redis-choose-lru-eviction-policy-for-only-some-of-the-keys</a>.</p>
  
  <p>But all my databases are using time to live for their entries. So cant use <strong>volatile-lru</strong> policy.</p>
  
  <p>I tried <strong>volatile-ttl</strong> policy but other databases are having less ttl for their keys. So they will get evicted which I dont want.</p>