Socket
Book a DemoInstallSign in
Socket

@payloadcms/kv-redis

Package Overview
Dependencies
Maintainers
10
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payloadcms/kv-redis

Redis KV adapter for Payload

latest
Source
npmnpm
Version
3.70.0
Version published
Weekly downloads
841
-24.84%
Maintainers
10
Weekly downloads
 
Created
Source

Redis KV Adapter for Payload (beta)

This package provides a way to use Redis as a KV adapter with Payload.

Installation

pnpm add @payloadcms/kv-redis

Usage

import { redisKVAdapter } from '@payloadcms/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)

FAQs

Package last updated on 05 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts