PHP code example of rediska / rediska

1. Go to this page and download the library: Download rediska/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/ */

    

rediska / 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');