title: Redis expire on large set of keys
body: <p>My problem is: i have a set of values that each of them has to have an expire value.
  code: </p>
  
  <pre><code>set a:11111:22222 someValue
  expire a:11111:22222 604800 \\usually equal a week
  </code></pre>
  
  <p>In a perfect world i would have put all those values in a hash and give each of them it's appropriate expire value, but redis does not allow expire on a hash fields.</p>
  
  <p>problem is that i also have a process that need to get all those keys about once an hour</p>
  
  <pre><code>keys a:*
  </code></pre>
  
  <p>this command is really expensive and according to redis documentation can cause performance issues. I have about 25000-30000 keys at each given moment.</p>
  
  <p>Does someone knows how can i solve such a problem?
  thumbs up it guarantee (-;<br>
  Roy</p>