Skip to content

garming/php-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Cache Library

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

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/

About

PHP Cache Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages