mirror of
https://github.com/hanzo-apps/cms.git
synced 2026-10-30 14:47:33 +00:00
A version written into a manifest is written into every manifest that wants it, which is how eslint came to exist in a hundred and four forms across this estate and how a package came to resolve twice at run time. The catalog moves the number out of the manifest: a manifest names the package, the workspace names the version. Four are held below their latest because the newer release cannot be used, and the reason is recorded rather than the version alone: @noble/hashes 2 renamed every subpath the web3 stack imports, @splinetool/runtime 2 depends on a package that was never published, @dynamic-labs 5.4.1 the same, and react-resizable-panels 3 points its types condition at the bundle.
Redis KV Adapter for Payload (beta)
This package provides a way to use Redis as a KV adapter with Payload.
Installation
pnpm add @hanzo/cms-kv-redis
Usage
import { redisKVAdapter } from '@hanzo/cms-kv-redis'
export default buildConfig({
collections: [Media],
kv: redisKVAdapter({
// Redis connection URL. Defaults to process.env.REDIS_URL
redisURL: 'redis://localhost:6379',
// Optional prefix for Redis keys to isolate the store. Defaults to 'payload-kv'
keyPrefix: 'kv-storage',
}),
})
Then you can access the KV storage using payload.kv:
await payload.kv.set('key', { value: 1 })
const data = await payload.kv.get('key')
payload.logger.info(data)