Download the PHP package pstaender/silverstripe-redis-cache without Composer
On this page you can find all versions of the php package pstaender/silverstripe-redis-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pstaender/silverstripe-redis-cache
More information about pstaender/silverstripe-redis-cache
Files in pstaender/silverstripe-redis-cache
Package silverstripe-redis-cache
Short Description Enables Redis cache for SilverStripe
License MIT
Homepage https://github.com/pstaender/silverstripe-redis-cache
Informations about the package silverstripe-redis-cache
Redis Cache for SilverStripe
Enables usage of redis cache for SilverStripe.
Requirements
- SilverStripe v4 / v5
- Redis
- Tested on PHP 7.3+
Pre-install
Ensure you have redis installed in your environment and configured within your php ini files to ensure PHP knows where to access Redis.
To install Redis, a quick Google with your OS name and version, your PHP version, and server and it's version that your're working with (E.G. Apache or NGINX) should yield a number of installation instructions such as this installation instruction example.
Add the following to your php.ini or conf.d/{your-custom-php-config-file}.ini to let PHP know where to communicate with Redis to store session data: Note: Missing this step will lead to login issues when working with providers such as AWS where you have your site running on multiple pods but need sessions to be unified across them.
Installation and usage
Use composer to pull this module into your project:
To enable Redis cache in your SilverStripe project, add one or both of the following yaml configs to your project under /app/_config/
in either their own yaml file, or in an existing file such as mysite.yml
.
Note: The REDIS_URL
must be the url of the used redis instance, e.g. tcp://127.0.0.1:6379
.
Usage in your project
Usage with flysystem asset storage
Licence
MIT