@bejibun/redis 0.1.33 → 0.1.34
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/CHANGELOG.md +14 -0
- package/builders/RedisBuilder.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@ All notable changes to this project will be documented in this file.
|
|
|
3
3
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
## [v0.1.34](https://github.com/crenata/bejibun-redis/compare/v0.1.33...v0.1.34) - 2025-11-23
|
|
7
|
+
|
|
8
|
+
### 🩹 Fixes
|
|
9
|
+
- Fix redis ttl
|
|
10
|
+
|
|
11
|
+
### 📖 Changes
|
|
12
|
+
|
|
13
|
+
### ❤️Contributors
|
|
14
|
+
- Havea Crenata ([@crenata](https://github.com/crenata))
|
|
15
|
+
|
|
16
|
+
**Full Changelog**: https://github.com/crenata/bejibun-redis/blob/master/CHANGELOG.md
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
6
20
|
## [v0.1.33](https://github.com/crenata/bejibun-redis/compare/v0.1.30...v0.1.33) - 2025-11-09
|
|
7
21
|
|
|
8
22
|
### 🩹 Fixes
|
package/builders/RedisBuilder.js
CHANGED
|
@@ -49,9 +49,10 @@ export default class RedisBuilder {
|
|
|
49
49
|
static async set(key, value, ttl, connection) {
|
|
50
50
|
const client = this.getClient(connection);
|
|
51
51
|
const serialized = this.serialize(value);
|
|
52
|
+
const data = await client.set(key, serialized);
|
|
52
53
|
if (isNotEmpty(ttl))
|
|
53
54
|
return await client.expire(key, ttl);
|
|
54
|
-
return
|
|
55
|
+
return data;
|
|
55
56
|
}
|
|
56
57
|
static async del(key, connection) {
|
|
57
58
|
return await this.getClient(connection).del(key);
|
|
@@ -89,9 +90,10 @@ export default class RedisBuilder {
|
|
|
89
90
|
},
|
|
90
91
|
set: (key, value, ttl) => {
|
|
91
92
|
const serialized = this.serialize(value);
|
|
93
|
+
const data = client.set(key, serialized);
|
|
92
94
|
if (isNotEmpty(ttl))
|
|
93
95
|
ops.push(client.expire(key, ttl));
|
|
94
|
-
ops.push(
|
|
96
|
+
ops.push(data);
|
|
95
97
|
}
|
|
96
98
|
};
|
|
97
99
|
fn(pipe);
|