Extracted Cache dependencies

This commit is contained in:
Artyom Belousov 2021-02-07 10:44:26 +03:00
parent 40f1687972
commit 1f69282c73
4 changed files with 15 additions and 28 deletions

View file

@ -28,7 +28,7 @@ func main() {
GroupId: groupId,
ConfirmationString: os.Getenv("VK_CONFIRMATION_STRING"),
DictPath: "./assets/additional_cards.json",
Cache: caching.GetClient(),
Cache: caching.NewClient("redis:6379", "", time.Hour*24, 0),
InfoFetcher: &cardsinfo.Fetcher{},
}