src/LinguaLeo/Cache/Provider/RedisCache.php
public function mset(array $data, $ttl = 0)
    {
        if ($ttl === 0) {
            if ($this->redis->mset($data)) {
                return count($data);
            }
            return 0;
        }
        $count = 0;
        foreach ($data as $key => $value) {
            if ($this->set($key, $value, $ttl)) {
                $count++;
            }
        }
        return $count;
    }
public function mset(array $data, $ttl = 0)
    {
        if ($ttl === 0) {
            if ($this->redis->mset($data)) {
                return count($data);
            }
            return 0;
        }
        $count = 0;
        foreach ($data as $key => $value) {
            if ($this->set($key, $value, $ttl)) {
                $count++;
            }
        }
        return $count;
    }
{@inheritdoc}