Latest / Developer tools

memo_ttl

github.com · Open source · Quiet

Thread-safe Ruby memoization with TTL and LRU eviction

Visit github.com ↗Share

  • memoization
  • gem
  • lru
  • memoize
  • ttl
  • ruby memoization
  • ttl cache ruby
  • lru cache ruby
Stars
35
Forks
0
Open issues
0
Last commit
Found
19 months ago

GitHub figures as of . They are context, not a ranking.

memo_ttl is a Ruby gem that memoizes computed values with a time-to-live and least-recently-used eviction. It is thread-safe and suits Ruby developers who want cached results to expire while keeping memory bounded.

Repository description 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.”

What it does

  • Memoizes method results with a time-to-live expiry
  • Built-in LRU eviction limits memory use
  • Thread-safe using Monitor
  • Added to a class with include MemoTTL

Good for

  • Cache results of an expensive method that should expire
  • Bound memory use of memoized methods in a Ruby app

Suits: Ruby developers who need expiring in-memory caches.

Worth knowing: Not meant for cross-request or cross-process caching, where its readme suggests Rails.cache

What you can try

Read the README on GitHub and install from source.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw memo_ttl on , when hp_hovercraft84 posted it to Show HN. GitHub listed no published releases for mishalzaman/memo_ttl when checked , so the project may ship straight from its main branch. The repository was created .

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 48 points, 26 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 48 points, 26 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: mishalzaman/memo_ttl
  2. Found: hp_hovercraft84 posted it to Show HN. Show HN
  3. Day-7 check recorded by Kip (details)
  4. Day-30 check recorded by Kip (details)

Quick answers

When was memo_ttl released?
No dated release record is available. Kip found it on Show HN on 22 Apr 2025.
Is memo_ttl open source?
Its source is public on GitHub at mishalzaman/memo_ttl under the MIT licence.
What does memo_ttl run on?
Library.
Is memo_ttl free?
It is open source, so the code is free to read and run; check the licence for terms.
Is memo_ttl still maintained?
It has had no commit or release for over a year as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorymishalzaman/memo_ttl
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-43764122. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.