PHPackages                             spiral/roadrunner-kv - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. spiral/roadrunner-kv

ActiveLibrary[Caching](/categories/caching)

spiral/roadrunner-kv
====================

RoadRunner kv plugin bridge

v4.3.1(1y ago)103.1M↓19.4%311MITPHPPHP &gt;=8.1CI passing

Since Jun 17Pushed 1y ago5 watchersCompare

[ Source](https://github.com/roadrunner-php/kv)[ Packagist](https://packagist.org/packages/spiral/roadrunner-kv)[ Docs](https://roadrunner.dev/)[ GitHub Sponsors](https://github.com/sponsors/roadrunner-server)[ RSS](/packages/spiral-roadrunner-kv/feed)WikiDiscussions 4.x Synced 1mo ago

READMEChangelog (9)Dependencies (8)Versions (13)Used By (11)

[   ![](https://github.com/roadrunner-server/.github/assets/8040338/040fb694-1dd3-4865-9d29-8e0748c2c8b8) ](https://roadrunner.dev)RoadRunner KV Plugin Bridge
===========================

[](#roadrunner-kv-plugin-bridge)

[![PHP Version Require](https://camo.githubusercontent.com/075bd3ac6135c6ccca15438b76965e6d73d661bc1786d522b0bf5e1bb3434f15/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f726f616472756e6e65722d6b762f726571756972652f706870)](https://packagist.org/packages/spiral/roadrunner-kv)[![Latest Stable Version](https://camo.githubusercontent.com/fbbeb17b3a3dad99d844ac97724de00d2b73b26153902e54f399a2e8cbe1538d/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f726f616472756e6e65722d6b762f762f737461626c65)](https://packagist.org/packages/spiral/roadrunner-kv)[![phpunit](https://github.com/spiral/roadrunner-kv/actions/workflows/phpunit.yml/badge.svg)](https://github.com/spiral/roadrunner-kv/actions)[![psalm](https://github.com/spiral/roadrunner-kv/actions/workflows/psalm.yml/badge.svg)](https://github.com/spiral/roadrunner-kv/actions)[![Total Downloads](https://camo.githubusercontent.com/2e3bdb000a65581e025777ae25900830aab9ec259386820fb3251798359a4860/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f726f616472756e6e65722d6b762f646f776e6c6f616473)](https://packagist.org/packages/spiral/roadrunner-kv)

**[Documentation](https://docs.roadrunner.dev/key-value/overview-kv)** | [Framework Bundle](https://github.com/spiral/framework)

This repository contains the codebase PSR-16 PHP cache bridge using kv RoadRunner plugin.

Installation
------------

[](#installation)

To install application server and KV codebase

```
composer require spiral/roadrunner-kv
```

You can use the convenient installer to download the latest available compatible version of RoadRunner server:

```
composer require spiral/roadrunner-cli --dev
vendor/bin/rr get
```

Usage
-----

[](#usage)

First you need to add at least one kv plugin to your roadrunner configuration. For example, such a configuration would be quite feasible to run:

```
rpc:
  listen: tcp://127.0.0.1:6001

kv:
  test:
    driver: memory
    config:
        interval: 10
```

> **Note**Read more about all available drivers on the [documentation](https://docs.roadrunner.dev) page.

After starting the server with this configuration, one driver named "`test`" will be available to you.

The following code will allow writing and reading an arbitrary value from the RoadRunner server.

```
