2017 © Pedro Peláez
 

library memcache

memcache component

image

sframe/memcache

memcache component

  • Thursday, December 4, 2014
  • by fredyang
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Memcache

Memcache manager based on php_memcache extension Support multi memcache servers easier through configuration, (*1)

Installation

composer require "sframe/memcache:dev-master"

Configuration

1 Server, (*2)

array(
    'host' => '',       // optional, default 127.0.0.1
    'port' => '',       // optional, default 11211
    'persistent' => false, // optional, default false
    'weight' => 1,      // optional, default 1
    'expire' => 86400,  // optional, default 86400 (1 day)
)

Multi Servers, (*3)

array(
    'servers' => array(
        array(...),
        array(...),
        ...
    ),
    'expire' => 86400
)

demo.php, (*4)

$mc = new \SFrame\Memcache\Memcache();
$mc->set('hello', 1);
$mc->get('hello');
$mc->delete('hello');

The Versions

04/12 2014

dev-master

9999999-dev

memcache component

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Fred Yang