2017 © Pedro Peláez
 

typo3-cms-extension typo3-predis-cache

TYPO3 backend cache based on predis

image

b3n/typo3-predis-cache

TYPO3 backend cache based on predis

  • Saturday, January 14, 2017
  • by benjaminhirsch
  • Repository
  • 2 Watchers
  • 1 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

TYPO3 Redis caching backend

Instead of using the PHP extension "redis" like the build-in TYPO3 Redis caching backend, this one uses the predis (https://github.com/nrk/predis) library - so no PHP extension is required!, (*1)

Most of this library is identical to the build-in redis backend, I simply changed the redis calls., (*2)

Installation

Composer
composer require b3n/typo3-predis-cache

Usage

Example single server configuration
return [
   'SYS' => [
      'caching' => [
         'cache_pages' => [
            'backend' => \B3N\TYPO3\Cache\Backend\RedisBackend::class,
            'options' => [
                'defaultLifetime' => 0,
                'predis' => [
                    'options' => [],
                    'parameters' => [
                        'tcp://127.0.0.1:6379',
                    ],
                ],
            ],
         ],
      ],
   ],
];
Example configuration with replication
return [
   'SYS' => [
      'caching' => [
         'cache_pages' => [
            'backend' => \B3N\TYPO3\Cache\Backend\RedisBackend::class,
            'options' => [
                'defaultLifetime' => 0,
                'predis' => [
                    'options' => [
                        'replication' => true,
                    ],
                    'parameters' => [
                        'tcp://127.0.0.1:6379?alias=master',
                        'tcp://127.0.0.1:6379',
                    ],
                ],
            ],
         ],
      ],
   ],
];

You can pass every setting like you would when you use predis directly. For more information please have a look here: https://github.com/nrk/predis#how-to-install-and-use-predis, (*3)

The Versions

14/01 2017

dev-master

9999999-dev

TYPO3 backend cache based on predis

  Sources   Download

MIT

The Requires

 

cache extension redis typo3

14/01 2017

1.0.0

1.0.0.0

TYPO3 backend cache based on predis

  Sources   Download

MIT

The Requires

 

cache extension redis typo3