承接 jelix/php-redis 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

jelix/php-redis

Composer 安装命令:

composer require jelix/php-redis

包简介

php classes to manage data into a redis database. Fork from Sash php-redis lib.

关键字:

README 文档

README

php-redis contains php classes for connecting with redis database with methods for all available commands in redis.

It provides pure PHP API, and doesn't rely on some PHP extensions.

Quick start

  • Install Redis Server from redis.io
  • Download latest php-redis class from here
  • Write some code:
		# Connecting
		$r = new \PhpRedis\Redis('localhost', 6379);
		
		# Save some value
		$r->some_key = 'hello world';
		
		# Outputting it
		echo $r->some_key;
		
		# Call any redis method (including methods added in redis 2.*)
		echo $r->zcard('zkey');

Changelog

  • 1.0: Initial implementation with all functions implemented up to redis 1.0
  • 1.1:
    • The unified request protocol is used (intruduced in redis 1.2).
    • Redis implements the __call magic method. Any non-implemented redis method can be called via ->methodname(param1, ...)
  • 1.2: pipeline support. ->pipeline_begin() and then execute any number of commands - each will return null Then run ->pipeline_responses() to get all of the responses as array and end the pipeline mode
  • 1.2.1: fix quit() error, undefined variable on connection errors, and add closing during destruction of the object
  • 1.3.0:
    • support of Pub/Sub
    • new method flushByPrefix(). Read warning in the method comment.
    • new methods getHost() and getPort()
    • fix cloning support: a clone should not reuse the same socket.
  • 2.0.0:
    • move classes into a namespace to avoid conflicts with classes of the redis extension.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-2.1
  • 更新时间: 2016-06-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固