Redis helper functions for improved Redis cache transactions with PHP applications
MIT License
Redis helper functions for improved Redis cache transactions with PHP applications
You can install the package via composer:
composer require sfneal/redis-helpers
In order to autoload to the helper functions add the following path to the autoload.files section in your composer.json.
"autoload": {
"files": [
"vendor/sfneal/redis-helpers/src/redis.php"
]
},
To modify the redis-helpers 'prefix' & 'ttl' setting publish the ServiceProvider & modify the config.
php artisan vendor:publish --provider="Sfneal\Helpers\Redis\Providers\RedisHelpersServiceProvider"
# Add a key value pair to the cache
RedisCache::set('pastrnak', 88);
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the PHP Package Boilerplate.