承接 bkhrupa/kohana-rediscache 相关项目开发

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

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

bkhrupa/kohana-rediscache

最新稳定版本:1.2.0

Composer 安装命令:

composer require bkhrupa/kohana-rediscache

包简介

Very simple phpredis cache module for kohana3.3

README 文档

README

Very simple cache module phpredis for kohana3.3 :) Require Kohana Cache module

Redis client - phpredis (https://github.com/nicolasff/phpredis)

Original module - (https://github.com/infarmer/phpredis-kohana3.3)

Example

Enable module bootstrap.php

Kohana::modules(array(
    ...
    'cache' => MODPATH.'cache',
    'rediscache' => MODPATH.'rediscache',
    ...
));

Config. Add to Kohana cache config redis driver config/cache.php

...
'redis' => array(
    'driver'             => 'redis',
    'port'               => 6379,
    'host'               => 'localhost',
    'db_num'             => 0,
    'igbinary_serialize' => false,
    'password'           => '',
),
...

If redis by default cache driver needed bootstrap.php

// default cache driver
Cache::$default = 'redis';

Usage

$redis_cache = Cache::instance('redis');
$redis_cache->set('test_cache', array('foo', 'bar'), 10);
$redis_cache->get('test_cache');

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-23