deepbase-redis 1.0.8 → 1.0.10

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
@@ -6,7 +6,10 @@ For simplicity you may be interested in the version of DeepBase that persists in
6
6
 
7
7
  ## 📦 Installation
8
8
  ```shell
9
- npm install deepbase
9
+ # DeepBaseRedis requires Redis Stack, which includes the necessary Redis JSON module. Here's how you can set it up:
10
+ docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest
11
+
12
+ npm install deepbase-redis
10
13
  ```
11
14
 
12
15
  ## 🔧 Usage
package/demo/demo.mjs CHANGED
@@ -38,6 +38,7 @@ console.log({
38
38
  user: await mem.get("user")
39
39
  })
40
40
 
41
+ await mem.disconnect();
41
42
  // {
42
43
  // "config": {
43
44
  // "lang": "EN"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "deepbase-redis",
3
- "version": "1.0.8",
4
- "description": "⚡ Fastest and simplest way to add Redis persistence to your projects.",
3
+ "version": "1.0.10",
4
+ "description": "⚡ Fastest and simplest way to add Redis Stack persistence to your projects.",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {
7
7
  "nanoid": "^5.0.4",
package/test/test.mjs CHANGED
@@ -13,6 +13,7 @@ describe('DeepBaseRedis', () => {
13
13
 
14
14
  afterEach(async () => {
15
15
  await db.del('foo');
16
+ await db.disconnect();
16
17
  });
17
18
 
18
19
  describe('#set()', () => {
@@ -131,6 +132,7 @@ describe('DeepBaseRedis', () => {
131
132
  await db.upd('foo', 'bar', n => n * 3);
132
133
  assert.deepEqual(await db.get('foo', 'bar'), 6);
133
134
  });
134
-
135
135
  });
136
+
137
+
136
138
  });