Configure Cache Page

Select the data type and operation to perform.

Element Description

What do you want to call your endpoint?

Provide a meaningful name so that others can understand the connection. For example, if you are creating a database connection for adding new employee data, you may want to name it CreateEmployeeInDB. You can include English alphabetic characters, numbers, underscores, and dashes in the name. You cannot include the following:
  • Blank spaces (for example, My DB Connection)
  • Special characters (for example, #;83& or righ(t)now4)
  • Multibyte characters

Select data type

  • List: Stores an ordered sequence of elements.
  • Set: Stores an unordered collection of unique elements.
  • String: Stores a single value (for example, text, number, JSON blob, and serialized object).

Select operation

Select the operation to perform. The operations shown are based on the data type you selected.

List operations:
  • Prepend value(s) to list (LPUSH): Adds one or more values to the beginning (left side) of a list. Existing elements are shifted to the right. If the list doesn't exist, it is created automatically.
  • Pop first element (LPOP): Removes and returns the first element (leftmost element) from a list. If the list is empty or doesn't exist, the operation returns null (or an equivalent no value response).
  • Append value(s) to list (RPUSH): Appends one or more values to the tail end (right side) of a list. If the list doesn't exist, it is created automatically.
  • Pop last element (RPOP): Removes and returns the last tail element (rightmost element) from a list. If the list is empty or doesn't exist, it returns null (or an equivalent no value response).
  • Get list length (LLEN): Returns the number of elements currently stored in a list. The number of items in a list is counted. The list is not modified. If the list does not exist or is empty, 0 is returned.
  • Get list element by index (LINDEX): Retrieves a single element from a list stored in a key, without modifying the list.
  • Delete list key: Deletes the specified list and all the elements stored in that list. After the operation completes, the key no longer exists in the cache.
Set operations:
  • Add member(s) to set (SADD): Adds the specified members to the set stored at a given key. If the set does not already exist, it is created automatically. Sets contain unique values only, so duplicate members are ignored.
  • Get all set members (SMEMBERS): Returns all members contained in the set. Because sets are unordered collections, the returned members may appear in any order. If the key does not exist, an empty set is returned. This operation does not modify the set; it is a read-only operation.
  • Remove member(s) from set (SREM): Removes the specified members from the set. If a specified member is not present in the set, it is ignored. The number of members that were removed is returned. If the key does not exist, the operation has no impact and returns 0.
  • Delete set key: Deletes the set key and all members stored in that set. The memory associated with the set is freed. After deletion, the key no longer exists in the cache. The number of keys that were successfully removed is returned.
String operations:
  • Get data from cache: Retrieves the value stored for a specified key. The value returned is not modified. If the key does not exist, a key not found response is returned.
  • Set data into cache: Stores a value under a specified key in the cache. The key is created if it does not exist. The existing value is overwritten if the key already exists.
  • Delete data from cache: Removes a specified key and its associated value from the cache. After deletion, the key no longer exists. Subsequent attempts to retrieve the key return null (or a key not found response). If the key does not exist, the operation usually completes successfully and reports that no key was deleted.
  • Check if key exists (EXISTS): Determines whether a specified key is present in the cache. Input one or more keys. The number of those keys that currently exist is output. If a key exists, it is counted. If a key does not exist, it is not counted.
  • Set if absent with TTL (SET NX EX): Sets a key to a value only if the key does not already exist. A time-to-live (TTL) value is assigned to the key. The expiration time is in seconds.