public TransitioningContentMetadataStore(RedisContentLocationStoreConfiguration configuration, IContentMetadataStore redisStore, IContentMetadataStore distributedStore)
        {
            Contract.Requires(configuration.ContentMetadataStoreMode != ContentMetadataStoreMode.Redis &&
                              configuration.ContentMetadataStoreMode != ContentMetadataStoreMode.Distributed,
                              "Transitioning store should not used for cases where one store or the other is used exclusively");

            _configuration     = configuration;
            _redisStore        = redisStore;
            _distributedStore  = distributedStore;
            _preferDistributed = configuration.ContentMetadataStoreModeFlags.HasFlag(ContentMetadataStoreModeFlags.PreferDistributed);
        }
 public ContentMetadataService(IContentMetadataStore store)
 {
     _store = store;
 }
Exemplo n.º 3
0
 public GlobalCacheService(IContentMetadataStore store)
 {
     _store = store;
     LinkLifetime(store);
 }