Application Cache Provider

The CApplicationCache provider stores data on the server side using the memory space of the Node application/Nitro server. It is exclusively for server-side operations and persists until the server restarts.

Note: Server-side caches use the memory of the server they are running on. They may not work as expected in a stateless environment.

CApplicationCache Example

Application Cache is ideal for global server-side data (such as main page product lists or category trees) that should be shared across all visitors on the Node.js server. It persists until expiration or server restart, and is never hydrated to the client.