<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/kiebor81-mudis-mudis-is-a-fast-thread-safe-in-memory-sharded-lru-cache-for-ruby-applications-ra-jf9qoug4j" -->

---
title: kiebor81/mudis: Mudis is a fast, thread-safe, in-memory,...
description: Mudis is a thread-safe, in-memory LRU cache library for Ruby applications with sharding, TTL expiry, compression, and metrics tracking. It supports Rails and...
canonical: https://daily.dev/posts/kiebor81-mudis-mudis-is-a-fast-thread-safe-in-memory-sharded-lru-cache-for-ruby-applications-ra-jf9qoug4j
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: kiebor81/mudis: Mudis is a fast, thread-safe, in-memory, sharded LRU cache for Ruby applications. Rails and Hanami (or any Rack) compatible. | daily.dev
og:description: Mudis is a thread-safe, in-memory LRU cache library for Ruby applications with sharding, TTL expiry, compression, and metrics tracking. It supports Rails and...
og:url: https://daily.dev/posts/kiebor81-mudis-mudis-is-a-fast-thread-safe-in-memory-sharded-lru-cache-for-ruby-applications-ra-jf9qoug4j
og:image: https://api.daily.dev/og/posts/JF9QoUG4J.png
og:image:alt: kiebor81/mudis: Mudis is a fast, thread-safe, in-memory, sharded LRU cache for Ruby applications. Rails and Hanami (or any Rack) compatible.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# kiebor81/mudis: Mudis is a fast, thread-safe, in-memory, sharded LRU cache for Ruby applications. Rails and Hanami (or any Rack) compatible.

**[Ruby Flow](https://daily.dev/sources/rubyflow)** · 22 min read · 0 upvotes · 0 comments

## Summary

Mudis is a thread-safe, in-memory LRU cache library for Ruby applications with sharding, TTL expiry, compression, and metrics tracking. It supports Rails and Hanami frameworks, offers inter-process caching via UNIX sockets, optional soft persistence through snapshots, and provides fine-grained memory controls. The library includes namespace support, configurable serializers (JSON/Marshal/Oj), background expiry cleanup, and detailed observability features for monitoring cache performance.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/kiebor81/mudis>

## Similar posts on daily.dev

- [GitHub - nicolasva/solid-redis](https://daily.dev/posts/github---nicolasva-solid-redis-oosnxofle) · Ruby Flow · 0 upvotes · 0 comments
- [GitHub - igorkasyanchuk/rails\_named\_cache: Multiple named cache stores for Rails, through Rails.cache\(:name\)](https://daily.dev/posts/github---igorkasyanchuk-rails-named-cache-multiple-named-cache-stores-for-rails-through-rails-cach-b8mzdnstp) · Ruby Flow · 1 upvotes · 0 comments
- [Rails 8 Solid Cache: Database-Backed Cache Store](https://daily.dev/posts/rails-8-solid-cache-database-backed-cache-store-6lgeokcjo) · Saeloun · 0 upvotes · 0 comments
- [Russian Doll Caching at the Edge](https://daily.dev/posts/russian-doll-caching-at-the-edge-6xbqzsvna) · Atomic Spin · 0 upvotes · 0 comments
- [Redis introduces new capabilities to help you operate, build, and scale with confidence](https://daily.dev/posts/redis-introduces-new-capabilities-to-help-you-operate-build-and-scale-with-confidence-uex8ka8qb) · Redis · 0 upvotes · 0 comments

---

Tags: [#ruby](https://daily.dev/tags/ruby)

[View this post on daily.dev](https://daily.dev/posts/kiebor81-mudis-mudis-is-a-fast-thread-safe-in-memory-sharded-lru-cache-for-ruby-applications-ra-jf9qoug4j)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"kiebor81/mudis: Mudis is a fast, thread-safe, in-memory, sharded LRU cache for Ruby applications. Rails and Hanami (or any Rack) compatible.","url":"https://daily.dev/posts/kiebor81-mudis-mudis-is-a-fast-thread-safe-in-memory-sharded-lru-cache-for-ruby-applications-ra-jf9qoug4j","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/kiebor81-mudis-mudis-is-a-fast-thread-safe-in-memory-sharded-lru-cache-for-ruby-applications-ra-jf9qoug4j"},"datePublished":"2026-01-20T18:49:02.089Z","dateModified":"2026-01-20T18:49:47.809Z","description":"Mudis is a thread-safe, in-memory LRU cache library for Ruby applications with sharding, TTL expiry, compression, and metrics tracking. It supports Rails and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b1d397260554587610e4ff5a3877be34?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b1d397260554587610e4ff5a3877be34?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Ruby Flow","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Ruby Flow","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a21aaa8bcbbf448193a016895c90a0e1","url":"https://daily.dev/sources/rubyflow"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/kiebor81-mudis-mudis-is-a-fast-thread-safe-in-memory-sharded-lru-cache-for-ruby-applications-ra-jf9qoug4j","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ruby","timeRequired":"PT22M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ruby Flow","item":"https://daily.dev/sources/rubyflow"},{"@type":"ListItem","position":3,"name":"kiebor81/mudis: Mudis is a fast, thread-safe, in-memory, sharded LRU cache for Ruby applications. Rails and Hanami (or any Rack) compatible."}]}
```

