fkg 1.0.4 → 1.0.6

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
@@ -1,5 +1,5 @@
1
1
  ## Quickstart
2
- =============
2
+ ====================
3
3
 
4
4
  ### To Create cache service...
5
5
  ======================================
@@ -11,7 +11,7 @@ npm install fkg
11
11
  ```
12
12
 
13
13
 
14
- **2. Create a server**
14
+ **2. Create server**
15
15
 
16
16
  ```javascript
17
17
  const fkg = require('fkg');
@@ -57,6 +57,12 @@ user.del('id_2');
57
57
  user.clear();
58
58
  ```
59
59
 
60
+ **9. Close server**
61
+
62
+ ```javascript
63
+ db.close();
64
+ ```
65
+
60
66
 
61
67
 
62
68
 
package/lib/index.js CHANGED
@@ -12,7 +12,6 @@ const {
12
12
  const {str,obj,arr} = require('./utils/type');
13
13
  class fkg {
14
14
  constructor(arg) {
15
- this.is = {};
16
15
  this.data = {};
17
16
  this.dirs = {};
18
17
  this.dir = null;
@@ -41,6 +40,11 @@ class fkg {
41
40
  }
42
41
  }
43
42
  }
43
+ close(){
44
+ this.dir = null;
45
+ this.data = null;
46
+ this.dirs = null;
47
+ }
44
48
  table(n) {
45
49
  const that = this;
46
50
  if(!n||!str(n)) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fkg",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Read and set memory key!",
5
5
  "main": "lib/index.js",
6
6
  "keywords": [