Autogenerated redis commands for NWNX usage. Autogenerated on: 2019-10-01 20:51:53 -0400. More...
#include "nwnx"
#include "nwnx_redis_lib"
Go to the source code of this file.
Functions | |
Redis Commands | |
int | NWNX_Redis_APPEND (string key, string value) |
int | NWNX_Redis_AUTH (string password) |
int | NWNX_Redis_BGREWRITEAOF () |
int | NWNX_Redis_BGSAVE () |
int | NWNX_Redis_BITCOUNT (string key, int start=0, int end=0) |
int | NWNX_Redis_BITFIELD (string key, string get_type="", int get_offset=0, string set_type="", int set_offset=0, int set_value=0, string incrby_type="", int incrby_offset=0, int incrby_increment=0) |
int | NWNX_Redis_BITOP (string operation, string destkey, string key) |
int | NWNX_Redis_BITPOS (string key, int bit, int start=0, int end=0) |
int | NWNX_Redis_BLPOP (string key, int timeout) |
int | NWNX_Redis_BRPOP (string key, int timeout) |
int | NWNX_Redis_BRPOPLPUSH (string source, string destination, int timeout) |
int | NWNX_Redis_BZPOPMIN (string key, int timeout) |
int | NWNX_Redis_BZPOPMAX (string key, int timeout) |
int | NWNX_Redis_CLIENT_ID () |
int | NWNX_Redis_CLIENT_KILL (string ip_port="", int id_client_id=0, string addr_ip_port="", string skipme_yes_no="") |
int | NWNX_Redis_CLIENT_LIST () |
int | NWNX_Redis_CLIENT_GETNAME () |
int | NWNX_Redis_CLIENT_PAUSE (int timeout) |
int | NWNX_Redis_CLIENT_REPLY (string reply_mode) |
int | NWNX_Redis_CLIENT_SETNAME (string connection_name) |
int | NWNX_Redis_CLIENT_UNBLOCK (string client_id, string unblock_type="") |
int | NWNX_Redis_CLUSTER_ADDSLOTS (int slot) |
int | NWNX_Redis_CLUSTER_COUNT_FAILURE_REPORTS (string node_id) |
int | NWNX_Redis_CLUSTER_COUNTKEYSINSLOT (int slot) |
int | NWNX_Redis_CLUSTER_DELSLOTS (int slot) |
int | NWNX_Redis_CLUSTER_FAILOVER (string options="") |
int | NWNX_Redis_CLUSTER_FORGET (string node_id) |
int | NWNX_Redis_CLUSTER_GETKEYSINSLOT (int slot, int count) |
int | NWNX_Redis_CLUSTER_INFO () |
int | NWNX_Redis_CLUSTER_KEYSLOT (string key) |
int | NWNX_Redis_CLUSTER_MEET (string ip, int port) |
int | NWNX_Redis_CLUSTER_NODES () |
int | NWNX_Redis_CLUSTER_REPLICATE (string node_id) |
int | NWNX_Redis_CLUSTER_RESET (string reset_type="") |
int | NWNX_Redis_CLUSTER_SAVECONFIG () |
int | NWNX_Redis_CLUSTER_SET_CONFIG_EPOCH (int config_epoch) |
int | NWNX_Redis_CLUSTER_SETSLOT (int slot, string subcommand, string node_id="") |
int | NWNX_Redis_CLUSTER_SLAVES (string node_id) |
int | NWNX_Redis_CLUSTER_REPLICAS (string node_id) |
int | NWNX_Redis_CLUSTER_SLOTS () |
int | NWNX_Redis_COMMAND () |
int | NWNX_Redis_COMMAND_COUNT () |
int | NWNX_Redis_COMMAND_GETKEYS () |
int | NWNX_Redis_COMMAND_INFO (string command_name) |
int | NWNX_Redis_CONFIG_GET (string parameter) |
int | NWNX_Redis_CONFIG_REWRITE () |
int | NWNX_Redis_CONFIG_SET (string parameter, string value) |
int | NWNX_Redis_CONFIG_RESETSTAT () |
int | NWNX_Redis_DBSIZE () |
int | NWNX_Redis_DEBUG_OBJECT (string key) |
int | NWNX_Redis_DEBUG_SEGFAULT () |
int | NWNX_Redis_DECR (string key) |
int | NWNX_Redis_DECRBY (string key, int decrement) |
int | NWNX_Redis_DEL (string key) |
int | NWNX_Redis_DISCARD () |
int | NWNX_Redis_DUMP (string key) |
int | NWNX_Redis_ECHO (string message) |
int | NWNX_Redis_EVAL (string script, int numkeys, string key, string arg) |
int | NWNX_Redis_EVALSHA (string sha1, int numkeys, string key, string arg) |
int | NWNX_Redis_EXEC () |
int | NWNX_Redis_EXISTS (string key) |
int | NWNX_Redis_EXPIRE (string key, int seconds) |
int | NWNX_Redis_EXPIREAT (string key, string timestamp) |
int | NWNX_Redis_FLUSHALL (string async="") |
int | NWNX_Redis_FLUSHDB (string async="") |
int | NWNX_Redis_GEOADD (string key, float longitude, float latitude, string member) |
int | NWNX_Redis_GEOHASH (string key, string member) |
int | NWNX_Redis_GEOPOS (string key, string member) |
int | NWNX_Redis_GEODIST (string key, string member1, string member2, string unit="") |
int | NWNX_Redis_GEORADIUS (string key, float longitude, float latitude, float radius, string unit, string withcoord="", string withdist="", string withhash="", int count_count=0, string order="", string store_key="", string storedist_key="") |
int | NWNX_Redis_GEORADIUSBYMEMBER (string key, string member, float radius, string unit, string withcoord="", string withdist="", string withhash="", int count_count=0, string order="", string store_key="", string storedist_key="") |
int | NWNX_Redis_GET (string key) |
int | NWNX_Redis_GETBIT (string key, int offset) |
int | NWNX_Redis_GETRANGE (string key, int start, int end) |
int | NWNX_Redis_GETSET (string key, string value) |
int | NWNX_Redis_HDEL (string key, string field) |
int | NWNX_Redis_HEXISTS (string key, string field) |
int | NWNX_Redis_HGET (string key, string field) |
int | NWNX_Redis_HGETALL (string key) |
int | NWNX_Redis_HINCRBY (string key, string field, int increment) |
int | NWNX_Redis_HINCRBYFLOAT (string key, string field, float increment) |
int | NWNX_Redis_HKEYS (string key) |
int | NWNX_Redis_HLEN (string key) |
int | NWNX_Redis_HMGET (string key, string field) |
int | NWNX_Redis_HMSET (string key, string field, string value) |
int | NWNX_Redis_HSET (string key, string field, string value) |
int | NWNX_Redis_HSETNX (string key, string field, string value) |
int | NWNX_Redis_HSTRLEN (string key, string field) |
int | NWNX_Redis_HVALS (string key) |
int | NWNX_Redis_INCR (string key) |
int | NWNX_Redis_INCRBY (string key, int increment) |
int | NWNX_Redis_INCRBYFLOAT (string key, float increment) |
int | NWNX_Redis_INFO (string section="") |
int | NWNX_Redis_KEYS (string pattern) |
int | NWNX_Redis_LASTSAVE () |
int | NWNX_Redis_LINDEX (string key, int index) |
int | NWNX_Redis_LINSERT (string key, string where, string pivot, string value) |
int | NWNX_Redis_LLEN (string key) |
int | NWNX_Redis_LPOP (string key) |
int | NWNX_Redis_LPUSH (string key, string value) |
int | NWNX_Redis_LPUSHX (string key, string value) |
int | NWNX_Redis_LRANGE (string key, int start, int stop) |
int | NWNX_Redis_LREM (string key, int count, string value) |
int | NWNX_Redis_LSET (string key, int index, string value) |
int | NWNX_Redis_LTRIM (string key, int start, int stop) |
int | NWNX_Redis_MEMORY_DOCTOR () |
int | NWNX_Redis_MEMORY_HELP () |
int | NWNX_Redis_MEMORY_MALLOC_STATS () |
int | NWNX_Redis_MEMORY_PURGE () |
int | NWNX_Redis_MEMORY_STATS () |
int | NWNX_Redis_MEMORY_USAGE (string key, int samples_count=0) |
int | NWNX_Redis_MGET (string key) |
int | NWNX_Redis_MIGRATE (string host, string port, string key, int destination_db, int timeout, string copy="", string replace="", string auth_password="", string keys_key="") |
int | NWNX_Redis_MONITOR () |
int | NWNX_Redis_MOVE (string key, int db) |
int | NWNX_Redis_MSET (string key, string value) |
int | NWNX_Redis_MSETNX (string key, string value) |
int | NWNX_Redis_MULTI () |
int | NWNX_Redis_OBJECT (string subcommand, string arguments="") |
int | NWNX_Redis_PERSIST (string key) |
int | NWNX_Redis_PEXPIRE (string key, int milliseconds) |
int | NWNX_Redis_PEXPIREAT (string key, string milliseconds_timestamp) |
int | NWNX_Redis_PFADD (string key, string element) |
int | NWNX_Redis_PFCOUNT (string key) |
int | NWNX_Redis_PFMERGE (string destkey, string sourcekey) |
int | NWNX_Redis_PING (string message="") |
int | NWNX_Redis_PSETEX (string key, int milliseconds, string value) |
int | NWNX_Redis_PUBSUB (string subcommand, string argument="") |
int | NWNX_Redis_PTTL (string key) |
int | NWNX_Redis_PUBLISH (string channel, string message) |
int | NWNX_Redis_QUIT () |
int | NWNX_Redis_RANDOMKEY () |
int | NWNX_Redis_READONLY () |
int | NWNX_Redis_READWRITE () |
int | NWNX_Redis_RENAME (string key, string newkey) |
int | NWNX_Redis_RENAMENX (string key, string newkey) |
int | NWNX_Redis_RESTORE (string key, int ttl, string serialized_value, string replace="", string absttl="", int idletime_seconds=0, int freq_frequency=0) |
int | NWNX_Redis_ROLE () |
int | NWNX_Redis_RPOP (string key) |
int | NWNX_Redis_RPOPLPUSH (string source, string destination) |
int | NWNX_Redis_RPUSH (string key, string value) |
int | NWNX_Redis_RPUSHX (string key, string value) |
int | NWNX_Redis_SADD (string key, string member) |
int | NWNX_Redis_SAVE () |
int | NWNX_Redis_SCARD (string key) |
int | NWNX_Redis_SCRIPT_DEBUG (string mode) |
int | NWNX_Redis_SCRIPT_EXISTS (string sha1) |
int | NWNX_Redis_SCRIPT_FLUSH () |
int | NWNX_Redis_SCRIPT_KILL () |
int | NWNX_Redis_SCRIPT_LOAD (string script) |
int | NWNX_Redis_SDIFF (string key) |
int | NWNX_Redis_SDIFFSTORE (string destination, string key) |
int | NWNX_Redis_SELECT (int index) |
int | NWNX_Redis_SET (string key, string value, string condition="") |
int | NWNX_Redis_SETBIT (string key, int offset, string value) |
int | NWNX_Redis_SETEX (string key, int seconds, string value) |
int | NWNX_Redis_SETNX (string key, string value) |
int | NWNX_Redis_SETRANGE (string key, int offset, string value) |
int | NWNX_Redis_SHUTDOWN (string save_mode="") |
int | NWNX_Redis_SINTER (string key) |
int | NWNX_Redis_SINTERSTORE (string destination, string key) |
int | NWNX_Redis_SISMEMBER (string key, string member) |
int | NWNX_Redis_SLAVEOF (string host, string port) |
int | NWNX_Redis_REPLICAOF (string host, string port) |
int | NWNX_Redis_SLOWLOG (string subcommand, string argument="") |
int | NWNX_Redis_SMEMBERS (string key) |
int | NWNX_Redis_SMOVE (string source, string destination, string member) |
int | NWNX_Redis_SORT (string key, string by_pattern="", int limit_offset=0, int limit_count=0, string get_pattern="", string order="", string sorting="", string store_destination="") |
int | NWNX_Redis_SPOP (string key, int count=0) |
int | NWNX_Redis_SRANDMEMBER (string key, int count=0) |
int | NWNX_Redis_SREM (string key, string member) |
int | NWNX_Redis_STRLEN (string key) |
int | NWNX_Redis_SUNION (string key) |
int | NWNX_Redis_SUNIONSTORE (string destination, string key) |
int | NWNX_Redis_SWAPDB (int index, int index_1) |
int | NWNX_Redis_SYNC () |
int | NWNX_Redis_TIME () |
int | NWNX_Redis_TOUCH (string key) |
int | NWNX_Redis_TTL (string key) |
int | NWNX_Redis_TYPE (string key) |
int | NWNX_Redis_UNLINK (string key) |
int | NWNX_Redis_UNWATCH () |
int | NWNX_Redis_WAIT (int numreplicas, int timeout) |
int | NWNX_Redis_WATCH (string key) |
int | NWNX_Redis_ZADD (string key, string condition="", string change="", string increment="", float score=0.0, string member="") |
int | NWNX_Redis_ZCARD (string key) |
int | NWNX_Redis_ZCOUNT (string key, float min, float max) |
int | NWNX_Redis_ZINCRBY (string key, int increment, string member) |
int | NWNX_Redis_ZINTERSTORE (string destination, int numkeys, string key, int weights_weight=0, string aggregate_aggregate="") |
int | NWNX_Redis_ZLEXCOUNT (string key, string min, string max) |
int | NWNX_Redis_ZPOPMAX (string key, int count=0) |
int | NWNX_Redis_ZPOPMIN (string key, int count=0) |
int | NWNX_Redis_ZRANGE (string key, int start, int stop, string withscores="") |
int | NWNX_Redis_ZRANGEBYLEX (string key, string min, string max, int limit_offset=0, int limit_count=0) |
int | NWNX_Redis_ZREVRANGEBYLEX (string key, string max, string min, int limit_offset=0, int limit_count=0) |
int | NWNX_Redis_ZRANGEBYSCORE (string key, float min, float max, string withscores="", int limit_offset=0, int limit_count=0) |
int | NWNX_Redis_ZRANK (string key, string member) |
int | NWNX_Redis_ZREM (string key, string member) |
int | NWNX_Redis_ZREMRANGEBYLEX (string key, string min, string max) |
int | NWNX_Redis_ZREMRANGEBYRANK (string key, int start, int stop) |
int | NWNX_Redis_ZREMRANGEBYSCORE (string key, float min, float max) |
int | NWNX_Redis_ZREVRANGE (string key, int start, int stop, string withscores="") |
int | NWNX_Redis_ZREVRANGEBYSCORE (string key, float max, float min, string withscores="", int limit_offset=0, int limit_count=0) |
int | NWNX_Redis_ZREVRANK (string key, string member) |
int | NWNX_Redis_ZSCORE (string key, string member) |
int | NWNX_Redis_ZUNIONSTORE (string destination, int numkeys, string key, int weights_weight=0, string aggregate_aggregate="") |
int | NWNX_Redis_SCAN (int cursor, string match_pattern="", int count_count=0, string type_type="") |
int | NWNX_Redis_SSCAN (string key, int cursor, string match_pattern="", int count_count=0) |
int | NWNX_Redis_HSCAN (string key, int cursor, string match_pattern="", int count_count=0) |
int | NWNX_Redis_ZSCAN (string key, int cursor, string match_pattern="", int count_count=0) |
int | NWNX_Redis_XINFO (string consumers_key="", string consumers_groupname="", string groups_key="", string stream_key="", string help="") |
int | NWNX_Redis_XADD (string key, string ID, string field, string str) |
int | NWNX_Redis_XTRIM (string key, string strategy, string approx="", int count=0) |
int | NWNX_Redis_XDEL (string key, string ID) |
int | NWNX_Redis_XRANGE (string key, string start, string end, int count_count=0) |
int | NWNX_Redis_XREVRANGE (string key, string end, string start, int count_count=0) |
int | NWNX_Redis_XLEN (string key) |
int | NWNX_Redis_XREAD (int count_count=0, int block_milliseconds=0, string streams="", string key="", string ID="") |
int | NWNX_Redis_XGROUP (string create_key="", string create_groupname="", string create_id_or__="", string setid_key="", string setid_groupname="", string setid_id_or__="", string destroy_key="", string destroy_groupname="", string delconsumer_key="", string delconsumer_groupname="", string delconsumer_consumername="") |
int | NWNX_Redis_XREADGROUP (string group_group, string group_consumer, int count_count=0, int block_milliseconds=0, string noack="", string streams="", string key="", string ID="") |
int | NWNX_Redis_XACK (string key, string group, string ID) |
int | NWNX_Redis_XCLAIM (string key, string group, string consumer, string min_idle_time, string ID, int idle_ms=0, int time_ms_unix_time=0, int retrycount_count=0) |
int | NWNX_Redis_XPENDING (string key, string group, string start="", string end="", int count=0, string consumer="") |
Autogenerated redis commands for NWNX usage. Autogenerated on: 2019-10-01 20:51:53 -0400.
Definition in file nwnx_redis.nss.
int NWNX_Redis_APPEND | ( | string | key, |
string | value | ||
) |
APPEND
Append a value to a key
Time complexity: O(1). The amortized time complexity is O(1) assuming the appended value is small and the already present value is of any size, since the dynamic string library used by Redis will double the free space available on every reallocation. Annotated return value: integer
Definition at line 3234 of file nwnx_redis.nss.
int NWNX_Redis_AUTH | ( | string | password | ) |
AUTH
Authenticate to the server Annotated return value: simple-string
Definition at line 3245 of file nwnx_redis.nss.
int NWNX_Redis_BGREWRITEAOF | ( | ) |
BGREWRITEAOF
Asynchronously rewrite the append-only file Annotated return value: simple-string
Definition at line 3254 of file nwnx_redis.nss.
int NWNX_Redis_BGSAVE | ( | ) |
BGSAVE
Asynchronously save the dataset to disk Annotated return value: simple-string
Definition at line 3260 of file nwnx_redis.nss.
int NWNX_Redis_BITCOUNT | ( | string | key, |
int | start = 0 , |
||
int | end = 0 |
||
) |
BITCOUNT
Count set bits in a string
Time complexity: O(N) Annotated return value: integer
Definition at line 3266 of file nwnx_redis.nss.
int NWNX_Redis_BITFIELD | ( | string | key, |
string | get_type = "" , |
||
int | get_offset = 0 , |
||
string | set_type = "" , |
||
int | set_offset = 0 , |
||
int | set_value = 0 , |
||
string | incrby_type = "" , |
||
int | incrby_offset = 0 , |
||
int | incrby_increment = 0 |
||
) |
BITFIELD
Perform arbitrary bitfield integer operations on strings
Time complexity: O(1) for each subcommand specified Annotated return value:
Definition at line 3281 of file nwnx_redis.nss.
int NWNX_Redis_BITOP | ( | string | operation, |
string | destkey, | ||
string | key | ||
) |
BITOP
Perform bitwise operations between strings
Time complexity: O(N) Annotated return value: integer
Definition at line 3314 of file nwnx_redis.nss.
int NWNX_Redis_BITPOS | ( | string | key, |
int | bit, | ||
int | start = 0 , |
||
int | end = 0 |
||
) |
BITPOS
Find first bit set or clear in a string
Time complexity: O(N) Annotated return value: integer
Definition at line 3328 of file nwnx_redis.nss.
int NWNX_Redis_BLPOP | ( | string | key, |
int | timeout | ||
) |
BLPOP
Remove and get the first element in a list, or block until one is available
Time complexity: O(1) Annotated return value: array
Definition at line 3346 of file nwnx_redis.nss.
int NWNX_Redis_BRPOP | ( | string | key, |
int | timeout | ||
) |
BRPOP
Remove and get the last element in a list, or block until one is available
Time complexity: O(1) Annotated return value: array
Definition at line 3358 of file nwnx_redis.nss.
int NWNX_Redis_BRPOPLPUSH | ( | string | source, |
string | destination, | ||
int | timeout | ||
) |
BRPOPLPUSH
Pop a value from a list, push it to another list and return it; or block until one is available
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 3370 of file nwnx_redis.nss.
int NWNX_Redis_BZPOPMIN | ( | string | key, |
int | timeout | ||
) |
BZPOPMIN
Remove and return the member with the lowest score from one or more sorted sets, or block until one is available
Time complexity: O(log(N)) with N being the number of elements in the sorted set. Annotated return value: array
Definition at line 3386 of file nwnx_redis.nss.
int NWNX_Redis_BZPOPMAX | ( | string | key, |
int | timeout | ||
) |
BZPOPMAX
Remove and return the member with the highest score from one or more sorted sets, or block until one is available
Time complexity: O(log(N)) with N being the number of elements in the sorted set. Annotated return value: array
Definition at line 3398 of file nwnx_redis.nss.
int NWNX_Redis_CLIENT_ID | ( | ) |
CLIENT_ID
Returns the client ID for the current connection
Time complexity: O(1) Annotated return value:
Definition at line 3410 of file nwnx_redis.nss.
int NWNX_Redis_CLIENT_KILL | ( | string | ip_port = "" , |
int | id_client_id = 0 , |
||
string | addr_ip_port = "" , |
||
string | skipme_yes_no = "" |
||
) |
CLIENT_KILL
Kill the connection of a client
Time complexity: O(N) where N is the number of client connections Annotated return value: simple-string
Definition at line 3416 of file nwnx_redis.nss.
int NWNX_Redis_CLIENT_LIST | ( | ) |
CLIENT_LIST
Get the list of client connections
Time complexity: O(N) where N is the number of client connections Annotated return value: bulk-string
Definition at line 3432 of file nwnx_redis.nss.
int NWNX_Redis_CLIENT_GETNAME | ( | ) |
CLIENT_GETNAME
Get the current connection name
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 3438 of file nwnx_redis.nss.
int NWNX_Redis_CLIENT_PAUSE | ( | int | timeout | ) |
CLIENT_PAUSE
Stop processing commands from clients for some time
Time complexity: O(1) Annotated return value: simple-string
Definition at line 3444 of file nwnx_redis.nss.
int NWNX_Redis_CLIENT_REPLY | ( | string | reply_mode | ) |
CLIENT_REPLY
Instruct the server whether to reply to commands
Time complexity: O(1)
Definition at line 3454 of file nwnx_redis.nss.
int NWNX_Redis_CLIENT_SETNAME | ( | string | connection_name | ) |
CLIENT_SETNAME
Set the current connection name
Time complexity: O(1) Annotated return value: simple-string
Definition at line 3464 of file nwnx_redis.nss.
int NWNX_Redis_CLIENT_UNBLOCK | ( | string | client_id, |
string | unblock_type = "" |
||
) |
CLIENT_UNBLOCK
Unblock a client blocked in a blocking command from a different connection
Time complexity: O(log N) where N is the number of client connections
Definition at line 3473 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_ADDSLOTS | ( | int | slot | ) |
CLUSTER_ADDSLOTS
Assign new hash slots to receiving node
Time complexity: O(N) where N is the total number of hash slot arguments Annotated return value: simple-string
Definition at line 3485 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_COUNT_FAILURE_REPORTS | ( | string | node_id | ) |
CLUSTER_COUNT_FAILURE_REPORTS
Return the number of failure reports active for a given node
Time complexity: O(N) where N is the number of failure reports Annotated return value: integer
Definition at line 3495 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_COUNTKEYSINSLOT | ( | int | slot | ) |
CLUSTER_COUNTKEYSINSLOT
Return the number of local keys in the specified hash slot
Time complexity: O(1) Annotated return value: integer
Definition at line 3504 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_DELSLOTS | ( | int | slot | ) |
CLUSTER_DELSLOTS
Set hash slots as unbound in receiving node
Time complexity: O(N) where N is the total number of hash slot arguments Annotated return value: simple-string
Definition at line 3514 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_FAILOVER | ( | string | options = "" | ) |
CLUSTER_FAILOVER
Forces a replica to perform a manual failover of its master.
Time complexity: O(1)
Definition at line 3524 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_FORGET | ( | string | node_id | ) |
CLUSTER_FORGET
Remove a node from the nodes table
Time complexity: O(1) Annotated return value: simple-string
Definition at line 3534 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_GETKEYSINSLOT | ( | int | slot, |
int | count | ||
) |
CLUSTER_GETKEYSINSLOT
Return local key names in the specified hash slot
Time complexity: O(log(N)) where N is the number of requested keys Annotated return value: array
Definition at line 3543 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_INFO | ( | ) |
CLUSTER_INFO
Provides info about Redis Cluster node state
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 3556 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_KEYSLOT | ( | string | key | ) |
CLUSTER_KEYSLOT
Returns the hash slot of the specified key
Time complexity: O(N) where N is the number of bytes in the key Annotated return value: integer
Definition at line 3562 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_MEET | ( | string | ip, |
int | port | ||
) |
CLUSTER_MEET
Force a node cluster to handshake with another node
Time complexity: O(1) Annotated return value: simple-string
Definition at line 3571 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_NODES | ( | ) |
CLUSTER_NODES
Get Cluster config for the node
Time complexity: O(N) where N is the total number of Cluster nodes Annotated return value: bulk-string
Definition at line 3583 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_REPLICATE | ( | string | node_id | ) |
CLUSTER_REPLICATE
Reconfigure a node as a replica of the specified master node
Time complexity: O(1) Annotated return value: simple-string
Definition at line 3589 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_RESET | ( | string | reset_type = "" | ) |
CLUSTER_RESET
Reset a Redis Cluster node
Time complexity: O(N) where N is the number of known nodes. The command may execute a FLUSHALL as a side effect.
Definition at line 3598 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_SAVECONFIG | ( | ) |
CLUSTER_SAVECONFIG
Forces the node to save cluster state on disk
Time complexity: O(1) Annotated return value: simple-string
Definition at line 3608 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_SET_CONFIG_EPOCH | ( | int | config_epoch | ) |
CLUSTER_SET_CONFIG_EPOCH
Set the configuration epoch in a new node
Time complexity: O(1) Annotated return value: simple-string
Definition at line 3614 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_SETSLOT | ( | int | slot, |
string | subcommand, | ||
string | node_id = "" |
||
) |
CLUSTER_SETSLOT
Bind a hash slot to a specific node
Time complexity: O(1)
Definition at line 3624 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_SLAVES | ( | string | node_id | ) |
CLUSTER_SLAVES
List replica nodes of the specified master node
Time complexity: O(1) Annotated return value:
Definition at line 3639 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_REPLICAS | ( | string | node_id | ) |
CLUSTER_REPLICAS
List replica nodes of the specified master node
Time complexity: O(1) Annotated return value:
Definition at line 3648 of file nwnx_redis.nss.
int NWNX_Redis_CLUSTER_SLOTS | ( | ) |
CLUSTER_SLOTS
Get array of Cluster slot to node mappings
Time complexity: O(N) where N is the total number of Cluster nodes Annotated return value: array
Definition at line 3657 of file nwnx_redis.nss.
int NWNX_Redis_COMMAND | ( | ) |
COMMAND
Get array of Redis command details
Time complexity: O(N) where N is the total number of Redis commands Annotated return value: array
Definition at line 3663 of file nwnx_redis.nss.
int NWNX_Redis_COMMAND_COUNT | ( | ) |
COMMAND_COUNT
Get total number of Redis commands
Time complexity: O(1) Annotated return value: integer
Definition at line 3669 of file nwnx_redis.nss.
int NWNX_Redis_COMMAND_GETKEYS | ( | ) |
COMMAND_GETKEYS
Extract keys given a full Redis command
Time complexity: O(N) where N is the number of arguments to the command Annotated return value: array
Definition at line 3675 of file nwnx_redis.nss.
int NWNX_Redis_COMMAND_INFO | ( | string | command_name | ) |
COMMAND_INFO
Get array of specific Redis command details
Time complexity: O(N) when N is number of commands to look up Annotated return value: array
Definition at line 3681 of file nwnx_redis.nss.
int NWNX_Redis_CONFIG_GET | ( | string | parameter | ) |
CONFIG_GET
Get the value of a configuration parameter Annotated return value: array
Definition at line 3690 of file nwnx_redis.nss.
int NWNX_Redis_CONFIG_REWRITE | ( | ) |
CONFIG_REWRITE
Rewrite the configuration file with the in memory configuration Annotated return value: simple-string
Definition at line 3699 of file nwnx_redis.nss.
int NWNX_Redis_CONFIG_SET | ( | string | parameter, |
string | value | ||
) |
CONFIG_SET
Set a configuration parameter to the given value Annotated return value: simple-string
Definition at line 3705 of file nwnx_redis.nss.
int NWNX_Redis_CONFIG_RESETSTAT | ( | ) |
CONFIG_RESETSTAT
Reset the stats returned by INFO
Time complexity: O(1) Annotated return value: simple-string
Definition at line 3716 of file nwnx_redis.nss.
int NWNX_Redis_DBSIZE | ( | ) |
DBSIZE
Return the number of keys in the selected database Annotated return value: integer
Definition at line 3722 of file nwnx_redis.nss.
int NWNX_Redis_DEBUG_OBJECT | ( | string | key | ) |
DEBUG_OBJECT
Get debugging information about a key Annotated return value: simple-string
Definition at line 3728 of file nwnx_redis.nss.
int NWNX_Redis_DEBUG_SEGFAULT | ( | ) |
DEBUG_SEGFAULT
Make the server crash Annotated return value: simple-string
Definition at line 3737 of file nwnx_redis.nss.
int NWNX_Redis_DECR | ( | string | key | ) |
DECR
Decrement the integer value of a key by one
Time complexity: O(1) Annotated return value: integer
Definition at line 3743 of file nwnx_redis.nss.
int NWNX_Redis_DECRBY | ( | string | key, |
int | decrement | ||
) |
DECRBY
Decrement the integer value of a key by the given number
Time complexity: O(1) Annotated return value: integer
Definition at line 3752 of file nwnx_redis.nss.
int NWNX_Redis_DEL | ( | string | key | ) |
DEL
Delete a key
Time complexity: O(N) where N is the number of keys that will be removed. When a key to remove holds a value other than a string, the individual complexity for this key is O(M) where M is the number of elements in the list, set, sorted set or hash. Removing a single key that holds a string value is O(1). Annotated return value: integer
Definition at line 3764 of file nwnx_redis.nss.
int NWNX_Redis_DISCARD | ( | ) |
DISCARD
Discard all commands issued after MULTI Annotated return value: simple-string
Definition at line 3773 of file nwnx_redis.nss.
int NWNX_Redis_DUMP | ( | string | key | ) |
DUMP
Return a serialized version of the value stored at the specified key.
Time complexity: O(1) to access the key and additional O(N*M) to serialized it, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). Annotated return value: bulk-string
Definition at line 3779 of file nwnx_redis.nss.
int NWNX_Redis_ECHO | ( | string | message | ) |
ECHO
Echo the given string Annotated return value: bulk-string
Definition at line 3788 of file nwnx_redis.nss.
int NWNX_Redis_EVAL | ( | string | script, |
int | numkeys, | ||
string | key, | ||
string | arg | ||
) |
EVAL
Execute a Lua script server side
Time complexity: Depends on the script that is executed. Annotated return value:
Definition at line 3797 of file nwnx_redis.nss.
int NWNX_Redis_EVALSHA | ( | string | sha1, |
int | numkeys, | ||
string | key, | ||
string | arg | ||
) |
EVALSHA
Execute a Lua script server side
Time complexity: Depends on the script that is executed. Annotated return value:
Definition at line 3813 of file nwnx_redis.nss.
int NWNX_Redis_EXEC | ( | ) |
EXEC
Execute all commands issued after MULTI Annotated return value: array
Definition at line 3829 of file nwnx_redis.nss.
int NWNX_Redis_EXISTS | ( | string | key | ) |
EXISTS
Determine if a key exists
Time complexity: O(1) Annotated return value: integer
Definition at line 3835 of file nwnx_redis.nss.
int NWNX_Redis_EXPIRE | ( | string | key, |
int | seconds | ||
) |
EXPIRE
Set a key's time to live in seconds
Time complexity: O(1) Annotated return value: integer
Definition at line 3844 of file nwnx_redis.nss.
int NWNX_Redis_EXPIREAT | ( | string | key, |
string | timestamp | ||
) |
EXPIREAT
Set the expiration for a key as a UNIX timestamp
Time complexity: O(1) Annotated return value: integer
Definition at line 3856 of file nwnx_redis.nss.
int NWNX_Redis_FLUSHALL | ( | string | async = "" | ) |
FLUSHALL
Remove all keys from all databases
Definition at line 3868 of file nwnx_redis.nss.
int NWNX_Redis_FLUSHDB | ( | string | async = "" | ) |
FLUSHDB
Remove all keys from the current database
Definition at line 3878 of file nwnx_redis.nss.
int NWNX_Redis_GEOADD | ( | string | key, |
float | longitude, | ||
float | latitude, | ||
string | member | ||
) |
GEOADD
Add one or more geospatial items in the geospatial index represented using a sorted set
Time complexity: O(log(N)) for each item added, where N is the number of elements in the sorted set. Annotated return value: integer
Definition at line 3888 of file nwnx_redis.nss.
int NWNX_Redis_GEOHASH | ( | string | key, |
string | member | ||
) |
GEOHASH
Returns members of a geospatial index as standard geohash strings
Time complexity: O(log(N)) for each member requested, where N is the number of elements in the sorted set. Annotated return value: array
Definition at line 3905 of file nwnx_redis.nss.
int NWNX_Redis_GEOPOS | ( | string | key, |
string | member | ||
) |
GEOPOS
Returns longitude and latitude of members of a geospatial index
Time complexity: O(log(N)) for each member requested, where N is the number of elements in the sorted set. Annotated return value: array
Definition at line 3916 of file nwnx_redis.nss.
int NWNX_Redis_GEODIST | ( | string | key, |
string | member1, | ||
string | member2, | ||
string | unit = "" |
||
) |
GEODIST
Returns the distance between two members of a geospatial index
Time complexity: O(log(N)) Annotated return value: bulk-string
Definition at line 3927 of file nwnx_redis.nss.
int NWNX_Redis_GEORADIUS | ( | string | key, |
float | longitude, | ||
float | latitude, | ||
float | radius, | ||
string | unit, | ||
string | withcoord = "" , |
||
string | withdist = "" , |
||
string | withhash = "" , |
||
int | count_count = 0 , |
||
string | order = "" , |
||
string | store_key = "" , |
||
string | storedist_key = "" |
||
) |
GEORADIUS
Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point
Time complexity: O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.
Definition at line 3942 of file nwnx_redis.nss.
int NWNX_Redis_GEORADIUSBYMEMBER | ( | string | key, |
string | member, | ||
float | radius, | ||
string | unit, | ||
string | withcoord = "" , |
||
string | withdist = "" , |
||
string | withhash = "" , |
||
int | count_count = 0 , |
||
string | order = "" , |
||
string | store_key = "" , |
||
string | storedist_key = "" |
||
) |
GEORADIUSBYMEMBER
Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member
Time complexity: O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index.
Definition at line 3984 of file nwnx_redis.nss.
int NWNX_Redis_GET | ( | string | key | ) |
GET
Get the value of a key
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 4022 of file nwnx_redis.nss.
int NWNX_Redis_GETBIT | ( | string | key, |
int | offset | ||
) |
GETBIT
Returns the bit value at offset in the string value stored at key
Time complexity: O(1) Annotated return value: integer
Definition at line 4031 of file nwnx_redis.nss.
int NWNX_Redis_GETRANGE | ( | string | key, |
int | start, | ||
int | end | ||
) |
GETRANGE
Get a substring of the string stored at a key
Time complexity: O(N) where N is the length of the returned string. The complexity is ultimately determined by the returned length, but because creating a substring from an existing string is very cheap, it can be considered O(1) for small strings. Annotated return value: bulk-string
Definition at line 4043 of file nwnx_redis.nss.
int NWNX_Redis_GETSET | ( | string | key, |
string | value | ||
) |
GETSET
Set the string value of a key and return its old value
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 4058 of file nwnx_redis.nss.
int NWNX_Redis_HDEL | ( | string | key, |
string | field | ||
) |
HDEL
Delete one or more hash fields
Time complexity: O(N) where N is the number of fields to be removed. Annotated return value: integer
Definition at line 4069 of file nwnx_redis.nss.
int NWNX_Redis_HEXISTS | ( | string | key, |
string | field | ||
) |
HEXISTS
Determine if a hash field exists
Time complexity: O(1) Annotated return value: integer
Definition at line 4080 of file nwnx_redis.nss.
int NWNX_Redis_HGET | ( | string | key, |
string | field | ||
) |
HGET
Get the value of a hash field
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 4091 of file nwnx_redis.nss.
int NWNX_Redis_HGETALL | ( | string | key | ) |
HGETALL
Get all the fields and values in a hash
Time complexity: O(N) where N is the size of the hash. Annotated return value: array
Definition at line 4102 of file nwnx_redis.nss.
int NWNX_Redis_HINCRBY | ( | string | key, |
string | field, | ||
int | increment | ||
) |
HINCRBY
Increment the integer value of a hash field by the given number
Time complexity: O(1) Annotated return value: integer
Definition at line 4111 of file nwnx_redis.nss.
int NWNX_Redis_HINCRBYFLOAT | ( | string | key, |
string | field, | ||
float | increment | ||
) |
HINCRBYFLOAT
Increment the float value of a hash field by the given amount
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 4125 of file nwnx_redis.nss.
int NWNX_Redis_HKEYS | ( | string | key | ) |
HKEYS
Get all the fields in a hash
Time complexity: O(N) where N is the size of the hash. Annotated return value: array
Definition at line 4139 of file nwnx_redis.nss.
int NWNX_Redis_HLEN | ( | string | key | ) |
HLEN
Get the number of fields in a hash
Time complexity: O(1) Annotated return value: integer
Definition at line 4148 of file nwnx_redis.nss.
int NWNX_Redis_HMGET | ( | string | key, |
string | field | ||
) |
HMGET
Get the values of all the given hash fields
Time complexity: O(N) where N is the number of fields being requested. Annotated return value: array
Definition at line 4157 of file nwnx_redis.nss.
int NWNX_Redis_HMSET | ( | string | key, |
string | field, | ||
string | value | ||
) |
HMSET
Set multiple hash fields to multiple values
Time complexity: O(N) where N is the number of fields being set. Annotated return value: simple-string
Definition at line 4168 of file nwnx_redis.nss.
int NWNX_Redis_HSET | ( | string | key, |
string | field, | ||
string | value | ||
) |
HSET
Set the string value of a hash field
Time complexity: O(1) Annotated return value: integer
Definition at line 4181 of file nwnx_redis.nss.
int NWNX_Redis_HSETNX | ( | string | key, |
string | field, | ||
string | value | ||
) |
HSETNX
Set the value of a hash field, only if the field does not exist
Time complexity: O(1) Annotated return value: integer
Definition at line 4194 of file nwnx_redis.nss.
int NWNX_Redis_HSTRLEN | ( | string | key, |
string | field | ||
) |
HSTRLEN
Get the length of the value of a hash field
Time complexity: O(1) Annotated return value: integer
Definition at line 4207 of file nwnx_redis.nss.
int NWNX_Redis_HVALS | ( | string | key | ) |
HVALS
Get all the values in a hash
Time complexity: O(N) where N is the size of the hash. Annotated return value: array
Definition at line 4218 of file nwnx_redis.nss.
int NWNX_Redis_INCR | ( | string | key | ) |
INCR
Increment the integer value of a key by one
Time complexity: O(1) Annotated return value: integer
Definition at line 4227 of file nwnx_redis.nss.
int NWNX_Redis_INCRBY | ( | string | key, |
int | increment | ||
) |
INCRBY
Increment the integer value of a key by the given amount
Time complexity: O(1) Annotated return value: integer
Definition at line 4236 of file nwnx_redis.nss.
int NWNX_Redis_INCRBYFLOAT | ( | string | key, |
float | increment | ||
) |
INCRBYFLOAT
Increment the float value of a key by the given amount
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 4248 of file nwnx_redis.nss.
int NWNX_Redis_INFO | ( | string | section = "" | ) |
INFO
Get information and statistics about the server Annotated return value: bulk-string
Definition at line 4260 of file nwnx_redis.nss.
int NWNX_Redis_KEYS | ( | string | pattern | ) |
KEYS
Find all keys matching the given pattern
Time complexity: O(N) with N being the number of keys in the database, under the assumption that the key names in the database and the given pattern have limited length. Annotated return value: array
Definition at line 4269 of file nwnx_redis.nss.
int NWNX_Redis_LASTSAVE | ( | ) |
LASTSAVE
Get the UNIX time stamp of the last successful save to disk Annotated return value: integer
Definition at line 4278 of file nwnx_redis.nss.
int NWNX_Redis_LINDEX | ( | string | key, |
int | index | ||
) |
LINDEX
Get an element from a list by its index
Time complexity: O(N) where N is the number of elements to traverse to get to the element at index. This makes asking for the first or the last element of the list O(1). Annotated return value: bulk-string
Definition at line 4284 of file nwnx_redis.nss.
int NWNX_Redis_LINSERT | ( | string | key, |
string | where, | ||
string | pivot, | ||
string | value | ||
) |
LINSERT
Insert an element before or after another element in a list
Time complexity: O(N) where N is the number of elements to traverse before seeing the value pivot. This means that inserting somewhere on the left end on the list (head) can be considered O(1) and inserting somewhere on the right end (tail) is O(N).
Definition at line 4296 of file nwnx_redis.nss.
int NWNX_Redis_LLEN | ( | string | key | ) |
LLEN
Get the length of a list
Time complexity: O(1) Annotated return value: integer
Definition at line 4312 of file nwnx_redis.nss.
int NWNX_Redis_LPOP | ( | string | key | ) |
LPOP
Remove and get the first element in a list
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 4321 of file nwnx_redis.nss.
int NWNX_Redis_LPUSH | ( | string | key, |
string | value | ||
) |
LPUSH
Prepend one or multiple values to a list
Time complexity: O(1) Annotated return value: integer
Definition at line 4330 of file nwnx_redis.nss.
int NWNX_Redis_LPUSHX | ( | string | key, |
string | value | ||
) |
LPUSHX
Prepend a value to a list, only if the list exists
Time complexity: O(1) Annotated return value: integer
Definition at line 4341 of file nwnx_redis.nss.
int NWNX_Redis_LRANGE | ( | string | key, |
int | start, | ||
int | stop | ||
) |
LRANGE
Get a range of elements from a list
Time complexity: O(S+N) where S is the distance of start offset from HEAD for small lists, from nearest end (HEAD or TAIL) for large lists; and N is the number of elements in the specified range. Annotated return value: array
Definition at line 4352 of file nwnx_redis.nss.
int NWNX_Redis_LREM | ( | string | key, |
int | count, | ||
string | value | ||
) |
LREM
Remove elements from a list
Time complexity: O(N) where N is the length of the list. Annotated return value: integer
Definition at line 4367 of file nwnx_redis.nss.
int NWNX_Redis_LSET | ( | string | key, |
int | index, | ||
string | value | ||
) |
LSET
Set the value of an element in a list by its index
Time complexity: O(N) where N is the length of the list. Setting either the first or the last element of the list is O(1). Annotated return value: simple-string
Definition at line 4381 of file nwnx_redis.nss.
int NWNX_Redis_LTRIM | ( | string | key, |
int | start, | ||
int | stop | ||
) |
LTRIM
Trim a list to the specified range
Time complexity: O(N) where N is the number of elements to be removed by the operation. Annotated return value: simple-string
Definition at line 4395 of file nwnx_redis.nss.
int NWNX_Redis_MEMORY_DOCTOR | ( | ) |
MEMORY_DOCTOR
Outputs memory problems report Annotated return value: bulk-string
Definition at line 4410 of file nwnx_redis.nss.
int NWNX_Redis_MEMORY_HELP | ( | ) |
MEMORY_HELP
Show helpful text about the different subcommands Annotated return value: array
Definition at line 4416 of file nwnx_redis.nss.
int NWNX_Redis_MEMORY_MALLOC_STATS | ( | ) |
MEMORY_MALLOC_STATS
Show allocator internal stats Annotated return value: bulk-string
Definition at line 4422 of file nwnx_redis.nss.
int NWNX_Redis_MEMORY_PURGE | ( | ) |
MEMORY_PURGE
Ask the allocator to release memory Annotated return value: simple-string
Definition at line 4428 of file nwnx_redis.nss.
int NWNX_Redis_MEMORY_STATS | ( | ) |
MEMORY_STATS
Show memory usage details Annotated return value: array
Definition at line 4434 of file nwnx_redis.nss.
int NWNX_Redis_MEMORY_USAGE | ( | string | key, |
int | samples_count = 0 |
||
) |
MEMORY_USAGE
Estimate the memory usage of a key
Time complexity: O(N) where N is the number of samples. Annotated return value: integer
Definition at line 4440 of file nwnx_redis.nss.
int NWNX_Redis_MGET | ( | string | key | ) |
MGET
Get the values of all the given keys
Time complexity: O(N) where N is the number of keys to retrieve. Annotated return value: array
Definition at line 4452 of file nwnx_redis.nss.
int NWNX_Redis_MIGRATE | ( | string | host, |
string | port, | ||
string | key, | ||
int | destination_db, | ||
int | timeout, | ||
string | copy = "" , |
||
string | replace = "" , |
||
string | auth_password = "" , |
||
string | keys_key = "" |
||
) |
MIGRATE
Atomically transfer a key from a Redis instance to another one.
Time complexity: This command actually executes a DUMP+DEL in the source instance, and a RESTORE in the target instance. See the pages of these commands for time complexity. Also an O(N) data transfer between the two instances is performed.
Definition at line 4461 of file nwnx_redis.nss.
int NWNX_Redis_MONITOR | ( | ) |
MONITOR
Listen for all requests received by the server in real time Annotated return value:
Definition at line 4492 of file nwnx_redis.nss.
int NWNX_Redis_MOVE | ( | string | key, |
int | db | ||
) |
MOVE
Move a key to another database
Time complexity: O(1) Annotated return value: integer
Definition at line 4498 of file nwnx_redis.nss.
int NWNX_Redis_MSET | ( | string | key, |
string | value | ||
) |
MSET
Set multiple keys to multiple values
Time complexity: O(N) where N is the number of keys to set. Annotated return value: simple-string
Definition at line 4510 of file nwnx_redis.nss.
int NWNX_Redis_MSETNX | ( | string | key, |
string | value | ||
) |
MSETNX
Set multiple keys to multiple values, only if none of the keys exist
Time complexity: O(N) where N is the number of keys to set. Annotated return value: integer
Definition at line 4521 of file nwnx_redis.nss.
int NWNX_Redis_MULTI | ( | ) |
MULTI
Mark the start of a transaction block Annotated return value: simple-string
Definition at line 4532 of file nwnx_redis.nss.
int NWNX_Redis_OBJECT | ( | string | subcommand, |
string | arguments = "" |
||
) |
OBJECT
Inspect the internals of Redis objects
Time complexity: O(1) for all the currently implemented subcommands. Annotated return value:
Definition at line 4538 of file nwnx_redis.nss.
int NWNX_Redis_PERSIST | ( | string | key | ) |
PERSIST
Remove the expiration from a key
Time complexity: O(1) Annotated return value: integer
Definition at line 4549 of file nwnx_redis.nss.
int NWNX_Redis_PEXPIRE | ( | string | key, |
int | milliseconds | ||
) |
PEXPIRE
Set a key's time to live in milliseconds
Time complexity: O(1) Annotated return value: integer
Definition at line 4558 of file nwnx_redis.nss.
int NWNX_Redis_PEXPIREAT | ( | string | key, |
string | milliseconds_timestamp | ||
) |
PEXPIREAT
Set the expiration for a key as a UNIX timestamp specified in milliseconds
Time complexity: O(1) Annotated return value: integer
Definition at line 4570 of file nwnx_redis.nss.
int NWNX_Redis_PFADD | ( | string | key, |
string | element | ||
) |
PFADD
Adds the specified elements to the specified HyperLogLog.
Time complexity: O(1) to add every element. Annotated return value: integer
Definition at line 4582 of file nwnx_redis.nss.
int NWNX_Redis_PFCOUNT | ( | string | key | ) |
PFCOUNT
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).
Time complexity: O(1) with a very small average constant time when called with a single key. O(N) with N being the number of keys, and much bigger constant times, when called with multiple keys. Annotated return value: integer
Definition at line 4593 of file nwnx_redis.nss.
int NWNX_Redis_PFMERGE | ( | string | destkey, |
string | sourcekey | ||
) |
PFMERGE
Merge N different HyperLogLogs into a single one.
Time complexity: O(N) to merge N HyperLogLogs, but with high constant times. Annotated return value: simple-string
Definition at line 4602 of file nwnx_redis.nss.
int NWNX_Redis_PING | ( | string | message = "" | ) |
PING
Ping the server Annotated return value: simple-string
Definition at line 4615 of file nwnx_redis.nss.
int NWNX_Redis_PSETEX | ( | string | key, |
int | milliseconds, | ||
string | value | ||
) |
PSETEX
Set the value and expiration in milliseconds of a key
Time complexity: O(1) Annotated return value:
Definition at line 4624 of file nwnx_redis.nss.
int NWNX_Redis_PUBSUB | ( | string | subcommand, |
string | argument = "" |
||
) |
PUBSUB
Inspect the state of the Pub/Sub subsystem
Time complexity: O(N) for the CHANNELS subcommand, where N is the number of active channels, and assuming constant time pattern matching (relatively short channels and patterns). O(N) for the NUMSUB subcommand, where N is the number of requested channels. O(1) for the NUMPAT subcommand. Annotated return value: array
Definition at line 4638 of file nwnx_redis.nss.
int NWNX_Redis_PTTL | ( | string | key | ) |
PTTL
Get the time to live for a key in milliseconds
Time complexity: O(1) Annotated return value: integer
Definition at line 4649 of file nwnx_redis.nss.
int NWNX_Redis_PUBLISH | ( | string | channel, |
string | message | ||
) |
PUBLISH
Post a message to a channel
Time complexity: O(N+M) where N is the number of clients subscribed to the receiving channel and M is the total number of subscribed patterns (by any client). Annotated return value: integer
Definition at line 4658 of file nwnx_redis.nss.
int NWNX_Redis_QUIT | ( | ) |
QUIT
Close the connection Annotated return value: simple-string
Definition at line 4669 of file nwnx_redis.nss.
int NWNX_Redis_RANDOMKEY | ( | ) |
RANDOMKEY
Return a random key from the keyspace
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 4675 of file nwnx_redis.nss.
int NWNX_Redis_READONLY | ( | ) |
READONLY
Enables read queries for a connection to a cluster replica node
Time complexity: O(1) Annotated return value: simple-string
Definition at line 4681 of file nwnx_redis.nss.
int NWNX_Redis_READWRITE | ( | ) |
READWRITE
Disables read queries for a connection to a cluster replica node
Time complexity: O(1) Annotated return value: simple-string
Definition at line 4687 of file nwnx_redis.nss.
int NWNX_Redis_RENAME | ( | string | key, |
string | newkey | ||
) |
RENAME
Rename a key
Time complexity: O(1) Annotated return value: simple-string
Definition at line 4693 of file nwnx_redis.nss.
int NWNX_Redis_RENAMENX | ( | string | key, |
string | newkey | ||
) |
RENAMENX
Rename a key, only if the new key does not exist
Time complexity: O(1) Annotated return value: integer
Definition at line 4705 of file nwnx_redis.nss.
int NWNX_Redis_RESTORE | ( | string | key, |
int | ttl, | ||
string | serialized_value, | ||
string | replace = "" , |
||
string | absttl = "" , |
||
int | idletime_seconds = 0 , |
||
int | freq_frequency = 0 |
||
) |
RESTORE
Create a key using the provided serialized value, previously obtained using DUMP.
Time complexity: O(1) to create the new key and additional O(N*M) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). However for sorted set values the complexity is O(N*M*log(N)) because inserting values into sorted sets is O(log(N)).
Definition at line 4717 of file nwnx_redis.nss.
int NWNX_Redis_ROLE | ( | ) |
ROLE
Return the role of the instance in the context of replication Annotated return value: array
Definition at line 4743 of file nwnx_redis.nss.
int NWNX_Redis_RPOP | ( | string | key | ) |
RPOP
Remove and get the last element in a list
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 4749 of file nwnx_redis.nss.
int NWNX_Redis_RPOPLPUSH | ( | string | source, |
string | destination | ||
) |
RPOPLPUSH
Remove the last element in a list, prepend it to another list and return it
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 4758 of file nwnx_redis.nss.
int NWNX_Redis_RPUSH | ( | string | key, |
string | value | ||
) |
RPUSH
Append one or multiple values to a list
Time complexity: O(1) Annotated return value: integer
Definition at line 4771 of file nwnx_redis.nss.
int NWNX_Redis_RPUSHX | ( | string | key, |
string | value | ||
) |
RPUSHX
Append a value to a list, only if the list exists
Time complexity: O(1) Annotated return value: integer
Definition at line 4782 of file nwnx_redis.nss.
int NWNX_Redis_SADD | ( | string | key, |
string | member | ||
) |
SADD
Add one or more members to a set
Time complexity: O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments. Annotated return value: integer
Definition at line 4793 of file nwnx_redis.nss.
int NWNX_Redis_SAVE | ( | ) |
SAVE
Synchronously save the dataset to disk Annotated return value: simple-string
Definition at line 4804 of file nwnx_redis.nss.
int NWNX_Redis_SCARD | ( | string | key | ) |
SCARD
Get the number of members in a set
Time complexity: O(1) Annotated return value: integer
Definition at line 4810 of file nwnx_redis.nss.
int NWNX_Redis_SCRIPT_DEBUG | ( | string | mode | ) |
SCRIPT_DEBUG
Set the debug mode for executed scripts.
Time complexity: O(1)
Definition at line 4819 of file nwnx_redis.nss.
int NWNX_Redis_SCRIPT_EXISTS | ( | string | sha1 | ) |
SCRIPT_EXISTS
Check existence of scripts in the script cache.
Time complexity: O(N) with N being the number of scripts to check (so checking a single script is an O(1) operation). Annotated return value: array
Definition at line 4829 of file nwnx_redis.nss.
int NWNX_Redis_SCRIPT_FLUSH | ( | ) |
SCRIPT_FLUSH
Remove all the scripts from the script cache.
Time complexity: O(N) with N being the number of scripts in cache Annotated return value: simple-string
Definition at line 4838 of file nwnx_redis.nss.
int NWNX_Redis_SCRIPT_KILL | ( | ) |
SCRIPT_KILL
Kill the script currently in execution.
Time complexity: O(1) Annotated return value: simple-string
Definition at line 4844 of file nwnx_redis.nss.
int NWNX_Redis_SCRIPT_LOAD | ( | string | script | ) |
SCRIPT_LOAD
Load the specified Lua script into the script cache.
Time complexity: O(N) with N being the length in bytes of the script body. Annotated return value: bulk-string
Definition at line 4850 of file nwnx_redis.nss.
int NWNX_Redis_SDIFF | ( | string | key | ) |
SDIFF
Subtract multiple sets
Time complexity: O(N) where N is the total number of elements in all given sets. Annotated return value: array
Definition at line 4859 of file nwnx_redis.nss.
int NWNX_Redis_SDIFFSTORE | ( | string | destination, |
string | key | ||
) |
SDIFFSTORE
Subtract multiple sets and store the resulting set in a key
Time complexity: O(N) where N is the total number of elements in all given sets. Annotated return value: integer
Definition at line 4868 of file nwnx_redis.nss.
int NWNX_Redis_SELECT | ( | int | index | ) |
SELECT
Change the selected database for the current connection Annotated return value: simple-string
Definition at line 4880 of file nwnx_redis.nss.
int NWNX_Redis_SET | ( | string | key, |
string | value, | ||
string | condition = "" |
||
) |
SET
Set the string value of a key
Time complexity: O(1)
Definition at line 4890 of file nwnx_redis.nss.
int NWNX_Redis_SETBIT | ( | string | key, |
int | offset, | ||
string | value | ||
) |
SETBIT
Sets or clears the bit at offset in the string value stored at key
Time complexity: O(1) Annotated return value: integer
Definition at line 4904 of file nwnx_redis.nss.
int NWNX_Redis_SETEX | ( | string | key, |
int | seconds, | ||
string | value | ||
) |
SETEX
Set the value and expiration of a key
Time complexity: O(1) Annotated return value: simple-string
Definition at line 4918 of file nwnx_redis.nss.
int NWNX_Redis_SETNX | ( | string | key, |
string | value | ||
) |
SETNX
Set the value of a key, only if the key does not exist
Time complexity: O(1) Annotated return value: integer
Definition at line 4932 of file nwnx_redis.nss.
int NWNX_Redis_SETRANGE | ( | string | key, |
int | offset, | ||
string | value | ||
) |
SETRANGE
Overwrite part of a string at key starting at the specified offset
Time complexity: O(1), not counting the time taken to copy the new string in place. Usually, this string is very small so the amortized complexity is O(1). Otherwise, complexity is O(M) with M being the length of the value argument. Annotated return value: integer
Definition at line 4943 of file nwnx_redis.nss.
int NWNX_Redis_SHUTDOWN | ( | string | save_mode = "" | ) |
SHUTDOWN
Synchronously save the dataset to disk and then shut down the server
Definition at line 4957 of file nwnx_redis.nss.
int NWNX_Redis_SINTER | ( | string | key | ) |
SINTER
Intersect multiple sets
Time complexity: O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets. Annotated return value: array
Definition at line 4967 of file nwnx_redis.nss.
int NWNX_Redis_SINTERSTORE | ( | string | destination, |
string | key | ||
) |
SINTERSTORE
Intersect multiple sets and store the resulting set in a key
Time complexity: O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets. Annotated return value: integer
Definition at line 4976 of file nwnx_redis.nss.
int NWNX_Redis_SISMEMBER | ( | string | key, |
string | member | ||
) |
SISMEMBER
Determine if a given value is a member of a set
Time complexity: O(1) Annotated return value: integer
Definition at line 4988 of file nwnx_redis.nss.
int NWNX_Redis_SLAVEOF | ( | string | host, |
string | port | ||
) |
SLAVEOF
Make the server a replica of another instance, or promote it as master. Deprecated starting with Redis 5. Use REPLICAOF instead. Annotated return value: simple-string
Definition at line 4999 of file nwnx_redis.nss.
int NWNX_Redis_REPLICAOF | ( | string | host, |
string | port | ||
) |
REPLICAOF
Make the server a replica of another instance, or promote it as master. Annotated return value: simple-string
Definition at line 5010 of file nwnx_redis.nss.
int NWNX_Redis_SLOWLOG | ( | string | subcommand, |
string | argument = "" |
||
) |
SLOWLOG
Manages the Redis slow queries log Annotated return value:
Definition at line 5021 of file nwnx_redis.nss.
int NWNX_Redis_SMEMBERS | ( | string | key | ) |
SMEMBERS
Get all the members in a set
Time complexity: O(N) where N is the set cardinality. Annotated return value: array
Definition at line 5032 of file nwnx_redis.nss.
int NWNX_Redis_SMOVE | ( | string | source, |
string | destination, | ||
string | member | ||
) |
SMOVE
Move a member from one set to another
Time complexity: O(1) Annotated return value: integer
Definition at line 5041 of file nwnx_redis.nss.
int NWNX_Redis_SORT | ( | string | key, |
string | by_pattern = "" , |
||
int | limit_offset = 0 , |
||
int | limit_count = 0 , |
||
string | get_pattern = "" , |
||
string | order = "" , |
||
string | sorting = "" , |
||
string | store_destination = "" |
||
) |
SORT
Sort the elements in a list, set or sorted set
Time complexity: O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of returned elements. When the elements are not sorted, complexity is currently O(N) as there is a copy step that will be avoided in next releases.
Definition at line 5056 of file nwnx_redis.nss.
int NWNX_Redis_SPOP | ( | string | key, |
int | count = 0 |
||
) |
SPOP
Remove and return one or multiple random members from a set
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 5085 of file nwnx_redis.nss.
int NWNX_Redis_SRANDMEMBER | ( | string | key, |
int | count = 0 |
||
) |
SRANDMEMBER
Get one or multiple random members from a set
Time complexity: Without the count argument O(1), otherwise O(N) where N is the absolute value of the passed count. Annotated return value: bulk-string
Definition at line 5097 of file nwnx_redis.nss.
int NWNX_Redis_SREM | ( | string | key, |
string | member | ||
) |
SREM
Remove one or more members from a set
Time complexity: O(N) where N is the number of members to be removed. Annotated return value: integer
Definition at line 5109 of file nwnx_redis.nss.
int NWNX_Redis_STRLEN | ( | string | key | ) |
STRLEN
Get the length of the value stored in a key
Time complexity: O(1) Annotated return value: integer
Definition at line 5120 of file nwnx_redis.nss.
int NWNX_Redis_SUNION | ( | string | key | ) |
SUNION
Add multiple sets
Time complexity: O(N) where N is the total number of elements in all given sets. Annotated return value: array
Definition at line 5129 of file nwnx_redis.nss.
int NWNX_Redis_SUNIONSTORE | ( | string | destination, |
string | key | ||
) |
SUNIONSTORE
Add multiple sets and store the resulting set in a key
Time complexity: O(N) where N is the total number of elements in all given sets. Annotated return value: integer
Definition at line 5138 of file nwnx_redis.nss.
int NWNX_Redis_SWAPDB | ( | int | index, |
int | index_1 | ||
) |
SWAPDB
Swaps two Redis databases Annotated return value: simple-string
Definition at line 5150 of file nwnx_redis.nss.
int NWNX_Redis_SYNC | ( | ) |
SYNC
Internal command used for replication Annotated return value:
Definition at line 5163 of file nwnx_redis.nss.
int NWNX_Redis_TIME | ( | ) |
TIME
Return the current server time
Time complexity: O(1) Annotated return value: array
Definition at line 5169 of file nwnx_redis.nss.
int NWNX_Redis_TOUCH | ( | string | key | ) |
TOUCH
Alters the last access time of a key(s). Returns the number of existing keys specified.
Time complexity: O(N) where N is the number of keys that will be touched. Annotated return value: integer
Definition at line 5175 of file nwnx_redis.nss.
int NWNX_Redis_TTL | ( | string | key | ) |
TTL
Get the time to live for a key
Time complexity: O(1) Annotated return value: integer
Definition at line 5184 of file nwnx_redis.nss.
int NWNX_Redis_TYPE | ( | string | key | ) |
TYPE
Determine the type stored at key
Time complexity: O(1) Annotated return value: simple-string
Definition at line 5193 of file nwnx_redis.nss.
int NWNX_Redis_UNLINK | ( | string | key | ) |
UNLINK
Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.
Time complexity: O(1) for each key removed regardless of its size. Then the command does O(N) work in a different thread in order to reclaim memory, where N is the number of allocations the deleted objects where composed of. Annotated return value: integer
Definition at line 5202 of file nwnx_redis.nss.
int NWNX_Redis_UNWATCH | ( | ) |
UNWATCH
Forget about all watched keys
Time complexity: O(1) Annotated return value: simple-string
Definition at line 5211 of file nwnx_redis.nss.
int NWNX_Redis_WAIT | ( | int | numreplicas, |
int | timeout | ||
) |
WAIT
Wait for the synchronous replication of all the write commands sent in the context of the current connection
Time complexity: O(1) Annotated return value: integer
Definition at line 5217 of file nwnx_redis.nss.
int NWNX_Redis_WATCH | ( | string | key | ) |
WATCH
Watch the given keys to determine execution of the MULTI/EXEC block
Time complexity: O(1) for every key. Annotated return value: simple-string
Definition at line 5230 of file nwnx_redis.nss.
int NWNX_Redis_ZADD | ( | string | key, |
string | condition = "" , |
||
string | change = "" , |
||
string | increment = "" , |
||
float | score = 0.0 , |
||
string | member = "" |
||
) |
ZADD
Add one or more members to a sorted set, or update its score if it already exists
Time complexity: O(log(N)) for each item added, where N is the number of elements in the sorted set.
Definition at line 5239 of file nwnx_redis.nss.
int NWNX_Redis_ZCARD | ( | string | key | ) |
ZCARD
Get the number of members in a sorted set
Time complexity: O(1) Annotated return value: integer
Definition at line 5262 of file nwnx_redis.nss.
int NWNX_Redis_ZCOUNT | ( | string | key, |
float | min, | ||
float | max | ||
) |
ZCOUNT
Count the members in a sorted set with scores within the given values
Time complexity: O(log(N)) with N being the number of elements in the sorted set. Annotated return value: integer
Definition at line 5271 of file nwnx_redis.nss.
int NWNX_Redis_ZINCRBY | ( | string | key, |
int | increment, | ||
string | member | ||
) |
ZINCRBY
Increment the score of a member in a sorted set
Time complexity: O(log(N)) where N is the number of elements in the sorted set. Annotated return value: bulk-string
Definition at line 5286 of file nwnx_redis.nss.
int NWNX_Redis_ZINTERSTORE | ( | string | destination, |
int | numkeys, | ||
string | key, | ||
int | weights_weight = 0 , |
||
string | aggregate_aggregate = "" |
||
) |
ZINTERSTORE
Intersect multiple sorted sets and store the resulting sorted set in a new key
Time 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.
Definition at line 5300 of file nwnx_redis.nss.
int NWNX_Redis_ZLEXCOUNT | ( | string | key, |
string | min, | ||
string | max | ||
) |
ZLEXCOUNT
Count the number of members in a sorted set between a given lexicographical range
Time complexity: O(log(N)) with N being the number of elements in the sorted set. Annotated return value: integer
Definition at line 5321 of file nwnx_redis.nss.
int NWNX_Redis_ZPOPMAX | ( | string | key, |
int | count = 0 |
||
) |
ZPOPMAX
Remove and return members with the highest scores in a sorted set
Time complexity: O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped. Annotated return value: array
Definition at line 5334 of file nwnx_redis.nss.
int NWNX_Redis_ZPOPMIN | ( | string | key, |
int | count = 0 |
||
) |
ZPOPMIN
Remove and return members with the lowest scores in a sorted set
Time complexity: O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped. Annotated return value: array
Definition at line 5346 of file nwnx_redis.nss.
int NWNX_Redis_ZRANGE | ( | string | key, |
int | start, | ||
int | stop, | ||
string | withscores = "" |
||
) |
ZRANGE
Return a range of members in a sorted set, by index
Time complexity: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.
Definition at line 5358 of file nwnx_redis.nss.
int NWNX_Redis_ZRANGEBYLEX | ( | string | key, |
string | min, | ||
string | max, | ||
int | limit_offset = 0 , |
||
int | limit_count = 0 |
||
) |
ZRANGEBYLEX
Return a range of members in a sorted set, by lexicographical range
Time complexity: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)). Annotated return value: array
Definition at line 5376 of file nwnx_redis.nss.
int NWNX_Redis_ZREVRANGEBYLEX | ( | string | key, |
string | max, | ||
string | min, | ||
int | limit_offset = 0 , |
||
int | limit_count = 0 |
||
) |
ZREVRANGEBYLEX
Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.
Time complexity: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)). Annotated return value: array
Definition at line 5395 of file nwnx_redis.nss.
int NWNX_Redis_ZRANGEBYSCORE | ( | string | key, |
float | min, | ||
float | max, | ||
string | withscores = "" , |
||
int | limit_offset = 0 , |
||
int | limit_count = 0 |
||
) |
ZRANGEBYSCORE
Return a range of members in a sorted set, by score
Time complexity: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).
Definition at line 5414 of file nwnx_redis.nss.
int NWNX_Redis_ZRANK | ( | string | key, |
string | member | ||
) |
ZRANK
Determine the index of a member in a sorted set
Time complexity: O(log(N)) Annotated return value: integer
Definition at line 5438 of file nwnx_redis.nss.
int NWNX_Redis_ZREM | ( | string | key, |
string | member | ||
) |
ZREM
Remove one or more members from a sorted set
Time complexity: O(M*log(N)) with N being the number of elements in the sorted set and M the number of elements to be removed. Annotated return value: integer
Definition at line 5449 of file nwnx_redis.nss.
int NWNX_Redis_ZREMRANGEBYLEX | ( | string | key, |
string | min, | ||
string | max | ||
) |
ZREMRANGEBYLEX
Remove all members in a sorted set between the given lexicographical range
Time complexity: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation. Annotated return value: integer
Definition at line 5460 of file nwnx_redis.nss.
int NWNX_Redis_ZREMRANGEBYRANK | ( | string | key, |
int | start, | ||
int | stop | ||
) |
ZREMRANGEBYRANK
Remove all members in a sorted set within the given indexes
Time complexity: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation. Annotated return value: integer
Definition at line 5473 of file nwnx_redis.nss.
int NWNX_Redis_ZREMRANGEBYSCORE | ( | string | key, |
float | min, | ||
float | max | ||
) |
ZREMRANGEBYSCORE
Remove all members in a sorted set within the given scores
Time complexity: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation. Annotated return value: integer
Definition at line 5488 of file nwnx_redis.nss.
int NWNX_Redis_ZREVRANGE | ( | string | key, |
int | start, | ||
int | stop, | ||
string | withscores = "" |
||
) |
ZREVRANGE
Return a range of members in a sorted set, by index, with scores ordered from high to low
Time complexity: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.
Definition at line 5503 of file nwnx_redis.nss.
int NWNX_Redis_ZREVRANGEBYSCORE | ( | string | key, |
float | max, | ||
float | min, | ||
string | withscores = "" , |
||
int | limit_offset = 0 , |
||
int | limit_count = 0 |
||
) |
ZREVRANGEBYSCORE
Return a range of members in a sorted set, by score, with scores ordered from high to low
Time complexity: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).
Definition at line 5521 of file nwnx_redis.nss.
int NWNX_Redis_ZREVRANK | ( | string | key, |
string | member | ||
) |
ZREVRANK
Determine the index of a member in a sorted set, with scores ordered from high to low
Time complexity: O(log(N)) Annotated return value: integer
Definition at line 5545 of file nwnx_redis.nss.
int NWNX_Redis_ZSCORE | ( | string | key, |
string | member | ||
) |
ZSCORE
Get the score associated with the given member in a sorted set
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 5556 of file nwnx_redis.nss.
int NWNX_Redis_ZUNIONSTORE | ( | string | destination, |
int | numkeys, | ||
string | key, | ||
int | weights_weight = 0 , |
||
string | aggregate_aggregate = "" |
||
) |
ZUNIONSTORE
Add multiple sorted sets and store the resulting sorted set in a new key
Time complexity: O(N)+O(M log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.
Definition at line 5567 of file nwnx_redis.nss.
int NWNX_Redis_SCAN | ( | int | cursor, |
string | match_pattern = "" , |
||
int | count_count = 0 , |
||
string | type_type = "" |
||
) |
SCAN
Incrementally iterate the keys space
Time complexity: O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection. Annotated return value:
Definition at line 5588 of file nwnx_redis.nss.
int NWNX_Redis_SSCAN | ( | string | key, |
int | cursor, | ||
string | match_pattern = "" , |
||
int | count_count = 0 |
||
) |
SSCAN
Incrementally iterate Set elements
Time complexity: O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.. Annotated return value:
Definition at line 5606 of file nwnx_redis.nss.
int NWNX_Redis_HSCAN | ( | string | key, |
int | cursor, | ||
string | match_pattern = "" , |
||
int | count_count = 0 |
||
) |
HSCAN
Incrementally iterate hash fields and associated values
Time complexity: O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.. Annotated return value:
Definition at line 5624 of file nwnx_redis.nss.
int NWNX_Redis_ZSCAN | ( | string | key, |
int | cursor, | ||
string | match_pattern = "" , |
||
int | count_count = 0 |
||
) |
ZSCAN
Incrementally iterate sorted sets elements and associated scores
Time complexity: O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.. Annotated return value:
Definition at line 5642 of file nwnx_redis.nss.
int NWNX_Redis_XINFO | ( | string | consumers_key = "" , |
string | consumers_groupname = "" , |
||
string | groups_key = "" , |
||
string | stream_key = "" , |
||
string | help = "" |
||
) |
XINFO
Get information on streams and consumer groups
Time complexity: O(N) with N being the number of returned items for the subcommands CONSUMERS and GROUPS. The STREAM subcommand is O(log N) with N being the number of items in the stream.
Definition at line 5660 of file nwnx_redis.nss.
int NWNX_Redis_XADD | ( | string | key, |
string | ID, | ||
string | field, | ||
string | str | ||
) |
XADD
Appends a new entry to a stream
Time complexity: O(1) Annotated return value: bulk-string
Definition at line 5681 of file nwnx_redis.nss.
int NWNX_Redis_XTRIM | ( | string | key, |
string | strategy, | ||
string | approx = "" , |
||
int | count = 0 |
||
) |
XTRIM
Trims the stream to (approximately if '~' is passed) a certain size
Time 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.
Definition at line 5697 of file nwnx_redis.nss.
int NWNX_Redis_XDEL | ( | string | key, |
string | ID | ||
) |
XDEL
Removes the specified entries from the stream. Returns the number of items actually deleted, that may be different from the number of IDs passed in case certain IDs do not exist.
Time complexity: O(1) for each single item to delete in the stream, regardless of the stream size. Annotated return value: integer
Definition at line 5715 of file nwnx_redis.nss.
int NWNX_Redis_XRANGE | ( | string | key, |
string | start, | ||
string | end, | ||
int | count_count = 0 |
||
) |
XRANGE
Return a range of elements in a stream, with IDs matching the specified IDs interval
Time 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). Annotated return value: array
Definition at line 5726 of file nwnx_redis.nss.
int NWNX_Redis_XREVRANGE | ( | string | key, |
string | end, | ||
string | start, | ||
int | count_count = 0 |
||
) |
XREVRANGE
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
Time 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). Annotated return value: array
Definition at line 5742 of file nwnx_redis.nss.
int NWNX_Redis_XLEN | ( | string | key | ) |
XLEN
Return the number of entires in a stream
Time complexity: O(1) Annotated return value: integer
Definition at line 5758 of file nwnx_redis.nss.
int NWNX_Redis_XREAD | ( | int | count_count = 0 , |
int | block_milliseconds = 0 , |
||
string | streams = "" , |
||
string | key = "" , |
||
string | ID = "" |
||
) |
XREAD
Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block.
Time complexity: For each stream mentioned: O(N) with N being the number of elements being returned, it menas 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.
Definition at line 5767 of file nwnx_redis.nss.
int NWNX_Redis_XGROUP | ( | string | create_key = "" , |
string | create_groupname = "" , |
||
string | create_id_or__ = "" , |
||
string | setid_key = "" , |
||
string | setid_groupname = "" , |
||
string | setid_id_or__ = "" , |
||
string | destroy_key = "" , |
||
string | destroy_groupname = "" , |
||
string | delconsumer_key = "" , |
||
string | delconsumer_groupname = "" , |
||
string | delconsumer_consumername = "" |
||
) |
XGROUP
Create, destroy, and manage consumer groups.
Time complexity: O(1) for all the subcommands, with the exception of the DESTROY subcommand which takes an additional O(M) time in order to delete the M entries inside the consumer group pending entries list (PEL). Annotated return value:
Definition at line 5787 of file nwnx_redis.nss.
int NWNX_Redis_XREADGROUP | ( | string | group_group, |
string | group_consumer, | ||
int | count_count = 0 , |
||
int | block_milliseconds = 0 , |
||
string | noack = "" , |
||
string | streams = "" , |
||
string | key = "" , |
||
string | ID = "" |
||
) |
XREADGROUP
Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block.
Time 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.
Definition at line 5820 of file nwnx_redis.nss.
int NWNX_Redis_XACK | ( | string | key, |
string | group, | ||
string | ID | ||
) |
XACK
Marks a pending message as correctly processed, effectively removing it from the pending entries list of the consumer group. Return value of the command is the number of messages successfully acknowledged, that is, the IDs we were actually able to resolve in the PEL.
Time complexity: O(1) for each message ID processed. Annotated return value: integer
Definition at line 5847 of file nwnx_redis.nss.
int NWNX_Redis_XCLAIM | ( | string | key, |
string | group, | ||
string | consumer, | ||
string | min_idle_time, | ||
string | ID, | ||
int | idle_ms = 0 , |
||
int | time_ms_unix_time = 0 , |
||
int | retrycount_count = 0 |
||
) |
XCLAIM
Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer.
Time complexity: O(log N) with N being the number of messages in the PEL of the consumer group. Annotated return value: array
Definition at line 5860 of file nwnx_redis.nss.
int NWNX_Redis_XPENDING | ( | string | key, |
string | group, | ||
string | start = "" , |
||
string | end = "" , |
||
int | count = 0 , |
||
string | consumer = "" |
||
) |
XPENDING
Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged.
Time 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). When the command returns just the summary it runs in O(1) time assuming the list of consumers is small, otherwise there is additional O(N) time needed to iterate every consumer. Annotated return value: array
Definition at line 5886 of file nwnx_redis.nss.