phpcachex/cache

PHP Cache Library

v1.0.0 2015-08-06 02:58 UTC

This package is not auto-updated.

Last update: 2024-09-28 19:03:51 UTC


README

=======================

Requirements

  • php5.6+

Installation

  • composer.json
"require":
      {
           "phpcachex/cache":  "dev-master"
      }
  • command
    composer install or composer update

Introduction

  • this is a php cache library,this version only contain Memcache

How to use Muticall

<?php
    $params = [
        [
            'host' => '127.0.0.1',
            'port' => 11211,
            'persistent' => 1,
        ]
    ];
    $instance = \PhpCacheX\Cache\Instance::get('Memcache',$params);
    $set = $instance->set('key','value');
    $rs = $instance->get('key');
?>

License

MIT License see http://mit-license.org/