interface KvMap { size : number ; clear () : void ; delete ( key : ArrayBuffer ) : void ; forEach ( callback : ( value : ArrayBuffer , key : ArrayBuffer , kvmap : KvMap ) => void , ) : void ; get ( key : ArrayBuffer ) : undefined | ArrayBuffer ; getVersionOfPreviousWrite ( key : ArrayBuffer ) : undefined | number ; has ( key : ArrayBuffer ) : boolean ; set ( key : ArrayBuffer , value : ArrayBuffer ) : KvMap ; } Properties Methodsclear clear () : void Returns void delete delete ( key : ArrayBuffer ) : void Returns void for Each forEach ( callback : ( value : ArrayBuffer , key : ArrayBuffer , kvmap : KvMap ) => void , ) : void Parameters callback : ( value : ArrayBuffer , key : ArrayBuffer , kvmap : KvMap ) => void Returns void get get ( key : ArrayBuffer ) : undefined | ArrayBuffer Returns undefined | ArrayBuffer get Version Of Previous Write getVersionOfPreviousWrite ( key : ArrayBuffer ) : undefined | number Returns undefined | number has has ( key : ArrayBuffer ) : boolean Returns boolean set set ( key : ArrayBuffer , value : ArrayBuffer ) : KvMap Parameters key : ArrayBuffer value : ArrayBuffer
A map in the Key Value Store.
KVMap
is modelled after JavaScript'sMap
object, except that keys and values must be of typeArrayBuffer
and no guarantees on iteration order are provided.