@steedos/cachers 2.2.52 → 2.2.53-beta.4

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/lib/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export declare const getCacher: (name: string, options?: any) => any;
2
+ export declare const clearCacher: (name: string | number) => void;
3
+ export declare const getCacherNames: () => string[];
@@ -0,0 +1,11 @@
1
+ export declare class MemoryLRUCacher {
2
+ private cache;
3
+ opts: any;
4
+ constructor(opts: any);
5
+ get(key: string): any;
6
+ set(key: string, data: any, opt?: any): any;
7
+ delete(key: string): any;
8
+ clear(): any;
9
+ keys(): any;
10
+ values(): any;
11
+ }
@@ -0,0 +1,10 @@
1
+ export declare class MemoryCacher {
2
+ private cache;
3
+ constructor();
4
+ get(key: string): any;
5
+ delete(key: string): void;
6
+ set(key: string, data: any): void;
7
+ clear(): void;
8
+ keys(): string[];
9
+ values(): any[];
10
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos/cachers",
3
3
  "private": false,
4
- "version": "2.2.52",
4
+ "version": "2.2.53-beta.4",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "scripts": {
@@ -10,6 +10,7 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
+ "lodash": "^4.17.21",
13
14
  "lru-cache": "^7.10.1"
14
15
  },
15
16
  "devDependencies": {
@@ -18,5 +19,5 @@
18
19
  "publishConfig": {
19
20
  "access": "public"
20
21
  },
21
- "gitHead": "1447c9ca4fb57a49233704f50a7d757aff0c5027"
22
+ "gitHead": "4e43f69e542667e1b83485832a65bfa12371786a"
22
23
  }