refactor(backend): split log files into separate file
This commit is contained in:
@@ -10,7 +10,7 @@ import { createCache } from "@lib/cache.ts";
|
||||
const moviedb = new MovieDb(Deno.env.get("TMDB_API_KEY") || "");
|
||||
|
||||
const CACHE_INTERVAL = 1000 * 60 * 24 * 30;
|
||||
const cache = createCache({ expires: CACHE_INTERVAL });
|
||||
const cache = createCache("the-movie-db", { expires: CACHE_INTERVAL });
|
||||
|
||||
export const searchMovie = async (query: string, year?: number) => {
|
||||
const id = `query:moviesearch:${query}${year ? `-${year}` : ""}`;
|
||||
|
||||
Reference in New Issue
Block a user