/// <summary> /// 初始化数据库环境、实例化子类中,所有Set属性 /// </summary> public void Initializer() { if (IsInitializer) { return; } _client = new RedisClient(_redisConnection); IsInitializer = true; Connection = new RedisConnection(_client); Hash = new RedisHash(_client); Key = new RedisKey(_client); List = new RedisList(_client); PubSub = new RedisPubSub(_client); Script = new RedisScript(_client); Server = new RedisServer(_client); Set = new RedisSet(_client); SortedSet = new RedisSortedSet(_client); String = new RedisString(_client); Transaction = new RedisTransaction(_client); Bit = new RedisBit(_client); Expire = new RedisExpire(_client); Sort = new RedisSort(_client); Number = new RedisNumber(_client); }
/// <summary> /// /// </summary> /// <param name="redisClient">Redis客户端</param> internal RedisBit(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> Redis的Key键管理 </summary> /// <param name="redisClient">Redis客户端</param> internal RedisExpire(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> /// /// </summary> /// <param name="redisClient">Redis客户端</param> internal RedisList(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> Redis的Key键管理 </summary> /// <param name="redisClient">Redis客户端</param> internal RedisKey(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> /// /// </summary> /// <param name="redisClient">Redis客户端</param> internal RedisServer(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> /// /// </summary> /// <param name="redisClient">Redis客户端</param> internal RedisSortedSet(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> /// /// </summary> /// <param name="redisClient">Redis客户端</param> internal RedisHash(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> /// 数字的存储方式 /// </summary> /// <param name="redisClient">Redis客户端</param> internal RedisNumber(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> Redis的String键管理 </summary> /// <param name="redisClient">Redis客户端</param> internal RedisString(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> /// /// </summary> /// <param name="redisClient">Redis客户端</param> internal RedisPubSub(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> /// /// </summary> /// <param name="redisClient">Redis客户端</param> internal RedisTransaction(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> /// /// </summary> /// <param name="redisClient">Redis客户端</param> internal RedisConnection(RedisClient redisClient) { _redisClient = redisClient; }
/// <summary> /// /// </summary> /// <param name="redisClient">Redis客户端</param> internal RedisScript(RedisClient redisClient) { _redisClient = redisClient; }