For more info about PSR-6 please visit this link.
For more info about PSR-16 please visit this link.
Symfony implement caching PSR's through the Cache component. PSR-16 standard is supported via adapters.
- Include
cache.redis.ymlconfiguration fromcache_pool - Replace
cache.appwithcache.redisin your service arguments - Start local Redis server with:
redis-server /usr/local/etc/redis.conf- Test
Use redis-cli to enter the Redis server through command line.
Once you are inside the Redis you can use this commands:
keys *- to list all the available keysttl key- to display the time required for key to expireexpire key 0- explicitly expire the keydel key- delete the key from Redis
To install this example do the following:
- clone this repository
- run
composer install - create database
php bin/console doctrine:database:create - install demo content
php bin/console ezplatform:install netgen-media - install frontend dependecies
yarn install - build dev assets
yarn build:dev - run
symfony serveto start Symfony server
Presentation is available in PDF format and can be accessed here.