https://github.com/asseco-voice/laravel-redis-cache-extension
Overriding Redis driver to enable wildcard key deletion
https://github.com/asseco-voice/laravel-redis-cache-extension
cache laravel laravel-8-package laravel-framework microservice microservices php php7 redis
Last synced: 5 months ago
JSON representation
Overriding Redis driver to enable wildcard key deletion
- Host: GitHub
- URL: https://github.com/asseco-voice/laravel-redis-cache-extension
- Owner: asseco-voice
- License: mit
- Created: 2020-08-11T12:01:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-03T02:51:04.000Z (5 months ago)
- Last Synced: 2024-12-15T09:45:50.876Z (5 months ago)
- Topics: cache, laravel, laravel-8-package, laravel-framework, microservice, microservices, php, php7, redis
- Language: PHP
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Redis cache extension
This package enables clearing Redis cache using wildcards.
## Installation
Install the package through composer. It is automatically registered
as a Laravel service provider.``composer require asseco-voice/laravel-redis-cache-extension``
## Usage
Since this is for Redis driver only, the command will fail if you
don't have ``CACHE_DRIVER=redis`` in your `.env` file.Running the command ``php artisan asseco:flush-redis`` will
trigger cache flush for all items in the cache (you will be asked
for the confirmation), however the command takes pattern as argument.When using Redis wildcard characters, argument will need to be
enclosed within quotation marks:``php artisan asseco:flush-redis "*_item"``