コード例 #1
0
 public RedisCache()
 {
     if (File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "redis-conf.json")))
     {
         this.Settings = RedisSettings.ProcessSettingsFile(File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "redis-conf.json")));
     }
     InitRedis();
 }
コード例 #2
0
 public RedisCache(RedisSettings settings)
 {
     this.Settings = settings;
     InitRedis();
 }