Open Source: ActiveCache Ruby Gem

Built and published an open-source multi-layer caching abstraction for Ruby/Rails that has accumulated 1,200+ GitHub stars and is used in production by 50+ companies.

Author & MaintainerOpen SourceOngoing

Situation

Ruby applications frequently needed multi-layer caching (in-process memory + Redis + CDN) but existing solutions required committing to a single backend with no graceful fallback when a layer was unavailable.

Task

Design a composable caching abstraction that allows transparent multi-layer lookups, automatic TTL management, and safe degradation when individual cache backends fail.

Action

Developed ActiveCache as a Rails engine using a chain-of-responsibility pattern. Published with 95% RSpec coverage, full YARD documentation, and CI across Ruby 3.1/3.2/3.3 and Rails 7.0/7.1. Presented the library at RailsConf 2023 to an audience of ~300 developers.

Result

1,200+ GitHub stars, 50+ production adopters, featured in Ruby Weekly. Received positive feedback from the Rails core team on the API design.

Key Metrics

GitHub Stars

1,200+

Test Coverage

95%

RubyGems Downloads

28,000+

Production Adopters

50+