# Redis

> In-memory data store.

- **Type:** Skill
- **Install:** `agentstack add skill-dhaupin-vant-vant-skill-redis`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [dhaupin](https://agentstack.voostack.com/s/dhaupin)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [dhaupin](https://github.com/dhaupin)
- **Source:** https://github.com/dhaupin/vant/tree/main/models/public/skills/vant-skill-redis
- **Website:** https://vant.creadev.org

## Install

```sh
agentstack add skill-dhaupin-vant-vant-skill-redis
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Redis

> In-memory data store.

---

## When To Use

- Caching
- Sessions
- Real-time
- Rate limiting

---

## What To Do

### 1. Connect

```javascript
import { createClient } from 'redis'

const client = createClient({
  url: 'redis://localhost:6379'
})
await client.connect()
```

### 2. Operations

| Command | What |
|---------|------|
| get/set | String values |
| hget/hset | Hash values |
| lpush/lrange | Lists |
| sadd/smembers | Sets |
| publish | Pub/sub |

### 3. Patterns

```javascript
// Cache
await client.set('user:1', JSON.stringify(user))
const user = JSON.parse(await client.get('user:1'))

// Session
await client.setex(`sess:${id}`, 3600, data)

// Rate limit
const count = await client.incr(`ratelimit:${key}`)
```

### 4. Use Cases

| Use | Benefit |
|-----|----------|
| Cache DB | Speed |
| Session store | Speed |
| Pub/Sub | Real-time |
| Rate limit | Security |

---

## Output

```
## Redis

| Key | Type | TTL |
|-----|------|-----|
| user:1 | string | [n]s |

### operations
- [n] total
```

---

**Role**: Redis Operator  
**Input**: Keys, values  
**Output**: Fast data

> In-memory speed.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [dhaupin](https://github.com/dhaupin)
- **Source:** [dhaupin/vant](https://github.com/dhaupin/vant)
- **License:** MIT
- **Homepage:** https://vant.creadev.org

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-dhaupin-vant-vant-skill-redis
- Seller: https://agentstack.voostack.com/s/dhaupin
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
