@bejibun/core 0.1.60 → 0.1.61

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/CHANGELOG.md +27 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  ---
5
5
 
6
+ ## [v0.1.61](https://github.com/crenata/bejibun-core/compare/v0.1.58...v0.1.61) - 2025-12-12
7
+
8
+ ### 🩹 Fixes
9
+ - [@bejibun/cache](https://github.com/crenata/bejibun-cache) Redis connection with Cache own configuration - [#1](https://github.com/crenata/bejibun-core/issues/1)
10
+
11
+ ### 📖 Changes
12
+ What's New :
13
+ #### Upgrade [@bejibun/cache](https://github.com/crenata/bejibun-cache) to v0.1.14
14
+ - Adding `ttl` supports for file scheme.
15
+
16
+ #### How does it work?
17
+ When you use a cache and include a `ttl`, the system generates a `unix timestamp` and adds it with specified `ttl`.
18
+ Then system will write it to a file in the format `ttl|file`, separated by the `|` symbol.
19
+
20
+ When you call data from the cache, the system creates metadata consisting of the `ttl` and `data` by splitting them with `|`.
21
+ The system then checks if the `ttl` is empty and returns the data.
22
+
23
+ Or if the `ttl` is present, the system checks whether the `current timestamp` <= `ttl`?
24
+ If so, the data is returned. Otherwise, the cache file will be deleted and returned null.
25
+
26
+ ### ❤️Contributors
27
+ - Ghulje ([@ghulje](https://github.com/ghulje))
28
+
29
+ **Full Changelog**: https://github.com/crenata/bejibun-core/blob/master/CHANGELOG.md
30
+
31
+ ---
32
+
6
33
  ## [v0.1.60](https://github.com/crenata/bejibun-core/compare/v0.1.58...v0.1.60) - 2025-12-10
7
34
 
8
35
  ### 🩹 Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bejibun/core",
3
- "version": "0.1.60",
3
+ "version": "0.1.61",
4
4
  "author": "Havea Crenata <havea.crenata@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,7 +10,7 @@
10
10
  "module": "index.js",
11
11
  "dependencies": {
12
12
  "@bejibun/app": "^0.1.22",
13
- "@bejibun/cache": "^0.1.12",
13
+ "@bejibun/cache": "^0.1.14",
14
14
  "@bejibun/cors": "^0.1.16",
15
15
  "@bejibun/database": "^0.1.19",
16
16
  "@bejibun/logger": "^0.1.22",