---
title: "openvibe-sdk/valkey · OpenVibe.Services"
canonical: "https://openvibe.services/docs/sdk/valkey"
updated: null
---

# openvibe-sdk/valkey · OpenVibe.Services

HTML: [openvibe-sdk/valkey · OpenVibe.Services](https://openvibe.services/docs/sdk/valkey)

# `openvibe-sdk/valkey`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

From `types/valkey.d.ts` (server only). Declarations are shown verbatim.

## interface Valkey

openvibe-sdk/valkey — the shared Valkey connection, confined to the service prefix (ADR-035).

~~~~
export interface Valkey {
    /** The iovalkey client (auto-pipelined). */
    client: any;
    prefix: string;
    /** The full key or channel name inside the prefix. */
    key(...parts: string[]): string;
    duplicate(): any;
    ready(): Promise<{ ok: true; detail: { store: 'valkey' } } | { ok: false; error: string }>;
    close(): Promise<void>;
}
~~~~

## export export function createValkey(opts?: { url?: string; prefix?:

null when no URL is configured (the cache, limits, queue and pubsub modules then run in-process).

~~~~
export function createValkey(opts?: { url?: string; prefix?: string; lazyConnect?: boolean; log?: { warn(msg: string): void }; client?: any }): Valkey | null;
~~~~
