jowy/silex-cache-service-provider 问题修复 & 功能扩展

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

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

jowy/silex-cache-service-provider

最新稳定版本:v1.0.0

Composer 安装命令:

composer require jowy/silex-cache-service-provider

包简介

Silex cache provider using doctrine cache

README 文档

README

Provide doctrine cache for silex application

Requirement

  • PHP >= 5.5
  • Pimple >= 3.0
  • Doctrine/Cache >= 1.4

Installation

composer require jowy/silex-cache-service-provider

Usage

$container = new Container()
$$container->register(new CacheServiceProvider(), [
            "cache.driver" => "array|filesystem|apc|xcache|redis|memcache|memcached",
            "cache.options" => [
                "namespace" => "your-cache-namespace",
                "directory" => "set-this-if-only-you-select-filesystem-driver",
                "host" => "only-for-redis-memcached-memcache",
                "port" => "only-for-redis-memcached-memcache",
                "password" => "if-any"
            ]
        ]);

$cache = $this->container["cache.factory"];

$this->assertInstanceOf(Cache::class, $cache);

License

MIT, see LICENSE

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-10