PHPackages                             shaggyze/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. shaggyze/simple-php-cache

ActiveLibrary[Caching](/categories/caching)

shaggyze/simple-php-cache
=========================

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

07PHP

Since Oct 9Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

> 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!

```
