public long GetTtl(string keyName) { using (var client = new RedisNativeClient(ConfigurationManager.AppSettings["RedisServer"])) { return(client.Ttl(keyName)); } }