@ima/core
Version:
IMA.js framework for isomorphic javascript application
29 lines (28 loc) • 837 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "CacheFactory", {
enumerable: true,
get: function() {
return CacheFactory;
}
});
const _CacheEntry = require("./CacheEntry");
class CacheFactory {
static get $dependencies() {
return [];
}
/**
* Create a new instance of {@link CacheEntry} with value and ttl.
*
* @param value The cache entry value.
* @param ttl Cache entry time to live in milliseconds. The
* entry will expire after the specified amount of milliseconds.
* @param created Cache entry created time in milliseconds.
* @return The created cache entry.
*/ createCacheEntry(value, ttl) {
return new _CacheEntry.CacheEntry(value, ttl);
}
}
//# sourceMappingURL=CacheFactory.js.map
;