Expand description

Caching structures for use in an asynchronous context.

The main point of this module is the Cache type, which offers a small implementation of a cache with time based expiration support. The underlying structure is nothing more than a map wrapped inside some asynchronous locking mechanisms to avoid blocking the entire async runtime when waiting for a handle.

The eviction algorithm has been based on Redis, and essentially just samples the entry set on an interval to prune the inner tree over time. More information on how this works can be seen on the monitor method of the Cache type.

Structs

Basic caching structure with asynchronous locking support.