PHPackages                             fhteam/laravel-cache-redis-extended - 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. fhteam/laravel-cache-redis-extended

ActiveLibrary[Caching](/categories/caching)

fhteam/laravel-cache-redis-extended
===================================

Redis cache driver with extended capabilities

v0.0.1(11y ago)839GPL-2.0PHPPHP &gt;=5.5.0

Since Mar 13Pushed 10y ago4 watchersCompare

[ Source](https://github.com/forumhouse-oss/laravel-cache-redis-extended)[ Packagist](https://packagist.org/packages/fhteam/laravel-cache-redis-extended)[ RSS](/packages/fhteam-laravel-cache-redis-extended/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Extended Redis Support for Laravel 4 &amp; 5
============================================

[](#extended-redis-support-for-laravel-4--5)

This project is currently under development. Code most probably is broken. Please wait until 1.0 is released to use it in production.

Metrics\_Version[![PHP version](https://camo.githubusercontent.com/d97e88218d210de654af5caaaa07ceedd7e2fdf0e677fa1c53bd0e934c7d9915/68747470733a2f2f62616467652e667572792e696f2f70682f66687465616d2532466c61726176656c2d63616368652d72656469732d657874656e6465642e737667)](http://badge.fury.io/ph/fhteam%2Flaravel-cache-redis-extended)Compatibility[![Laravel compatibility](https://camo.githubusercontent.com/22a4f337e0669cdca294837d2ca44dacbf5004d65f0ee52fec787f69ff751186/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d342d677265656e2e737667)](http://laravel.com/) [![Laravel compatibility](https://camo.githubusercontent.com/dd58f710d3d14da6be76abb20b755b14fff099d7cca04f25d16292a4a97e1df4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d352d677265656e2e737667)](http://laravel.com/)Quality[![Code Climate](https://camo.githubusercontent.com/ed215a9602de9419edc8bfe1f28c085706dcc0a069fdc49f863dd9d7d8563c50/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f66687465616d2f6c61726176656c2d63616368652d72656469732d657874656e6465642f6261646765732f6770612e737667)](https://codeclimate.com/github/fhteam/laravel-cache-redis-extended) [![Build Status](https://camo.githubusercontent.com/fe46f9c9de87caced06de334d9b5cc8e23617387ae80e33c0377e7ebb4797774/68747470733a2f2f7472617669732d63692e6f72672f66687465616d2f6c61726176656c2d63616368652d72656469732d657874656e6465642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fhteam/laravel-cache-redis-extended) [![Coverage Status](https://camo.githubusercontent.com/bbc7e967ee6e5399ea903629dece4455ecef374fb02c202f355f9bd35895b735/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f66687465616d2f6c61726176656c2d63616368652d72656469732d657874656e6465642f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/fhteam/laravel-cache-redis-extended?branch=master)Features:
---------

[](#features)

- All `Cache` facade methods extended to accept arrays as keys to utilize Redis MULTI operations (multi-get, -set, -forget etc.)
- Redis optimized commands used where appropriate (`EXISTS` in `has()`, `SET...NX` in `add()` etc)
- ❗ No need to do `Cache::tags(...)` when reading data. `Cache::get()` is enough. So you can now query cache without even knowing which tags are associated with some cache item
- Tag operations optimized: there will be no second Redis query when doing `Cache::tags()` with the same tag set
- Serialization support:
    - Built-in ability to serialize and deserialize Laravel models with all attributes and relations as a single cache item (Laravel cannot cache models, only queries upon which models are constructed. Each relation in Laravel currently is a separate query and thus a separate cache item)
    - Ability to add new serializers / deserializers for custom object types

Architecture
------------

[](#architecture)

```
Core  Serialization  Encoding
 |                                 |
 |---->  TagVersionStorage
