Skip to content
redis module for percentile estimation
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.lock
Cargo.toml
LICENSE
README.md

README.md

redis-percentile

Redis module for efficient percentile estimation of streaming or distributed data with t-digest algorithm.

Usage

$ git clone git@github.com:poga/redis-percentile.git
$ cd redis-percentile
$ cargo build
$ redis-server --loadmodule target/debug/libredis_percentile.so

Commands

PERCENTILE.MERGE

PERCENTILE.MERGE <key> values...

Merge a list of numbers into <key>.

response: len(values)

PERCENTILE.MERGESORTED

PERCENTILE.MERGESORTED <key> values...

Merge a sorted list of numbers into <key>.

response: len(values)

PERCENTILE.GET

PERCENTILE.GET <key> <percentile>

response: estimated value of percentile

example
PERCENTILE.GET foo 0.9
You can’t perform that action at this time.