# rails/kredis

Higher-level data structures built on Redis

Repository: https://github.com/rails/kredis
Canonical: https://ross.abutalabs.com/products/kredis
Language: Ruby
License: MIT
License Family: permissive
Last push: 2025-12-01T22:35:18+00:00

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

## Adoption (not part of the score)
Stars 1397, forks 82 (observed 2026-08-28T04:04:36.794284+00:00)

## What it is
Kredis is a Ruby library that wraps Redis data structures into higher-level, typed objects like counters, lists, sets, and scalars. It integrates with Active Model and Active Record via a declarative DSL for using Redis-backed attributes in Rails applications.

## Use cases
- store typed values in redis from rails
- use redis-backed attributes on active record models
- implement counters and flags with redis
- run parallel tests against redis without key collisions
- scale redis across multiple instances with yaml config

## When to choose
- you're building a Rails app and want ergonomic, typed Redis data structures
- you need Redis-backed model attributes with a declarative DSL
- you want namespaced keys for safe parallel testing

## When to avoid
- you're not using Ruby or Rails
- you need raw, low-level Redis command access
- you use a different cache/data-store than Redis

## Facets
- artifact type: library
- maturity: active
- function: caching, serialization, developer-tools
- domain: databases, web-development, backend
- platform: ruby
- tags: redis, active-record, rails, data-structures, typed-attributes, web-server

## Member repositories
- rails/kredis (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.794284+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-30T04:39:17.482104+00:00, confidence not recorded.
  - readme: https://github.com/rails/kredis (fetched 2026-08-28T04:04:36.794284+00:00, sha 0a1a9148c18d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
