src/LinguaLeo/Cache/Provider/RedisCache.php
public function set($key, $data, $ttl = 0)
    {
        if ($ttl > 0) {
            return $this->redis->setex($key, (int)$ttl, $data);
        }
        return $this->redis->set($key, $data);
    }
public function set($key, $data, $ttl = 0)
    {
        if ($ttl > 0) {
            return $this->redis->setex($key, (int)$ttl, $data);
        }
        return $this->redis->set($key, $data);
    }
{@inheritdoc}