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

ActiveLibrary[Caching](/categories/caching)

chrisullyott/simple-cache
=========================

Quick and easy data caching in the filesystem.

v1.2.0(5y ago)010.4k↓47.4%1MITPHPPHP &gt;=5.6.0CI failing

Since Oct 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chrisullyott/simple-cache)[ Packagist](https://packagist.org/packages/chrisullyott/simple-cache)[ Docs](https://github.com/chrisullyott/simple-cache)[ RSS](/packages/chrisullyott-simple-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (9)Used By (1)

simple-cache
============

[](#simple-cache)

Quick and easy data caching in the filesystem.

### Install

[](#install)

```
$ composer require chrisullyott/simple-cache
```

### Instantiate

[](#instantiate)

```
require 'vendor/autoload.php';

use ChrisUllyott\Cache;
$cache = new Cache('cache_id');
```

### Setting data

[](#setting-data)

```
$cache->set("Some data");
```

### Getting data

[](#getting-data)

```
echo $cache->get(); // "Some data"
```

### Clearing

[](#clearing)

```
$cache->clear();
```

### Usage

[](#usage)

```
