定制 regeda/nest 二次开发

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

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

regeda/nest

Composer 安装命令:

composer require regeda/nest

包简介

Nest is a decorator for key based methods invocation

README 文档

README

Nest is a decorator for key based methods invocation. The class for PHP 5.3 consists of just one file.

Build Status

Usage

Defining the initial namespace and the client:

$nest = new Nest('foo', new Redis());
echo $nest; // -> foo

Extending the namespace:

$nest = new Nest('foo', new Redis());

echo $nest['bar']; // -> foo:bar
echo $nest['bar']['baz']; // -> foo:bar:baz

Invoking a method:

$redis = new Redis(); // or $memcached = new Memcached()

$user = new Nest('user', $redis);

// getter

foreach ($ids as $id) {
    echo $user[$id]['username']->get(); // makes the proxy to $redis->get('user:$id:username')
}

// setter

$user[$id]['age']->set(18); // $redis->set('user:$id:age', 18)

Source: https://github.com/regeda/php-nest

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-04-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固