コード例 #1
0
ファイル: CacheContext.cs プロジェクト: linoyisr/caching
 public CacheContext(String connectionString, String converterType, String clusterType, int monitorPort, int monitorIntervalMilliseconds)
 {
     this.convert = RedisConverterFactory.CreateConverter(converterType);
     this.client  = new RedisClient(connectionString, clusterType, monitorPort, monitorIntervalMilliseconds);
 }
コード例 #2
0
 public CacheContext(String connectionName, String converterType)
 {
     this.convert = RedisConverterFactory.CreateConverter(converterType);
     this.client  = RedisClient.GetNamedRedisClient(connectionName);
 }