PHP code example of clivern / memcached

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

    

clivern / memcached example snippets


composer 

$memcache = new \Clivern\Memcached\MemcachedClient('127.0.0.1', 11211);
$memcache->add('test_memcache', 'test');
var_dump($memcache->get('test_memcache'));

Drop PHP 7.2 support.