let Cacheman = require('cacheman')
  , noop     = function() { }
  ;

function Cache(options) {
  this._cache = new Cacheman('cachegoose-cache', options);
}

Cache.prototype.get = function(key, cb = noop) {
  return this._cache.get(key, cb);
};

Cache.prototype.set = function(key, value, ttl, cb = noop) {
  return this._cache.set(key, value, ttl, cb);
};

Cache.prototype.del = function(key, cb = noop) {
  return this._cache.del(key, cb);
};

Cache.prototype.clear = function(cb = noop) {
  return this._cache.clear(cb);
};

module.exports = function(options) {
  return new Cache(options);
};

@@ -292,32 +292,59 @@
 l, cb = noop) %7B%0A
+  if (ttl === 0) ttl = -1;%0A
   return this._c

allow ttl of 0 to cache indefinitely