Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oak_nest/modules/cache/src/lru/types.ts>SetOptions

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
interface SetOptions
import { type SetOptions } from "https://deno.land/x/oak_nest@v3.0.1/modules/cache/src/lru/types.ts";

options which override the options set in the LRUCache constructor when making cache.set() calls.

Properties

optional
size: number

A value for the size of the entry, prevents calls to sizeCalculation function.

optional
sizeCalculation: SizeCalculator<K, V>
optional
ttl: number
optional
start: number
optional
noDisposeOnSet: boolean
optional
noUpdateTTL: boolean