zset v0.1.0 ZSet

A Red Black Tree implementation that follows the Redis API, complete with scores, and with the same big O running time.

Link to this section Summary

Link to this section Types

Link to this type score_tuple()
score_tuple() :: {integer, String.t}

Link to this section Functions

Link to this function at(z_set, index)
at(t, integer) :: tuple
Link to this function new(tuples \\ [])
new(score_tuple) :: t
Link to this function to_list(z_set, opt \\ nil)
to_list(t, :atom) :: [score_tuple]
Link to this function zadd(zset, score, str)
zadd(zset :: t, score :: integer, score_tuple :: String.t) :: t
Link to this function zcard(z_set)
zcard(t) :: integer
Link to this function zcount(z_set, min, max)
zcount(t, integer, integer) :: integer
Link to this function zincrby(zset, score, key)
zincrby(t, non_neg_integer, String.t) :: t
Link to this function zlexcount(z_set, min, max)
zlexcount(t, String.t, String.t) :: integer
Link to this function zrange(z_set, min, max, opt \\ nil)
zrange(t, integer, integer, :atom) :: integer
Link to this function zrangebylex(z_set, min, max, opt \\ nil)
Link to this function zrangebyscore(z_set, min, max, opt \\ nil)
zrangebyscore(t, integer, integer, :atom) :: term
Link to this function zrank(z_set, key, opt \\ nil)
zrank(t, string, :atom) :: term
Link to this function zrem(zset, k)
zrem(t, String.t) :: t
zrem(t, [String.t]) :: t
Link to this function zrevrangebylex(zset, max, min)
zrevrangebylex(t, String.t, String.t) :: integer
Link to this function zscore(z_set, key)
zscore(t, String.t) :: integer