Cache JavaScript SDK

Cache is a CloudScale component, that can expertly handler small storage of data to facilitate retrieval of actively used data. Cache is best suited to handle your applications ephemera data or frequently accessed information. Cache actively reduces load on primary databases in memory-intensive real-time applications or microservices that demand sub-millisecond responses.

Catalyst Cache is divided into cache units called segments. Each segment holds cache items (data) in the form of JSON key value pairs. The key and value are of the String data type.

The Cache JavaScript SDK package enables you to perform CRUD operations on the data stored in Cache. You can retrieve data, insert data, update and delete data from the Cache component through code.

Prerequisites

You need to install the following package to use the Cache SDK methods.

copy
$
npm install @zcatalyst/cache
Info: Ensure that you have applied the required authentication configuration to use the SDK methods of this component.

Import Requirement

You will need to import the following module to use the Cache SDK methods.

copy
const { Cache } = require('@zcatalyst/cache');

List of SDK Methods

The following table contains the list of SDK methods that can be used to perform operations in Cache through code.

Category SDK Method Required Scope
General Operations No requirement
Cache Operations Admin

Last Updated 2026-07-02 14:51:41 +0530 IST