PHP code example of phlib / config-pool
1. Go to this page and download the library: Download phlib/config-pool 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/ */
phlib / config-pool example snippets
$config = [
'server1' => ['hostname' => 'localhost', 'port' => 11211],
'server2' => ['hostname' => 'localhost', 'port' => 11212],
'server3' => ['hostname' => 'localhost', 'port' => 11213],
];
$pool = new ConfigPool($config);
var_dump($pool->getConfigList('some key', 2));