Redis

by Redis Ltd.

Connect agents to Redis for caching, session storage, pub/sub messaging, and fast key-value data operations.

DatabasesFree / PaidBearer tokencachekey-valuepub-subin-memorydatabasequeue

How agents use Redis

  • Cache LLM responses to avoid redundant API calls and reduce costs
  • Maintain conversation state and session data across agent interactions
  • Implement rate limiting and usage tracking for AI workflows
  • Queue tasks between agent pipeline stages using Redis lists
  • Pub/sub event broadcasting between concurrent agent processes

Agent actions

Get ValueRetrieve the value associated with a key

Inputs: key

Returns: value, exists

Set ValueStore a key-value pair with optional expiration

Inputs: key, value, ttl, nx

Returns: success, previousValue

Delete KeyDelete one or more keys from Redis

Inputs: keys

Returns: deletedCount

Set ExpirationSet or update the TTL on an existing key

Inputs: key, ttl

Returns: success, ttlRemaining

Increment CounterAtomically increment or decrement a numeric value

Inputs: key, amount

Returns: newValue

Hash SetSet fields in a Redis hash (object-like structure)

Inputs: key, fields

Returns: addedFields

Hash GetGet fields from a Redis hash

Inputs: key, fields

Returns: data

List PushPush values onto a Redis list (queue/stack)

Inputs: key, values, side

Returns: listLength

List PopPop a value from a Redis list

Inputs: key, side, count

Returns: value, values

Publish MessagePublish a message to a Redis pub/sub channel

Inputs: channel, message

Returns: subscribers

Scan KeysScan for keys matching a pattern

Inputs: pattern, count

Returns: keys, total

Example workflows

  1. 1

    Session cache

    Store and retrieve user session data with automatic expiry

  2. 2

    Rate limiting

    Increment counters per user/IP with TTL for sliding window rate limits

About Redis

Vendor
Redis Ltd.
Pricing Always review details with the vendor
Free / Paid — Redis Community Edition is free and open-source. Redis Cloud offers a free 30MB tier; paid plans start at ~$7/month.
Authentication
Bearer token
Rate limit Always review details with the vendor
10000 requests / minute
Compatible nodes
AgentResourceInputOutput

Put Redis behind your AI agent

Add Redis alongside your other tools in the planner, without code, and map out how your AI agent works with it.

Open the planner →

Questions about Redis

Cache LLM responses to avoid redundant API calls and reduce costs Maintain conversation state and session data across agent interactions Implement rate limiting and usage tracking for AI workflows Queue tasks between agent pipeline stages using Redis lists Pub/sub event broadcasting between concurrent agent processes

Get Value, Set Value, Delete Key, Set Expiration, Increment Counter, Hash Set, Hash Get, List Push, List Pop, Publish Message, Scan Keys

You add Redis in the Fugentic planner, a no-code canvas for mapping out what your business does and which tools sit behind it. It shows how an AI agent would work with Redis. Try it free at fugentic.ai/solutions/agentic-planner.

Related Databases tools