Esempio n. 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));
        }
Esempio n. 2
0
 public RedisObject(RedisClient redis, string id, Expression <Func <T> > member)
 {
     this.redis = redis;
     this.id    = id + ":" + MemberInfoGetting.GetMemberName(member);
 }
Esempio n. 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;
 }
Esempio n. 4
0
 public RedisDictionary(RedisClient redis, string id, Expression <Func <T> > member)
 {
     this.id = id + ":" + MemberInfoGetting.GetMemberName(member);
 }