예제 #1
0
 /// <summary>
 /// 默认key规则:"{0}:list"和"{0}:timestamp"
 /// haveList参数false 默认key规则:"{0}"和"{0}:timestamp"
 /// </summary>
 /// <param name="serverKeyPrefixFormat"></param>
 /// <param name="haveList"></param>
 public RedisHashTimeStamp(string[] serverKeyPrefixFormat, bool haveList = true) : base(new[] { serverKeyPrefixFormat[0], haveList ? RedisKeyDefinition.ConfigHashList : "{0}" })
 {
     _keySuffix   = serverKeyPrefixFormat[1];
     _redisString = new RedisString(new[] { serverKeyPrefixFormat[0], RedisKeyDefinition.ConfigStringTimestamp });
 }
예제 #2
0
 public RedisSetTimeStamp(string[] serverKeyPrefixFormat) : base(new[] { serverKeyPrefixFormat[0], RedisKeyDefinition.ConfigHashList })
 {
     KeySuffix    = serverKeyPrefixFormat[1];
     _redisString = new RedisString(new[] { serverKeyPrefixFormat[0], RedisKeyDefinition.ConfigStringTimestamp });
 }