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.

Published by

Unknown's avatar

Dan Bernardic

A Winnipeg Web programmer. Proud member of the Skip the Dishes team. Experienced with Web technologies, e.g. HTML5, CSS, ( Server-side ) JS, PHP, WordPress, MVC, etc.

2 thoughts on “An OO PHP implementation of a collection of cachable functions”

Leave a comment