Redis

Actions:

  • Del - Removes the specified keys. A key is ignored if it does not exist.
  • Expire - Set a timeout on key. After the timeout has expired, the key will automatically be deleted.
  • Get - 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.
  • Hdel - Removes the specified fields from the hash stored at key. Specified fields that do not exist within this hash are ignored. If key does not exist, it is treated as an empty hash and this command returns 0.
  • Hget - Returns the value associated with field in the hash stored at key.
  • Hincrby - Increments the number stored at field in the hash stored at key by increment. If key does not exist, a new key holding a hash is created. If field does not exist the value is set to 0 before the operation is performed.
  • Hset - Sets field in the hash stored at key to value. If key does not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.
  • Incr - 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.
  • Incrby - Increments the number stored at key by increment. 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.
  • Persist - 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).
  • Pexpire - This command works exactly like EXPIRE but the time to live of the key is specified in milliseconds instead of seconds.
  • Set - 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.
  • Setex - Set key to hold the string value and set key to timeout after a given number of seconds.
  • Setnx - Set key to hold string value if key does not exist. In that case, it is equal to SET. When key already holds a value, no operation is performed. SETNX is short for "SET if Not eXists".
  • Strlen - Returns the length of the string value stored at key. An error is returned when key holds a non-string value.