承接 vpg/titon.cache 相关项目开发

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

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

vpg/titon.cache

最新稳定版本:v1.3.2

Composer 安装命令:

composer require vpg/titon.cache

包简介

The Titon cache package provides a data caching layer that supports multiple storage engines.

README 文档

README

Provides a data caching layer that supports popular storage engines like Memcache, APC, Redis, Wincache, Xcache, and the local file system. A Cache instance can be used to manage and interact with Storage engines.

$cache = new Titon\Cache\Cache();
$cache->addStorage('memcache', new Titon\Cache\Storage\MemcacheStorage());
$cache->addStorage('fs', new Titon\Cache\Storage\FileSystemStorage());

$cache->set('foo', $data, '+1 hour', 'memcache');
$data = $cache->get('bar', 'fs');

Storage engines can also be used externally and are primarily injected into other services for caching.

$apc = new Titon\Cache\Storage\ApcStorage();
$apc->remove('foo');

Features

  • Cache - Storage management layer
  • Storage - Vendor specific caching mechanism

Dependencies

  • Common
  • Io (optional, for FileSystemStorage)
  • Db (optional, for DatabaseStorage)

Requirements

  • PHP 5.4.0
    • Igbinary (optional)
    • Apc (for ApcStorage)
    • Memcached (for MemcacheStorage)
    • Redis (for RedisStorage)
    • Wincache (for WincacheStorage)
    • Xcache (for XcacheStorage)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2015-01-01