MatthiasMullie\Scrapbook\Adapters\Redis::deleteMulti PHP Method

deleteMulti() public method

public deleteMulti ( array $keys )
$keys array
    public function deleteMulti(array $keys)
    {
        /*
         * del will only return the amount of deleted entries, but we also want
         * to know which failed. Deletes will only fail for items that don't
         * exist, so we'll just ask for those and see which are missing.
         */
        $items = $this->getMulti($keys);
        $this->client->del($keys);
        $return = array();
        foreach ($keys as $key) {
            $return[$key] = array_key_exists($key, $items);
        }
        return $return;
    }