Sunday, 12 April 2015

Redis Sorted Set operations

Sortedset is a set which maintenance order. Every element in a sorted set is associated with a floating point value, called the score, Elements in sortedset are ordered by this score value.

Redis provides number of commands, to work with sorted sets.

Adds given members to the sorted set
Returns the number of elements in the set
Returns the number of elements in the specified score range
Increments the score of the member by increment
Computes the union of all sorted sets and store the result into destination
Computes the intersection of all sorted sets and store the result into destination
Returns the specified range of elements from given sorted set
Returns all the elements in the sorted set, where the score is in  between min and max
Returns elements from sorted set from start to stop,ordered from the highest to the lowest score
Return the rank of the member in the sorted set
Removes the members from the sorted set




Prevoius                                                 Next                                                 Home

No comments:

Post a Comment