Fix key expiration/ttl bug
Merge pull request #339 from ideawu/dev

Fix key expiration/ttl bug