feat(导出RedisClient对象,便于使用其他类型方法):

This commit is contained in:
anime
2025-01-05 15:39:15 +08:00
parent 3ce8e8a681
commit ff565a1204

View File

@@ -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
)