sframe/memcache 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sframe/memcache

Composer 安装命令:

composer require sframe/memcache

包简介

memcache component

README 文档

README

Memcache manager based on php_memcache extension Support multi memcache servers easier through configuration

Installation

composer require "sframe/memcache:dev-master"

Configuration

1 Server

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

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

demo.php

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

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-23