@kon10/cache
v1.5.0
Published
Kon10 cache — CacheAdapter implementations (in-memory, Redis).
Downloads
72
Maintainers
Readme
@kon10/cache
Cache adapter implementations and helpers for Kon10 modules.
Install
pnpm add @kon10/cacheWhen to use this package
Use @kon10/cache when your Kon10 config needs cache adapter implementations and helpers for Kon10 modules.
Public API
The primary entrypoint is CacheModule. See src/index.ts for the complete export surface, including types, helpers, and any Studio extension entrypoints.
Example
import { CacheModule, redisCache } from '@kon10/cache'
CacheModule({
adapter: redisCache({ url: process.env.REDIS_URL! }),
})Operational notes
- Use
inMemoryCache()only for tests, local development, or single-instance deployments. - Keep module-specific UI behind the
./studioexport when present. - Prefer typed field builders and module factories over ad-hoc entity objects.
