pyredis Documentation
|
|
- Valentine Welch
- 5 years ago
- Views:
Transcription
1 pyredis Documentation Release Stephan Schultchen Jul 09, 2018
2
3 Contents 1 Introduction Installing Author License Contributing Usage Example Simple Client Usage Bulk Mode Using a Connection Pool Using a Cluster Connection Pool Using a Hash Connection Pool Using a Sentinel backed Connection Hash Pool Using a Sentinel backed Connection Pool Getting Pool by URL Getting PubSubClient by URL Publish Subscribe API Documentation Connection Client Pool Commands Indices and tables 37 i
4 ii
5 Contents: Contents 1
6 2 Contents
7 CHAPTER 1 Introduction Redis Client implementation for Python. The Client only supports Python 3 for the moment. If there is enough interest, i will make it work with Python 2. Currently implemented Features: Base Redis Client Publish Subscribe Client Sentinel Client Connection Pool Sentinel Backed Connection Pool Client & Pool for Redis Cluster Bulk Mode ( Not supported with Redis Cluster ) Client & Pool with Static Hash Cluster (Supports Bulk Mode) Sentinel Backed Client & Pool with Static Hash Cluster (Supports Bulk Mode) 1.1 Installing pyredis can be installed via pip as follows: pip install python_redis 1.2 Author Stephan Schultchen <stephan.schultchen@gmail.com> 3
8 1.3 License Unless stated otherwise on-file pyredis uses the MIT license, check LICENSE file. 1.4 Contributing If you d like to contribute, fork the project, make a patch and send a pull request. 4 Chapter 1. Introduction
9 CHAPTER 2 Usage Example 2.1 Simple Client Usage from pyredis import Client client = Client(host="localhost") client.ping() 2.2 Bulk Mode Bulk Mode can be used to import large amounts of data in a short time. With bulk mode enabled sending requests and fetching results is separated from each other. Which will save many network round trips, improving query performance. All executed commands will return None. There is a threshold, which defaults to 5000 requests, after which the results of the previous requests are fetched into a list. If you are not interested in the results, this can be disabled by calling bulk_start with the parameter keep_results=false. Fetching results, when the threshold is reached is a transparent operation. The client will only notice that the execution of the the request triggering the threshold will take a little longer. Calling bulk_stop() will fetch all remaining results, and return a list with fetched results. This list can also contain exceptions from failed commands. from pyredis import Client client = Client(host="localhost") client.bulk_start() client.set('key1', 'value1') client.set('key2', 'value2') (continues on next page) 5
10 client.set('key3', 'value3') client.bulk_stop() [b'ok', b'ok', b'ok'] (continued from previous page) from pyredis import HashClient client = Client(buckets=[('host1', 6379), ('host2', 6379), ('host3', 6379)]) client.bulk_start() client.set('key1', 'value1') client.set('key2', 'value2') client.set('key3', 'value3') client.bulk_stop() [b'ok', b'ok', b'ok'] 2.3 Using a Connection Pool from pyredis import Pool pool = Pool(host="localhost") client = pool.aquire() client.ping() b'pong' pool.release(client) 2.4 Using a Cluster Connection Pool from pyredis import ClusterPool pool = ClusterPool(seeds=[('seed1', 6379), ('seed2', 6379), ('seed3', 6379)]) client = pool.aquire() client.ping(shard_key='test') b'pong' pool.release(client) 2.5 Using a Hash Connection Pool from pyredis import HashPool pool = HashPool(buckets=[('host1', 6379), ('host2', 6379), ('host3', 6379)]) client = pool.aquire() client.ping(shard_key='test') b'pong' pool.release(client) 6 Chapter 2. Usage Example
11 2.6 Using a Sentinel backed Connection Hash Pool from pyredis import SentinelHashPool pool = SentinelPool(sentinels=[('sentinel1', 26379), ('sentinel2', 26379), ('sentinel3 ', 26379)], buckets=['bucket1', 'bucket2', 'bucket3*]) client = pool.aquire() client.ping() b'pong' pool.release(client) 2.7 Using a Sentinel backed Connection Pool from pyredis import SentinelPool pool = SentinelPool(sentinels=[('sentinel1', 26379), ('sentinel2', 26379), ('sentinel3 ', 26379)], name=pool_name) client = pool.aquire() client.ping() b'pong' pool.release(client) 2.8 Getting Pool by URL from pyredis import get_by_url pool1 = get_by_url('redis://localhost?password=topsecret') pool1 = get_by_url('redis://localhost:6379?db=0&password=topsecret') sentinel = get_by_url('sentinel://seed1:6379,seed2,seed3:4711?name=pool_name&db=0& password=topsecret') cluster = get_by_url('redis://seed1:6379,seed2:4711,seed3?db=0') 2.9 Getting PubSubClient by URL from pyredis import get_by_url # it is not save to share this client between threads pubsub = get_by_url('pubsub://localhost?password=topsecret') 2.10 Publish Subscribe from pyredis import Client, PubSubClient client = Client(host='localhost') subscribe = PubSubClient(host='localhost') subscribe.subscribe('/blub') (continues on next page) 2.6. Using a Sentinel backed Connection Hash Pool 7
12 subscribe.get() [b'subscribe', b'/blub', 1] (continued from previous page) client.publish('/blub', 'test') 1 subscribe.get() [b'message', b'/blub', b'test'] 8 Chapter 2. Usage Example
13 CHAPTER 3 API Documentation 3.1 Connection class pyredis.connection.connection(host=none, port=6379, unix_sock=none, database=0, password=none, encoding=none, conn_timeout=2, read_timeout=2, sentinel=false) Low level client for talking to a Redis Server. This class is should not be used directly to talk to a Redis server, unless you know what you are doing. In most cases it should be sufficient to use one of the Client classes, or one of the Connection Pools. host (str) Host IP or Name to connect, can only be set when unix_sock is None. port (int) Port to connect, only used when host is also set. unix_sock (str) Unix Socket to connect, can only be set when host is None. database (int) Select which db should be used for this connection password (str) Password used for authentication. If None, no authentication is done encoding (str) Convert result strings with this encoding. If None, no encoding is done. conn_timeout (float) Connect Timeout. read_timeout (float) Read Timeout. sentinel (bool) If True, authentication and database selection is skipped. close() Close Client Connection. This closes the underlying socket, and mark the connection as closed. Returns None 9
14 read(close_on_timeout=true, raise_on_result_err=true) Read result from the socket. close_on_timeout (book) Close the connection after a read timeout raise_on_result_err (bool) Raise exception on protocol errors write(*args) Write commands to socket. args (str, int, float) Accepts a variable number of arguments Returns None 3.2 Client Client class pyredis.client(**kwargs) Base Client for Talking to Redis. Inherits the following Command classes: commands.connection, commands.hash, commands.hyperloglog, commands.key, commands.list, commands.publish, commands.scripting, commands.set, commands.sset, commands.string, commands.transaction kwargs pyredis.client takes the same arguments as pyredis.connection.connection. bulk True if bulk mode is enabled. Returns bool bulk_start(bulk_size=5000, keep_results=true) Enable bulk mode Put the client into bulk mode. Instead of executing a command & waiting for the reply, all commands are send to Redis without fetching the result. The results get fetched whenever $bulk_size commands have been executed, which will also resets the counter, or of bulk_stop() is called. 10 Chapter 3. API Documentation
15 bulk_size (int) Number of commands to execute, before fetching results. keep_results (bool) If True, keep the results. The Results will be returned when calling bulk_stop. Returns None bulk_stop() Stop bulk mode. All outstanding results from previous commands get fetched. If bulk_start was called with keep_results=true, return a list with all results from the executed commands in order. The list of results can also contain Exceptions, hat you should check for. close() Close client. Returns None, list Returns None closed Check if client is closed. Returns bool execute(*args) Execute arbitrary redis command. args (list, int, float) ClusterClient class pyredis.clusterclient(seeds=none, database=0, password=none, encoding=none, slave_ok=false, conn_timeout=2, read_timeout=2, cluster_map=none) Base Client for Talking to Redis Cluster. Inherits the following Commmand classes: commands.connection, commands.hash, commands.hyperloglog, commands.key, commands.list, commands.scripting, commands.set, commands.sset, commands.string, commands.transaction 3.2. Client 11
16 seeds (list) Accepts a list of seed nodes in this form: [( seed1, 6379), ( seed2, 6379), ( seed3, 6379)] slave_ok (bool) Set to True if this Client should use slave nodes. database (int) Select which db should be used for this connection password (str) Password used for authentication. If None, no authentication is done encoding (str) Convert result strings with this encoding. If None, no encoding is done. conn_timeout (float) Connect Timeout. read_timeout (float) Read Timeout. execute(*args, shard_key=none, sock=none, asking=false, retries=3) Execute arbitrary redis command. args (list, int, float) shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set HashClient class pyredis.hashclient(buckets, database=0, password=none, encoding=none, conn_timeout=2, read_timeout=2) Client for Talking to Static Hashed Redis Cluster. The Client will calculate a crc16 hash using the shard_key, which is be default the first Key in case the command supports multiple keys. If the Key is using the TAG annotation bla{tag}blarg, then only the tag portion is used, in this case tag. The key space is split into buckets, so in theory you could provide a list with ( host, port) pairs to the buckets parameter. If you have less then ( host, port) pairs, the client will try to distribute the key spaces evenly between available pairs. Warning Since this is static hashing, the order of pairs has to match on each client you use! Also changing the number of pairs will change the mapping between buckets and pairs, rendering your data inaccessible! Inherits the following Commmand classes: commands.connection, commands.hash, commands.hyperloglog, commands.key, commands.list, commands.publish, commands.scripting, commands.set, commands.sset, 12 Chapter 3. API Documentation
17 commands.string, commands.transaction bulk True if bulk mode is enabled. Returns bool bulk_start(bulk_size=5000, keep_results=true) Enable bulk mode Put the client into bulk mode. Instead of executing a command & waiting for the reply, all commands are send to Redis without fetching the result. The results get fetched whenever $bulk_size commands have been executed, which will also resets the counter, or of bulk_stop() is called. bulk_size (int) Number of commands to execute, before fetching results. keep_results (bool) If True, keep the results. The Results will be returned when calling bulk_stop. Returns None bulk_stop() Stop bulk mode. All outstanding results from previous commands get fetched. If bulk_start was called with keep_results=true, return a list with all results from the executed commands in order. The list of results can also contain Exceptions, hat you should check for. close() Close client. Returns None, list Returns None closed Check if client is closed. Returns bool execute(*args, shard_key=none, sock=none) Execute arbitrary redis command. args (list, int, float) shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set PubSubClient class pyredis.pubsubclient(**kwargs) Pub/Sub Client. Subscribe part of the Redis Pub/Sub System Client 13
18 kwargs pyredis.pubsubclient takes the same arguments as pyredis.connection.connection. close() Close Client Returns None closed Check if Client is closed. Returns bool get() Fetch published item from Redis. Returns list SentinelClient class pyredis.sentinelclient(sentinels) Redis Sentinel Client. sentinels (list) Accepts a list of sentinels in this form: [( sentinel1, 26379), ( sentinel2, 26379), ( sentinel3, 26379)] close() Close Connection. Returns None execute(*args) Execute sentinel command. args (string, int, float) get_master(name) Get Master Info. Return dictionary with master details. name (str) Name of Redis service Returns dict get_masters() Get list of masters. Returns list of dicts get_slaves(name) Get slaves. Return a list of dictionaries, with slave details. name (str) Name of Redis service Returns next_sentinel() Switch to the Next Sentinel. Returns None 14 Chapter 3. API Documentation
19 sentinels Return configured sentinels. Returns deque 3.3 Pool BasePool class pyredis.pool.basepool(database=0, password=none, encoding=none, conn_timeout=2, read_timeout=2, pool_size=16, lock=<unlocked _thread.lock object>) Base Class for all other pools. All other pools inherit from this base class. This class itself, cannot be used directly. database (int) Select which db should be used for this pool password (str) Password used for authentication. If None, no authentication is done encoding (str) Convert result strings with this encoding. If None, no encoding is done. conn_timeout (float) Connect Timeout. read_timeout (float) Read Timeout. pool_size (int) Upper limit of connections this pool can handle. lock (_lock object, defaults to threading.lock) Class implementing a Lock. acquire() Acquire a client connection from the pool. Returns redis.client, exception conn_timeout Return configured connection timeout Returns float database Return configured database. Returns int encoding Return configured encoding Returns str, None password Return configured password for this pool. Returns str, None pool_size Return, or adjust the current pool size Pool 15
20 shrinking is implemented via closing unused connections. if there not enough unused connections to fulfil the shrink request, connections returned via pool.release are closed. Returns int, None read_timeout Return configured read timeout Returns float release(conn) Return a client connection to the pool. conn redis.client instance, managed by this pool. Returns None ClusterPool class pyredis.clusterpool(seeds, slave_ok=false, **kwargs) Redis Cluster Pool. Inherits all the arguments, methods and attributes from BasePool. seeds Accepts a list of seed nodes in this form: [( host1, 6379), ( host2, 6379), ( host3, 6379)] slave_ok (bool) Defaults to False. If True, this pool will return connections to slave instances. retries (int) In case there is a chunk move ongoing, while executing a command, how many times should we try to find the right node, before giving up. execute(*args, **kwargs) Execute arbitrary redis command. args (list, int, float) slave_ok True if this pool will return slave connections Returns bool HashPool class pyredis.hashpool(buckets, **kwargs) Pool for straight connections to Redis Inherits all the arguments, methods and attributes from BasePool. The Client will calculate a crc16 hash using the shard_key, which is be default the first Key in case the command supports multiple keys. If the Key is using the TAG annotation bla{tag}blarg, then only the tag portion is used, in this case tag. The key space is split into buckets, so in theory you could provide a list with ( host, port) pairs to the buckets parameter. If you have less then ( host, port) pairs, the client will try to distribute the key spaces evenly between available pairs. 16 Chapter 3. API Documentation
21 Warning Since this is static hashing, the the order of pairs has to match on each client you use! Also changing the number of pairs will change the mapping between buckets and pairs, rendering your data inaccessible! buckets list of ( host, port) pairs, where each pair represents a bucket example: [( localhost, 7001), ( localhost, 7002), ( localhost, 7003)] buckets Return configured buckets. Returns list execute(*args, **kwargs) Execute arbitrary redis command. args (list, int, float) Pool class pyredis.pool(host=none, port=6379, unix_sock=none, **kwargs) Pool for straight connections to Redis Inherits all the arguments, methods and attributes from BasePool. host (str) Host IP or Name to connect, can only be set when unix_sock is None. port (int) Port to connect, only used when host is also set. unix_sock (str) Unix Socket to connect, can only be set when host is None. execute(*args) Execute arbitrary redis command. args (list, int, float) host Return configured host. Returns str, None port Return configured port. Returns int unix_sock Return configured Unix socket. Returns str, None SentinelHashPool class pyredis.sentinelpool(sentinels, name, slave_ok=false, retries=3, **kwargs) Sentinel backed Pool. Inherits all the arguments, methods and attributes from BasePool Pool 17
22 sentinels (list) Accepts a list of sentinels in this form: [( sentinel1, 26379), ( sentinel2, 26379), ( sentinel3, 26379)] name (str) Name of the cluster managed by sentinel, that this pool should manage. slave_ok (bool) Defaults to False. If True, this pool will return connections to slave instances. retries (int) In case a sentinel delivers stale data, how many other sentinels should be tried. execute(*args) Execute arbitrary redis command. args (list, int, float) name Name of the configured Sentinel managed cluster. Returns str retries Number of retries in case of stale sentinel. Returns int sentinels Deque with configured sentinels. Returns deque slave_ok True if this pool return slave connections Returns bool SentinelPool class pyredis.sentinelpool(sentinels, name, slave_ok=false, retries=3, **kwargs) Sentinel backed Pool. Inherits all the arguments, methods and attributes from BasePool. sentinels (list) Accepts a list of sentinels in this form: [( sentinel1, 26379), ( sentinel2, 26379), ( sentinel3, 26379)] name (str) Name of the cluster managed by sentinel, that this pool should manage. slave_ok (bool) Defaults to False. If True, this pool will return connections to slave instances. retries (int) In case a sentinel delivers stale data, how many other sentinels should be tried. execute(*args) Execute arbitrary redis command. args (list, int, float) 18 Chapter 3. API Documentation
23 name Name of the configured Sentinel managed cluster. Returns str retries Number of retries in case of stale sentinel. Returns int sentinels Deque with configured sentinels. Returns deque slave_ok True if this pool return slave connections Returns bool 3.4 Commands Connection class pyredis.commands.connection echo(*args, shard_key=none, sock=none) Execute ECHO Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. ping(shard_key=none, sock=none) Execute PING Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. Returns result,exception 3.4. Commands 19
24 3.4.2 Hash class pyredis.commands.hash hdel(*args) Execute HDEL Command, consult Redis documentation for details. hexists(*args) Execute HEXISTS Command, consult Redis documentation for details. hget(*args) Execute HGET Command, consult Redis documentation for details. hgetall(*args) Execute HGETALL Command, consult Redis documentation for details. hincrby(*args) Execute HINCRBY Command, consult Redis documentation for details. hincrbyfloat(*args) Execute HINCRBYFLOAT Command, consult Redis documentation for details. hkeys(*args) Execute HKEYS Command, consult Redis documentation for details. hlen(*args) Execute HLEN Command, consult Redis documentation for details. hmget(*args) Execute HMGET Command, consult Redis documentation for details. hmset(*args) Execute HMSET Command, consult Redis documentation for details. hscan(*args) Execute HSCAN Command, consult Redis documentation for details. hset(*args) Execute HSET Command, consult Redis documentation for details. 20 Chapter 3. API Documentation
25 hsetnx(*args) Execute HSETNX Command, consult Redis documentation for details. hstrlen(*args) Execute HSTRLEN Command, consult Redis documentation for details. hvals(*args) Execute HVALS Command, consult Redis documentation for details HyperLogLog class pyredis.commands.hyperloglog pfadd(*args) Execute PFADD Command, consult Redis documentation for details. pfcount(*args) Execute PFCOUNT Command, consult Redis documentation for details. pfmerge(*args) Execute PFMERGE Command, consult Redis documentation for details Geo class pyredis.commands.geo geoadd(*args) Execute GEOADD Command, consult Redis documentation for details. geodist(*args) Execute GEODIST Command, consult Redis documentation for details. geohash(*args) Execute GEOHASH Command, consult Redis documentation for details. geopos(*args) Execute GEOPOS Command, consult Redis documentation for details. georadius(*args) Execute GEORADIUS Command, consult Redis documentation for details Commands 21
26 georadiusbymember(*args) Execute GEORADIUSBYMEMBER Command, consult Redis documentation for details Key class pyredis.commands.key delete(*args) Execute DEL Command, consult Redis documentation for details. dump(*args) Execute DUMP Command, consult Redis documentation for details. exists(*args) Execute EXISTS Command, consult Redis documentation for details. expire(*args) Execute EXPIRE Command, consult Redis documentation for details. expireat(*args) Execute EXPIREAT Command, consult Redis documentation for details. keys(*args, shard_key=none, sock=none) Execute KEYS Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. migrate(*args) Execute MIGRATE Command, consult Redis documentation for details. move(*args) Execute MOVE Command, consult Redis documentation for details. 22 Chapter 3. API Documentation
27 object(*args, shard_key=none, sock=none) Execute OBJECT Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. persist(*args) Execute PERSIST Command, consult Redis documentation for details. pexpire(*args) Execute PEXPIRE Command, consult Redis documentation for details. pexpireat(*args) Execute PEXPIREAT Command, consult Redis documentation for details. pttl(*args) Execute PTTL Command, consult Redis documentation for details. randomkey(*args, shard_key=none, sock=none) Execute RANDOMKEY Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. rename(*args) Execute RENAME Command, consult Redis documentation for details. renamenx(*args) Execute RENAMENX Command, consult Redis documentation for details. restore(*args) Execute RESTORE Command, consult Redis documentation for details Commands 23
28 scan(*args, shard_key=none, sock=none) Execute SCAN Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. sort(*args) Execute SORT Command, consult Redis documentation for details. ttl(*args) Execute TTL Command, consult Redis documentation for details. type(*args) Execute TYPE Command, consult Redis documentation for details. wait(*args) Execute WAIT Command, consult Redis documentation for details List class pyredis.commands.list blpop(*args) Execute BLPOP Command, consult Redis documentation for details. brpop(*args) Execute BRPOP Command, consult Redis documentation for details. brpoplpush(*args) Execute BRPOPPUSH Command, consult Redis documentation for details. lindex(*args) Execute LINDEX Command, consult Redis documentation for details. 24 Chapter 3. API Documentation
29 linsert(*args) Execute LINSERT Command, consult Redis documentation for details. llen(*args) Execute LLEN Command, consult Redis documentation for details. lpop(*args) Execute LPOP Command, consult Redis documentation for details. lpush(*args) Execute LPUSH Command, consult Redis documentation for details. lpushx(*args) Execute LPUSHX Command, consult Redis documentation for details. lrange(*args) Execute LRANGE Command, consult Redis documentation for details. lrem(*args) Execute LREM Command, consult Redis documentation for details. lset(*args) Execute LSET Command, consult Redis documentation for details. ltrim(*args) Execute LTRIM Command, consult Redis documentation for details. rpop(*args) Execute RPOP Command, consult Redis documentation for details. rpoplpush(*args) Execute RPOPLPUSH Command, consult Redis documentation for details. rpush(*args) Execute RPUSH Command, consult Redis documentation for details. rpushx(*args) Execute RPUSHX Command, consult Redis documentation for details Commands 25
30 3.4.7 Publish class pyredis.commands.publish publish(*args) Execute PUBLISH Command, consult Redis documentation for details Scripting class pyredis.commands.scripting eval(*args, shard_key=none, sock=none) Execute EVAL Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. evalsha(*args, shard_key=none, sock=none) Execute EVALSHA Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. script_debug(*args, shard_key=none, sock=none) Execute SCRIPT DEBUG Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. 26 Chapter 3. API Documentation
31 script_exists(*args, shard_key=none, sock=none) Execute SCRIPT EXISTS Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. script_flush(*args, shard_key=none, sock=none) Execute SCRIPT FLUSH Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. script_kill(*args, shard_key=none, sock=none) Execute SCRIPT KILL Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. script_load(*args, shard_key=none, sock=none) Execute SCRIPT LOAD Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set Commands 27
32 3.4.9 Set class pyredis.commands.set sadd(*args) Execute SADD Command, consult Redis documentation for details. scard(*args) Execute SCARD Command, consult Redis documentation for details. sdiff(*args) Execute SDIFF Command, consult Redis documentation for details. sdiffstore(*args) Execute SDIFFSTORE Command, consult Redis documentation for details. sinter(*args) Execute SINTER Command, consult Redis documentation for details. sinterstore(*args) Execute SINTERSTORE Command, consult Redis documentation for details. sismember(*args) Execute SISMEMBER Command, consult Redis documentation for details. smembers(*args) Execute SMEMBERS Command, consult Redis documentation for details. smove(*args) Execute SMOVE Command, consult Redis documentation for details. spop(*args) Execute SPOP Command, consult Redis documentation for details. srandmember(*args) Execute SRANDMEMBER Command, consult Redis documentation for details. srem(*args) Execute SREM Command, consult Redis documentation for details. 28 Chapter 3. API Documentation
33 sscan(*args) Execute SSCAN Command, consult Redis documentation for details. sunion(*args) Execute SUNION Command, consult Redis documentation for details. sunoinstore(*args) Execute SUNIONSTORE Command, consult Redis documentation for details SSet class pyredis.commands.sset zadd(*args) Execute ZADD Command, consult Redis documentation for details. zcard(*args) Execute ZCARD Command, consult Redis documentation for details. zcount(*args) Execute ZCOUNT Command, consult Redis documentation for details. zincrby(*args) Execute ZINCRBY Command, consult Redis documentation for details. zinterstore(*args) Execute ZINTERSTORE Command, consult Redis documentation for details. zlexcount(*args) Execute ZLEXCOUNT Command, consult Redis documentation for details. zrange(*args) Execute ZRANGE Command, consult Redis documentation for details. zrangebylex(*args) Execute ZRANGEBYLEX Command, consult Redis documentation for details. zrangebyscore(*args) Execute ZRANGEBYSCORE Command, consult Redis documentation for details Commands 29
34 zrank(*args) Execute ZRANK Command, consult Redis documentation for details. zrem(*args) Execute ZREM Command, consult Redis documentation for details. zremrangebylex(*args) Execute ZREMRANGEBYLEX Command, consult Redis documentation for details. zremrangebyrank(*args) Execute ZREMRANGEBYRANK Command, consult Redis documentation for details. zremrangebyscrore(*args) Execute ZREMRANGEBYSCORE Command, consult Redis documentation for details. zrevrange(*args) Execute ZREVRANGE Command, consult Redis documentation for details. zrevrangebylex(*args) Execute ZREVRANGEBYLEX Command, consult Redis documentation for details. zrevrangebyscore(*args) Execute ZREVRANGEBYSCORE Command, consult Redis documentation for details. zrevrank(*args) Execute ZREVRANK Command, consult Redis documentation for details. zscan(*args) Execute ZSCAN Command, consult Redis documentation for details. zscore(*args) Execute ZSCORE Command, consult Redis documentation for details. zunionstore(*args) Execute ZUNIONSTORE Command, consult Redis documentation for details. 30 Chapter 3. API Documentation
35 String class pyredis.commands.string append(*args) Execute APPEND Command, consult Redis documentation for details. bitcount(*args) Execute BITCOUNT Command, consult Redis documentation for details. bitfield(*args) Execute BITFIELD Command, consult Redis documentation for details. bitop(*args) Execute BITOP Command, consult Redis documentation for details. bitpos(*args) Execute BITPOS Command, consult Redis documentation for details. decr(*args) Execute DECR Command, consult Redis documentation for details. decrby(*args) Execute DECRBY Command, consult Redis documentation for details. get(*args) Execute GET Command, consult Redis documentation for details. getbit(*args) Execute GETBIT Command, consult Redis documentation for details. getrange(*args) Execute GETRANGE Command, consult Redis documentation for details. getset(*args) Execute GETSET Command, consult Redis documentation for details. incr(*args) Execute INCR Command, consult Redis documentation for details Commands 31
36 incrby(*args) Execute INCRBY Command, consult Redis documentation for details. incrbyfloat(*args) Execute INCRBYFLOAT Command, consult Redis documentation for details. mget(*args) Execute MGET Command, consult Redis documentation for details. mset(*args) Execute MSET Command, consult Redis documentation for details. msetnx(*args) Execute MSETNX Command, consult Redis documentation for details. psetex(*args) Execute PSETEX Command, consult Redis documentation for details. set(*args) Execute SET Command, consult Redis documentation for details. setbit(*args) Execute SETBIT Command, consult Redis documentation for details. setex(*args) Execute SETEX Command, consult Redis documentation for details. setnx(*args) Execute SETNX Command, consult Redis documentation for details. setrange(*args) Execute SETRANGE Command, consult Redis documentation for details. strlen(*args) Execute STRLEN Command, consult Redis documentation for details Subscribe class pyredis.commands.subscribe 32 Chapter 3. API Documentation
37 psubscribe(*args) Execute PSUBSCRIBE Command, consult Redis documentation for details. punsubscribe(*args) Execute PUNSUBSCRIBE Command, consult Redis documentation for details. subscribe(*args) Execute SUBSCRIBE Command, consult Redis documentation for details. unsubscribe(*args) Execute UNSUBSCRIBE Command, consult Redis documentation for details Transaction class pyredis.commands.transaction discard(*args, shard_key=none, sock=none) Execute DISCARD Command, consult Redis documentation for details. exec(*args, shard_key=none, sock=none) Execute EXEC Command, consult Redis documentation for details. multi(*args, shard_key=none, sock=none) Execute MULTI Command, consult Redis documentation for details. unwatch(*args, shard_key=none, sock=none) Execute UNWATCH Command, consult Redis documentation for details. watch(*args) Execute WATCH Command, consult Redis documentation for details Scripting class pyredis.commands.scripting eval(*args, shard_key=none, sock=none) Execute EVAL Command, consult Redis documentation for details Commands 33
38 shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. evalsha(*args, shard_key=none, sock=none) Execute EVALSHA Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. script_debug(*args, shard_key=none, sock=none) Execute SCRIPT DEBUG Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. script_exists(*args, shard_key=none, sock=none) Execute SCRIPT EXISTS Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. script_flush(*args, shard_key=none, sock=none) Execute SCRIPT FLUSH Command, consult Redis documentation for details. 34 Chapter 3. API Documentation
39 shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. script_kill(*args, shard_key=none, sock=none) Execute SCRIPT KILL Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set. script_load(*args, shard_key=none, sock=none) Execute SCRIPT LOAD Command, consult Redis documentation for details. shard_key (string) (optional) Should be set to the key name you try to work with. Can not be used if sock is set. sock (string) (optional) The string representation of a socket, the command should be executed against. For example: testhost_6379 Can not be used if shard_key is set Commands 35
40 36 Chapter 3. API Documentation
41 CHAPTER 4 Indices and tables genindex modindex search 37
42 38 Chapter 4. Indices and tables
43 Index A acquire() (pyredis.pool.basepool method), 15 append() (pyredis.commands.string method), 31 B BasePool (class in pyredis.pool), 15 bitcount() (pyredis.commands.string method), 31 bitfield() (pyredis.commands.string method), 31 bitop() (pyredis.commands.string method), 31 bitpos() (pyredis.commands.string method), 31 blpop() (pyredis.commands.list method), 24 brpop() (pyredis.commands.list method), 24 brpoplpush() (pyredis.commands.list method), 24 buckets (pyredis.hashpool attribute), 17 bulk (pyredis.client attribute), 10 bulk (pyredis.hashclient attribute), 13 bulk_start() (pyredis.client method), 10 bulk_start() (pyredis.hashclient method), 13 bulk_stop() (pyredis.client method), 11 bulk_stop() (pyredis.hashclient method), 13 C Client (class in pyredis), 10 close() (pyredis.client method), 11 close() (pyredis.connection.connection method), 9 close() (pyredis.hashclient method), 13 close() (pyredis.pubsubclient method), 14 close() (pyredis.sentinelclient method), 14 closed (pyredis.client attribute), 11 closed (pyredis.hashclient attribute), 13 closed (pyredis.pubsubclient attribute), 14 ClusterClient (class in pyredis), 11 ClusterPool (class in pyredis), 16 conn_timeout (pyredis.pool.basepool attribute), 15 Connection (class in pyredis.commands), 19 Connection (class in pyredis.connection), 9 D database (pyredis.pool.basepool attribute), 15 decr() (pyredis.commands.string method), 31 decrby() (pyredis.commands.string method), 31 delete() (pyredis.commands.key method), 22 discard() (pyredis.commands.transaction method), 33 dump() (pyredis.commands.key method), 22 E echo() (pyredis.commands.connection method), 19 encoding (pyredis.pool.basepool attribute), 15 eval() (pyredis.commands.scripting method), 26, 33 evalsha() (pyredis.commands.scripting method), 26, 34 exec() (pyredis.commands.transaction method), 33 execute() (pyredis.client method), 11 execute() (pyredis.clusterclient method), 12 execute() (pyredis.clusterpool method), 16 execute() (pyredis.hashclient method), 13 execute() (pyredis.hashpool method), 17 execute() (pyredis.pool method), 17 execute() (pyredis.sentinelclient method), 14 execute() (pyredis.sentinelpool method), 18 exists() (pyredis.commands.key method), 22 expire() (pyredis.commands.key method), 22 expireat() (pyredis.commands.key method), 22 G Geo (class in pyredis.commands), 21 geoadd() (pyredis.commands.geo method), 21 geodist() (pyredis.commands.geo method), 21 geohash() (pyredis.commands.geo method), 21 geopos() (pyredis.commands.geo method), 21 georadius() (pyredis.commands.geo method), 21 georadiusbymember() (pyredis.commands.geo method), 22 get() (pyredis.commands.string method), 31 get() (pyredis.pubsubclient method), 14 get_master() (pyredis.sentinelclient method), 14 get_masters() (pyredis.sentinelclient method), 14 get_slaves() (pyredis.sentinelclient method), 14 getbit() (pyredis.commands.string method), 31 39
44 getrange() (pyredis.commands.string method), 31 getset() (pyredis.commands.string method), 31 H Hash (class in pyredis.commands), 20 HashClient (class in pyredis), 12 HashPool (class in pyredis), 16 hdel() (pyredis.commands.hash method), 20 hexists() (pyredis.commands.hash method), 20 hget() (pyredis.commands.hash method), 20 hgetall() (pyredis.commands.hash method), 20 hincrby() (pyredis.commands.hash method), 20 hincrbyfloat() (pyredis.commands.hash method), 20 hkeys() (pyredis.commands.hash method), 20 hlen() (pyredis.commands.hash method), 20 hmget() (pyredis.commands.hash method), 20 hmset() (pyredis.commands.hash method), 20 host (pyredis.pool attribute), 17 hscan() (pyredis.commands.hash method), 20 hset() (pyredis.commands.hash method), 20 hsetnx() (pyredis.commands.hash method), 20 hstrlen() (pyredis.commands.hash method), 21 hvals() (pyredis.commands.hash method), 21 HyperLogLog (class in pyredis.commands), 21 I incr() (pyredis.commands.string method), 31 incrby() (pyredis.commands.string method), 31 incrbyfloat() (pyredis.commands.string method), 32 K Key (class in pyredis.commands), 22 keys() (pyredis.commands.key method), 22 L lindex() (pyredis.commands.list method), 24 linsert() (pyredis.commands.list method), 24 List (class in pyredis.commands), 24 llen() (pyredis.commands.list method), 25 lpop() (pyredis.commands.list method), 25 lpush() (pyredis.commands.list method), 25 lpushx() (pyredis.commands.list method), 25 lrange() (pyredis.commands.list method), 25 lrem() (pyredis.commands.list method), 25 lset() (pyredis.commands.list method), 25 ltrim() (pyredis.commands.list method), 25 M mget() (pyredis.commands.string method), 32 migrate() (pyredis.commands.key method), 22 move() (pyredis.commands.key method), 22 mset() (pyredis.commands.string method), 32 msetnx() (pyredis.commands.string method), 32 multi() (pyredis.commands.transaction method), 33 N name (pyredis.sentinelpool attribute), 18, 19 next_sentinel() (pyredis.sentinelclient method), 14 O object() (pyredis.commands.key method), 22 P password (pyredis.pool.basepool attribute), 15 persist() (pyredis.commands.key method), 23 pexpire() (pyredis.commands.key method), 23 pexpireat() (pyredis.commands.key method), 23 pfadd() (pyredis.commands.hyperloglog method), 21 pfcount() (pyredis.commands.hyperloglog method), 21 pfmerge() (pyredis.commands.hyperloglog method), 21 ping() (pyredis.commands.connection method), 19 Pool (class in pyredis), 17 pool_size (pyredis.pool.basepool attribute), 15 port (pyredis.pool attribute), 17 psetex() (pyredis.commands.string method), 32 psubscribe() (pyredis.commands.subscribe method), 32 pttl() (pyredis.commands.key method), 23 Publish (class in pyredis.commands), 26 publish() (pyredis.commands.publish method), 26 PubSubClient (class in pyredis), 13 punsubscribe() (pyredis.commands.subscribe method), 33 R randomkey() (pyredis.commands.key method), 23 read() (pyredis.connection.connection method), 9 read_timeout (pyredis.pool.basepool attribute), 16 release() (pyredis.pool.basepool method), 16 rename() (pyredis.commands.key method), 23 renamenx() (pyredis.commands.key method), 23 restore() (pyredis.commands.key method), 23 retries (pyredis.sentinelpool attribute), 18, 19 rpop() (pyredis.commands.list method), 25 rpoplpush() (pyredis.commands.list method), 25 rpush() (pyredis.commands.list method), 25 rpushx() (pyredis.commands.list method), 25 S sadd() (pyredis.commands.set method), 28 scan() (pyredis.commands.key method), 24 scard() (pyredis.commands.set method), 28 script_debug() (pyredis.commands.scripting method), 26, 34 script_exists() (pyredis.commands.scripting method), 27, 34 script_flush() (pyredis.commands.scripting method), 27, Index
45 script_kill() (pyredis.commands.scripting method), 27, 35 script_load() (pyredis.commands.scripting method), 27, 35 Scripting (class in pyredis.commands), 26, 33 sdiff() (pyredis.commands.set method), 28 sdiffstore() (pyredis.commands.set method), 28 SentinelClient (class in pyredis), 14 SentinelPool (class in pyredis), 17, 18 sentinels (pyredis.sentinelclient attribute), 14 sentinels (pyredis.sentinelpool attribute), 18, 19 Set (class in pyredis.commands), 28 set() (pyredis.commands.string method), 32 setbit() (pyredis.commands.string method), 32 setex() (pyredis.commands.string method), 32 setnx() (pyredis.commands.string method), 32 setrange() (pyredis.commands.string method), 32 sinter() (pyredis.commands.set method), 28 sinterstore() (pyredis.commands.set method), 28 sismember() (pyredis.commands.set method), 28 slave_ok (pyredis.clusterpool attribute), 16 slave_ok (pyredis.sentinelpool attribute), 18, 19 smembers() (pyredis.commands.set method), 28 smove() (pyredis.commands.set method), 28 sort() (pyredis.commands.key method), 24 spop() (pyredis.commands.set method), 28 srandmember() (pyredis.commands.set method), 28 srem() (pyredis.commands.set method), 28 sscan() (pyredis.commands.set method), 29 SSet (class in pyredis.commands), 29 String (class in pyredis.commands), 31 strlen() (pyredis.commands.string method), 32 Subscribe (class in pyredis.commands), 32 subscribe() (pyredis.commands.subscribe method), 33 sunion() (pyredis.commands.set method), 29 sunoinstore() (pyredis.commands.set method), 29 T Transaction (class in pyredis.commands), 33 ttl() (pyredis.commands.key method), 24 type() (pyredis.commands.key method), 24 U unix_sock (pyredis.pool attribute), 17 unsubscribe() (pyredis.commands.subscribe method), 33 unwatch() (pyredis.commands.transaction method), 33 W wait() (pyredis.commands.key method), 24 watch() (pyredis.commands.transaction method), 33 write() (pyredis.connection.connection method), 10 Z zadd() (pyredis.commands.sset method), 29 zcard() (pyredis.commands.sset method), 29 zcount() (pyredis.commands.sset method), 29 zincrby() (pyredis.commands.sset method), 29 zinterstore() (pyredis.commands.sset method), 29 zlexcount() (pyredis.commands.sset method), 29 zrange() (pyredis.commands.sset method), 29 zrangebylex() (pyredis.commands.sset method), 29 zrangebyscore() (pyredis.commands.sset method), 29 zrank() (pyredis.commands.sset method), 30 zrem() (pyredis.commands.sset method), 30 zremrangebylex() (pyredis.commands.sset method), 30 zremrangebyrank() (pyredis.commands.sset method), 30 zremrangebyscrore() (pyredis.commands.sset method), 30 zrevrange() (pyredis.commands.sset method), 30 zrevrangebylex() (pyredis.commands.sset method), 30 zrevrangebyscore() (pyredis.commands.sset method), 30 zrevrank() (pyredis.commands.sset method), 30 zscan() (pyredis.commands.sset method), 30 zscore() (pyredis.commands.sset method), 30 zunionstore() (pyredis.commands.sset method), 30 Index 41
Jason Brelloch and William Gimson
Jason Brelloch and William Gimson Overview 1. Introduction 2. History 3. Specifications a. Structure b. Communication c. Datatypes 4. Command Overview 5. Advanced Capabilities 6. Advantages 7. Disadvantages
More informationredis-py Documentation
redis-py Documentation Release 2.7.2 Andy McCurdy, Mahdi Yusuf September 10, 2015 Contents 1 Redis 3 2 StrictRedis 5 3 Connections 19 4 Utils 23 5 Exceptions 25 6 Indices and tables 27 i ii Contents:
More informationredis-py Documentation
redis-py Documentation Release 2.10.5 Andy McCurdy Nov 07, 2017 Contents 1 Indices and tables 1 2 Contents: 3 Python Module Index 21 i ii CHAPTER 1 Indices and tables genindex modindex search 1 2 Chapter
More informationRedis - a Flexible Key/Value Datastore An Introduction
Redis - a Flexible Key/Value Datastore An Introduction Alexandre Dulaunoy AIMS 2011 MapReduce and Network Forensic MapReduce is an old concept in computer science The map stage to perform isolated computation
More informationBig Data Management and NoSQL Databases
NDBI040 Big Data Management and NoSQL Databases Lecture 5. Key-value stores Doc. RNDr. Irena Holubova, Ph.D. holubova@ksi.mff.cuni.cz http://www.ksi.mff.cuni.cz/~holubova/ndbi040/ Key-value store Basic
More informationLECTURE 27. Python and Redis
LECTURE 27 Python and Redis PYTHON AND REDIS Today, we ll be covering a useful but not entirely Python-centered topic: the inmemory datastore Redis. We ll start by introducing Redis itself and then discussing
More informationINFO-H-415 Advanced Databases Key-value stores and Redis. Fatemeh Shafiee Raisa Uku
INFO-H-415 Advanced Databases Key-value stores and Redis Fatemeh Shafiee 000454718 Raisa Uku 000456485 December 2017 Contents 1 Introduction 5 2 NoSQL Databases 5 2.1 Introduction to NoSQL Databases...............................
More informationIntro to Redis. A Support Overview
Intro to Redis A Support Overview Matt Stancliff Redis Engineer NYC mstancliff@gopivotal.com Today What is Redis? How does Redis work? How do we configure Redis? How do Redis commands work? How do we manage
More informationRedis Ma as, greitas, galingas. Specialiai VilniusPHP
Redis Ma as, greitas, galingas Specialiai VilniusPHP 2013.06.06 Sergej Kurakin Na, Jūs mane jau nekarta matėte, tai nieko nesakysiu apie save. Kaip aš susipa inau! Tai buvo prieš keletą metų! Projektas
More informationHarnessing the Full power of Redis. Daniel Magliola
Harnessing the Full power of Redis Daniel Magliola daniel@danielmagliola.com http://danielmagliola.com What is Redis? Redis is essentially like Memcached, but better I mean, it s an in-memory key-value
More informationClassifying malware using network traffic analysis. Or how to learn Redis, git, tshark and Python in 4 hours.
Classifying malware using network traffic analysis. Or how to learn Redis, git, tshark and Python in 4 hours. Alexandre Dulaunoy January 9, 2015 Problem Statement We have more 5000 pcap files generated
More informationRedisco Documentation
Redisco Documentation Release rc3 Sebastien Requiem November 29, 206 Contents Object Relation Manager 3. Model................................................... 3.2 Attributes.................................................
More informationNoSQL: Redis and MongoDB A.A. 2016/17
Università degli Studi di Roma Tor Vergata Dipartimento di Ingegneria Civile e Ingegneria Informatica NoSQL: Redis and MongoDB A.A. 2016/17 Matteo Nardelli Laurea Magistrale in Ingegneria Informatica -
More informationDistributed Cache Service. User Guide. Date
Date 2018-09-05 Contents Contents 1 Introduction... 1 1.1 DCS... 1 1.2 Application Scenarios...2 1.3 Advantages... 3 1.4 Compatibility with Redis Commands...3 1.5 DCS Instance Specifications... 7 1.6 Accessing
More informationasyncio_redis Documentation
asyncio_redis Documentation Release 0.1 Jonathan Slenders Aug 23, 2017 Contents 1 Features 3 2 Installation 5 3 Author and License 7 4 Indices and tables 9 4.1 Examples.................................................
More informationDr. Chuck Cartledge. 19 Nov. 2015
CS-695 NoSQL Database Redis (part 1 of 2) Dr. Chuck Cartledge 19 Nov. 2015 1/21 Table of contents I 1 Miscellanea 2 DB comparisons 3 Assgn. #7 4 Historical origins 5 Data model 6 CRUDy stuff 7 Other operations
More informationRedis as a Time Series DB. Josiah Carlson
Redis as a Time Series DB Josiah Carlson - @dr_josiah Agenda Who are you? What is Redis? (3 minutes, optional) What is a time series database? Combining structures for success Analyzing/segmenting events
More informationAmritansh Sharma
17.12.2018 Amritansh Sharma - 000473628 1 CONTENTS 1 Introduction and Background 3 1.1 Relational Databases 3 1.2 NoSQL Databases 4 1.3 Key Value Stores 5 2 Redis 7 2.1 Redis vs Other Key-Value Stores
More informationRedis Functions and Data Structures at Percona Live. Dave Nielsen, Developer Redis
Redis Functions and Data Structures at Percona Live Dave Nielsen, Developer Advocate dave@redislabs.com @davenielsen Redis Labs @redislabs Redis = A Unique Database Redis is an open source (BSD licensed),
More informationRedis Tuesday, May 29, 12
Redis 2.6 @antirez Redis 2.6 Major new features. Based on unstable branch (minus the cluster code). Why a 2.6 release? Redis Cluster is a long term project (The hurried cat produced blind kittens). Intermediate
More informationphp-rediscopy Redis~~~ QQ: Blog:
php-rediscopy Redis~~~ QQ:104732401 EMAIL:cniiliuqi@126.com Blog:http://my.oschina.net/cniiliuqi RedisRedisRedis Redis:: construct Creates a Redis client Redis $redis = new Redis(); connect, open Connects
More informationCOSC Redis. Paul Moore, Stephen Smithbower, William Lee. March 11, 2013
March 11, 2013 What is Redis? - Redis is an in-memory key-value data store. - Can be a middle-ware solution between your expensive persistent data-store (Oracle), and your application. - Provides PubSub,
More informationThe Little Redis Book is licensed under the Attribution-NonCommercial 3.0 Unported license. You should not have paid for this book.
About This Book License The Little Redis Book is licensed under the Attribution-NonCommercial 3.0 Unported license. You should not have paid for this book. You are free to copy, distribute, modify or display
More informationThe Little Redis Book is licensed under the Attribution-NonCommercial 3.0 Unported license. You should not have paid for this book.
About This Book License The Little Redis Book is licensed under the Attribution-NonCommercial 3.0 Unported license. You should not have paid for this book. You are free to copy, distribute, modify or display
More informationBuffering to Redis for Efficient Real-Time Processing. Percona Live, April 24, 2018
Buffering to Redis for Efficient Real-Time Processing Percona Live, April 24, 2018 Presenting Today Jon Hyman CTO & Co-Founder Braze (Formerly Appboy) @jon_hyman Mobile is at the vanguard of a new wave
More informationRedis Func+ons and Data Structures
Redis Func+ons and Data Structures About This Talk Topic : Redis Func/ons and Data Structures Presenter: Redis Labs, the open source home and provider of enterprise Redis About Redis Labs: 5300+ paying
More informationpymemcache Documentation
pymemcache Documentation Release 2.1.0 Charles Gordon, Nicholas Charriere, Jon Parise, Joe Gordon Jan 08, 2019 Contents 1 Getting started! 3 1.1 Basic Usage...............................................
More informationDatabase Solution in Cloud Computing
Database Solution in Cloud Computing CERC liji@cnic.cn Outline Cloud Computing Database Solution Our Experiences in Database Cloud Computing SaaS Software as a Service PaaS Platform as a Service IaaS Infrastructure
More informationREDIS: NOSQL DATA STORAGE
REDIS: NOSQL DATA STORAGE 1 Presented By- Shalini Somani (13MCEC22) CATEGORIES OF NOSQL STORAGES Key-Value memcached Redis Column Family Cassandra HBase Document MongoDB Tabular BigTable Graph, XML, Object,
More informationRedis. In-memory data structure store. Sergej Kurakin
Redis In-memory data structure store Sergej Kurakin Kas yra Redis? Duomenų struktūrų saugykla serverio atmintyje Naudojama kaip: duomenų bazė kešas (angl.: cache) žinučių brokeris (angl.: message broker)
More informationREdis: Implementing Redis in Erlang. A step-by-step walkthrough
R: Implementing Redis in Erlang A step-by-step walkthrough 1 2 : Implementing Redis in Erlang A step-by-step walkthrough 2 My Background Microsoft Visual Studio Visto Corporation Founded Inaka Moved to
More informationUsing Redis As a Time Series Database
WHITE PAPER Using Redis As a Time Series Database Dr.Josiah Carlson, Author of Redis in Action CONTENTS Executive Summary 2 Use Cases 2 Advanced Analysis Using a Sorted Set with Hashes 2 Event Analysis
More informationredis-py-cluster Documentation
redis-py-cluster Documentation Release 1.2.0 Johan Andersson Nov 16, 2018 Contents 1 Installation 3 2 Usage example 5 3 Dependencies & supported python versions 7 4 Supported python versions 9 5 Regarding
More informationdjango-redis-cache Documentation
django-redis-cache Documentation Release 1.5.2 Sean Bleier Nov 15, 2018 Contents 1 Intro and Quick Start 3 1.1 Intro................................................... 3 1.2 Quick Start................................................
More informationAgenda. Introduction You Me JDriven The case : Westy Tracking Details Implementation Deployment
y t s e W g n i k c a r T e p o r u mmit E u S y r d un o F 6 d 1 u h t Clo 8 2 r e b m Septe Agenda Introduction You Me JDriven The case : Westy Tracking Details Implementation Deployment About you About
More informationHarness the power of Python magic methods and lazy objects.
Harness the power of Python magic methods and lazy objects. By Sep Dehpour Aug 2016 zepworks.com sep at zepworks.com https://github.com/seperman/redisworks Lazy Loading Defer initialization of an object
More informationwhitepaper Using Redis As a Time Series Database: Why and How
whitepaper Using Redis As a Time Series Database: Why and How Author: Dr.Josiah Carlson, Author of Redis in Action Table of Contents Executive Summary 2 A Note on Race Conditions and Transactions 2 Use
More informationPackage redux. May 31, 2018
Title R Bindings to 'hiredis' Version 1.1.0 Package redux May 31, 2018 A 'hiredis' wrapper that includes support for transactions, pipelining, blocking subscription, serialisation of all keys and values,
More informationAgenda. About Me JDriven The case : Westy Tracking Background Architecture Implementation Demo
y t s e W g n i k c a r T and l a v a j # 6 1 h c r 8 Ma Agenda About Me JDriven The case : Westy Tracking Background Architecture Implementation Demo About me Proud dad of two kids and a '82 VW Westy
More informationSherlock Documentation
Sherlock Documentation Release 0.3.0 Vaidik Kapoor May 05, 2015 Contents 1 Overview 3 1.1 Features.................................................. 3 1.2 Supported Backends and Client Libraries................................
More informationredis-py-cluster Documentation
redis-py-cluster Documentation Release 1.2.0 Johan Andersson Mar 03, 2018 Contents 1 Installation 3 2 Usage example 5 3 Dependencies & supported python versions 7 4 Supported python versions 9 5 Regarding
More informationredislite Documentation
redislite Documentation Release 3.2.313 Yahoo Inc. May 23, 2017 Contents 1 Table of Contents 3 1.1 What is redislite............................................. 3 1.2 How redislite works...........................................
More informationRuby on Redis. Pascal Weemaels Koen Handekyn Oct 2013
Ruby on Redis Pascal Weemaels Koen Handekyn Oct 2013 Target Create a Zip file of PDF s parse csv based on a CSV data file Linear version Making it scale with Redis... zip Step 1: linear Parse CSV std lib
More informationKuyruk Documentation. Release 0. Cenk Altı
Kuyruk Documentation Release 0 Cenk Altı Mar 07, 2018 Contents 1 About Kuyruk 3 2 User s Guide 5 3 API Reference 17 4 Indices and tables 21 Python Module Index 23 i ii Welcome to Kuyruk s documentation.
More informationRedis as a Reliable Work Queue. Percona University
Redis as a Reliable Work Queue Percona University 2015-02-12 Introduction Tom DeWire Principal Software Engineer Bronto Software Chris Thunes Senior Software Engineer Bronto Software Introduction Introduction
More informationTHE FLEXIBLE DATA-STRUCTURE SERVER THAT COULD.
REDIS THE FLEXIBLE DATA-STRUCTURE SERVER THAT COULD. @_chriswhitten_ REDIS REDIS April 10, 2009; 6 years old Founding Author: Salvatore Sanfilippo Stable release: 3.0.3 / June 4, 2015; 3 months ago Fundamental
More informationredis-lua Documentation
redis-lua Documentation Release 2.0.8 Julien Kauffmann October 12, 2016 Contents 1 Quick start 3 1.1 Step-by-step analysis........................................... 3 2 What s the magic at play here?
More informationScrapy-Redis Documentation
Scrapy-Redis Documentation Release 0.7.0-dev Rolando Espinoza Nov 13, 2017 Contents 1 Scrapy-Redis 3 1.1 Features.................................................. 3 1.2 Requirements...............................................
More informationHow you can benefit from using. javier
How you can benefit from using I was Lois Lane redis has super powers myth: the bottleneck redis-benchmark -r 1000000 -n 2000000 -t get,set,lpush,lpop,mset -P 16 -q On my laptop: SET: 513610 requests
More informationIEMS 5780 / IERG 4080 Building and Deploying Scalable Machine Learning Services
IEMS 5780 / IERG 4080 Building and Deploying Scalable Machine Learning Services Lecture 11 - Asynchronous Tasks and Message Queues Albert Au Yeung 22nd November, 2018 1 / 53 Asynchronous Tasks 2 / 53 Client
More informationprompt Documentation Release Stefan Fischer
prompt Documentation Release 0.4.1 Stefan Fischer Nov 14, 2017 Contents: 1 Examples 1 2 API 3 3 Indices and tables 7 Python Module Index 9 i ii CHAPTER 1 Examples 1. Ask for a floating point number: >>>
More informationConfiguring CSM Scripts
CHAPTER 10 This chapter describes how to configure content switching and contains these sections: Configuring TCL Scripts, page 10-1 Configuring Scripts for Health Monitoring Probes, page 10-10 Configuring
More informationHome of Redis. April 24, 2017
Home of Redis April 24, 2017 Introduction to Redis and Redis Labs Redis with MySQL Data Structures in Redis Benefits of Redis e 2 Redis and Redis Labs Open source. The leading in-memory database platform,
More informationrequests-cache Documentation
requests-cache Documentation Release 0.4.13 Roman Haritonov Nov 09, 2017 Contents 1 User guide 3 1.1 Installation................................................ 3 1.2 Usage...................................................
More informationContents: 1 Basic socket interfaces 3. 2 Servers 7. 3 Launching and Controlling Processes 9. 4 Daemonizing Command Line Programs 11
nclib Documentation Release 0.7.0 rhelmot Apr 19, 2018 Contents: 1 Basic socket interfaces 3 2 Servers 7 3 Launching and Controlling Processes 9 4 Daemonizing Command Line Programs 11 5 Indices and tables
More informationeservices smtp-client
eservices smtp-client 4/9/2018 smtp-client cnx-check-idle-time cnx-max-idle-time cnx-pool-size connect-timeout enable-authentication enable-debug exchange-version password port protocol-timeout server
More informationPyOTP Documentation. Release PyOTP contributors
PyOTP Documentation Release 0.0.1 PyOTP contributors Jun 10, 2017 Contents 1 Quick overview of using One Time Passwords on your phone 3 2 Installation 5 3 Usage 7 3.1 Time-based OTPs............................................
More informationCaching Memcached vs. Redis
Caching Memcached vs. Redis San Francisco MySQL Meetup Ryan Lowe Erin O Neill 1 Databases WE LOVE THEM... Except when we don t 2 When Databases Rule Many access patterns on the same set of data Transactions
More informationTorndb Release 0.3 Aug 30, 2017
Torndb Release 0.3 Aug 30, 2017 Contents 1 Release history 3 1.1 Version 0.3, Jul 25 2014......................................... 3 1.2 Version 0.2, Dec 22 2013........................................
More informationTagalog Documentation
Tagalog Documentation Release 0.3.1 Government Digital Service July 09, 2014 Contents 1 Documentation index 3 1.1 Tagalog commands............................................ 3 1.2 tagalog Package.............................................
More informationdatastream Documentation
datastream Documentation Release 0.5.19 wlan slovenija Jul 31, 2017 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Usage...................................................
More informationpicrawler Documentation
picrawler Documentation Release 0.1.1 Ikuya Yamada October 07, 2013 CONTENTS 1 Installation 3 2 Getting Started 5 2.1 PiCloud Setup.............................................. 5 2.2 Basic Usage...............................................
More informationgoose3 Documentation Release maintainers
goose3 Documentation Release 3.1.6 maintainers Oct 20, 2018 Contents: 1 Goose3 API 1 1.1 Goose3.................................................. 1 1.2 Configuration...............................................
More informationMongoDB: Comparing WiredTiger In-Memory Engine to Redis. Jason Terpko DBA, Rackspace/ObjectRocket 1
MongoDB: Comparing WiredTiger In-Memory Engine to Redis Jason Terpko DBA, Rackspace/ObjectRocket www.linkedin.com/in/jterpko 1 Background Started out in relational databases in public education then financial
More informationredis-completion Documentation
redis-completion Documentation Release 0.4.0 charles leifer June 16, 2016 Contents 1 usage 3 1.1 Installing................................................. 3 1.2 Getting Started..............................................
More informationf5-icontrol-rest Documentation
f5-icontrol-rest Documentation Release 1.3.10 F5 Networks Aug 04, 2018 Contents 1 Overview 1 2 Installation 3 2.1 Using Pip................................................. 3 2.2 GitHub..................................................
More informationNoSQL Databases Analysis
NoSQL Databases Analysis Jeffrey Young Intro I chose to investigate Redis, MongoDB, and Neo4j. I chose Redis because I always read about Redis use and its extreme popularity yet I know little about it.
More informationpymonetdb Documentation
pymonetdb Documentation Release 1.0rc Gijs Molenaar June 14, 2016 Contents 1 The MonetDB MAPI and SQL client python API 3 1.1 Introduction............................................... 3 1.2 Installation................................................
More informationA short-term plan for Redis
A short-term plan for Redis @antirez - Pivotal Redis is made of pieces Transactions Replication Storage API Scripting Sentinel Pub/Sub CLI Cluster Persistence Networking Evolution Redis can be analyzed
More informationmprpc Documentation Release Studio Ousia
mprpc Documentation Release 0.1.13 Studio Ousia Apr 05, 2017 Contents 1 Introduction 3 1.1 Installation................................................ 3 1.2 Examples.................................................
More informationipython-gremlin Documentation
ipython-gremlin Documentation Release 0.0.4 David M. Brown Mar 16, 2017 Contents 1 Releases 3 2 Requirements 5 3 Dependencies 7 4 Installation 9 5 Getting Started 11 5.1 Contribute................................................
More informationZeroVM Package Manager Documentation
ZeroVM Package Manager Documentation Release 0.2.1 ZeroVM Team October 14, 2014 Contents 1 Introduction 3 1.1 Creating a ZeroVM Application..................................... 3 2 ZeroCloud Authentication
More informationcursesmenu Documentation
cursesmenu Documentation Release 0.5.0 Author March 04, 2016 Contents 1 Installation 3 2 Usage 5 2.1 Getting a selection............................................ 6 3 API Reference 7 3.1 CursesMenu
More informationVOFS Manual. Georgios Tsoukalas, ICCS June 28, 2009
VOFS Manual Georgios Tsoukalas, ICCS gtsouk@cslab.ece.ntua.gr June 28, 2009 1 Requirements Python 2.5 Fuse-2.7 and development files SQLite 3 Libc development files 2 Installation & Launch Unpack the archive.
More informationProxySQL Tools Documentation
ProxySQL Tools Documentation Release 0.3.12 TwinDB Development Team Dec 29, 2017 Contents 1 ProxySQL Tools 3 1.1 Features.................................................. 3 1.2 Credits..................................................
More informationjumpssh Documentation
jumpssh Documentation Release 1.0.1 Thibaud Castaing Dec 18, 2017 Contents 1 Introduction 1 2 Api reference 5 3 Changes 15 4 License 17 5 Indices and tables 19 Python Module Index 21 i ii CHAPTER 1 Introduction
More informationPython-RHEV Documentation
Python-RHEV Documentation Release 1.0-rc1.13 Geert Jansen August 15, 2016 Contents 1 Tutorial 3 1.1 Connecting to the API.......................................... 3 1.2 Resources and Collections........................................
More informationMyGeotab Python SDK Documentation
MyGeotab Python SDK Documentation Release 0.8.0 Aaron Toth Dec 13, 2018 Contents 1 Features 3 2 Usage 5 3 Installation 7 4 Documentation 9 5 Changes 11 5.1 0.8.0 (2018-06-18)............................................
More informationdjango-embed-video Documentation
django-embed-video Documentation Release 1.1.2-stable Juda Kaleta Nov 10, 2017 Contents 1 Installation & Setup 3 1.1 Installation................................................ 3 1.2 Setup...................................................
More informationBanzaiDB Documentation
BanzaiDB Documentation Release 0.3.0 Mitchell Stanton-Cook Jul 19, 2017 Contents 1 BanzaiDB documentation contents 3 2 Indices and tables 11 i ii BanzaiDB is a tool for pairing Microbial Genomics Next
More informationAIL Framework for Analysis of Information Leaks
AIL Framework for Analysis of Information Leaks Workshop - A generic analysis information leak open source software Sami Mokaddem sami.mokaddem@circl.lu Aurélien Thirion info@circl.lu July 2, 2018 2 of
More informationError code. Description of the circumstances under which the problem occurred. Less than 200. Linux system call error.
Error code Less than 200 Error code Error type Description of the circumstances under which the problem occurred Linux system call error. Explanation of possible causes Countermeasures 1001 CM_NO_MEMORY
More informationTSM Studio Dataview's and Dataview Commands. TSM Studio
TSM Studio Dataview's and Dataview Commands TSM Studio 2.9.0.0 1 Table of Contents... 1 Commands Common to All Dataview's... 12 Automation... 14 Admin Schedules... 14 Admin Schedules Time of Day Diagram...
More informationBASC-py4chan Documentation
BASC-py4chan Documentation Release 0.6.3 Antonizoon Overtwater Nov 25, 2018 Contents 1 General Documentation 3 1.1 Tutorial.................................................. 3 1.2 Changes from the original
More informationDistributed Systems. 29. Distributed Caching Paul Krzyzanowski. Rutgers University. Fall 2014
Distributed Systems 29. Distributed Caching Paul Krzyzanowski Rutgers University Fall 2014 December 5, 2014 2013 Paul Krzyzanowski 1 Caching Purpose of a cache Temporary storage to increase data access
More informationAPNs client Documentation
APNs client Documentation Release 0.2 beta Sardar Yumatov Aug 21, 2017 Contents 1 Requirements 3 2 Alternatives 5 3 Changelog 7 4 Support 9 4.1 Getting Started..............................................
More informationcertbot-dns-rfc2136 Documentation
certbot-dns-rfc2136 Documentation Release 0 Certbot Project Aug 29, 2018 Contents: 1 Named Arguments 3 2 Credentials 5 2.1 Sample BIND configuration....................................... 6 3 Examples
More informationManagement Tools. Management Tools. About the Management GUI. About the CLI. This chapter contains the following sections:
This chapter contains the following sections:, page 1 About the Management GUI, page 1 About the CLI, page 1 User Login Menu Options, page 2 Customizing the GUI and CLI Banners, page 3 REST API, page 3
More informationmsgpack Documentation
msgpack Documentation Release 0.4 Author 2017-11-04 Contents 1 API reference 3 Python Module Index 9 i ii MessagePack is a efficient format for inter language data exchange. Contents 1 2 Contents CHAPTER
More informationfreeze Documentation Release 0.7.0alpha Jean-Louis Fuchs
freeze Documentation Release 0.7.0alpha Jean-Louis Fuchs April 10, 2014 Contents i ii freeze.freeze(data_structure) Freeze tries to convert any data-structure in a hierarchy of tuples. freeze.object_to_items(data_structure)
More informationRelease Manu Phatak
cache r equestsdocumentation Release 4.0.0 Manu Phatak December 26, 2015 Contents 1 Contents: 1 1.1 cache_requests.............................................. 1 1.2 Installation................................................
More informationScalable Time Series in PCP. Lukas Berk
Scalable Time Series in PCP Lukas Berk Summary Problem Statement Proposed Solution Redis Basic Types Summary Current Work Future Work Items Problem Statement Scaling PCP s metrics querying to hundreds/thousands
More informationNiFpga Example Documentation
NiFpga Example Documentation Release 18.0.0 National Instruments Apr 03, 2018 User Documentation 1 About 3 2 Bugs / Feature Requests 5 2.1 Information to Include When Asking For Help.............................
More informationManaging IoT and Time Series Data with Amazon ElastiCache for Redis
Managing IoT and Time Series Data with ElastiCache for Redis Darin Briskman, ElastiCache Developer Outreach Michael Labib, Specialist Solutions Architect 2016, Web Services, Inc. or its Affiliates. All
More informationWatson - DB. Release 2.7.0
Watson - DB Release 2.7.0 Jan 15, 2018 Contents 1 Build Status 3 2 Dependencies 5 3 Installation 7 4 Testing 9 5 Contributing 11 6 Table of Contents 13 6.1 Usage...................................................
More informationpydrill Documentation
pydrill Documentation Release 0.3.4 Wojciech Nowak Apr 24, 2018 Contents 1 pydrill 3 1.1 Features.................................................. 3 1.2 Installation................................................
More informationTransbase R PHP Module
Transbase R PHP Module Transaction Software GmbH Willy-Brandt-Allee 2 D-81829 München Germany Phone: +49-89-62709-0 Fax: +49-89-62709-11 Email: info@transaction.de http://www.transaction.de Version 7.1.2.30
More informationAcknowledgments Introduction. Part I: Programming Access Applications 1. Chapter 1: Overview of Programming for Access 3
74029ftoc.qxd:WroxPro 9/27/07 1:40 PM Page xiii Acknowledgments Introduction x xxv Part I: Programming Access Applications 1 Chapter 1: Overview of Programming for Access 3 Writing Code for Access 3 The
More informationMemory may be insufficient. Memory may be insufficient.
Error code Less than 200 Error code Error type Description of the circumstances under which the problem occurred Linux system call error. Explanation of possible causes Countermeasures 1001 CM_NO_MEMORY
More informationJunebug Documentation
Junebug Documentation Release 0.0.5a Praekelt Foundation November 27, 2015 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Getting started..............................................
More information