fix: prettier)

This commit is contained in:
2024-07-03 23:49:05 +03:00
parent a865789efa
commit 5e570a4f60
47 changed files with 5152 additions and 2835 deletions

View File

@@ -1,22 +1,22 @@
import { CacheModuleAsyncOptions } from '@nestjs/cache-manager';
import { redisStore } from 'cache-manager-redis-store';
import { config } from 'config';
import { CacheModuleAsyncOptions } from "@nestjs/cache-manager";
import { redisStore } from "cache-manager-redis-store";
import { config } from "config";
export const RedisOptions: CacheModuleAsyncOptions = {
isGlobal: true,
useFactory: async () => {
const store = await redisStore({
socket: {
host: config.redis.redis_host,
port: config.redis.redis_port,
},
database: config.redis.redis_database,
password: config.redis.redis_password,
ttl: 30,
});
return {
store: () => store,
isGlobal: true,
};
},
isGlobal: true,
useFactory: async () => {
const store = await redisStore({
socket: {
host: config.redis.redis_host,
port: config.redis.redis_port,
},
database: config.redis.redis_database,
password: config.redis.redis_password,
ttl: 30,
});
return {
store: () => store,
isGlobal: true,
};
},
};