# nateware/redis-objects

Map Redis types directly to Ruby objects

Repository: https://github.com/nateware/redis-objects
Canonical: https://ross.abutalabs.com/products/redis-objects
Language: Ruby
License: Artistic-2.0
License Family: other
Last push: 2026-01-13T20:46:43+00:00

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

## Adoption (not part of the score)
Stars 2095, forks 231 (observed 2026-08-28T04:06:13.228841+00:00)

## What it is
A Ruby gem that maps Redis data types (counters, lists, sets, sorted sets, hashes, locks) directly onto Ruby objects via a simple include, providing atomic operations on individual Redis structures. It integrates naturally with ActiveRecord models while explicitly positioning itself as not an ORM.

## Use cases
- add atomic counters to Ruby models backed by Redis
- use Redis sets and sorted sets as first-class Ruby objects
- implement distributed locks in Ruby with redis_lock
- store lists and hashes in Redis without writing raw commands
- add Redis-backed data structures to Rails ActiveRecord models
- manage Redis key naming and migration for nested Ruby classes

## When to choose
- you want idiomatic Ruby wrappers around Redis data types with atomic operations
- you need counters, sets, lists, or locks in a Rails/Sinatra app without a full ORM
- you want fine-grained control over individual Redis structures rather than object persistence

## When to avoid
- you need a full object-relational mapper that persists entire model objects to Redis
- your project does not use Ruby
- you want automatic schema management or migrations for complex object graphs

## Facets
- artifact type: library
- maturity: active
- function: caching, database-driver, serialization, concurrency
- domain: databases, developer-tools, web-development, backend
- platform: ruby
- tags: redis, ruby-gem, data-structures, counters, distributed-locks, active-record-integration, key-value-store

## Member repositories
- nateware/redis-objects (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:13.228841+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-30T02:54:39.141937+00:00, confidence not recorded.
  - readme: https://github.com/nateware/redis-objects (fetched 2026-08-28T04:06:13.228841+00:00, sha 9ed0c1e18039)
- Data as of 2026-08-30T08:39:29.467469+00:00.
