Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 382... Línea 382...
382
     *
382
     *
383
     * @param array $keys The keys to get the values of.
383
     * @param array $keys The keys to get the values of.
384
     * @return array An array of the values of the given keys.
384
     * @return array An array of the values of the given keys.
385
     */
385
     */
386
    public function get_many($keys) {
386
    public function get_many($keys) {
387
        $values = $this->redis->hMGet($this->hash, $keys);
387
        $values = $this->redis->hMGet($this->hash, $keys) ?: [];
Línea 388... Línea 388...
388
 
388
 
389
        if ($this->compressor == self::COMPRESSOR_NONE) {
389
        if ($this->compressor == self::COMPRESSOR_NONE) {
390
            return $values;
390
            return $values;