PHP code example of geometria-lab / rediska
1. Go to this page and download the library: Download geometria-lab/rediska 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/ */
geometria-lab / rediska example snippets
$options = array(
'namespace' => 'Application_',
'servers' => array(
array('host' => '127.0.0.1', 'port' => 6379),
array('host' => '127.0.0.1', 'port' => 6380)
)
);
// Set 'value' to key 'keyName'
$key = new Rediska_Key('keyName');
$key->setValue('value');