Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wieni/wmcontroller_redis
A Redis cache storage for wieni/wmcontroller
https://github.com/wieni/wmcontroller_redis
cache-storage drupal-8 drupal-module drupal8-module redis wmcontroller wmcontroller-storage
Last synced: 7 days ago
JSON representation
A Redis cache storage for wieni/wmcontroller
- Host: GitHub
- URL: https://github.com/wieni/wmcontroller_redis
- Owner: wieni
- License: mit
- Created: 2019-02-22T14:32:36.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T14:05:47.000Z (9 months ago)
- Last Synced: 2024-09-23T04:11:10.727Z (3 months ago)
- Topics: cache-storage, drupal-8, drupal-module, drupal8-module, redis, wmcontroller, wmcontroller-storage
- Language: PHP
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
wmcontroller_redis
======================[![Latest Stable Version](https://poser.pugx.org/wieni/wmcontroller_redis/v/stable)](https://packagist.org/packages/wieni/wmcontroller_redis)
[![Total Downloads](https://poser.pugx.org/wieni/wmcontroller_redis/downloads)](https://packagist.org/packages/wieni/wmcontroller_redis)
[![License](https://poser.pugx.org/wieni/wmcontroller_redis/license)](https://packagist.org/packages/wieni/wmcontroller_redis)> A Redis cache storage for [wieni/wmcontroller](https://github.com/wieni/wmcontroller)
## Installation
This package requires PHP 8.0, PhpRedis and Drupal 9.1 or higher. It can be
installed using Composer:```bash
composer require wieni/wmcontroller_redis
```To enable this cache storage, change the `wmcontroller.cache.storage` and `wmcontroller.cache.invalidator` container parameter:
```yaml
parameters:
wmcontroller.cache.storage: wmcontroller.cache.storage.redis
wmcontroller.cache.invalidator: wmcontroller.redis.checksumwmcontroller.cache.redis.prefix: 'wmcontroller:'
```Make sure to also set the host & base in `settings.php`.
```php
$settings['wmcontroller.redis.connection']['host'] = '127.0.0.1';
$settings['wmcontroller.redis.connection']['base'] = '0';
```Run `drush wmcontroller_redis:mark-expired` nightly to search for stale entries
and mark them for deletion.## Changelog
All notable changes to this project will be documented in the
[CHANGELOG](CHANGELOG.md) file.## Security
If you discover any security-related issues, please email
[[email protected]](mailto:[email protected]) instead of using the issue
tracker.## License
Distributed under the MIT License. See the [LICENSE](LICENSE) file
for more information.