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

ActiveLibrary[Caching](/categories/caching)

vitrexphp/cache
===============

Multiple Cache Component for PHP

1.0.1(6y ago)06MITPHPPHP ^7.4

Since Feb 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/phpSimplex/Vitrex-PHP-Cache)[ Packagist](https://packagist.org/packages/vitrexphp/cache)[ RSS](/packages/vitrexphp-cache/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Vitrex PHP Cache
================

[](#vitrex-php-cache)

![Version](https://camo.githubusercontent.com/d409611fe9be97f5b4a0ec11c636c8fe6f6bb07485c2cbade16221a09c6c81e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d312e302e312d677265656e3f7374796c653d666f722d7468652d6261646765)![License](https://camo.githubusercontent.com/6242fc52ca7fc2f5c864179351ee2159da63651baf9cb08f4669579fecf528e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f77677265656e3f7374796c653d666f722d7468652d6261646765)[![Donate to this project using PayPal](https://camo.githubusercontent.com/280f682b28cefa7739839ff9afad9a77924d1ab5888877947acdff14061b741e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50617950616c2d446f6e6174652d626c75653f7374796c653d666f722d7468652d6261646765)](https://www.paypal.me/TKivits)

OVERVIEW
--------

[](#overview)

This is a simple PHP Cache Abstraction Layer for PHP 7.4 that provides a simple interaction with several cache mechanism.

`Vitrex PHP Cache` provides the ability to cache frequently accessed content via several different adapters. Depending on the server environment and what's available, an application can use one of the following cache adapters:

- File (directory on disk)
- Memcache (cache service)
- Session (short-term caching in session)

INSTALL
-------

[](#install)

Download the latest version from here.

Install `Vitrex PHP Cache` using Composer.

```
composer require vitrexphp/cache

```

BASIC USAGE
-----------

[](#basic-usage)

### Setting up the different cache object adapters

[](#setting-up-the-different-cache-object-adapters)

```
