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

x/lume/core/cache.ts>default

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class default
import { default } from "https://deno.land/x/lume@v2.4.1/core/cache.ts";

Class to cache the content transformations (like transform_images manipulations)

Constructors

new
default(options?: Options)

Methods

clear(): Promise<void>
get(content: Uint8Array | string, key: unknown): Promise<Uint8Array | undefined>
getFile(content: Uint8Array | string, key: unknown): Promise<string>
getText(content: string, key: unknown): Promise<string | undefined>
set(
content: string | Uint8Array,
key: unknown,
result: string | Uint8Array,
): Promise<void>