ripples-alive / Memcached-sasl by Ripples

Custom cache extension of memcached sasl for laravel5, support aliyun ocs.
51
2
1
Package Data
Maintainer Username: Ripples
Maintainer Contact: w@q2zy.com (Ripples)
Package Create Date: 2015-08-23
Package Last Update: 2015-10-09
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-03-24 03:00:14
Package Statistics
Total Downloads: 51
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 1
Total Forks: 1
Total Open Issues: 0

Memcached SASL extension for Laravel5

This is a custom cache extension of memcached sasl for laravel5, especially for aliyun ocs.

Installation

This package can be installed through composer.

composer require ripples/memcached-sasl

Usage

In order to use the extension, the service provider must be registered.

// bootstrap/app.php
$app->register(Ripples\Memcached\MemcachedSaslServiceProvider::class);

Finally, add a store to you config file cache.php and update cache driver to memcached_sasl.

return [
    'default' => 'memcached_sasl',

    'stores' => [
        'memcached_sasl' => [
            'driver' => 'memcached_sasl',
            'servers' => [
                [
                    'host' => env('MEMCACHED_HOST', '127.0.0.1'),
                    'port' => env('MEMCACHED_PORT', 11211),
                    'weight' => 100
                ]
            ],
            'auth' => [
                'username' => env('MEMCACHED_USERNAME', ''),
                'password' => env('MEMCACHED_PASSWORD', '')
            ]
        ],
    ]
]

LICENSE

MIT