public RedisCacheProviderOptions()
 {
     Serializer = new NetDataContractCacheSerializer();
     AcquireLockRetryStrategy = new ExponentialBackoffWithJitterAcquireLockRetryStrategy();
     LockValueFactory = new GuidLockValueFactory();
     Database = 0;
     CacheConfigurations = Enumerable.Empty<RedisCacheConfiguration>();
 }
 public RedisCacheProviderOptions()
 {
     Serializer = new NetDataContractCacheSerializer();
     AcquireLockRetryStrategy = new ExponentialBackoffWithJitterAcquireLockRetryStrategy();
     LockValueFactory         = new GuidLockValueFactory();
     Database            = 0;
     CacheConfigurations = Enumerable.Empty <RedisCacheConfiguration>();
 }
        public RedisCacheProviderOptions(SerializerType serializer)
        {
            //TODO ADD
            switch (serializer)
            {
            case SerializerType.XML:
                Serializer = new NetDataContractCacheSerializer();
                break;

            case SerializerType.JSON:
                Serializer = new NhJsonCacheSerializer();
                break;
            }
            AcquireLockRetryStrategy = new ExponentialBackoffWithJitterAcquireLockRetryStrategy();
            LockValueFactory         = new GuidLockValueFactory();
            Database            = 0;
            CacheConfigurations = Enumerable.Empty <RedisCacheConfiguration>();
            KeyPrefix           = "NHibernate-Cache:";
        }