wieni/wmcontroller_redis

A Redis cache storage for wieni/wmcontroller

Installs: 4 670

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 1

Open Issues: 1

Type:drupal-module

2.0.2 2024-04-19 14:05 UTC

README

Latest Stable Version Total Downloads License

A Redis cache storage for wieni/wmcontroller

Installation

This package requires PHP 8.0, PhpRedis and Drupal 9.1 or higher. It can be installed using Composer:

 composer require wieni/wmcontroller_redis

To enable this cache storage, change the wmcontroller.cache.storage and wmcontroller.cache.invalidator container parameter:

parameters:
    wmcontroller.cache.storage: wmcontroller.cache.storage.redis
    wmcontroller.cache.invalidator: wmcontroller.redis.checksum

    wmcontroller.cache.redis.prefix: 'wmcontroller:'

Make sure to also set the host & base in settings.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 file.

Security

If you discover any security-related issues, please email security@wieni.be instead of using the issue tracker.

License

Distributed under the MIT License. See the LICENSE file for more information.