sergiors/doctrine-cache-service-provider 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sergiors/doctrine-cache-service-provider

最新稳定版本:3.0.0

Composer 安装命令:

composer require sergiors/doctrine-cache-service-provider

包简介

Doctrine Cache for Pimple

README 文档

README

Build Status

To see the complete documentation, check out Doctrine Cache

Install

composer require sergiors/doctrine-cache-service-provider

How to use

use Sergiors\Pimple\Provider\DoctrineCacheServiceProvider;

$app->register(new DoctrineCacheServiceProvider(), [
    'cache.options' => [
        'driver' => 'redis',
        'namespace' => 'myapp',
        'host' => '{your_host}',
        'port' => '{your_portt}',
        // 'password' => ''
    ]
]);

// $app['cache']->save('cache_id', 'my_data');
// $app['cache']->fetch('cache_id');

Multiple instances

Something like this:

use Sergiors\Pimple\Provider\DoctrineCacheServiceProvider;

$app->register(new DoctrineCacheServiceProvider(), [
    'caches.options' = [
        'conn1' => 'xcache',
        'conn2' => [
            'driver' => 'redis'
        ],
        'conn3' => [
            'driver' => 'array',
            'namespace' => 'test'
        ]
    ]
]);

// $app['caches']['conn1'];
// $app['caches']['conn2'];
// $app['caches']['conn3'];

Be Happy!

License

MIT

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-01