fast-ttl-cache 0.1.4 → 0.1.5

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/dist/index.d.mts CHANGED
@@ -16,7 +16,7 @@ declare class FastTTLCache {
16
16
  /** 链表尾部指针,指向最新更新的节点 */
17
17
  tail: CacheItem;
18
18
  /** 缓存大小 */
19
- size: number;
19
+ size: 0;
20
20
  /** 数据 clone 方法 */
21
21
  private cloneMethod;
22
22
  /**
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ declare class FastTTLCache {
16
16
  /** 链表尾部指针,指向最新更新的节点 */
17
17
  tail: CacheItem;
18
18
  /** 缓存大小 */
19
- size: number;
19
+ size: 0;
20
20
  /** 数据 clone 方法 */
21
21
  private cloneMethod;
22
22
  /**
package/dist/index.js CHANGED
@@ -53,8 +53,6 @@ var FastTTLCache = class {
53
53
  this.head = null;
54
54
  /** 链表尾部指针,指向最新更新的节点 */
55
55
  this.tail = null;
56
- /** 缓存大小 */
57
- this.size = 0;
58
56
  /** 数据 clone 方法 */
59
57
  this.cloneMethod = pure;
60
58
  this.ttl = options.ttl || Infinity;
package/dist/index.mjs CHANGED
@@ -20,8 +20,6 @@ var FastTTLCache = class {
20
20
  this.head = null;
21
21
  /** 链表尾部指针,指向最新更新的节点 */
22
22
  this.tail = null;
23
- /** 缓存大小 */
24
- this.size = 0;
25
23
  /** 数据 clone 方法 */
26
24
  this.cloneMethod = pure;
27
25
  this.ttl = options.ttl || Infinity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-ttl-cache",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "ttl cache with capacity support use no timer",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",