@stackone/transport 2.43.3 → 2.44.0

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.cts CHANGED
@@ -41,12 +41,13 @@ interface ICacheClient<ClientType = unknown> {
41
41
  items: T[] | null;
42
42
  cursor?: string;
43
43
  }>;
44
- setData<T>({ key, value, cacheTTL, groupKeys, groupKeyTTL }: {
44
+ setData<T>({ key, value, cacheTTL, groupKeys, groupKeyTTL, compress }: {
45
45
  key: string;
46
46
  value: T;
47
47
  cacheTTL: number;
48
48
  groupKeys?: string[];
49
49
  groupKeyTTL?: number;
50
+ compress?: boolean;
50
51
  }): Promise<boolean>;
51
52
  setTTL(key: string, cacheTTL: number): Promise<boolean>;
52
53
  executeScript?<T>({ sha1, keys, args }: {
@@ -98,12 +99,13 @@ export declare class RedisClient implements ICacheClient<RedisClientType> {
98
99
  getDataKeysFromGroup(groupKey: string): Promise<string[] | null>;
99
100
  getGroupSize(groupKey: string): Promise<number | null>;
100
101
  listGroupKeys(prefix: string): Promise<string[] | null>;
101
- setData<T>({ key, value, cacheTTL, groupKeys, groupKeyTTL }: {
102
+ setData<T>({ key, value, cacheTTL, groupKeys, groupKeyTTL, compress }: {
102
103
  key: string;
103
104
  value: T;
104
105
  cacheTTL: number;
105
106
  groupKeys?: string[];
106
107
  groupKeyTTL?: number;
108
+ compress?: boolean;
107
109
  }): Promise<boolean>;
108
110
  setTTL(key: string, cacheTTL: number): Promise<boolean>;
109
111
  executeScript<T>({ sha1, keys, args }: {
package/dist/index.d.mts CHANGED
@@ -41,12 +41,13 @@ interface ICacheClient<ClientType = unknown> {
41
41
  items: T[] | null;
42
42
  cursor?: string;
43
43
  }>;
44
- setData<T>({ key, value, cacheTTL, groupKeys, groupKeyTTL }: {
44
+ setData<T>({ key, value, cacheTTL, groupKeys, groupKeyTTL, compress }: {
45
45
  key: string;
46
46
  value: T;
47
47
  cacheTTL: number;
48
48
  groupKeys?: string[];
49
49
  groupKeyTTL?: number;
50
+ compress?: boolean;
50
51
  }): Promise<boolean>;
51
52
  setTTL(key: string, cacheTTL: number): Promise<boolean>;
52
53
  executeScript?<T>({ sha1, keys, args }: {
@@ -98,12 +99,13 @@ export declare class RedisClient implements ICacheClient<RedisClientType> {
98
99
  getDataKeysFromGroup(groupKey: string): Promise<string[] | null>;
99
100
  getGroupSize(groupKey: string): Promise<number | null>;
100
101
  listGroupKeys(prefix: string): Promise<string[] | null>;
101
- setData<T>({ key, value, cacheTTL, groupKeys, groupKeyTTL }: {
102
+ setData<T>({ key, value, cacheTTL, groupKeys, groupKeyTTL, compress }: {
102
103
  key: string;
103
104
  value: T;
104
105
  cacheTTL: number;
105
106
  groupKeys?: string[];
106
107
  groupKeyTTL?: number;
108
+ compress?: boolean;
107
109
  }): Promise<boolean>;
108
110
  setTTL(key: string, cacheTTL: number): Promise<boolean>;
109
111
  executeScript<T>({ sha1, keys, args }: {