openfoodfacts/openfoodfacts-php

Cache: Use dependency injection for custom solutions

Closed this issue · 2 comments

Hi,
as it is mentioned in the code:
"//TODO : add cache interface ?"

//TODO : add cache interface ?

I would suggest adding either an PSR-6 "Caching Interface" or PSR-16: "Common Interface for Caching Libraries".
I personally would prefer PSR-16 and i'm already working on a PR to solve this issue.

It was PSR-6.

done