ManaPHP\Cache\Adapter\Apc::set PHP Метод

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

public set ( string $key, string $value, integer $ttl )
$key string
$value string
$ttl integer
    public function set($key, $value, $ttl)
    {
        $r = apc_store($this->_prefix . $key, $value, $ttl);
        if (!$r) {
            throw new ApcException('apc_store failed for `:key` key', ['key' => $key]);
        }
    }