Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@ci/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>