lib/decorators/ExpiresDecorator.js
function ExpiresDecorator(cache, config) {
  BaseDecorator.call(this, cache, config, joi.object().keys({
    expiresIn: joi.number().integer().min(0).default(Infinity),
    staleIn: joi.number().integer().min(0).default(Infinity)
  }));
  this.on('set:after', this.setCreatedAt.bind(this));
  this._store = this._getStore();
}
function ExpiresDecorator(cache, config) {
  BaseDecorator.call(this, cache, config, joi.object().keys({
    expiresIn: joi.number().integer().min(0).default(Infinity),
    staleIn: joi.number().integer().min(0).default(Infinity)
  }));
  this.on('set:after', this.setCreatedAt.bind(this));
  this._store = this._getStore();
}
function ExpiresDecorator ( cache , config ) { BaseDecorator . call ( this , cache , config , joi . object ( ) . keys ( { expiresIn : joi . number ( ) . integer ( ) . min ( 0 ) . default ( Infinity ) , staleIn : joi . number ( ) . integer ( ) . min ( 0 ) . default ( Infinity ) } ) ) ; this . on ( 'set:after' , this . setCreatedAt . bind ( this ) ) ; this . _store = this . _getStore ( ) ; }
Expire Redis-backed cache

@param {Cache} cache
@param {Object} [config]
@param {String} [config.expiresIn] in ms
@param {String} [config.staleIn] in ms
Expire Redis - backed cache