@bejibun/redis 0.1.22 → 0.1.23

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.
Files changed (2) hide show
  1. package/README.md +27 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -24,6 +24,33 @@ bun add @bejibun/redis
24
24
  bun ace install @bejibun/redis
25
25
  ```
26
26
 
27
+ ### Configuration
28
+ Add `redis.ts` inside config directory on your project
29
+
30
+ ```bash
31
+ config/redis.ts
32
+ ```
33
+
34
+ ```ts
35
+ const config: Record<string, any> = {
36
+ default: "local",
37
+
38
+ connections: {
39
+ local: {
40
+ host: "127.0.0.1",
41
+ port: 6379,
42
+ password: "",
43
+ database: 0,
44
+ maxRetries: 10
45
+ }
46
+ }
47
+ };
48
+
49
+ export default config;
50
+ ```
51
+
52
+ You can pass the value with environment variables.
53
+
27
54
  ### How to Use
28
55
  How to use tha package.
29
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bejibun/redis",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "author": "Havea Crenata <havea.crenata@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",