Properties
Private
_cache
_cache: { [
key:
string]
: { [
version:
string]
: T; }; } = ... Type declaration
[key: string]: {
[version: string]: T;
}
Methods
get
- get(key, semver): undefined | T
Parameters
- key: string
- semver: string
Returns undefined | T
getAllVersions
- getAllVersions(key): undefined | {
[version: string]: any;
} Returns undefined | {
[version: string]: any;
}
set
- set(key, version, object): void
Parameters
- key: string
- version: string
- object: T
Returns void
A cache using semver ranges to retrieve values.