public T Get <T>(string key, Serialization.SerializationFormat serializationFormat = SerializationFormat.Null) { return(_cache.Get <T>(key, serializationFormat)); }
public void Set(string key, object value, TimeSpan validFor, Serialization.SerializationFormat serializationFormat = SerializationFormat.Null) { _cache.Set(key, value, validFor, serializationFormat); AddKey(key, expiresAt: DateTime.UtcNow.Add(validFor)); }
public object Get(Type type, string key, Serialization.SerializationFormat serializationFormat = SerializationFormat.Null) { return(_cache.Get(type, key, serializationFormat)); }
public void Set(string key, object value, DateTime expiresAt, Serialization.SerializationFormat serializationFormat = SerializationFormat.Null) { _cache.Set(key, value, expiresAt, serializationFormat); AddKey(key, expiresAt: expiresAt); }