Get multiple keys values
@param array $keys keys
@return array values
@throws ConnectException exception on connection to redis instance
508009
public function mget(array $keys) {
        try {
            $result = $this->getRedis()->mGet($keys);
            if ($result !== false) {
                return array_combine($keys, $result);
            }
            throw new ImpossibleValueException();
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
558653
public function delete($keys) {
        try {
            $result = $this->getRedis()->delete($keys);
            if ($result !== false) {
                return $result;
            }
            throw new ImpossibleValueException();
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
857893
final public function get($key) {
		$res = $this->connection->get($key);
		self::$logger->info(sprintf(
			"Redis: get %s: '%s'.", $key, $res));
		if ($this->redistype == 'predis' && $res == null)
			$res = false;
		return $res;
	}
326821
public static function getSubArrayFromArrayByKeys(array $array, array $keys)
    {
        $result = [];

        foreach ($keys as $key) {
            if (array_key_exists($key, $array)) {
                $result[$key] = $array[$key];
            }
        }

        return $result;
    }
1345999
public function getItems(array $keys = [])
    {
        $items = [];
        foreach ($keys as $key) {
            $items[] = $this->offsetGet($key);
        }
        if (empty($keys)) {
            $items = $this->items;
        }

        return $items;
    }
366306
public function only($keys)
    {
        $results = [];

        $input = $this->all();

        $placeholder = new stdClass;

        foreach (is_array($keys) ? $keys : func_get_args() as $key) {
            $value = data_get($input, $key, $placeholder);

            if ($value !== $placeholder) {
                Arr::set($results, $key, $value);
            }
        }

        return $results;
    }
1098167
public function getAttributeArray( $keys ) {

		$data = [];

		foreach( $keys as $key ) {

			$data[ $key ] = $this->$key;
		}

		return $data;
	}
711325
function getFromKeys(array $keys)
    {
        $result = [];
        try {
            foreach ($keys as $key)
            {
                $result[] = $this->get($key);
            }
        } catch (\Exception $e) {
            throw new exReadError($e->getMessage(), $e->getCode(), $e);
        }
    }
248773
protected function getKeys( $rows, $key ) {

        if ( count( $rows ) > 0 && !$rows[ 0 ]->hasProperty( $key ) ) {

            throw new \LogicException( '"' . $key . '" does not exist in "' . $this->table . '" result' );

        }

        $keys = array();

        foreach ( $rows as $row ) {

            if ( $row->__isset( $key ) ) {

                $keys[] = $row->__get( $key );

            }

        }

        return array_values( array_unique( $keys ) );

    }
46742
public function read(string $key): array
    {
        return $this->useRedis(function($resource, $redis) use($key){
            $result = $redis->hget($this->getStoreKey(), $key);
            return $result ? $result : [];
        });
    }
299158
public function getParams(array $keys = null)
    {
        $params = $this->params;

        if ($keys) {
            $subset = [];
            foreach ($keys as $key) {
                if (array_key_exists($key, $params)) {
                    $subset[$key] = $params[$key];
                }
            }
            return $subset;
        }

        return $params;
    }
73727
public function mget(array $keys)
	{
		$items = array();

		foreach ($keys as $key) {
		    $items[$key] = $this->get($key);
		}
		
		return $items;
	}
1205839
public function getMultiple($keys, $default = null): array
    {
        if (!is_iterable($keys)) {
            throw new CacheException('Argument $keys is not iterable.');
        }
        if (!count($keys)) {
            return [];
        }
        $keys = array_unique($keys);
        $this->validateKeys($keys);
        $args = array_map(function ($key) {
            return self::PREFIX_KEY_VALUE . $key;
        }, $keys);
        $values = $this->client->mget(...$args);
        $values = array_map(function ($value) use ($default) {
            return is_null($value) ? $default : $this->unpack($value);
        }, $values);
        return array_combine($keys, $values);
    }
559919
private function getIssuesFromRepositoryByKeys(array $keys)
    {
        $issues = [];
        if ($keys) {
            $query = $this->issueQuery;
            $query['jql'] = 'key IN (' . implode(',', $keys) . ')';
            $issues = $this->dispatcher->getIssues($query);
        }

        return $issues;
    }
687152
public function getMultiple($keys)
	{
		$items = array();
		$success = false;
		$values = apc_fetch($keys, $success);

		if ($success && is_array($values))
		{
			foreach ($values as $key => $value)
			{
				// @todo - identify the value when a cache item is not found.
				$items[$key] = new Item($key);
				$items[$key]->setValue($value);
			}
		}

		return $items;
	}
763445
public function get_many($keys) {
        $return = array();
        foreach ($keys as $key) {
            if ($this->persist && array_key_exists($key, $this->store)) {
                $return[$key] = $this->store[$key];
            } else {
                $return[$key] = false;
            }
        }
        return $return;
    }
368129
public function sdiff($keys)
    {
        try {
            return $this->redis->sdiff($keys);
        } catch (\RedisException $e) {
            die("Error!: " . $e->getMessage() . "<br/>");
        }
    }