Skip to content

Instantly share code, notes, and snippets.

@kyle-mccarthy
kyle-mccarthy / cache-config.service.ts
Created February 20, 2020 20:48
nest.js cache config for redis
import {
CacheModuleOptions,
CacheOptionsFactory,
Injectable,
} from '@nestjs/common';
import { LoggerService } from '@src/common/logger.service';
import { ConfigOptions, ConfigService } from '@src/config/config.service';
import * as redisCacheStore from 'cache-manager-redis-store';
@Injectable()