Cache driver for Lock
This package is not auto-updated.
Last update: 2020-01-14 10:47:34 UTC
Cache driver for Lock.
$ composer require guardianphp/lock-cache
Reading all roles from the storage layer per request is a waste of resources. To make things faster, roles and permissions should be cached.
This library provides caching drivers for BeatSwitch Lock.
The usage is simple:
- Install one of tedivm/stash and doctrine/cache.
- Wrap your existing driver with one of the caching drivers
use Guardian\Lock\Driver\StashCacheDriver; $driver = new StashCacheDriver($myDriver);
Caller and Role permissions get cached. Upon update (store/remove) this cache gets cleared.
$ phpspec run
If you discover any security related issues, please contact us at firstname.lastname@example.org.
The MIT License (MIT). Please see License File for more information.