/// <nodoc /> public static IMemoizationStore CreateMemoizationStore(ContentLocationStoreServices services) { var redisGlobalStore = services.RedisGlobalStore.Instance; var memoizationDb = new RedisMemoizationDatabase( redisGlobalStore.RaidedRedis.PrimaryRedisDb, redisGlobalStore.RaidedRedis.SecondaryRedisDb, services.Configuration.Memoization); return(new RedisMemoizationStore(memoizationDb)); }
public ContentLocationStoreFactory( ContentLocationStoreFactoryArguments arguments, RedisContentLocationStoreConfiguration configuration) { Contract.Requires(configuration != null); Contract.Requires(!string.IsNullOrWhiteSpace(configuration.Keyspace)); Contract.Requires(arguments.Copier != null); Arguments = arguments; Configuration = configuration; Services = new ContentLocationStoreServices(arguments, configuration); }
/// <nodoc /> public DistributedOneLevelCache(IContentStore contentStore, ContentLocationStoreServices contentLocationStoreServices, Guid id, bool passContentToMemoization = true) : base(id, passContentToMemoization) { ContentStore = contentStore; _contentLocationStoreServices = contentLocationStoreServices; }