download
raw
503 Bytes
const Cache = {
enabled: false,
files: {},
add: function ( key, file ) {
if ( this.enabled === false ) return;
// console.log( 'THREE.Cache', 'Adding key:', key );
this.files[ key ] = file;
},
get: function ( key ) {
if ( this.enabled === false ) return;
// console.log( 'THREE.Cache', 'Checking key:', key );
return this.files[ key ];
},
remove: function ( key ) {
delete this.files[ key ];
},
clear: function () {
this.files = {};
}
};
export { Cache };

Xet Storage Details

Size:
503 Bytes
·
Xet hash:
2f75df9b08abae3adf09daa01ef441953de128ddd33ad56bcae6b363d52968c6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.