Implement and review Redis in NitroCine for environment-based connection reuse, cache-aside reads, key naming, TTL policy, invalidation, distributed locks, seat holds, idempotency, and health checks. Use whenever Redis configuration, caching, coordination, or Redis incidents are involved.
Scanned 9/12/2026
Install to Claude Code
npx -y skills add HoangDuc1003/Cinema-booking --skill redis-integration --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Redis Integration?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangduc1003-redis-integration)More formats (shields.io, HTML) on the badges page.
---
name: redis-integration
description: Implement and review Redis in NitroCine for environment-based connection reuse, cache-aside reads, key naming, TTL policy, invalidation, distributed locks, seat holds, idempotency, and health checks. Use whenever Redis configuration, caching, coordination, or Redis incidents are involved.
---
# Integrate Redis Safely
1. Read the URL only from `REDIS_URL`; never print credentials or commit real environment files.
2. Reuse one client and one in-flight connection promise across warm serverless invocations.
3. Keep a central key factory and TTL policy. Prefix keys with `REDIS_KEY_PREFIX` and a schema version.
4. Implement cache-aside reads with JSON serialization, bounded TTLs, and graceful cache bypass when Redis is unavailable.
5. Invalidate after successful source-of-truth writes. Use `SCAN`, never blocking `KEYS`, for pattern invalidation.
6. Acquire locks with `SET key token NX PX ttl`; release only through a compare-and-delete Lua script.
7. Treat Redis locks as contention control, not the only correctness layer.
8. Give seat holds an explicit TTL and retain a durable uniqueness invariant in MongoDB.
9. Mark webhook events idempotent only after successful processing; use a short processing lock to prevent concurrent handlers.
10. Expose health without leaking the Redis URL.
Document every key, value shape, TTL, producer, consumer, and invalidation trigger. Test the Redis-down path as well as the happy path.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!