title: Redis restore from rdb: all keys are persistent
body: <p>I have a Redis instance with some persistent keys and a lot of keys that have expired. Then I execute the <code>bgsave</code> command to get an <code>rdb</code> file. As a result the file contains all keys - persistent and not persistent.</p>
  
  <p>When I restart Redis all the non-persistent keys turned into persistent keys.</p>
  
  <p>How can I avoid this?</p>
  
  <p>I want all non-persistent keys stay non-persistent.</p>