export class CellCache < T = number > { private _map : Record < number , T > ; constructor ( ) { this . _map = Object . create ( null ) ; } get ( index ) { return this . _map [ index ] ; } set ( index , size ) { this . _map [ index ] = size ; } clear ( ) { this . _map = Object . create ( null ) ; } } export default CellCache ;