New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

dimafe6/redis-compressed-cache

Laravel cache driver with compression.
14,970 3
Install
composer require dimafe6/redis-compressed-cache
Latest Version:v1.0.1
PHP:^8.0.2
Laravel:10 – 13
License:MIT
Last Updated:Mar 4, 2024
Links: GitHub  ·  Packagist
Maintainer: dimafe6

Laravel cache driver with compression.

This driver provides ability to compress and decompress Redis data.

Installation

You can install the package via composer:

composer require dimafe6/redis-compressed-cache

You can publish the config file with:

php artisan vendor:publish --tag="redis-compressed-cache-config"

This is the contents of the published config file:

return [
    'prefix'          => config('cache.prefix'),
    'connection'      => env('REDIS_COMPRESSED_CACHE_CONNECTION', 'cache'),
    'lock_connection' => env('REDIS_COMPRESSED_CACHE_LOCK_CONNECTION', 'default'),
    'enabled'         => env('REDIS_COMPRESSED_CACHE_ENABLED', true),
];

Usage

Add the redis-compressed custom driver to the redis store config in config/cache.php:

'redis' => [
    'driver'          => 'redis-compressed',
    'connection'      => 'cache',
    'lock_connection' => 'default',
]

Or create a new store:

'redis-compressed' => [
    'driver'          => 'redis-compressed',
]

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

adamcrampton/object-cache

Redis object cache for Laravel

1,287 0
byerikas/cache-tags

Allows for Redis/Valkey cache flushing multiple tagged items by a single tag.

32,225 14
xtcat/laravel-redis-fallback

Laravel 5 redis cache fallback to file

23,721 5
padosoft/laravel-super-cache

A Laravel package for advanced caching with tags and namespaces in Redis.

11,120 3
padosoft/laravel-super-cache-invalidate

A powerful package that provides an efficient and scalable cache invalidation sy...

10,631 2

Version History

Version Released PHP License
v1.0.1 ^8.0.2 MIT
v1.0.0 ^8.0.2 MIT