Class CacheFactory<TDrivers, TType>

import { CacheFactory } from "@daiso-tech/core";
import Redis from "ioredis"

const cacheFactory = new CacheFactory({
drivers: {
memory: new MemoryCacheAdapter(),
redis: new RedisCacheAdapter(new Redis()),
},
defaultDriver: "memory",
});

Type Parameters

  • TDrivers extends string = string
  • TType = unknown

Implements

Constructors

Methods

Constructors

Methods