index.js
function _setRedisItem (config, blocks) {
  let key = _buildRedisKey(config.redisKey, config.language)
  return config.redis.hmsetAsync(key, blocks)
    .then(function () {
      return config.redis.expireAsync(key, config.redisExpire)
    })
    .then(function () {
      return blocks
    })
}
function _setRedisItem (config, blocks) {
  let key = _buildRedisKey(config.redisKey, config.language)
  return config.redis.hmsetAsync(key, blocks)
    .then(function () {
      return config.redis.expireAsync(key, config.redisExpire)
    })
    .then(function () {
      return blocks
    })
}
function _setRedisItem ( config , blocks ) { let key = _buildRedisKey ( config . redisKey , config . language ) return config . redis . hmsetAsync ( key , blocks ) . then ( function ( ) { return config . redis . expireAsync ( key , config . redisExpire ) } ) . then ( function ( ) { return blocks } ) }
Wrap Redis set call in a Promise.
@param config
@param blocks
@returns {Promise}
@private
Wrap Redis set call in a Promise .