Redis is one of the most popular in-memory data structure servers, often used as a database, a cache, and a message broker. The popularity is thanks to its enormous versatility and the wide variety of use cases it enables.Working with Redis in Ruby is amazingly simple to start. After setting up a Redis instance, you add redis
gem, write a short piece of code, then here we go.
Example: Traditional Redis usages
However, over time, managing and auditing Redis keys and usages become a real challenge after dozens of key patterns as well as millions to zillions of keys are added.Sideroo gem provides an exciting set of features that would help ease your pains in maintaining and auditing Redis usages throughout your codebase.
sideroo
is Object-oriented Redis
(ooredis
) spelled backward.Aimed to solve the above problems, this gem builds a thin abstraction on top of redis
gem and provides an exciting set of features.
all
, each
, map
, count
, flush
Intuitive key filtering — where
Generated documentation for Redis usage — _COMING SOON_Key audit — COMING SOONIt can fit right into your codebase if you are using redis
gem (with or without redis-namespace
).
#ruby #programming #software-development #ruby-on-rails #redis