Skip to content

Latest commit

 

History

History
executable file
·
34 lines (26 loc) · 1.41 KB

README.md

File metadata and controls

executable file
·
34 lines (26 loc) · 1.41 KB

ARC: Ariadne Component Library

Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License

A flexible component library for PHP

The Ariadne Component Library is a spinoff from the Ariadne Web Application Framework and Content Management System [ http://www.ariadne-cms.org/ ]

arc/cache contains

  • cache: a generic cache class and caching proxy object. See docs/cache.md for more information.

Example code:

    $cachedObject = \arc\cache::proxy( new heavyClass() );
    $result = $cachedObject->aHeavyCall();

Or a caching http client, using arc-web:

    $cachedHTTPClient = \arc\cache::proxy( \arc\http::client(), function($params) {
        return ( \arc\http\headers::parseCacheTime( $params['target']->responseHeaders ) );
    });