src/TieredCache.php
public function set($entry, $value, $ttl = false)
    {
        $setCallback = function ($setSuccess, $cache) use ($entry, $value, $ttl) {
            return $setSuccess || $cache->set($entry, $value, $ttl);
        };
        return array_reduce($this->caches, $setCallback, false);
    }
public function set($entry, $value, $ttl = false)
    {
        $setCallback = function ($setSuccess, $cache) use ($entry, $value, $ttl) {
            return $setSuccess || $cache->set($entry, $value, $ttl);
        };
        return array_reduce($this->caches, $setCallback, false);
    }
public function set ( $ entry , $ value , $ ttl = false ) { $ setCallback = function ( $ setSuccess , $ cache ) use ( $ entry , $ value , $ ttl ) { return $ setSuccess || $ cache -> set ( $ entry , $ value , $ ttl ) ; } ; return array_reduce ( $ this -> caches , $ setCallback , false ) ; }
Set an entry in all caches in the stack.

@param string $entry The cache key.
@param mixed $value The value to be stored.
@param int $ttl The time-to-live for the cache entry.
@return bool Returns true if saving succeeded to any cache in the stack.
Set an entry in all caches in the stack .