protected function set(array $value) {
        return $this->cache->set('yasmin-ratelimiter-'.$this->endpoint, $value)->then(null, function (\Throwable $e) {
            if($e->getMessage() !== 'Client got destroyed') {
                throw $e;
            }
        });
    }
protected function set(array $value) {
        return $this->cache->set('yasmin-ratelimiter-'.$this->endpoint, $value)->then(null, function (\Throwable $e) {
            if($e->getMessage() !== 'Client got destroyed') {
                throw $e;
            }
        });
    }
protected function set ( array $ value ) { return $ this -> cache -> set ( 'yasmin-ratelimiter-' . $ this -> endpoint , $ value ) -> then ( null , function ( \ Throwable $ e ) { if ( $ e -> getMessage ( ) !== 'Client got destroyed' ) { throw $ e ; } } ) ; }
Sets the cache data.
@param array  $value
@return \React\Promise\ExtendedPromiseInterface
Sets the cache data .