wangzhibo
2026-05-09 53418655c061ac26f66058253f39200aced1ab1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
export interface IAsyncStorage<T> {
    /**
     * Get the item from the asynchronous storage object matching the given key.
     * @param key
     * @param correlationId
     */
    getItem(key: string, correlationId: string): Promise<T | null>;
    /**
     * Sets the item in the asynchronous storage object with the given key.
     * @param key
     * @param value
     * @param correlationId
     */
    setItem(key: string, value: T, correlationId: string): Promise<void>;
    /**
     * Removes the item in the asynchronous storage object matching the given key.
     * @param key
     * @param correlationId
     */
    removeItem(key: string, correlationId: string): Promise<void>;
    /**
     * Get all the keys from the asynchronous storage object as an iterable array of strings.
     * @param correlationId
     */
    getKeys(correlationId: string): Promise<string[]>;
    /**
     * Returns true or false if the given key is present in the cache.
     * @param key
     * @param correlationId
     */
    containsKey(key: string, correlationId: string): Promise<boolean>;
}
//# sourceMappingURL=IAsyncStorage.d.ts.map