Skip to main content
Module

x/lume/core/cache.ts>default

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