コード例 #1
0
 public CSRedisLockFactory(IEnumerable <EasyCachingCSRedisClient> clients,
                           IOptionsMonitor <RedisOptions> optionsMonitor,
                           ILoggerFactory loggerFactory = null)
     : base(name => DistributedLockOptions.FromProviderOptions(optionsMonitor.Get(name)), loggerFactory) =>
コード例 #2
0
ファイル: RedisLockFactory.cs プロジェクト: ywscr/EasyCaching
 public RedisLockFactory(IEnumerable <IRedisDatabaseProvider> dbProviders,
                         IOptionsMonitor <RedisOptions> optionsMonitor,
                         ILoggerFactory loggerFactory = null)
     : base(name => DistributedLockOptions.FromProviderOptions(optionsMonitor.Get(name)), loggerFactory) =>
コード例 #3
0
 public MemcachedLockFactory(IEnumerable <EasyCachingMemcachedClient> memcachedClients,
                             IOptionsMonitor <MemcachedOptions> optionsMonitor,
                             ILoggerFactory loggerFactory = null)
     : base(name => DistributedLockOptions.FromProviderOptions(optionsMonitor.Get(name)),
            loggerFactory) =>