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);
        }
    }
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);
        }
    }
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 ) ; } }
Store the cache.

@return void
Store the cache .