- Notifications
You must be signed in to change notification settings - Fork1
redis module for percentile estimation
License
NotificationsYou must be signed in to change notification settings
poga/redis-percentile
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Redis module for efficient percentile estimation of streaming or distributed data witht-digest algorithm.
$ git clone git@github.com:poga/redis-percentile.git$ cd redis-percentile$ cargo build$ redis-server --loadmodule target/debug/libredis_percentile.so
PERCENTILE.MERGE <key> values...
Merge a list of numbers into<key>
.
response: len(values)
PERCENTILE.MERGESORTED <key> values...
Merge a sorted list of numbers into<key>
.
response: len(values)
PERCENTILE.GET <key> <percentile>
response: estimated value of percentile
PERCENTILE.GET foo 0.9