Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/modules/cache/src/cache.interceptor.ts>CacheInterceptor

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
class CacheInterceptor
implements NestInterceptor
import { CacheInterceptor } from "https://deno.land/x/deno_nest@v3.5.0/modules/cache/src/cache.interceptor.ts";

Constructors

new
CacheInterceptor(cacheModuleOptions?: CacheModuleOptions)

Properties

optional
customCache: ICacheStore
optional
defaultStore: string
optional
isDebug: boolean
optional
localCache: LocalStore
lruCache: LRU<string, unknown>
policy: CachePolicy
ttl: number

Methods

init(cacheModuleOptions?: CacheModuleOptions)
intercept(
context: Context,
next: Next,
)
joinArgs(args: any[])