Skip to content

cache

API / @xmachines/core / cache

A cache contract by a string key, and a default implementation of it.

The contract is two methods, so a Map satisfies it, and so does an LRU of any library. A caller that wants a time to live or an eviction callback brings the module that has one, and the code that reads the cache needs to know nothing about it.

Interfaces

Functions