Skip to content

Tjoosten/cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tdt/cache

Build Status

This repository holds a wrapper around a caching system. You can use NoCache if no caching system is installed, or MemCache. This allows the user to provide caching in his code, and switch to other caching systems later on if necessary.

Usage

$c = Cache::getInstance( array("system" => "Memcache", "host" => "localhost", "port" => 11211 ) );
$c->set("key", $objectToCache, $TTL); // TTL is optional

$cachedObject = $c->get("key");
// delete the cachedObject
$c->delete("key");

About

A repository for caching written in PHP.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 91.3%
  • Shell 8.7%