You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
279 B
14 lines
279 B
/**
|
|
* k-v 存储
|
|
*/
|
|
export default class<T> {
|
|
map: {
|
|
[key: string]: T;
|
|
};
|
|
has(key: string): boolean;
|
|
get(key: string, def?: T): T | undefined;
|
|
set(key: string, value: T): void;
|
|
clear(): void;
|
|
delete(key: string): void;
|
|
size(): number;
|
|
}
|
|
|