定制 perimeter/cache-bundle 二次开发

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

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

perimeter/cache-bundle

最新稳定版本:v0.1.1

Composer 安装命令:

composer require perimeter/cache-bundle

包简介

Cache integration for the Memento caching library into Symfony2 and Perimeter API Gateway

README 文档

README

Build Status

A Symfony Bundle that wraps the memento caching library and provides an extensible interface for integration with the Perimeter API Gateway.

Usage

You can access the memento caching library using the service container

// get the cache client
$memento = $container->get('memento.client');

Or you can use the perimeter caching service, which implements Perimeter\CacheBundle\Cache\CacheServiceInterface in order to be interchangeable with other caching services.

Prefixes

The perimeter.cache service also supports cache prefixes, which can be important when deploying to multiple environments:

Production config

<!-- Resources/config/services_prod.xml -->
<parameter id="perimeter.cache.prefix">prod</parameter>

Beta config

<!-- Resources/config/services_beta.xml -->
<parameter id="perimeter.cache.prefix>">beta</parameter>

This will ensure that if your cache engine is shared across environments (i.e. beta and prod share memcache or redis instances) the caching does not collide.

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

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