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

x/s3si/src/cache.ts>FileCache

Export your battles from SplatNet to https://stat.ink
Go to Latest
class FileCache
implements Cache
import { FileCache } from "https://deno.land/x/s3si@gui-v0.4.16/src/cache.ts";

File Cache stores data in a folder. Each file is named by the sha256 of its key.

Constructors

new
FileCache(path: string)

Methods

private
getPath(key: string): Promise<string>
read<T>(key: string): Promise<T | undefined>
write<T>(key: string, value: T): Promise<void>