A simple caching system, used internally by FileLoader. To enable caching across all loaders that use FileLoader, add THREE.Cache.enabled = true. once in your app.
Whether caching is enabled or not.
Default is false.
A dictionary that holds cached files.
Adds a cache entry with a key to reference the file. If this key already holds a file, it is overwritten.
key
The key to reference the cached file.
file
The file to be cached.
Remove all values from the cache.
Gets the cached value for the given key.
key
The key to reference the cached file.
Returns: The cached file. If the key does not exist undefined is returned.
Removes the cached file associated with the given key.
key
The key to reference the cached file.