PHPackages                             rl404/simple-php-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. rl404/simple-php-cache

ActiveLibrary[Caching](/categories/caching)

rl404/simple-php-cache
======================

A light, simple but powerful PHP5 Cache Class which uses the filesystem for caching.

v1.6.1(7y ago)028911proprietaryPHPPHP &gt;=5.2.0

Since Nov 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rl404/Simple-PHP-Cache)[ Packagist](https://packagist.org/packages/rl404/simple-php-cache)[ Docs](https://github.com/cosenary/Simple-PHP-Cache)[ RSS](/packages/rl404-simple-php-cache/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (1)

> Forked from the [original one](https://github.com/cosenary/Simple-PHP-Cache).

Simple PHP Cache
================

[](#simple-php-cache)

About
-----

[](#about)

A light, simple but powerful PHP5 Cache Class which uses the filesystem for caching. Your feedback is always welcome.

Requirements
------------

[](#requirements)

- PHP 5.2.x or higher

Introduction
------------

[](#introduction)

Basically the caching class stores its data in files in the JSON format. These files will be created if you store data under a Cache name.

If you set a new Cache name with `setCache()`, a new cache file will be generated. The Cache will store all further data in the new file. The Setter method allows you to switch between the different Cache files.

Quick Start
-----------

[](#quick-start)

### Setup Cache class

[](#setup-cache-class)

It's not much trouble to setup the Cache. First create a writable directory `cache/` and include the Cache class:

```

```

Now we've setup the Cache instance and can start caching!

```
