定制 versionable/ration 二次开发

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

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

versionable/ration

Composer 安装命令:

composer require versionable/ration

包简介

A very simple redis client

关键字:

README 文档

README

What is Ration

Ration is a very simple PHP library for interacting with Redis servers.

Why build another library?

The current PHP libraries are overly complicated for something that should be very quick and simple. There are some great PHP extensions for communicating with Redis, however these need to be compiled and enabled on your machine which isn't always practical. This library is simple, lightweight and portable.

Requirements

  • PHP 5.3.3+

Installation

We recommend using Composer to add ration to your project. Simply add this to your composer config:

{
    "require": {
        "versionable/ration": "1.0.0"
    }
}

Usage

Pinging a remote server

    $address = new TCP('10.0.0.1', 6379);
    $connection = new Connection($address);
    $client = new Client($connection);

    $request = new Request(new PingCommand());
    $response = $client->send($request);

Set then get a key

    $address = new TCP('10.0.0.1', 6379);
    $connection = new Connection($address);
    $client = new Client($connection);

    $request = new Request(new SetCommand('key', 'value'));
    $client->send($request);

    $request = new Request(new GetCommand('key'));
    $response = $client->send($response);

TODO

  • Complete documentation of current API
  • Implement remaining commands

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-07-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固