public function set($key, $value, $ttl = null): bool
    {
        $ttl    = $this->getTtl($ttl);
        $params = ($ttl <= 0) ? [$key, $value] : [$key, $value, $ttl];

        return $this->call('set', $params);
    }