MatthiasMullie\Scrapbook\Adapters\Apc::getMulti PHP Method

getMulti() public method

public getMulti ( array $keys, array &$tokens = null )
$keys array
$tokens array
    public function getMulti(array $keys, array &$tokens = null)
    {
        // check for values that were just stored in this request but have
        // actually expired by now
        foreach ($keys as $i => $key) {
            if (isset($this->expires[$key]) && $this->expires[$key] < time()) {
                unset($keys[$i]);
            }
        }
        $values = $this->apcu_fetch($keys);
        $tokens = array();
        foreach ($values as $key => $value) {
            $tokens[$key] = serialize($value);
        }
        return $values;
    }