caching
Caching with @adonisjs/cache (keys, tags, invalidation). Use when adding or debugging cache behavior.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Caching with @adonisjs/cache (keys, tags, invalidation). Use when adding or debugging cache behavior.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run, write, and troubleshoot Japa browser tests that use Playwright; use when you add or change frontend functionality that should be covered by tests
Writing documentation. Use when key functionality is added or changed
Lucid models/migrations conventions and safe workflows. Use when changing schema or models.
Frontend rules and React Router conventions. Use when working with frontend-related tasks.
Background job conventions (BullMQ via @rlanz/bull-queue). Use when adding or editing jobs.
AdonisJS service patterns (creation, registration, components). Use when adding or modifying services.
| name | caching |
| description | Caching with @adonisjs/cache (keys, tags, invalidation). Use when adding or debugging cache behavior. |
@adonisjs/cache package: import cache from "@adonisjs/cache/services/main"const result = await cache.getOrSet({
key: `<unique cache key for item>`,
factory: async () => {
// perform the operation here and return its result
},
})
node ace cache:clearawait cache.getOrSet({
key: 'foo',
factory: getFromDb(),
tags: ['tag-1', 'tag-2'],
})
await cache.deleteByTags({ tags: ['tag-1'] })
import { safeCacheOperation } from '#services/cache' for bubling up the actual exception.