[name]

A simple caching classe, used internaly by [page:XHRLoader].

Constructor

[name]()

Creates a new [name].

Properties

[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 —
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 the null value 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]