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

Methods

[]   []=   _bpop   _eval   add_node   append   bgsave   bitcount   bitop   blpop   brpop   brpoplpush   dbsize   decr   decrby   del   discard   dump   echo   ensure_same_node   eval   evalsha   exec   exists   expire   expireat   flushall   flushdb   get   getbit   getrange   getset   hdel   hexists   hget   hgetall   hincrby   hincrbyfloat   hkeys   hlen   hmget   hmset   hset   hsetnx   hvals   incr   incrby   incrbyfloat   info   inspect   key_tag   keys   lastsave   lindex   linsert   llen   lpop   lpush   lpushx   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   pexpire   pexpireat   ping   pipelined   psetex   psubscribe   pttl   publish   punsubscribe   quit   randomkey   rename   renamenx   restore   rpop   rpoplpush   rpush   rpushx   sadd   save   scard   script   sdiff   sdiffstore   select   set   setbit   setex   setnx   setrange   sinter   sinterstore   sismember   smembers   smove   sort   spop   srandmember   srem   strlen   subscribe   subscribed?   sunion   sunionstore   time   ttl   type   unsubscribe   unwatch   watch   zadd   zcard   zcount   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.

Count the number of set bits in a range of the string value stored at key.

Perform a bitwise operation between strings and store the resulting string in a key.

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.

Return a serialized version of the value stored at a key.

Echo the given string.

Evaluate Lua script.

Evaluate Lua script by its SHA.

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 one or more hash fields.

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 integer number.

Increment the numeric value of a hash field by the given float 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 integer number.

Increment the numeric value of a key by the given float 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.

Insert an element before or after another element in a list.

Get the length of a list.

Remove and get the first element in a list.

Prepend one or more values to a list.

Prepend a value to a list, only if the list exists.

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.

Set a key‘s time to live in milliseconds.

Set the expiration for a key as number of milliseconds from UNIX Epoch.

Ping the server.

Set the time to live in milliseconds of a key.

Listen for messages published to channels matching the given patterns.

Get the time to live (in milliseconds) for a key.

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.

Create a key using the serialized value, previously obtained using DUMP.

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 one or more values to a list.

Append a value to a list, only if the list exists.

Add one or more members to a set.

Synchronously save the dataset to disk.

Get the number of members in a set.

Control remote script registry.

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 time to live in seconds 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 one or more members from a set.

Get the length of the value stored in a key.

Listen for messages published to the given channels.

Add multiple sets.

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

Get server time: an UNIX timestamp and the elapsed microseconds in the current second.

Get the time to live (in seconds) 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 one or more members to a sorted set, or update the score for members that already exist.

Get the number of members in a sorted set.

Get the number of members in a particular score range.

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 one or more members 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]