A wrapper like AggregateCache, but it has very simple (and fast) selective algorithm. More...
Public Member Functions | |
addPeer ($label, CachePeer $peer, $level=self::LEVEL_NORMAL) | |
dropPeer ($label) | |
checkAlive () | |
Static Public Member Functions | |
static | create () |
Protected Member Functions | |
guessLabel ($key) | |
brainless ;) | |
Private Member Functions | |
dropHelpers () | |
Private Attributes | |
$peerAmount = null | |
$labels = null |
A wrapper like AggregateCache, but it has very simple (and fast) selective algorithm.
Definition at line 18 of file SimpleAggregateCache.class.php.
SimpleAggregateCache::addPeer | ( | $ | label, | |
CachePeer $ | peer, | |||
$ | level = self::LEVEL_NORMAL | |||
) |
Reimplemented from AggregateCache.
Definition at line 31 of file SimpleAggregateCache.class.php.
References dropHelpers().
SimpleAggregateCache::checkAlive | ( | ) |
Reimplemented from AggregateCache.
Definition at line 47 of file SimpleAggregateCache.class.php.
References dropHelpers().
static SimpleAggregateCache::create | ( | ) | [static] |
Reimplemented from AggregateCache.
Definition at line 26 of file SimpleAggregateCache.class.php.
SimpleAggregateCache::dropHelpers | ( | ) | [private] |
Definition at line 71 of file SimpleAggregateCache.class.php.
Referenced by addPeer(), checkAlive(), and dropPeer().
SimpleAggregateCache::dropPeer | ( | $ | label | ) |
Reimplemented from AggregateCache.
Definition at line 40 of file SimpleAggregateCache.class.php.
References dropHelpers().
SimpleAggregateCache::guessLabel | ( | $ | key | ) | [protected] |
brainless ;)
Reimplemented from AggregateCache.
Definition at line 57 of file SimpleAggregateCache.class.php.
References Assert::isGreaterOrEqual().
SimpleAggregateCache::$labels = null [private] |
Definition at line 21 of file SimpleAggregateCache.class.php.
SimpleAggregateCache::$peerAmount = null [private] |
Definition at line 20 of file SimpleAggregateCache.class.php.