Agentic Service Discovery

Resources

R

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

Session cache

Store and retrieve user session data with automatic expiry

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 / PaidRedis 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

Set up Redis alongside your other tools in the planner — no code — so AI can act on it for your customers.

Open the planner

Related Databases tools