src/LinguaLeo/Cache/Decorator/HotCacheDecorator.php
public function mget(array $keys)
    {
        $result = [];
        foreach ($keys as $index => $key) {
            if (!isset($this->hot[$key])) {
                continue;
            }
            $result[$key] = $this->hot[$key];
            unset($keys[$index]);
        }
        if (count($keys) > 0) {
            $cacheResult = $this->cache->mget(array_values($keys));
            foreach ($cacheResult as $key => $value) {
                $result[$key] = $this->hot[$key] = $value;
            }
        }
        return $result;
    }
public function mget(array $keys)
    {
        $result = [];
        foreach ($keys as $index => $key) {
            if (!isset($this->hot[$key])) {
                continue;
            }
            $result[$key] = $this->hot[$key];
            unset($keys[$index]);
        }
        if (count($keys) > 0) {
            $cacheResult = $this->cache->mget(array_values($keys));
            foreach ($cacheResult as $key => $value) {
                $result[$key] = $this->hot[$key] = $value;
            }
        }
        return $result;
    }
{@inheritdoc}