[name]
A simple caching classe, used internaly by [page:XHRLoader].
Constructor
[name]()
Creates a new [name].
Properties
[property:Boolean enabled]
Whether caching is enabled. Default is *false*.
[property:Object files]
An [page:Object object] that hold cached values.
Methods
[method:null add]( [page:String key], value )
[page:String key] — required. A string key
[page:Object] value — A value
Adds a cache entry with that key to hold the value. If this key already holds a value, it is overwritten.
[method:null get]( [page:String key] )
[page:String key] — required. A string key
Get the value of key. If the key does not exist *undefined* is returned.
[method:null remove]( [page:String key] )
[page:String key] — required. A string key
Remove the cached value associated with the key.
[method:null clear]()
Remove all values from the cache.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]