arc/cache

Ariadne Component Library: Cache Component

Maintainers

👁 Auke

Package info

github.com/Ariadne-CMS/arc-cache

Homepage

pkg:composer/arc/cache

Statistics

Installs: 412

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 1

3.0 2020-02-23 12:56 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 7b91de105677b795475ac3e848ca7a9c78ca870e

  • Auke van Slooten <auke.woop@muze.nl>

componentscomponent

This package is auto-updated.

Last update: 2026-06-11 02:33:04 UTC


README

👁 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 ) );
 });