Skip to main content
Module

x/scaffold/src/cache.ts>RepositoryCache

scaffold your next project with style and 💗
Latest
class RepositoryCache
extends EmptyCache
import { RepositoryCache } from "https://deno.land/x/scaffold@0.3.0/src/cache.ts";

Get the repository from the cache.

This also provides the store.

Constructors

new
RepositoryCache(props: RepositoryCacheProps)

Properties

readonly
store: Store

The store for configuration and the cache.

Methods

get(hash: string)

Get the cached directory for the repository if it exists.

Get the directory for the hashed repository.

getKey(hash: string, object: Record<string, string | undefined>): string
hasKey(hash: string): boolean

Check whether the cache contains the repository hash.

Load all the repository directories. This should be called before any thing else.

permissions(key: string): string

The path to the permissions file for the repository.