Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amitavroy/rediscache
A Redis Cache package handling basic caching requirements through pipelines and allowing handling wildcard cache clears
https://github.com/amitavroy/rediscache
Last synced: 13 days ago
JSON representation
A Redis Cache package handling basic caching requirements through pipelines and allowing handling wildcard cache clears
- Host: GitHub
- URL: https://github.com/amitavroy/rediscache
- Owner: amitavroy
- Created: 2019-04-24T10:43:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-12T08:44:19.000Z (over 5 years ago)
- Last Synced: 2024-12-28T18:49:44.409Z (about 1 month ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# A package to handle basic caching requirements through Redis pipelines, allowing handling wildcard cache clears
[![Latest Version on Packagist](https://img.shields.io/packagist/v/amitavroy/rediscache.svg?style=flat-square)](https://packagist.org/packages/amitavroy/rediscache)
[![Build Status](https://img.shields.io/travis/amitavroy/rediscache/master.svg?style=flat-square)](https://travis-ci.org/amitavroy/rediscache)
[![Quality Score](https://img.shields.io/scrutinizer/g/amitavroy/rediscache.svg?style=flat-square)](https://scrutinizer-ci.com/g/amitavroy/rediscache)
[![Total Downloads](https://img.shields.io/packagist/dt/amitavroy/rediscache.svg?style=flat-square)](https://packagist.org/packages/amitavroy/rediscache)This is where your description should go. Try and limit it to a paragraph or two.
## Installation
You can install the package via composer:
```bash
composer require amitavroy/rediscache
```## Usage
A Facade is provided to get perform all the common tasks with the packages like:
Any data from redis cache can be requested using:
``` php
RedisCache::get("key_name");
```Any data can be stored in redis using:
``` php
RedisCache::set("key_name", $data);
```Forget/Delete a key
``` php
RedisCache::forget("key_name");
```Forget/Delete keys through wild card pattern match
``` php
RedisCache::forget("pattern", true);
```### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
### Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Amitav Roy](https://github.com/amitavroy)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.