Class Redis::Distributed
In: lib/redis/distributed.rb
Parent: Object

Methods

[]   []=   add_node   append   bgsave   blpop   brpop   brpoplpush   dbsize   decr   decrby   del   discard   echo   ensure_same_node   exec   exists   expire   expireat   flushall   flushdb   get   getbit   getrange   getset   hdel   hexists   hget   hgetall   hincrby   hkeys   hlen   hmget   hmset   hset   hsetnx   hvals   incr   incrby   info   inspect   key_tag   keys   lastsave   lindex   llen   lpop   lpush   lrange   lrem   lset   ltrim   mapped_hmget   mapped_hmset   mapped_mget   mapped_mset   mapped_msetnx   mget   monitor   move   mset   msetnx   multi   new   node_for   node_index_for   nodes   on_each_node   persist   ping   pipelined   psubscribe   publish   punsubscribe   quit   randomkey   rename   renamenx   rpop   rpoplpush   rpush   sadd   save   scard   sdiff   sdiffstore   select   set   setbit   setex   setnx   setrange   sinter   sinterstore   sismember   smembers   smove   sort   spop   srandmember   srem   subscribe   subscribed?   substr   sunion   sunionstore   ttl   type   unsubscribe   unwatch   watch   zadd   zcard   zincrby   zinterstore   zrange   zrangebyscore   zrank   zrem   zremrangebyrank   zremrangebyscore   zrevrange   zrevrangebyscore   zrevrank   zscore   zunionstore  

Classes and Modules

Class Redis::Distributed::CannotDistribute

Attributes

ring  [R] 

Public Class methods

Public Instance methods

Append a value to a key.

Asynchronously save the dataset to disk.

Remove and get the first element in a list, or block until one is available.

Remove and get the last element in a list, or block until one is available.

Pop a value from a list, push it to another list and return it; or block until one is available.

Return the number of keys in the selected database.

Decrement the integer value of a key by one.

Decrement the integer value of a key by the given number.

Delete a key.

Discard all commands issued after MULTI.

Echo the given string.

Execute all commands issued after MULTI.

Determine if a key exists.

Set a key‘s time to live in seconds.

Set the expiration for a key as a UNIX timestamp.

Remove all keys from all databases.

Remove all keys from the current database.

Get the value of a key.

Returns the bit value at offset in the string value stored at key.

Get a substring of the string stored at a key.

Set the string value of a key and return its old value.

Delete a hash field.

Determine if a hash field exists.

Get the value of a hash field.

Get all the fields and values in a hash.

Increment the integer value of a hash field by the given number.

Get all the fields in a hash.

Get the number of fields in a hash.

Get the values of all the given hash fields.

Set multiple hash fields to multiple values.

Set the string value of a hash field.

Set the value of a hash field, only if the field does not exist.

Get all the values in a hash.

Increment the integer value of a key by one.

Increment the integer value of a key by the given number.

Get information and statistics about the server.

Find all keys matching the given pattern.

Get the UNIX time stamp of the last successful save to disk.

Get an element from a list by its index.

Get the length of a list.

Remove and get the first element in a list.

Prepend a value to a list.

Get a range of elements from a list.

Remove elements from a list.

Set the value of an element in a list by its index.

Trim a list to the specified range.

Get the values of all the given keys.

Listen for all requests received by the server in real time.

Move a key to another database.

Set multiple keys to multiple values.

Set multiple keys to multiple values, only if none of the keys exist.

Mark the start of a transaction block.

Remove the expiration from a key.

Ping the server.

Listen for messages published to channels matching the given patterns.

Post a message to a channel.

Stop listening for messages posted to channels matching the given patterns.

Close the connection.

Return a random key from the keyspace.

Rename a key, only if the new key does not exist.

Remove and get the last element in a list.

Remove the last element in a list, append it to another list and return it.

Append a value to a list.

Add a member to a set.

Synchronously save the dataset to disk.

Get the number of members in a set.

Subtract multiple sets.

Subtract multiple sets and store the resulting set in a key.

Change the selected database for the current connection.

Set the string value of a key.

Sets or clears the bit at offset in the string value stored at key.

Set the value and expiration of a key.

Set the value of a key, only if the key does not exist.

Overwrite part of a string at key starting at the specified offset.

Intersect multiple sets.

Intersect multiple sets and store the resulting set in a key.

Determine if a given value is a member of a set.

Get all the members in a set.

Move a member from one set to another.

Sort the elements in a list, set or sorted set.

Remove and return a random member from a set.

Get a random member from a set.

Remove a member from a set.

Listen for messages published to the given channels.

Add multiple sets.

Add multiple sets and store the resulting set in a key.

Get the time to live for a key.

Determine the type stored at key.

Stop listening for messages posted to the given channels.

Forget about all watched keys.

Watch the given keys to determine execution of the MULTI/EXEC block.

Add a member to a sorted set, or update its score if it already exists.

Get the number of members in a sorted set.

Increment the score of a member in a sorted set.

Intersect multiple sorted sets and store the resulting sorted set in a new key.

Return a range of members in a sorted set, by index.

Return a range of members in a sorted set, by score.

Determine the index of a member in a sorted set.

Remove a member from a sorted set.

Remove all members in a sorted set within the given indexes.

Remove all members in a sorted set within the given scores.

Return a range of members in a sorted set, by index, with scores ordered from high to low.

Return a range of members in a sorted set, by score, with scores ordered from high to low.

Determine the index of a member in a sorted set, with scores ordered from high to low.

Get the score associated with the given member in a sorted set.

Add multiple sorted sets and store the resulting sorted set in a new key.

Protected Instance methods

[Validate]