add static method

dynamic add(
  1. dynamic key,
  2. dynamic file
)

Implementation

static add(key, file) {
  if (enabled == false) return;

  // console.log( 'three.Cache', 'Adding key:', key );

  files[key] = file;
}