public virtual object Get(Type type, string key, Sixeyed.Caching.Serialization.SerializationFormat serializationFormat = Sixeyed.Caching.Serialization.SerializationFormat.Null) { if (!Exists(key)) { throw new CacheKeyNotFoundException(); } return(_storage[key]); }
public virtual void Set(string key, object value, TimeSpan validFor, Sixeyed.Caching.Serialization.SerializationFormat serializationFormat = Sixeyed.Caching.Serialization.SerializationFormat.Null) { _storage[key] = value; }
public virtual Dictionary <string, object> GetAll(Type type, Sixeyed.Caching.Serialization.SerializationFormat serializationFormat = Sixeyed.Caching.Serialization.SerializationFormat.Null) { throw new NotImplementedException(); }
public virtual T Get <T>(string key, Sixeyed.Caching.Serialization.SerializationFormat serializationFormat = Sixeyed.Caching.Serialization.SerializationFormat.Null) { return((T)Get(typeof(T), key, serializationFormat)); }
public virtual void Set(string key, object value, DateTime expiresAt, Sixeyed.Caching.Serialization.SerializationFormat serializationFormat = Sixeyed.Caching.Serialization.SerializationFormat.Null) { _storage[key] = value; }