added tons of features

This commit is contained in:
2025-02-05 08:01:14 +02:00
parent 4ae0d8c545
commit 8138da6b1d
195 changed files with 12619 additions and 415 deletions

8
lib/db/redis/client.ts Normal file
View File

@@ -0,0 +1,8 @@
import {createClient} from 'redis'
export const redisClient = await createClient({
url: process.env.REDIS_URL || 'localhost'
})
.on('connect', () => console.error('Connected to redis...'))
.on('error', err => console.error('Redis Client Error', err))
.connect()

1
lib/db/redis/ttl.ts Normal file
View File

@@ -0,0 +1 @@
export const REDIS_USER_TTL = 60