예제 #1
0
 public RedisDictionary(RedisService cache, RedisKey hashKey, Func <TKey, string> parser = null)
 {
     this.cache   = cache;
     this.hashKey = hashKey;
     this.parser  = parser ?? (key => key.ToString());
 }
예제 #2
0
 public RedisDictionary(RedisService cache, Func <TKey, string> parser = null)
 {
     this.cache   = cache;
     this.hashKey = typeof(TValue).Name;
     this.parser  = parser ?? (key => key.ToString());
 }