Abstract away cache. 2 implementations: redis and memory

This commit is contained in:
Kwoth
2022-06-23 13:07:45 +00:00
parent 1716c69132
commit 210da263ad
75 changed files with 11525 additions and 1547 deletions

View File

@@ -14,9 +14,9 @@ public partial class Games : NadekoModule<GamesService>
private readonly IHttpClientFactory _httpFactory;
private readonly Random _rng = new();
public Games(IDataCache data, IHttpClientFactory factory)
public Games(IImageCache images, IHttpClientFactory factory)
{
_images = data.LocalImages;
_images = images;
_httpFactory = factory;
}