Common interface for various caching methods for PHP5