Exemple #1
0
 public void Store <T>(string key, T value)
     where T : class
 {
     byte[] data = MagicJsonSeralizer.Serialize(value);
     _storage.Store(typeof(T).ToString(), key, data);
     IncrementChangeCounter();
 }
Exemple #2
0
 public T Retrieve <T>(string key)
     where T : class
 {
     byte[] data = _storage.Read(typeof(T).ToString(), key);
     return(data == null ? null : MagicJsonSeralizer.Deserialize <T>(data));
 }