承接 cajogos/php-temp-cache 相关项目开发

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

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

cajogos/php-temp-cache

最新稳定版本:v1.1

Composer 安装命令:

composer require cajogos/php-temp-cache

包简介

Simple PHP caching system that uses a tmp folder in a Linux environment.

README 文档

README

A simple PHP caching class that uses the temporary files (/tmp/) folder of a Linux distribution.

Main caching library of Biscuit Link framework.

Simple to Use

The class has been written to be dead easy to use and should be familiar to anyone who has used any caching before. However, beware that the main aim of this cache is not to be the fastest caching mechanism out there, but to simplify the lives of those who just want to have a simple caching system in place to avoid hitting API limits, although from my experience it is pretty fast!

Storing (put)

// $expire is time in seconds for validity.

TempCache::put($key, $value, $expire);

Retrieving (get)

TempCache::get($key);

Deleting (remove)

TempCache::remove($key);

Features

  • No need to install extra plugins or PHP modules.
  • Works out of the box. (As long as your web server user has enough privileges).
  • Avoid hitting those API limits set by other websites.

Getting Started

Warning: You need PHP >= 5.3 to use TempCache.

Using Composer

{
	"require": {
		"cajogos/php-temp-cache": "1.1"
	}
}

Download and use

The class is self-contained so you can use it in any project you already have by using:

require_once 'classes/TempCache.php';

use Cajogos\TempCache as TempCache;

Contributors

Want to help contribute or thank me? Get in touch via c@rlos.rocks.

You are awesome!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-20