---
title: "Cache"
description: "A simple Node.js page counter demonstrating how to use Redis caching with Specific."
---

**[Live Demo](https://cache-counter.spcf.app)**

Try it in your browser

**[Source Code](https://github.com/specific-dev/examples/tree/main/node-cache-counter)**

View on GitHub

<br />

![Cache service diagram](/images/examples/cache.png)

## Get started

**Coding agent**

Paste this prompt into Claude Code, Cursor, Codex, or whichever agent you use:

```text
Help me get started with Specific by following https://start.specific.dev, using the Cache example
```



Your agent installs the CLI, clones the example, runs it locally, and walks you through deploying.

**Manual**

1. **Install the CLI and clone**

    ```bash
    curl -fsSL https://specific.dev/install.sh | sh
    ```

    ```bash
    git clone https://github.com/specific-dev/examples.git
    cd examples/node-cache-counter
    npm install
    ```

2. **Start the development server**

    ```bash
    specific dev
    ```

    Open the URL shown in the output to see the counter increment on each visit.

3. **Deploy to production**

    ```bash
    specific deploy
    ```
