@tmlmobilidade/go-interfaces-cachedb 20260911.1754.53 → 20260914.1747.44

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.
@@ -43,7 +43,7 @@ declare class CacheDbClass {
43
43
  * or `null` if not found.
44
44
  * @throws Will throw an error if the retrieval process fails.
45
45
  */
46
- getNew<T>(key: CacheDbKey): Promise<CachedData<T> | null>;
46
+ getNew<T>(key: CacheDbKey): Promise<CachedData<T> | undefined>;
47
47
  /**
48
48
  * Scans cache keys by pattern.
49
49
  * @param pattern The redis pattern to match.
package/dist/interface.js CHANGED
@@ -81,7 +81,7 @@ class CacheDbClass {
81
81
  async getNew(key) {
82
82
  const result = await this.client.get(key);
83
83
  if (typeof result !== 'string')
84
- return null;
84
+ return;
85
85
  return JSON.parse(result);
86
86
  }
87
87
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/go-interfaces-cachedb",
3
- "version": "20260911.1754.53",
3
+ "version": "20260914.1747.44",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"