Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.
/ laravel-memcached Public archive

Memcached for Laravel, with persistent connection and sasl authentication support, compatible with aliyun osc.

Notifications You must be signed in to change notification settings

apollopy/laravel-memcached

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

laravel-memcached

Memcached for Laravel, with persistent connection and sasl authentication support, compatible with aliyun osc.

Installation

This service provider must be replace.

// config/app.php

'providers' => [
    // Illuminate\Cache\CacheServiceProvider::class,
    ApolloPY\Memcached\CacheServiceProvider::class,
]

edit the cache config

// config/cache.php

'memcached' => [
    'driver'  => 'memcached',
    'servers' => [
        [
            'host' => '127.0.0.1',
            'port' => 11211,
            'weight' => 100,
        ],
    ],
    'persistent_id' => 'you persistent id',
    'username' => 'you username',
    'password' => 'you password',
    'options'       => [ // optional
        Memcached::OPT_COMPRESSION     => false,
        Memcached::OPT_BINARY_PROTOCOL => true,
        ...
    ],
    'check_version' => false, // optional, default true
],

About

Memcached for Laravel, with persistent connection and sasl authentication support, compatible with aliyun osc.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages