Redis Actions

  • Redis - (hash) - add/set

    Set the specified hash field to the specified value. If key does not exist, a new key holding a hash is created.

  • Redis - (hash) - get value

    If key holds a hash, retrieve the value associated to the specified field. If the field is not found or the key does not exist, a special 'nil' value is returned.

  • Redis - (key) - life expectancy

    Returns the remaining time to live of a key that has a timeout. This introspection capability allows a Redis client to check how many seconds a given key will continue to be part of the dataset.

  • Redis - (key) - remove timeout

    Remove the existing timeout on key, turning the key from volatile (a key with an expire set) to persistent (a key that will never expire as no timeout is associated).

  • Redis - (key) - set timeout

    Set a timeout on the specified key. After the timeout the key will be automatically deleted by the server. A key with an associated timeout is said to be volatile in Redis terminology.

  • Redis - (key) - set timeout (Unix format)

    ExpireAt works exactly like Expire but instead to get the number of seconds representing the Time To Live of the key as a second argument (that is a relative way of specifing the TTL), it takes an absolute one in the form of a UNIX timestamp (Number of seconds elapsed since 1 Gen 1970).

  • Redis - (set) - add member

    Add the specified members to the set stored at key. Specified members that are already a member of this set are ignored. If key does not exist, a new set is created before adding the specified members.

  • Redis - (set) - add multiple members

    Add the specified members to the set stored at key. Members that are already a member of this set are ignored. If key does not exist, a new set is created before adding the specified members.

  • Redis - (set) - pop

    Removes and returns one or more random elements from the set value store at key.

  • Redis - (sorted set) - add member

    Adds all the specified members with the specified scores to the sorted set stored at key. It is possible to specify multiple score / member pairs. If a specified member is already a member of the sorted set, the score is updated and the element reinserted at the right position to ensure the correct ordering.

  • Redis - (sorted set) - get range

    Returns the specified range of elements in the sorted set stored at key. The elements are considered to be ordered from the lowest to the highest score.

  • Redis - (string) - append

    If key already exists and is a string, this command appends the value at the end of the string. If key does not exist it is created and set as an empty string, so APPEND will be similar to SET in this special case.

  • Redis - (string) - decrement by 1

    Decrements the number stored at key by one. If the key does not exist, it is set to 0 before performing the operation. An error is returned if the key contains a value of the wrong type or contains a string that can not be represented as integer. This operation is limited to 64 bit signed integers.

  • Redis - (string) - get substring by index

    Returns the substring of the string value stored at key, determined by the offsets start and end (both are inclusive). Negative offsets can be used in order to provide an offset starting from the end of the string. So -1 means the last character, -2 the penultimate and so forth.

  • Redis - (string) - get value

    Get the value of key. If the key does not exist the special value nil is returned. An error is returned if the value stored at key is not a string, because GET only handles string values.

  • Redis - (string) - increment by 1

    Increments the number stored at key by one. If the key does not exist, it is set to 0 before performing the operation. An error is returned if the key contains a value of the wrong type or contains a string that can not be represented as integer.

  • Redis - (string) - set value

    Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type. Any previous time to live associated with the key is discarded on successful SET operation.