the identifier to set,
the value to keep for the identifier.
Get the value kept under a given identifer.
the identifer to look for.
the value kept under that identifer, or undefined if the id was not found.
Delete a single identifier and its value, or entirely delete all values.
Optionalid: stringthe identifier to delete. If not provided, the entire cache will be cleared.
Retrieve metrics for this cache instance. This is mainly a debugging/monitoring method.
a metrics object containing sets, hits, and misses.
Keep a value under a given identifier.