Commit ad94bc31 authored by Vitaly Arbuzov's avatar Vitaly Arbuzov
Browse files

Merge branch 'unstable' into dict-split-by-slot

parents a08686a5 e55568ed
{
"XLEN": {
"summary": "Return the number of entries in a stream",
"summary": "Return the number of messages in a stream.",
"complexity": "O(1)",
"group": "stream",
"since": "5.0.0",
......
{
"XPENDING": {
"summary": "Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged.",
"summary": "Returns the information and entries from a stream consumer group's pending entries list.",
"complexity": "O(N) with N being the number of elements returned, so asking for a small fixed number of entries per call is O(1). O(M), where M is the total number of entries scanned when used with the IDLE filter. When the command returns just the summary and the list of consumers is small, it runs in O(1) time; otherwise, an additional O(N) time for iterating every consumer.",
"group": "stream",
"since": "5.0.0",
......
{
"XRANGE": {
"summary": "Return a range of elements in a stream, with IDs matching the specified IDs interval",
"summary": "Returns the messages from a stream within a range of IDs.",
"complexity": "O(N) with N being the number of elements being returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1).",
"group": "stream",
"since": "5.0.0",
......
{
"XREAD": {
"summary": "Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block.",
"complexity": "For each stream mentioned: O(N) with N being the number of elements being returned, it means that XREAD-ing with a fixed COUNT is O(1). Note that when the BLOCK option is used, XADD will pay O(M) time in order to serve the M clients blocked on the stream getting new data.",
"summary": "Returns messages from multiple streams with IDs greater than the ones requested. Blocks until a message is available otherwise.",
"group": "stream",
"since": "5.0.0",
"arity": -4,
......
{
"XREADGROUP": {
"summary": "Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block.",
"summary": "Returns new or historical messages from a stream for a consumer in agroup. Blocks until a message is available otherwise.",
"complexity": "For each stream mentioned: O(M) with M being the number of elements returned. If M is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1). On the other side when XREADGROUP blocks, XADD will pay the O(N) time in order to serve the N clients blocked on the stream getting new data.",
"group": "stream",
"since": "5.0.0",
......
{
"XREVRANGE": {
"summary": "Return a range of elements in a stream, with IDs matching the specified IDs interval, in reverse order (from greater to smaller IDs) compared to XRANGE",
"summary": "Returns the messages from a stream within a range of IDs in reverse order.",
"complexity": "O(N) with N being the number of elements returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1).",
"group": "stream",
"since": "5.0.0",
......
{
"XSETID": {
"summary": "An internal command for replicating stream values",
"summary": "An internal command for replicating stream values.",
"complexity": "O(1)",
"group": "stream",
"since": "5.0.0",
......
{
"XTRIM": {
"summary": "Trims the stream to (approximately if '~' is passed) a certain size",
"summary": "Deletes messages from the beginning of a stream.",
"complexity": "O(N), with N being the number of evicted entries. Constant times are very small however, since entries are organized in macro nodes containing multiple entries that can be released with a single deallocation.",
"group": "stream",
"since": "5.0.0",
......
{
"ZADD": {
"summary": "Add one or more members to a sorted set, or update its score if it already exists",
"summary": "Adds one or more members to a sorted set, or updates their scores. Creates the key if it doesn't exist.",
"complexity": "O(log(N)) for each item added, where N is the number of elements in the sorted set.",
"group": "sorted_set",
"since": "1.2.0",
......
{
"ZCARD": {
"summary": "Get the number of members in a sorted set",
"summary": "Returns the number of members in a sorted set.",
"complexity": "O(1)",
"group": "sorted_set",
"since": "1.2.0",
......
{
"ZCOUNT": {
"summary": "Count the members in a sorted set with scores within the given values",
"summary": "Returns the count of members in a sorted set that have scores within a range.",
"complexity": "O(log(N)) with N being the number of elements in the sorted set.",
"group": "sorted_set",
"since": "2.0.0",
......
{
"ZDIFF": {
"summary": "Subtract multiple sorted sets",
"summary": "Returns the difference between multiple sorted sets.",
"complexity": "O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.",
"group": "sorted_set",
"since": "6.2.0",
......
{
"ZDIFFSTORE": {
"summary": "Subtract multiple sorted sets and store the resulting sorted set in a new key",
"summary": "Stores the difference of multiple sorted sets in a key.",
"complexity": "O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set.",
"group": "sorted_set",
"since": "6.2.0",
......
{
"ZINCRBY": {
"summary": "Increment the score of a member in a sorted set",
"summary": "Increments the score of a member in a sorted set.",
"complexity": "O(log(N)) where N is the number of elements in the sorted set.",
"group": "sorted_set",
"since": "1.2.0",
......
{
"ZINTER": {
"summary": "Intersect multiple sorted sets",
"summary": "Returns the intersect of multiple sorted sets.",
"complexity": "O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.",
"group": "sorted_set",
"since": "6.2.0",
......
{
"ZINTERCARD": {
"summary": "Intersect multiple sorted sets and return the cardinality of the result",
"summary": "Returns the number of members of the intersect of multiple sorted sets.",
"complexity": "O(N*K) worst case with N being the smallest input sorted set, K being the number of input sorted sets.",
"group": "sorted_set",
"since": "7.0.0",
......
{
"ZINTERSTORE": {
"summary": "Intersect multiple sorted sets and store the resulting sorted set in a new key",
"summary": "Stores the intersect of multiple sorted sets in a key.",
"complexity": "O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.",
"group": "sorted_set",
"since": "2.0.0",
......
{
"ZLEXCOUNT": {
"summary": "Count the number of members in a sorted set between a given lexicographical range",
"summary": "Returns the number of members in a sorted set within a lexicographical range.",
"complexity": "O(log(N)) with N being the number of elements in the sorted set.",
"group": "sorted_set",
"since": "2.8.9",
......
{
"ZMPOP": {
"summary": "Remove and return members with scores in a sorted set",
"summary": "Returns the highest- or lowest-scoring members from one or more sorted sets after removing them. Deletes the sorted set if the last member was popped.",
"complexity": "O(K) + O(M*log(N)) where K is the number of provided keys, N being the number of elements in the sorted set, and M being the number of elements popped.",
"group": "sorted_set",
"since": "7.0.0",
......
{
"ZMSCORE": {
"summary": "Get the score associated with the given members in a sorted set",
"summary": "Returns the score of one or more members in a sorted set.",
"complexity": "O(N) where N is the number of members being requested.",
"group": "sorted_set",
"since": "6.2.0",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment