deepbase-redis 1.0.9 → 1.0.12
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 +4 -1
- package/index.mjs +1 -17
- package/package.json +2 -2
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
|
-
|
|
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/index.mjs
CHANGED
|
@@ -116,20 +116,4 @@ export default class DeepBaseRedis {
|
|
|
116
116
|
await this.set(...[...keys, id, value])
|
|
117
117
|
return [...keys, id]
|
|
118
118
|
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// const mem = new DeepBaseRedis();
|
|
122
|
-
|
|
123
|
-
// await mem.del('a')
|
|
124
|
-
|
|
125
|
-
// await mem.add('a', 'b', 'c', 1)
|
|
126
|
-
// await mem.add('a', 'b', 'c', 1)
|
|
127
|
-
// await mem.get('a', 'b', 'c')
|
|
128
|
-
|
|
129
|
-
// await mem.set('a', 'b', 'a', 1)
|
|
130
|
-
// await mem.set('a', 'c', 'a', 1)
|
|
131
|
-
// await mem.del('a', 'c', 'a', 1)
|
|
132
|
-
|
|
133
|
-
// console.log(await mem.get('a'))
|
|
134
|
-
|
|
135
|
-
// await client.quit();
|
|
119
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepbase-redis",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "⚡ Fastest and simplest way to add Redis persistence to your projects.",
|
|
3
|
+
"version": "1.0.12",
|
|
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",
|