コード例 #1
0
        public RedisSessionOptions(RedisGroup redisGroup)
        {
            if (redisGroup == null) throw new ArgumentNullException("redisGroup");

            this.redisGroup = redisGroup;
            SetDefault();
        }
コード例 #2
0
 /// <summary>
 /// Use RedisSession. After enabled, you can take RedisSession from environment.AsRedisSession().
 /// </summary>
 public static IAppBuilder UseRedisSession(this IAppBuilder app, RedisGroup redis)
 {
     return app.Use(typeof(RedisSessionMiddleware), redis);
 }
コード例 #3
0
 public RedisSessionMiddleware(AppFunc next, RedisGroup redis)
     : this(next, new RedisSessionOptions(redis))
 {
 }
コード例 #4
0
 public RedisList(RedisGroup connectionGroup, string listKey)
     : this(connectionGroup.GetSettings(listKey), listKey)
 {
 }
コード例 #5
0
 public RedisSet(RedisGroup connectionGroup, string stringKey)
     : this(connectionGroup.GetSettings(stringKey), stringKey)
 {
 }
コード例 #6
0
ファイル: RedisSubject.cs プロジェクト: qyen/CloudStructures
 public RedisSubject(RedisGroup connectionGroup, string key, PubSubKeyType keyType = PubSubKeyType.Normal)
     : this(connectionGroup.GetSettings(key), key, keyType)
 {
 }
コード例 #7
0
 public RedisDictionary(RedisGroup connectionGroup, string hashKey)
     : this(connectionGroup.GetSettings(hashKey), hashKey)
 {
 }