PHP code example of cedricziel / l5-memcached-noversion

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

    

cedricziel / l5-memcached-noversion example snippets


  CedricZiel\MemcachedNoVersion\MemcachedNoversionServiceProvider::class,

        'memcached' => [
            'driver' => 'memcached',
            'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
            'sasl' => [
                env('MEMCACHED_USERNAME'),
                env('MEMCACHED_PASSWORD'),
            ],
            'options' => [
                // Memcached::OPT_CONNECT_TIMEOUT  => 2000,
            ],
            'servers' => [
                [
                    'host' => env('MEMCACHE_PORT_11211_TCP_ADDR', '127.0.0.1'),
                    'port' => env('MEMCACHE_PORT_11211_TCP_PORT', 11211),
                    'weight' => 100,
                ],
            ],
        ],