Cache connections

Caches are used to store data returned from a data source to improve API call performance. Currently, Xapix supports two types of cache connections:

Type

Description

Redis

Open source in-memory data structure store used as a database, cache and message broker. For more information, see here.

Memcached

Open source distributed memory object caching system that takes unused memory in a system and makes it accessible to areas in need of memory. For more information, see here.

After creating a cache connection, you can share this resource within an organization.

Creating a Redis connection

To create a Redis connection, follow these steps.

Steps
Steps
  1. In a project, select Home > Cache Connections > New Cache Connection.

  2. Select Redis.

  3. In the Create new Redis connection form, enter the following:

    1. Name: Give the connection a descriptive name.

    2. URI: Enter the URI that points to an existing Redis system.

  4. Click Create.

  5. A list of existing Cache Connections will appear.

  6. Dismiss the confirmation dialog.

Example
Example
Create a new Redis connection

Creating a Memcached connection

To create a Memchached connection, follow these steps.

Steps
Steps
  1. In a project, select Home > Cache Connections > New Cache Connection.

  2. Select Memcached.

  3. In the Create new memcahced connection form, enter the following:

    1. Name: Give the connection a descriptive name.

    2. Hostnames: Enter the hostname and port number of an existing memcached system.

  4. Click Create Cache Connection.

  5. A list of existing Cache Connections will appear.

  6. Dismiss the confirmation dialog.

When adding multiple hostnames, insert commas between each entry.

Example
Example
Create a new memcached connection