Tests should use redis (mock) cache, not tmdb sqlite cache

This commit is contained in:
2022-08-20 16:54:27 +02:00
parent b4758040ee
commit 39e335423b
2 changed files with 10 additions and 119 deletions

View File

@@ -1,8 +1,7 @@
const Cache = require("../../src/tmdb/cache");
const redisCache = require("../../src/cache/redis");
function createCacheEntry(key, value) {
const cache = new Cache();
return cache.set(key, value);
return redisCache.set(key, value);
}
module.exports = createCacheEntry;