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

ActiveLibrary[Caching](/categories/caching)

sy/cache
========

Simple caching library

1.0.4(1y ago)01.5k1MITPHPPHP &gt;=5.6.0

Since Oct 27Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (7)Used By (1)

sy/cache
========

[](#sycache)

Simple caching library.

The cache is saved on the filesystem using var\_export when storing cache and include when loading cache.

Should primarily be used for caching arrays and objects. There is no performance benefit over APCu for storing strings.

Keys support the character / (not fully PSR-16 compliant) and do not support the character \*

Empty values are not stored in the cache.

No TTL support yet (to do).

Installation
------------

[](#installation)

Install the latest version with

```
$ composer require sy/cache
```

Basic Usage
-----------

[](#basic-usage)

```
