PHP code example of withgod / laravel-extended-memcachedstore
1. Go to this page and download the library: Download withgod/laravel-extended-memcachedstore 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/ */
withgod / laravel-extended-memcachedstore example snippets
'ememcached' => [
'driver' => 'ememcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID', 'memcached'),
'options' => [
Memcached::OPT_DISTRIBUTION => Memcached::DISTRIBUTION_CONSISTENT,
Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
//Memcached::OPT_SERIALIZER => Memcached::SERIALIZER_IGBINARY,
//Memcached::OPT_BINARY_PROTOCOL => true,
//Memcached::OPT_TCP_NODELAY => true, # https://github.com/php-memcached-dev/php-memcached/issues/400
],
'servers' => [
[
'host' => env('MEMCACHED_HOST', 'memcached'),
'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100,
],
],
],