定制 memcachier/php-memcache-sasl 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

memcachier/php-memcache-sasl

Composer 安装命令:

composer require memcachier/php-memcache-sasl

包简介

A PHP Memcache client with binary protocol and SASL support

README 文档

README

A pure PHP Memcache client with binary protocol and SASL support.

It aims to be compatible with the PHP Memcached class. You can find documentation on the PHP Memcached class here. Not all features are supported at this time.

Usage example

include('MemcacheSASL.php');

/* connect to a server */
$m = new MemcacheSASL;
$m->addServer('127.0.0.1', '11211');

/* set timeout to 2 second */
$m->setOption(MemcacheSASL::OPT_SEND_TIMEOUT, 2000000);
$m->setOption(MemcacheSASL::OPT_RECV_TIMEOUT, 2000000);

/* set SASL username and password */
$m->setSaslAuthData('username', 'password');

/* perform some operations */
var_dump($m->add('test', '123'));
$m->delete('test');

Changes vs. ronnywang Version

This is a fork of the original code base by Ronny Wang. We have made the following improvements:

  • Support for flush.
  • Support for timeouts on operations (connections and requests).
  • Fixed increment and decrement operations.
  • Support for the PHP Composer package manager.
  • Support setOptions method.

Licensing

This library is BSD-licensed.

Get involved!

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://github.com/memcachier/PHPMemcacheSASL.git

Authors

This library was written by Ronny Wang and MemCachier.

Ronny Wang wrote the initial version and bulk of the code, MemCachier later forked it to improve on the code base.

统计信息

  • 总下载量: 58.73k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 7
  • Forks: 33
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-04-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固