Working Redis

This commit is contained in:
2024-02-14 14:18:40 +03:00
parent e6098c664c
commit 1c1812a44c
3 changed files with 10 additions and 4 deletions

View File

@@ -9,11 +9,14 @@ export const RedisOptions: CacheModuleAsyncOptions = {
socket: {
host: config.redis.redis_host,
port: config.redis.redis_port,
passphrase: config.redis.redis_password,
},
database: config.redis.redis_database,
password: config.redis.redis_password,
ttl: 30,
});
return {
store: () => store,
isGlobal: true,
};
},
};