@blackglory/cache-js 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -23,30 +23,30 @@ interface ICacheClientOptions {
23
23
  class CacheClient {
24
24
  static create(options: ICacheClientOptions): Promise<CacheClient>
25
25
 
26
- close(): void
27
- has(namespace: string, key: string, timeout?: number): Promise<boolean>
28
- get(namespace: string, key: string, timeout?: number): Promise<string | null>
29
- bulkGet(
30
- namespace: string
31
- , keys: string[]
32
- , timeout?: number
33
- ): Promise<Array<string | null>>
34
- getWithMetadata(namespace: string, key: string, timeout?: number): Promise<{
35
- value: string
36
- metadata: IMetadata
37
- } | null>
38
- set(
39
- namespace: string
40
- , key: string
41
- , value: string
42
- , timeToLive: number
43
- , timeBeforeDeletion: number
44
- , timeout?: number
45
- ): Promise<void>
46
- del(namespace: string, key: string, timeout?: number): Promise<void>
47
- clear(namespace: string, timeout?: number): Promise<void>
48
- getAllItemKeys(namespace: string, timeout?: number): Promise<string[]>
49
- getAllNamespaces(timeout?: number): Promise<string[]>
50
- stats(namespace: string, timeout?: number): Promise<IStats>
26
+ close(): void
27
+ has(namespace: string, key: string, timeout?: number): Promise<boolean>
28
+ get(namespace: string, key: string, timeout?: number): Promise<string | null>
29
+ bulkGet(
30
+ namespace: string
31
+ , keys: string[]
32
+ , timeout?: number
33
+ ): Promise<Array<string | null>>
34
+ getWithMetadata(namespace: string, key: string, timeout?: number): Promise<{
35
+ value: string
36
+ metadata: IMetadata
37
+ } | null>
38
+ set(
39
+ namespace: string
40
+ , key: string
41
+ , value: string
42
+ , timeToLive: number
43
+ , timeBeforeDeletion: number
44
+ , timeout?: number
45
+ ): Promise<void>
46
+ del(namespace: string, key: string, timeout?: number): Promise<void>
47
+ clear(namespace: string, timeout?: number): Promise<void>
48
+ getAllItemKeys(namespace: string, timeout?: number): Promise<string[]>
49
+ getAllNamespaces(timeout?: number): Promise<string[]>
50
+ stats(namespace: string, timeout?: number): Promise<IStats>
51
51
  }
52
52
  ```