lru-memoize

LRU based memoization cache for Lua functions

$ luarocks install lru-memoize

Lightweight memoization cache for Lua.
Wraps functions to cache results using an LRU eviction policy and optional per-entry TTL for automatic expiration.
Configurable capacity, optional key serializer and simple API for manual caching.

Versions

1.1.0-1232 days ago3 downloads
1.0.0-2232 days ago6 downloads
1.0.0-1237 days ago3 downloads

Dependencies

lua >= 5.1
lua-cmsgpack >= 0.4.0
lua-lru >= 1.0

Labels

Manifests