Expecting that any key in redis will be there next time you read it is a ticking timebomb. Redis is not a database. It's a cache.
Unless you're using AOF mode with fsync always, you can lose writes. If you're doing that, you should be using a real database instead.