mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Fix redis cache (#402)
* feat: support tls config for redis * fix: Boolean env variable parse - Fix Boolean Environment Variable Parsing For Redis Cache Enablement * remove tls
This commit is contained in:
parent
f2b0ae119a
commit
78937271f3
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ import { Bulk, connect, Redis } from "../../deps.ts";
|
|||
import { Logger } from "../Helpers/Logger.ts";
|
||||
import { CONSTANTS } from "../utils.ts";
|
||||
|
||||
const enableCache = Deno.env.get("ENABLE_REDIS") || false;
|
||||
const enableCache: boolean = Deno.env.get("ENABLE_REDIS") === "true";
|
||||
|
||||
// https://developer.redis.com/develop/deno/
|
||||
class CacheProvider {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue