@shutter/metacache

Managing persistent cache data on disk, like the snapshot sets cache.

Usage no npm install needed!

<script type="module">
  import shutterMetacache from 'https://cdn.skypack.dev/@shutter/metacache';
</script>

README

@shutter/metacache NPM Version

Managing persistent cache data on disk, like the snapshot sets cache.

API

getSnapshotSetsCachePath(): string

openJSONCache<Value = any>(directoryPath: string): Promise<JSONCache>

JSONCache<Value>

interface JSONCache<Value> {
  save (key: string, content: Value): Promise<any>
  read (key: string): Promise<Value>
  has (key: string): Promise<boolean>
}