Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koolreport/cache
Increase speed and responsiveness of your data report
https://github.com/koolreport/cache
cache memcached mysql-reporting-tools php-cache php-reporting-tools reporting-engine
Last synced: 5 days ago
JSON representation
Increase speed and responsiveness of your data report
- Host: GitHub
- URL: https://github.com/koolreport/cache
- Owner: koolreport
- Created: 2019-05-08T08:09:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-07T04:57:46.000Z (almost 5 years ago)
- Last Synced: 2024-10-13T11:27:12.169Z (about 1 month ago)
- Topics: cache, memcached, mysql-reporting-tools, php-cache, php-reporting-tools, reporting-engine
- Language: PHP
- Homepage: https://www.koolreport.com/
- Size: 6.84 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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
## 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```bash
koolreport
├── core
├── cache
```## By composer
```
composer require koolreport/cache
```# Documentation
`Cache` package provides three type of caching options: `FileCache`, `ApcCache` and `MemCache`.
## 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:
```
60,
);
}
...
}
```The `"ttl"` means Time To Live which is the time cache will store the result.
## ApcCache
This will use the well-known cache system `Apc`. You need to install the Apc php module if you want to use this cache method. [Click here to know how to install Apc](http://php.net/manual/en/book.apc.php)
To use `ApcCache`, you do:
```
60,
);
}
...
}
```The `"ttl"` means Time To Live which is the time cache will store the result.
## MemCache
This is another well-known caching system in PHP. You will need to install the MemCached PHP Module to use the cache method.[Click here to know how to install MemCached](http://php.net/manual/en/book.memcached.php)
To use the `MemCache` you do:
```
60,
"servers"=>array(
"localhost"=>34212,
"1.233.222.24"=>1223
)
);
}
...
}
```The `"ttl"` means Time To Live which is the time cache will store the result. And the `"servers"` contains the list of memcahe servers you want to use.
## Support
Please use our forum if you need support, by this way other people can benefit as well. If the support request need privacy, you may send email to us at [email protected]__.