Class: CacheMap

CacheMap(manager)

new CacheMap(manager)

Cache for images, audio, or any other kind of resource
Parameters:
Name Type Description
manager ImageManager

Methods

(static) clear()

clear

checkTTL()

checks ttl of all elements and removes dead ones

getItem(key) → {*|null}

cache item
Parameters:
Name Type Description
key url of cache element
Returns:
Type
* | null

setItem(key, item) → {CacheEntry}

Parameters:
Name Type Description
key String
item String
Returns:
Type
CacheEntry

update(ticks, delta)

Parameters:
Name Type Description
ticks Number
delta Number