MayrosSkills Hub
Back to browse

redis-guide

ApiliumApiliumv1.0.34000
officialplatinum (7/8)Clean scan

Install

mayros skill install redis-guide
mayros skill install [email protected]

Redis caching, sessions, queues, pub/sub, rate limiting patterns

README

@apilium/redis-guide

Redis integration skill for Mayros -- caching, sessions, queues, pub/sub, rate limiting, and data structure patterns.

Installation

Copy this skill directory into your Mayros skills folder:

cp -r skills/redis-guide ~/.mayros/skills/redis-guide

Or install via the Mayros CLI:

mayros skill install @apilium/redis-guide

Prerequisites

Install Redis and redis-cli:

# macOS
brew install redis

# Ubuntu/Debian
sudo apt-get install redis-server

# Verify
redis-cli --version

Usage

Once configured, the agent can:

  • Caching: Cache-aside, write-through, write-behind patterns with TTL management
  • Sessions: Store and manage user sessions with automatic expiration
  • Rate limiting: Sliding window rate limiting with sorted sets
  • Distributed locks: Atomic lock acquisition with SET key value NX EX
  • Pub/Sub: Real-time messaging between services
  • Queues: Reliable queue patterns with BRPOPLPUSH
  • Data structures: Strings, hashes, lists, sets, sorted sets, streams
  • Monitoring: INFO, SLOWLOG, memory analysis, eviction policies

Example prompts

"Implement cache-aside pattern with Redis for user profiles"
"Set up rate limiting with Redis sorted sets"
"How do I implement a distributed lock in Redis?"
"Show me Redis pub/sub patterns for real-time notifications"
"What eviction policy should I use for my cache?"

Semantic Predicates

| Predicate | Scope | Description | |-----------|-------|-------------| | redis:pattern_applied | agent | Redis patterns applied by the agent | | redis:config_context | namespace | Redis configuration context for enrichment |

License

MIT

Versions

v1.0.3Feb 27, 2026
v1.0.2Feb 27, 2026
v1.0.1Feb 27, 2026
v1.0.0Feb 27, 2026

Comments

Sign in to leave a comment.

Loading comments...