public MemoryCachedDatabaseValueWithSource( IMemoryCache cache, TimeSpan memoryDuration, IKeyedResourceManager resourceManager) { this.cache = cache; this.memoryDuration = memoryDuration; this.resourceManager = resourceManager; }
public PlayerStoreByValue( IGuildService guildService, IMemoryCache memoryCache, GuildToolsContext context, IKeyedResourceManager resourceManager) { this.guildService = guildService; this.context = context; this.cache = new MemoryCachedDatabaseValueWithSource <StoredPlayer>(memoryCache, this.MemoryDuration, resourceManager); }
public GuildMemberCache(IGuildService guildService, IMemoryCache memoryCache, IDatabaseCache dbCache, IKeyedResourceManager resourceManager) { this.cache = new DbMemCachedResource <IEnumerable <BlizzardPlayer> >(TimeSpan.FromDays(1.0), dbCache, memoryCache, resourceManager); this.guildService = guildService; }
public RealmStoreById(IGuildService guildService, IMemoryCache memoryCache, GuildToolsContext context, IKeyedResourceManager resourceManager) { this.MemoryDuration = TimeSpan.FromDays(1); this.guildService = guildService; this.context = context; this.cache = new MemoryCachedDatabaseValue <StoredRealm>(memoryCache, this.MemoryDuration, resourceManager); }
public GuildCache(IGuildService guildService, IMemoryCache memoryCache, IDatabaseCache dbCache, IKeyedResourceManager resourceManager) { this.cache = new DbMemCachedResource <GuildSlim>(TimeSpan.FromDays(1.0), dbCache, memoryCache, resourceManager); this.guildService = guildService; }
public DbMemCachedResource(TimeSpan expiresAfter, IDatabaseCache databaseCache, IMemoryCache memoryCache, IKeyedResourceManager resourceManager) { this.expiresAfter = expiresAfter; this.cache = new DatabaseCacheWithMemoryCache(expiresAfter, databaseCache, memoryCache); this.resourceManager = resourceManager; }
public GuildStoreByName(IBlizzardService blizzardService, IMemoryCache memoryCache, GuildToolsContext context, IKeyedResourceManager resourceManager) { this.MemoryDuration = TimeSpan.FromDays(1); this.blizzardService = blizzardService; this.context = context; this.cache = new MemoryCachedDatabaseValueWithSource <StoredGuild>(memoryCache, this.MemoryDuration, resourceManager); }
public RealmsCache(IBlizzardService blizzardService, IMemoryCache memoryCache, IDatabaseCache dbCache, IKeyedResourceManager resourceManager) { this.cache = new DbMemCachedResource <IEnumerable <Realm> >(TimeSpan.FromDays(1.0), dbCache, memoryCache, resourceManager); this.blizzardService = blizzardService; }