2017 © Pedro Peláez
 

library php-temp-cache

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

image

cajogos/php-temp-cache

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

  • Monday, April 17, 2017
  • by cajogos
  • Repository
  • 1 Watchers
  • 4 Stars
  • 102 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 11 % Grown

The README.md

TempCache Latest Stable Version License Monthly Downloads

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

Main caching library of Biscuit Link framework., (*2)

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!, (*3)

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., (*4)

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:, (*5)

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., (*6)

You are awesome!, (*7)

The Versions

17/04 2017

dev-master

9999999-dev https://github.com/cajogos/php-temp-cache

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cache caching temp

02/04 2017

v1.1

1.1.0.0 https://github.com/cajogos/php-temp-cache

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cache caching temp

20/12 2016

v1.0.1

1.0.1.0 https://github.com/cajogos/php-temp-cache

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cache caching temp

20/12 2016

v1.0

1.0.0.0 https://github.com/cajogos/php-temp-cache

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cache caching temp

20/12 2016

1.0

1.0.0.0 https://github.com/cajogos/php-temp-cache

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cache caching temp

20/12 2016

v0.1-beta

0.1.0.0-beta https://github.com/cajogos/php-temp-cache

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cache caching