mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
fix ui + sessions + reactivity
This commit is contained in:
@@ -21,11 +21,14 @@ export class Redis {
|
||||
url: runtimeConfig.REDIS_URL,
|
||||
username: runtimeConfig.REDIS_USERNAME,
|
||||
password: runtimeConfig.REDIS_PASSWORD,
|
||||
database: process.dev ? 1 : 0
|
||||
database: process.dev ? 1 : 0,
|
||||
});
|
||||
|
||||
static async init() {
|
||||
await this.client.connect();
|
||||
this.client.on('error', function (err) {
|
||||
console.error('Redis error:', err);
|
||||
});
|
||||
}
|
||||
|
||||
static async setString(key: string, value: string, exp: number) {
|
||||
|
||||
Reference in New Issue
Block a user