public function set($key, $value, $ttl = null)
    {
        $this->adapter->saveItem($key, $value, $ttl);

        return $this;
    }
public function set($key, $value, $ttl = null)
    {
        $this->adapter->saveItem($key, $value, $ttl);

        return $this;
    }
public function set ( $ key , $ value , $ ttl = null ) { $ this -> adapter -> saveItem ( $ key , $ value , $ ttl ) ; return $ this ; }
Save item to cache.

@param (mixed) $key   key for cache
@param (mixed) $value value to be cached
@param (int)   $ttl   time to live for cache

@since 3.0.0

@return object
Save item to cache .