springroll.AssetCache Class
A class that remembers the assets loaded by the AssetManager
delete
Removes a single asset from the cache.
destroy
()
Destroy the cache. Don't use after this.
empty
()
Removes all assets from the cache.
read
Retrieves a single asset from the cache.
write
Adds a single asset to the cache.
Parameters:
-
id
String
The id to save the asset as.
-
content
The asset content to save.
_cache
Object
private
The cache containing assets