# moneta-rb/moneta

a unified interface to key/value stores

Repository: https://github.com/moneta-rb/moneta
Canonical: https://ross.abutalabs.com/products/moneta
Homepage: https://github.com/moneta-rb/moneta
Language: Ruby
License: MIT
License Family: permissive
Last push: 2024-08-02T14:16:50+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5036, "days_push": 761, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1115, forks 87 (observed 2026-08-28T04:03:38.368519+00:00)

## What it is
Moneta is a Ruby library providing a unified interface to many key/value stores, including NoSQL and document databases. It supports configurable serialization, compression, and expiration via a proxy stack, plus atomic operations and distributed synchronization primitives.

## Use cases
- swap key/value backends without changing application code
- add caching to a Rails or Sinatra app with a pluggable store
- benchmark and compare different key/value stores
- add TTL/expiration to stores that lack native support
- implement distributed locks with Moneta::Mutex
- serialize and compress values transparently across backends

## When to choose
- you need one consistent API over multiple key/value stores in Ruby
- you want swappable cache or session stores across frameworks
- you need atomic increments or distributed mutexes on top of a KV store

## When to avoid
- you use a non-Ruby language
- you need advanced store-specific features not exposed by the unified API
- you need a full-featured ORM or document query layer

## Facets
- artifact type: library
- maturity: stable
- function: database, caching, serialization, compression, middleware
- domain: databases, developer-tools, web-development, backend
- platform: ruby, cross-platform
- tags: key-value-store, nosql, cache-store, abstraction-layer, rack, rails

## Member repositories
- moneta-rb/moneta (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:38.368519+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:42:11.536409+00:00, confidence not recorded.
  - readme: https://github.com/moneta-rb/moneta (fetched 2026-08-28T04:03:38.368519+00:00, sha c42471ef4ebb)
  - homepage: https://github.com/moneta-rb/moneta (fetched 2026-08-29T12:45:56.866544+00:00, sha b30737c9d3c8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
