承接 soneritics/cache 相关项目开发

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

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

soneritics/cache

Composer 安装命令:

composer require soneritics/cache

包简介

Caching mechanism with support for multiple caching types.

README 文档

README

Build Status Coverage Status License

by

Introduction

Caching interfaces and implementation of caching methods.

Minimum Requirements

  • PHP 5.5+

Features

Currently supports the following caches:

  • TextCache
  • FileCache
  • MemCache
  • ArrayCache
  • SessionCache

Example

$textCache = (new TextCache('tmp'))
    ->setCacheExpiration(4)
    ->set('test', 'test');

echo $textCache->get('test');
// sleep(5);
// $textCache->has('test') === false

$fileCache = (new FileCache('tmp'))
    ->setCacheExpiration(3600)
    ->set('test', ['test1', 'test2']);

var_dump($fileCache->get('test'));
$fileCache->clear('test');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-20