An OO PHP implementation of a collection of cachable functions

I don’t know about you, but I always get a bit excited when I get to use PHP’s magic methods.

Here’s an implementation I did at work for a class which contains multiple functions whose result needs to only be “calculated” every few minutes, but the results could be retrieved many times by different people within that period ( i.e. the functions are “cachable” ).

See it here.

Advertisements