Skip to content

poga/redis-percentile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-percentile

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

Usage

$ git clone [email protected]: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

Releases

No releases published

Packages

No packages published

Languages