services/db.js
function get(key) {
  return redis.get(key)
    .then(data => {
      if (isUri(key)) return data;
      return JSON.parse(data); // Parse non-uri data to match Postgres
    })
    .catch(() => postgres.get(key));
}
function get(key) {
  return redis.get(key)
    .then(data => {
      if (isUri(key)) return data;
      return JSON.parse(data); // Parse non-uri data to match Postgres
    })
    .catch(() => postgres.get(key));
}
function get ( key ) { return redis . get ( key ) . then ( data => { if ( isUri ( key ) ) return data ; return JSON . parse ( data ) ; // Parse non-uri data to match Postgres } ) . catch ( ( ) => postgres . get ( key ) ) ; }
Return a value from the db or cache. Must
return a Object, not stringified JSON

@param  {String} key
@return {Promise}
Return a value from the db or cache . Must return a Object not stringified JSON