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

ActiveLibrary[Caching](/categories/caching)

koolreport/cache
================

Use cache to make your report faster

1.2.0(7y ago)3189.7k↓30.5%1[1 issues](https://github.com/koolreport/cache/issues)[1 PRs](https://github.com/koolreport/cache/pulls)MITPHP

Since May 8Pushed 6y ago2 watchersCompare

[ Source](https://github.com/koolreport/cache)[ Packagist](https://packagist.org/packages/koolreport/cache)[ Docs](https://www.koolreport.com)[ RSS](/packages/koolreport-cache/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (8)Used By (0)

Introduction
============

[](#introduction)

This package is all about the speed and responsiveness of your reports. Let imagine your report need to pull large data from various sources to deliver the computed results. It takes time to load and process data. If many people go to your report at the same time, server may be overloaded.

`Cache` package will solve above problem. It will store the computed results temporarily in a period of time. If the report need to reload, results will be loaded from the cache, which results in lowering the load on your database and also the computation of your report. Utimately, it will increase the speed and responsiveness of your report.

Installation
============

[](#installation)

By downloading .zip file
------------------------

[](#by-downloading-zip-file)

1. [Download](https://www.koolreport.com/packages/cache)
2. Unzip the zip file
3. Copy the folder `cache` into `koolreport` folder so that look like below

```
koolreport
├── core
├── cache
```

By composer
-----------

[](#by-composer)

```
composer require koolreport/cache

```

Documentation
=============

[](#documentation)

`Cache` package provides three type of caching options: `FileCache`, `ApcCache` and `MemCache`.

FileCache
---------

[](#filecache)

This will store computed results using file system. There is no further installation needed if you use `FileCache`.

To enable this cache, you do:

```
