PHPackages                             valeryq/cacheable - 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. valeryq/cacheable

ActiveLibrary[Caching](/categories/caching)

valeryq/cacheable
=================

Laravel Cacheable

v1.1.0(10y ago)5101MITPHPPHP &gt;=5.5.9

Since Nov 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/valeryq/cacheable)[ Packagist](https://packagist.org/packages/valeryq/cacheable)[ RSS](/packages/valeryq-cacheable/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Laravel Cacheable
=================

[](#laravel-cacheable)

[![Build Status Scrutinizer](https://camo.githubusercontent.com/327120823b43e97f47e0dc4487fa22bbaaebc545241ab033b99a2b12e94ee46b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f76616c657279712f636163686561626c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/valeryq/cacheable/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8ab0b2678667658007b08b55fe416c70b635f580a2de095428beca7104b6c067/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f76616c657279712f636163686561626c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/valeryq/cacheable/)[![Total Downloads](https://camo.githubusercontent.com/944cb0a1a4bf63198f113540e9f5f520f72a51ec30ce7be93fddbff0b9d10c08/68747470733a2f2f706f7365722e707567782e6f72672f76616c657279712f636163686561626c652f642f746f74616c2e737667)](https://packagist.org/packages/valeryq/cacheable)[![Latest Stable Version](https://camo.githubusercontent.com/2e9a2613be683f5f3ffc118751b7c79d932c401d91f174e98e3e7e66a82e08a7/68747470733a2f2f706f7365722e707567782e6f72672f76616c657279712f636163686561626c652f762f737461626c652e737667)](https://packagist.org/packages/valeryq/cacheable)[![License](https://camo.githubusercontent.com/ee05c3e60c6d4f78f9c7911f59701fc68e7f81637a5b60075519828037f5d9d6/68747470733a2f2f706f7365722e707567782e6f72672f76616c657279712f636163686561626c652f6c6963656e73652e737667)](https://packagist.org/packages/valeryq/cacheable)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.5.9
- Laravel &gt;= 5.1

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

[](#installation)

Require this package with composer:

```
composer require valeryq/cacheable

```

Usage
-----

[](#usage)

You must implements the Cacheable contract into your class and you can use the CacheableTrait instead realized methods from contract.

For example (for repositories):

```
