Skip to content

Instantly share code, notes, and snippets.

@beardcoder
Forked from aertmann/Caches.yaml
Last active February 22, 2019 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beardcoder/4c12473d354aa55f31cc08938e71be09 to your computer and use it in GitHub Desktop.
Save beardcoder/4c12473d354aa55f31cc08938e71be09 to your computer and use it in GitHub Desktop.
Use Redis as Neos Cache Backend
# Redis (has to be configured to different databases on shared hosting)
TYPO3_TypoScript_Content:
backend: TYPO3\Flow\Cache\Backend\RedisBackend
backendOptions:
defaultLifetime: 0
Flow_Mvc_Routing_Resolve:
backend: TYPO3\Flow\Cache\Backend\RedisBackend
backendOptions:
defaultLifetime: 0
Flow_Mvc_Routing_Route:
backend: TYPO3\Flow\Cache\Backend\RedisBackend
backendOptions:
defaultLifetime: 0
# Memcached (fits shared hosting)
TYPO3_TypoScript_Content:
backend: TYPO3\Flow\Cache\Backend\MemcachedBackend
backendOptions:
defaultLifetime: 0
servers:
- '127.0.0.1:11211'
Flow_Mvc_Routing_Resolve:
backend: TYPO3\Flow\Cache\Backend\MemcachedBackend
backendOptions:
defaultLifetime: 0
servers:
- '127.0.0.1:11211'
Flow_Mvc_Routing_Route:
backend: TYPO3\Flow\Cache\Backend\MemcachedBackend
backendOptions:
defaultLifetime: 0
servers:
- '127.0.0.1:11211'
# Example of configuring different database for redis
TYPO3_TypoScript_Content:
backend: TYPO3\Flow\Cache\Backend\RedisBackend
backendOptions:
database: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment