public function save()
    {
        $contents = $this->getForStorage();

        if ($this->ttl !== null) {
            $this->client->put($this->key, $contents, $this->ttl);
        } else {
            $this->client->forever($this->key, $contents);
        }
    }