Skip to content

SocialNerds/Redis-Cache-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis Cache example

This repo contains an example on caching with Redis.

Check the full explanation video (GR)

(Coming soon)

Installation

Requirements

Run

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

By SocialNerds

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published