oscarotero / simple-crud

PHP library to provide magic CRUD in MySQL/Sqlite databases with zero configuration
MIT License
242 stars 58 forks source link

How to use cache? #45

Closed darkvovich closed 3 years ago

darkvovich commented 3 years ago

In example not explained what is $cache variable is?

oscarotero commented 3 years ago

$cache represents any library that you use to manage cached data. This example only demostrates how you get the cacheable data from SimpleCrud and how to use this data the next time. The cache library doesn't matter here. It could be a PSR-16 compatible library or any other option of your choice.

Keep in mind that cache it's a way to improve perfomance, but it's optional.