PHP code example of spiral / roadrunner-kv

1. Go to this page and download the library: Download spiral/roadrunner-kv library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

spiral / roadrunner-kv example snippets




use Spiral\Goridge\RPC\RPC;
use Spiral\RoadRunner\KeyValue\Factory;

ctory->select('test');

// After that you can write and read arbitrary values:

$cache->set('key', 'value');

echo $cache->get('key'); // string(5) "value"