Module

x/lume/core/cache.ts>default

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class default
import { default } from "https://dotland.deno.dev/x/lume@v2.3.3/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>