lithium\storage\cache\adapter\Memory::write PHP Метод

write() публичный Метод

Write values to the cache.
public write ( array $keys, null | string $expiry = null ) : boolean
$keys array Key/value pairs with keys to uniquely identify the to-be-cached item.
$expiry null | string Unused.
Результат boolean `true` on successful write, `false` otherwise.
    public function write(array $keys, $expiry = null)
    {
        foreach ($keys as $key => &$value) {
            $this->_cache[$key] = $value;
        }
        return true;
    }