Skip to main content

Module memory

Module memory 

Source
Expand description

Typed process-local caching for synchronous callers.

Structs§

MemoryCache
A thread-safe concurrent synchronous in-memory cache.

Constants§

MAX_TTL
Longest fixed TTL new accepts; Moka’s builder rejects a longer one.

Functions§

new
Construct a bounded cache with a fixed time to live.