AspireDict
Handle
interface AspireDict { clear(): Promise<void>; containsKey(key: K): Promise<boolean>; count(): Promise<number>; get(key: K): Promise<V>; keys(): Promise<K[]>; remove(key: K): Promise<boolean>; set( key: K, value: V): Promise<void>; toObject(): Promise<Record<string, V>>; values(): Promise<V[]>;} 9 members
Methods
method
containsKey Determines whether the dictionary contains the specified key
containsKey(key: K): Promise<boolean>Parameters
key K Returns
Promise<boolean> method
get Gets the value associated with the specified key
get(key: K): Promise<V>Parameters
key K Returns
Promise<V> method
remove Removes the value with the specified key
remove(key: K): Promise<boolean>Parameters
key K Returns
Promise<boolean> method
set Sets the value for the specified key
set( key: K, value: V): Promise<void>Parameters
key K value V Returns
Promise<void> method
toObject Converts the dictionary to a plain object (creates a copy)
toObject(): Promise<Record<string, V>>Returns
Promise<Record<string, V>>