miqro 6.2.4 → 6.2.6

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.
@@ -34,7 +34,7 @@ export class LocalCache implements CacheInterface {
34
34
  if (!(list instanceof Set)) {
35
35
  throw new Error("cannot apply on non Set");
36
36
  }
37
- if (list.has(value)) {
37
+ if (!list.has(value)) {
38
38
  list.add(value);
39
39
  }
40
40
  this.localCache.set(key, list);
@@ -45,7 +45,7 @@ export class ClusterCache implements CacheInterface {
45
45
  if (!(list instanceof Set)) {
46
46
  throw new Error("cannot apply push on non array");
47
47
  }
48
- if (list.has(msg.value)) {
48
+ if (!list.has(msg.value)) {
49
49
  list.add(msg.value);
50
50
  }
51
51
  this.localCache.set(msg.key, list);
@@ -139,7 +139,7 @@ export class ClusterCache implements CacheInterface {
139
139
  if (!(list instanceof Set)) {
140
140
  throw new Error("cannot apply on non Set");
141
141
  }
142
- if (list.has(value)) {
142
+ if (!list.has(value)) {
143
143
  list.add(value);
144
144
  }
145
145
  this.localCache.set(key, list);