lib/index.js
function addMethod(key) {
  Cacher.prototype[key] = function() {
    if (!this.md) {
      return Promise.reject(new Error('Model not set'));
    }
    this.method = key;
    return this.run.apply(this, arguments);
  };
}
function addMethod(key) {
  Cacher.prototype[key] = function() {
    if (!this.md) {
      return Promise.reject(new Error('Model not set'));
    }
    this.method = key;
    return this.run.apply(this, arguments);
  };
}
function addMethod ( key ) { Cacher . prototype [ key ] = function ( ) { if ( ! this . md ) { return Promise . reject ( new Error ( 'Model not set' ) ) ; } this . method = key ; return this . run . apply ( this , arguments ) ; } ; }
Add a retrieval method
Add a retrieval method