Skip to content
Back to skills

Api Cache Analyzer

ASecurity

Analyzes Redis cache performance including hit rates, key distribution, memory usage, TTL patterns, and tenant isolation compliance

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
testingbashapiperformance

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill api-cache-analyzer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Cache Analyzer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Cache Analyzer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-api-cache-analyzer/badge)](https://www.skillsdirectory.com/skills/david-li0406-api-cache-analyzer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-cache-analyzer
description: Analyzes Redis cache performance including hit rates, key distribution, memory usage, TTL patterns, and tenant isolation compliance
allowed-tools:
  - Bash
  - Grep
  - Read
---

## Purpose

Analyzes Redis cache performance including hit rates, key distribution, memory usage, TTL patterns, and invalidation effectiveness.

## Responsibilities

1. **Performance Analysis**
   - Calculate cache hit/miss rates
   - Identify frequently accessed keys
   - Measure cache response times
   - Track cache effectiveness

2. **Memory Analysis**
   - Check total memory usage
   - Identify large keys
   - Check key expiration patterns
   - Find keys without TTL

3. **Tenant Analysis**
   - Verify tenant prefix compliance
   - Check for cross-tenant key collisions
   - Analyze per-tenant cache usage
   - Identify tenants with high cache usage

4. **Invalidation Analysis**
   - Track cache invalidation patterns
   - Identify stale data
   - Check invalidation effectiveness
   - Find invalidation bugs

## Metrics Tracked

### Performance Metrics

- `cache.hit_rate` - Cache hit percentage
- `cache.miss_rate` - Cache miss percentage
- `cache.avg_response_time` - Average cache operation time
- `cache.ops_per_second` - Operations per second

### Memory Metrics

- `cache.memory_used` - Total memory used
- `cache.memory_total` - Total memory available
- `cache.key_count` - Total number of keys
- `cache.avg_key_size` - Average key size

### Tenant Metrics

- `cache.tenant_key_count` - Keys per tenant
- `cache.tenant_memory` - Memory per tenant
- `cache.tenant_hit_rate` - Hit rate per tenant

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…