2017 © Pedro Peláez
 

library laravel-multi-memcached

Extract multiple memcached server configuration from .env file

image

fsavina/laravel-multi-memcached

Extract multiple memcached server configuration from .env file

  • Monday, March 5, 2018
  • by fsavina
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,053 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 60 % Grown

The README.md

laravel-multi-memcached

Latest Stable Version Total Downloads License, (*1)

Use multiple Memcached servers in your Laravel project directly from your .env file., (*2)

Installation

Install the package in your project, (*3)

$ composer require fsavina/laravel-multi-memcached

Usage

In your config/cache.php file, change to Memcached server configuration calling the provided helper function laravel_memcached_servers:, (*4)

'memcached' => [
  'driver' => 'memcached',
  'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
  [...]
  'servers' => laravel_memcached_servers ()
]

Configuration

In your .env file add the following variables:, (*5)


#comma-separated list of Memcached servers MEMCACHED_HOST=my.first.memcached.server.com@100,my.second.memcached.server.com:11222@90 #optional - default Memcached port MEMCACHED_PORT=11211

For every provided server you can specify: * the port: use the standard format :11211, following the host name; * the weight: use the format @90 following the host name and the port (if present)., (*6)

Both port and weight are optional. You can use MEMCACHED_PORT for the default port, which will be used for all the servers. The default weight, if not specified, is 100., (*7)

The Versions

05/03 2018

dev-master

9999999-dev https://github.com/fsavina/laravel-multi-memcached

Extract multiple memcached server configuration from .env file

  Sources   Download

MIT

The Requires

  • php >=5.0

 

The Development Requires

by Fabio Savina

laravel framework cache memcached dotenv

05/03 2018

v1.0.2

1.0.2.0 https://github.com/fsavina/laravel-multi-memcached

Extract multiple memcached server configuration from .env file

  Sources   Download

MIT

The Requires

  • php >=5.0

 

The Development Requires

by Fabio Savina

laravel framework cache memcached dotenv

04/03 2018

v1.0.1

1.0.1.0 https://github.com/fsavina/laravel-multi-memcached

Extract multiple memcached server configuration from .env file

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fabio Savina

laravel framework cache memcached

14/09 2017

v1.0.0

1.0.0.0 https://github.com/fsavina/laravel-multi-memcached

Extract multiple memcached server configuration from .env file

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fabio Savina

laravel framework cache memcached