function commitEntry(key, entry) {
		self.indexes.primaryKey.set(key, entry)

		self.opts.entryIndexes.forEach(function(property) {
			if(!entry[property]) return;
			if(!self.indexes[property].has(entry[property])) {
				self.indexes[property].set(entry[property], new Map())
			}
			self.indexes[property].get(entry[property]).set(key, entry)
		})
	}
// This function creates the storage indexes
This function creates the storage indexes
This function creates the storage indexes
function commitEntry(key, entry) {
		self.indexes.primaryKey.set(key, entry)
		self.opts.entryIndexes.forEach(function(property) {
			if(!entry[property]) return;
			if(!self.indexes[property].has(entry[property])) {
				self.indexes[property].set(entry[property], new Map())
			}
			self.indexes[property].get(entry[property]).set(key, entry)
		})
	}
function commitEntry ( key , entry ) { self . indexes . primaryKey . set ( key , entry ) self . opts . entryIndexes . forEach ( function ( property ) { if ( ! entry [ property ] ) return ; if ( ! self . indexes [ property ] . has ( entry [ property ] ) ) { self . indexes [ property ] . set ( entry [ property ] , new Map ( ) ) } self . indexes [ property ] . get ( entry [ property ] ) . set ( key , entry ) } ) }
This function creates the storage indexes
This function creates the storage indexes