2017 © Pedro Peláez

library icicle-cache



  • Wednesday, January 18, 2017
  • by assertchris
  • Repository
  • 2 Watchers
  • 4 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown



Please don't use this. Icicle is no longer in active development, and as such, neither is this., (*1)

Icicle Cache

Build Status Code Quality Code Coverage Version License, (*2)

A simple cache library, built for Icicle, with anti-stampede and promises., (*3)


// get the value from the cache...
$cached = (yield $cache->get("foo"));

if (!$cached) {
    $cached = (yield $cache->set("foo", function () {
        // this coroutine is run in a separate process,
        // the last yielded value is cached...
        yield $data;

// use the $cached value for something...


This library follows Semver. According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library., (*4)

All methods, with public visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep protected methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading., (*5)

The Versions

18/01 2017
09/11 2015