PHP code example of yakeing / php_saekv

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

    

yakeing / php_saekv example snippets


    $kv = new SaeKV(3000);
    $ret = $kv->init("accesskey");

      $kv->set('kev','value');

    $kv->add('kev','value');

    $kv->get('kev');

    $kv->delete('kev');

    $ret = $kv->replace('abc', 'cccccc');

    $keys = array();
    array_push($keys, 'abc1');
    array_push($keys, 'abc2');
    array_push($keys, 'abc3');
    $ret = $kv->mget($keys);

    $ret = $kv->pkrget('abc', 3);

    $ret = $kv->pkrget('');

    $opts = $kv->get_options();

    $opts = array('encodekey' => 0);
    $ret = $kv->set_options($opts);

    $ composer