public function set($name, Location $location)
    {
        return $this->cache->put($name, $location->toArray(), $this->expires);
    }
public function set($name, Location $location)
    {
        return $this->cache->put($name, $location->toArray(), $this->expires);
    }
public function set ( $ name , Location $ location ) { return $ this -> cache -> put ( $ name , $ location -> toArray ( ) , $ this -> expires ) ; }
Store an item in cache.

@param string   $name
@param Location $location

@return bool
Store an item in cache .