This repo contains an example on caching with Redis.
(Coming soon)
Requirements
- You need to have Docker and Docker Compose installed
Run in root folder,
cp .env.example .env && docker-compose build && docker-compose up -d
Login to the container and install composer dependencies,
docker exec -u serveruser -it app_fpm /bin/bash
Install dependencies,
cd simple && composer install && cd ../symfony && composer install
Create DB schema,
php bin/console doctrine:schema:update --force
Create dummy data,
yes | php bin/console doctrine:fixtures:load
Test the database without cache,
php bin/console app:load-uncached
Test the database with cache,
php bin/console app:load-cached
The cached test should be much faster.
Exit the container,
exit
To stop it, go to root folder and type,
docker-compose down