Analysis updated 2026-07-12 · repo last pushed 2014-03-14
Cache session data in a lightweight mruby web server so users stay logged in between requests.
Store API responses temporarily to avoid recomputing expensive data on every request.
Set up multiple Memcached servers with replication so cached data survives a server failure.
Add fast temporary data storage to an embedded system running mruby without a full database.
| zzak/mruby-memcached | calmh/pre-git | caspermeijn/pinetime-battery-measurement | |
|---|---|---|---|
| Language | C | C | C |
| Last pushed | 2014-03-14 | 2016-08-12 | 2020-05-12 |
| Maintenance | Dormant | Dormant | Dormant |
| Setup difficulty | moderate | hard | moderate |
| Complexity | 2/5 | 1/5 | 3/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires compiling a C extension that bridges mruby and libmemcached, meaning you need both mruby and libmemcached development headers installed.
mruby-memcached lets you talk to a Memcached server from mruby code. Memcached is a popular in-memory key-value store that applications use to cache frequently accessed data, and mruby is a lightweight, embeddable version of the Ruby programming language. Without this gem, mruby wouldn't have a straightforward way to store and retrieve data in Memcached. In practice, you connect to a Memcached server by providing its address, then use simple commands to save and fetch data. You can store a value under a key, retrieve it later by that key, and optionally set a time limit after which the data expires automatically. The library also supports connecting to multiple Memcached servers at once and creating replicas, meaning the same data gets copied across several servers so it's still available if one goes down. Someone who would reach for this is typically building an application in mruby that needs fast, temporary data storage. For example, if you're building a lightweight web server or embedded system in mruby and want to cache session data or API responses so you don't have to recompute them every time, this library gives you that capability. The replica feature is useful when you need redundancy across multiple cache servers, so a single server failure doesn't wipe out your cached data. The project is written in C and acts as a bridge between mruby and libmemcached, which is an established C library for communicating with Memcached servers. This approach means the gem benefits from libmemcached's maturity and performance rather than reimplementing the protocol from scratch. The README doesn't go into detail on error handling, advanced configuration, or performance characteristics beyond the basic usage examples shown.
A plugin that lets mruby applications store and retrieve data in Memcached, a fast in-memory cache, using simple commands with support for multiple servers and data replication.
Mainly C. The stack also includes C, mruby, libmemcached.
Dormant — no commits in 2+ years (last push 2014-03-14).
The README does not mention a license, so you would need to check the repository files or contact the author before using it.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.