2017 © Pedro Peláez
 

library tiny-memcache

简易 memcache 操作类

image

hongjh/tiny-memcache

简易 memcache 操作类

  • Friday, May 27, 2016
  • by hongjh
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

TinyMemcache

Tiny memcache class, (*1)

Install

If you have Composer, just include Router as a project dependency in your composer.json. If you don't just install it by downloading the .ZIP file and extracting it to your project directory., (*2)

require: {
    "hongjh/tiny-memcache": "dev-master"
}

How to use lock ?

$mc = new TinyMemcache($host, $port);

if ($mc->lock($key, $expire)) {
  // lock success
  // TO DO YOUR CODE
  $mc->unlock($key);
} else {
  // lock fail, it has been lock now
  // wait for unlock
  // END
}

Flow

, (*3)

The Versions

27/05 2016

dev-master

9999999-dev

简易 memcache 操作类

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Avatar hongjh