{"repo":"dzunk/redis-time-series","free":true,"listed":false,"github":"https://github.com/dzunk/redis-time-series","clone":"git clone https://github.com/dzunk/redis-time-series.git","description":"⏱️📈 A Ruby adapter for the RedisTimeSeries module","language":"Ruby","stars":29,"topics":["ruby","redis","timeseries","redistimeseries"],"license":"MIT","category":"databases-storage","readme_excerpt":"RedisTimeSeries A Ruby adapter for the RedisTimeSeries module. This doesn't work with vanilla Redis, you need the time series module compiled and installed. Try it with Docker, and see the module setup guide for additional options. TL;DR Installation Add this line to your application's Gemfile: And then execute: $ bundle Or install it yourself as: $ gem install redis-time-series Usage Check out the Redis Time Series command documentation first. Should be able to do most of that. Configuring You can set the default Redis client for class-level calls operating on multiple series, as well as series created without specifying a client. Creating a Series Create a series (issues TS.CREATE command) and return a Redis::TimeSeries object for further use. Key param is required, all other arguments are optional. You can also call .new instead of .create to skip the TS.CREATE command. Adding Data to a Series Add a single value Add a single value with a timestamp Add multiple values with timestamps Increment or decrement the most recent value Add values to multiple series Querying a Series Get the most recent value Get a range of values Get info about the series Find series matching specific label(s) Querying Multiple Series Get all samples from matching series over a time range with mrange Order them from newest to oldest with mrevrange Filter DSL You can provide filter strings directly, per the time series documentation. There is also a hash-based syntax available, which may be more ple","default_branch":null,"files":null,"tree":[],"storefront":"/r/dzunk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dzunk/redis-time-series/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}