Install via composer
composer require tasofen/allkeys-memcached
require 'vendor/autoload.php';
$m = new tasofen\FixMemcached();
$m->addServer('127.0.0.1', 11211);
$m->set('key-1', 'value-1');
$m->set('key-2', 'value-2');
print_r($m->getAllKeys());
composer require tasofen/allkeys-memcached
require 'vendor/autoload.php';
$m = new tasofen\FixMemcached();
$m->addServer('127.0.0.1', 11211);
$m->set('key-1', 'value-1');
$m->set('key-2', 'value-2');
print_r($m->getAllKeys());