Download the PHP package paneidos/laravel-tagged-cache without Composer
On this page you can find all versions of the php package paneidos/laravel-tagged-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paneidos/laravel-tagged-cache
More information about paneidos/laravel-tagged-cache
Files in paneidos/laravel-tagged-cache
Package laravel-tagged-cache
Short Description Force a tag on your cache, allowing you to share memcache instances.
License MIT
Informations about the package laravel-tagged-cache
Laravel Tagged Cache
Force a certain tag on your cache.
Why would I need this?
If you use the same Memcache server for multiple projects/tenants, it might be difficult to flush the cache for only one of them. The only options is to flush the entire cache. Using Laravel's built in TaggableStore
, it's possible to flush the cache for only one project/tenant.
How does it work?
The tagged cache driver is a simple wrapper for another cache driver. All regular access to cache keys, such as get
, put
and remember
, are forced to use the tags
method and include the specified tag. Other special methods, such as lock
are passed through without modification.
Installation
To get started with Laravel Tagged Cache, use Composer to add the package to your project's dependencies:
Config
Specify a tagged store in your config/cache.php
:
Example: replace your default store
Compatibility
Currently works with Laravel 5.6 and higher. The backend can be any store with support for tags. Note: the file store does not support tags.
Development
Contributing
Send a pull request, ensure you've got test coverage for the new code.
License
Laravel Tagged Cache is licensed under the MIT License.
All versions of laravel-tagged-cache with dependencies
illuminate/cache Version ^5.6|^6|^7|^8
illuminate/support Version ^5.6|^6|^7|^8