@blackglory/cache-js 0.2.0 → 0.3.0
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 +18 -12
- package/dist/es2015/index.min.mjs +1 -15
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +2180 -11050
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +2180 -11050
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +1 -15
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -15
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +2141 -11013
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +2141 -11013
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +1 -15
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/cache.d.ts +1 -1
- package/lib/es2015/cache.js +16 -12
- package/lib/es2015/cache.js.map +1 -1
- package/lib/es2015/utils/rpc-client.browser.d.ts +1 -1
- package/lib/es2015/utils/rpc-client.browser.js +11 -8
- package/lib/es2015/utils/rpc-client.browser.js.map +1 -1
- package/lib/es2015/utils/rpc-client.d.ts +1 -1
- package/lib/es2015/utils/rpc-client.js +11 -8
- package/lib/es2015/utils/rpc-client.js.map +1 -1
- package/lib/es2018/cache.d.ts +1 -1
- package/lib/es2018/cache.js +15 -13
- package/lib/es2018/cache.js.map +1 -1
- package/lib/es2018/utils/rpc-client.browser.d.ts +1 -1
- package/lib/es2018/utils/rpc-client.browser.js +10 -7
- package/lib/es2018/utils/rpc-client.browser.js.map +1 -1
- package/lib/es2018/utils/rpc-client.d.ts +1 -1
- package/lib/es2018/utils/rpc-client.js +10 -7
- package/lib/es2018/utils/rpc-client.js.map +1 -1
- package/package.json +15 -9
package/README.md
CHANGED
|
@@ -23,18 +23,6 @@ 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
26
|
set(
|
|
39
27
|
namespace: string
|
|
40
28
|
, key: string
|
|
@@ -43,10 +31,28 @@ class CacheClient {
|
|
|
43
31
|
, timeBeforeDeletion: number
|
|
44
32
|
, timeout?: number
|
|
45
33
|
): Promise<void>
|
|
34
|
+
|
|
35
|
+
has(namespace: string, key: string, timeout?: number): Promise<boolean>
|
|
36
|
+
|
|
37
|
+
get(namespace: string, key: string, timeout?: number): Promise<string | null>
|
|
38
|
+
getWithMetadata(namespace: string, key: string, timeout?: number): Promise<{
|
|
39
|
+
value: string
|
|
40
|
+
metadata: IMetadata
|
|
41
|
+
} | null>
|
|
42
|
+
bulkGet(
|
|
43
|
+
namespace: string
|
|
44
|
+
, keys: string[]
|
|
45
|
+
, timeout?: number
|
|
46
|
+
): Promise<Array<string | null>>
|
|
47
|
+
|
|
46
48
|
del(namespace: string, key: string, timeout?: number): Promise<void>
|
|
47
49
|
clear(namespace: string, timeout?: number): Promise<void>
|
|
50
|
+
|
|
48
51
|
getAllItemKeys(namespace: string, timeout?: number): Promise<string[]>
|
|
49
52
|
getAllNamespaces(timeout?: number): Promise<string[]>
|
|
53
|
+
|
|
50
54
|
stats(namespace: string, timeout?: number): Promise<IStats>
|
|
55
|
+
|
|
56
|
+
close(): Promise<void>
|
|
51
57
|
}
|
|
52
58
|
```
|