コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="redisClient">Redis客户端</param>
 internal RedisBit(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #3
0
 /// <summary> Redis的Key键管理 </summary> 
 /// <param name="redisClient">Redis客户端</param>
 internal RedisExpire(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="redisClient">Redis客户端</param>
 internal RedisList(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #5
0
 /// <summary> Redis的Key键管理 </summary> 
 /// <param name="redisClient">Redis客户端</param>
 internal RedisKey(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="redisClient">Redis客户端</param>
 internal RedisServer(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #7
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="redisClient">Redis客户端</param>
 internal RedisSortedSet(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #8
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="redisClient">Redis客户端</param>
 internal RedisHash(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #9
0
 /// <summary>
 /// 数字的存储方式
 /// </summary>
 /// <param name="redisClient">Redis客户端</param>
 internal RedisNumber(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #10
0
 /// <summary> Redis的String键管理 </summary>
 /// <param name="redisClient">Redis客户端</param>
 internal RedisString(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #11
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="redisClient">Redis客户端</param>
 internal RedisPubSub(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #12
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="redisClient">Redis客户端</param>
 internal RedisTransaction(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #13
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="redisClient">Redis客户端</param>
 internal RedisConnection(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }
コード例 #14
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="redisClient">Redis客户端</param>
 internal RedisScript(RedisClient redisClient)
 {
     _redisClient = redisClient;
 }