Skip to content

This repository holds code for Netgen's internal workshop for using the caching PSR's

License

Notifications You must be signed in to change notification settings

MarioBlazek/caching-psrs-in-netgen-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSR-6 and PSR-16 in Netgen stack

Description

PSR-6

For more info about PSR-6 please visit this link.

PSR-16

For more info about PSR-16 please visit this link.

Symfony and PSR's

Symfony implement caching PSR's through the Cache component. PSR-16 standard is supported via adapters.

Redis

  1. Include cache.redis.yml configuration from cache_pool
  2. Replace cache.app with cache.redis in your service arguments
  3. Start local Redis server with:
redis-server /usr/local/etc/redis.conf
  1. Test

Redis commands

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 keys
  • ttl key - to display the time required for key to expire
  • expire key 0 - explicitly expire the key
  • del key - delete the key from Redis

Install guide

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 serve to start Symfony server

Presentation

Presentation is available in PDF format and can be accessed here.

About

This repository holds code for Netgen's internal workshop for using the caching PSR's

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published