Cache
Members
policy : Map<string|RegExp, number>
policy : Map<string|RegExp, number>storage : any
storage : anyMethods
constructor(storage)
constructor(storage)const myCache = new Cache(window.localStorage)async cache(key, callback)
async cache(key, callback)invalidate(key)
invalidate(key)addPolicy(key, lifespan)
addPolicy(key, lifespan)static use(cacheBuilder)
static use(cacheBuilder)static get()
static get()Helpers
async function cache(key, callback)
async function cache(key, callback)function invalidate(key)
function invalidate(key)escapePolicyPart(string)
escapePolicyPart(string)Last updated