Get the latest tech news
Show HN: I built a Ruby gem that handles memoization with a ttl
Contribute to mishalzaman/memo_ttl development by creating an account on GitHub.
MemoTTL is a thread-safe memoization utility for Ruby that supports TTL (Time-To-Live) and LRU (Least Recently Used) eviction. It's designed for scenarios where memoized values should expire after a period and memory usage must be constrained. Memoize method results with expiration (TTL) Built-in LRU eviction to limit memory usage Thread-safe with Monitor Easy integration via include MemoTTL
Or read this on Hacker News