050106 elysia cache tags
Tag-based cache invalidation for Elysia — 3-level tags (entity/domain/cross) via Redis Sets, cache-aside, invalidation chains, and signed URL caching.From its SKILL.md
npx -y skills add natuleadan/skills --skill 050106-elysia-cache-tagsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.2 KB, 260 tokens by cl100k_base, as published. Nobody here has run it
Elysia Cache Tags
When to use
When you need fine-grained cache invalidation beyond simple key-based TTL. Tags let you invalidate related cache entries in bulk.
References
| Topic | File |
|---|---|
| 3-level tag system | references/tag-levels.md |
| Cache-aside with tags | references/remember-with-tags.md |
| Invalidation chains | references/invalidation-chains.md |
| Signed URL caching | references/signed-url-cache.md |
Quick checklist
- Level 1: entity-specific tag (
cache:tags:{domain}:{entityId}) - Level 2: domain collection tag (
cache:tags:{domain}) - Level 3: cross-domain tag (
cache:tags:cross:{scope}) - Use
setWithTags(key, data, tags, ttl)when storing cached values - Use
invalidateTags([tag1, tag2, ...])to batch-invalidate - Tag sets TTL = 2x value TTL (ensures tags outlive their members)
- For signed URLs, cache the URL for 3500s (just under the 3600s expiry)
What ships with it: 7 files
6.7 KB alongside SKILL.md, 1 of them executable
evals/
- evals.json380 B
references/
- invalidation-chains.md1.7 KB
- remember-with-tags.md980 B
- signed-url-cache.md1000 B
- tag-levels.md1007 B
scripts/
- check-cache.pyruns1.2 KB
- metadata.json514 B