diff --git a/lib/cache/redis_cache.js b/lib/cache/redis_cache.js index 0e9546b6..2556a815 100644 --- a/lib/cache/redis_cache.js +++ b/lib/cache/redis_cache.js @@ -2,7 +2,7 @@ import Redis from 'ioredis' import BLOG from '@/blog.config' import { siteConfig } from '@/lib/config' -const redisClient = new Redis(BLOG.REDIS_URL) +export const redisClient = new Redis(BLOG.REDIS_URL) const cacheTime = Math.trunc( siteConfig('NEXT_REVALIDATE_SECOND', BLOG.NEXT_REVALIDATE_SECOND) * 1.5 )