An object for efficiently managing key expiries for in-memory databases