Skip to content

Latest commit

 

History

History

file-cache

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

File cache

This is an example which uses composer to install the library and shows how Joystick PHP client may flexibly you can configure your own cache provider (PSR-16)

How to run?

  1. Change working directory to this folder
  2. composer install
  3. CONTENT_IDS=content-id1,content-id2 JOYSTICK_API_KEY=<api-key> php ./main.php
  4. It will call getContents multiple times with response time
  5. Run command from 3rd paragraph again to see that for the next 10 seconds response time will tend to zero.