Exemple #1
0
        public RedisExpiryCounter(RedisClient redis, string id, TimeSpan expiresIn)
            : base(redis, id)
        {
            this.expiresIn = expiresIn;

            count = new RedisObject <double>(redis, id + ":" + MemberInfoGetting.GetMemberName(() => count));
        }
Exemple #2
0
 public RedisObject(RedisClient redis, string id, Expression <Func <T> > member)
 {
     this.redis = redis;
     this.id    = id + ":" + MemberInfoGetting.GetMemberName(member);
 }
Exemple #3
0
 public RedisExpiryList(RedisClient redis, string id, Expression <Func <T> > member, ExpirationAction expirationAction = null)
 {
     this.redis            = redis;
     this.id               = id + ":" + MemberInfoGetting.GetMemberName(member);
     this.expirationAction = expirationAction;
 }
Exemple #4
0
 public RedisDictionary(RedisClient redis, string id, Expression <Func <T> > member)
 {
     this.id = id + ":" + MemberInfoGetting.GetMemberName(member);
 }