rawSet(params) {
    if (!params.key || String(params.key) !== params.key) {
      return Bluebird.reject(new Error('No key provided, or key is not a string'));
    }
    if (!params.body) {
      return Bluebird.reject(new Error('No body provided'));
    }
    if (params.options && params.options.ttl) {
      return this.client.set(`cache_${params.key}`, JSON.stringify(params.body), 'EX', params.options.ttl);
    }
    return this.client.set(`cache_${params.key}`, JSON.stringify(params.body));
  }
/**
   * Set something depending on the given parameters key, body, options
   * @param params
   * @returns {Promise|Promise<T|never>}
   */
Set something depending on the given parameters key, body, options
@param params
@returns {Promise|Promise}
Set something depending on the given parameters key body options @param params @returns { Promise|Promise }
rawSet(params) {
    if (!params.key || String(params.key) !== params.key) {
      return Bluebird.reject(new Error('No key provided, or key is not a string'));
    }
    if (!params.body) {
      return Bluebird.reject(new Error('No body provided'));
    }
    if (params.options && params.options.ttl) {
      return this.client.set(`cache_${params.key}`, JSON.stringify(params.body), 'EX', params.options.ttl);
    }
    return this.client.set(`cache_${params.key}`, JSON.stringify(params.body));
  }
rawSet ( params ) { if ( ! params . key || String ( params . key ) !== params . key ) { return Bluebird . reject ( new Error ( 'No key provided, or key is not a string' ) ) ; } if ( ! params . body ) { return Bluebird . reject ( new Error ( 'No body provided' ) ) ; } if ( params . options && params . options . ttl ) { return this . client . set ( ` ${ params . key } ` , JSON . stringify ( params . body ) , 'EX' , params . options . ttl ) ; } return this . client . set ( ` ${ params . key } ` , JSON . stringify ( params . body ) ) ; }
Set something depending on the given parameters key, body, options
 @param params
 @returns {Promise|Promise<T|never>}
Set something depending on the given parameters key body options @param params @returns { Promise|Promise<T|never > }