@xoxno/types 1.0.378 → 1.0.380
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/cache/cache-keys.js
CHANGED
|
@@ -26,7 +26,7 @@ exports.CacheKeys = {
|
|
|
26
26
|
}),
|
|
27
27
|
UserInventorySummary: (address, activeAuction) => ({
|
|
28
28
|
key: `user:${address}:inventory:summary:${activeAuction}`,
|
|
29
|
-
ttl: ttl_1.TTLS.
|
|
29
|
+
ttl: ttl_1.TTLS.ONE_HOUR, // Invalidated by clearUserCaches on every trade/transfer
|
|
30
30
|
}),
|
|
31
31
|
UserHerotag: (address) => ({
|
|
32
32
|
key: `user:${address}:herotag`,
|
|
@@ -97,7 +97,7 @@ exports.CacheKeys = {
|
|
|
97
97
|
}),
|
|
98
98
|
CollectionStats: (collection) => ({
|
|
99
99
|
key: `collection:${collection}:stats`,
|
|
100
|
-
ttl: ttl_1.TTLS.
|
|
100
|
+
ttl: ttl_1.TTLS.ONE_HOUR * 3, // Invalidated by clearCollectionCaches on every trade/listing
|
|
101
101
|
}),
|
|
102
102
|
CollectionFloorPrice: (collection, token) => ({
|
|
103
103
|
key: `collection:${collection}:floor:${token}`,
|
|
@@ -153,11 +153,11 @@ exports.CacheKeys = {
|
|
|
153
153
|
}),
|
|
154
154
|
CollectionStatsDocs: (query) => ({
|
|
155
155
|
key: `query:collection:stats:${query}`,
|
|
156
|
-
ttl: ttl_1.TTLS.
|
|
156
|
+
ttl: ttl_1.TTLS.ONE_DAY * 7, // Long TTL - invalidated by collection index sets
|
|
157
157
|
}),
|
|
158
158
|
CollectionOfferDocs: (hash) => ({
|
|
159
159
|
key: `query:collection:offers:${hash}`,
|
|
160
|
-
ttl: ttl_1.TTLS.
|
|
160
|
+
ttl: ttl_1.TTLS.ONE_DAY * 7, // Long TTL - invalidated by offer index sets
|
|
161
161
|
}),
|
|
162
162
|
CollectionSearch: (filter) => ({
|
|
163
163
|
key: `search:collection:${filter}`,
|
|
@@ -230,7 +230,7 @@ exports.CacheKeys = {
|
|
|
230
230
|
}),
|
|
231
231
|
StakingDataDocs: (query) => ({
|
|
232
232
|
key: `query:staking:data:${query}`,
|
|
233
|
-
ttl: ttl_1.TTLS.
|
|
233
|
+
ttl: ttl_1.TTLS.ONE_MINUTE * 30, // Invalidated on pool create/update events
|
|
234
234
|
}),
|
|
235
235
|
StakingPoolsByCollection: (collections, activePoolsOnly) => {
|
|
236
236
|
const collectionsKey = collections.sort().join(',');
|
|
@@ -16,6 +16,7 @@ export declare class CosmosDbGenericFilter<T> {
|
|
|
16
16
|
includeCount?: boolean;
|
|
17
17
|
strictSelect?: boolean;
|
|
18
18
|
top?: number;
|
|
19
|
+
/** @deprecated Use continuation token pagination via X-Continuation-Token header instead. Will be removed in next major version. */
|
|
19
20
|
skip?: number;
|
|
20
21
|
continuationToken?: string;
|
|
21
22
|
constructor(props?: Partial<CosmosDbGenericFilter<T>>);
|
|
@@ -33,6 +33,7 @@ class CosmosDbGenericFilter {
|
|
|
33
33
|
this.orderBy = [];
|
|
34
34
|
this.strictSelect = false;
|
|
35
35
|
this.top = 25;
|
|
36
|
+
/** @deprecated Use continuation token pagination via X-Continuation-Token header instead. Will be removed in next major version. */
|
|
36
37
|
this.skip = 0;
|
|
37
38
|
Object.assign(this, props);
|
|
38
39
|
}
|
|
@@ -67,7 +68,7 @@ __decorate([
|
|
|
67
68
|
__metadata("design:type", Number)
|
|
68
69
|
], CosmosDbGenericFilter.prototype, "top", void 0);
|
|
69
70
|
__decorate([
|
|
70
|
-
(0, swagger_1.ApiProperty)({ required: false, type: 'integer' }),
|
|
71
|
+
(0, swagger_1.ApiProperty)({ required: false, type: 'integer', deprecated: true }),
|
|
71
72
|
__metadata("design:type", Number)
|
|
72
73
|
], CosmosDbGenericFilter.prototype, "skip", void 0);
|
|
73
74
|
__decorate([
|