예제 #1
0
 public CryptCacheService(IBaseRedisProvider redisProvider,
                          IRedisPublisher redisPublisher,
                          IStrongKeyProvider strongKeyProvider,
                          ILoggerFactory loggerFactory) : base(redisProvider, redisPublisher)
 {
     this.strongKeyProvider = strongKeyProvider;
     this.logger            = loggerFactory.CreateLogger <CryptCacheService>();
 }
        protected SqlTableDependencyRedisProvider(ISqlTableDependencyProvider <TEntity> sqlTableDependencyProvider, IRedisPublisher redisPublisher, IScheduler scheduler)
        {
            this.sqlTableDependencyProvider = sqlTableDependencyProvider ?? throw new ArgumentNullException(nameof(sqlTableDependencyProvider));
            this.redisPublisher             = redisPublisher ?? throw new ArgumentNullException(nameof(redisPublisher));
            this.scheduler = scheduler ?? throw new ArgumentNullException(nameof(scheduler));

            redisPublisher.SetStringRetryCount = 3;
        }
예제 #3
0
        public BaseCacheService(IBaseRedisProvider redisProvider,
                                IRedisPublisher redisPublisher)
        {
            this.redisProvider = redisProvider;
            this.cacheDb       = redisProvider.GetDatabase();

            this.redisPublisher = redisPublisher;
        }
 public SessionCacheService(IBaseRedisProvider redisProvider,
                            IRedisPublisher redisPublisher,
                            ISessionProvider sessionProvider,
                            IOptions <TokenLifeTimeOptions> authOptions) : base(redisProvider, redisPublisher)
 {
     this.sessionProvider = sessionProvider;
     this.authOptions     = authOptions;
 }
 public ConnectionCacheService(IBaseRedisProvider redisProvider,
                               IRedisPublisher redisPublisher,
                               IConnectionProvider connectionProvider,
                               IOptions <TokenLifeTimeOptions> tokenOptions) : base(redisProvider, redisPublisher)
 {
     this.connectionProvider = connectionProvider;
     this.tokenOptions       = tokenOptions;
 }
 public TestSqlTableDependencyRedisProvider(ISqlTableDependencyProvider <TestModel> sqlTableDependencyProvider, IRedisPublisher redisPublisher, IScheduler scheduler)
     : base(sqlTableDependencyProvider, redisPublisher, scheduler)
 {
 }
 public ProductSqlTableDependencyRedisProvider(ISqlTableDependencyProvider <Product> sqlTableDependencyProvider, IRedisPublisher redisPublisher, IScheduler scheduler)
     : base(sqlTableDependencyProvider, redisPublisher, scheduler)
 {
 }
 public PublishController(ILogger <PublishController> logger, IRedisPublisher redisPublisher)
 {
     _logger         = logger;
     _redisPublisher = redisPublisher;
 }
 public UserProfileCacheService(IBaseRedisProvider redisProvider,
                                IRedisPublisher redisPublisher) : base(redisProvider, redisPublisher)
 {
 }