void SetCachedInfos(string ns, string id, string json, TimeSpan expire) { using (var redis = redisManager.GetClient ()) { string key = ns + id; if (expire == TimeSpan.Zero) redis.SetEntry (key, json); else redis.SetEntry (key, json, expire); } }