vona-module-a-summer 5.0.13 → 5.0.15
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.js +6 -6
- package/dist/types/summerCache.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BeanBase, BeanInfo, deepExtend, cast, BeanScopeBase, createBeanDecorator } from 'vona';
|
|
2
|
-
import {
|
|
1
|
+
import { BeanBase, Virtual, BeanInfo, deepExtend, cast, BeanScopeBase, createBeanDecorator } from 'vona';
|
|
2
|
+
import { Bean, Service, Scope } from 'vona-module-a-bean';
|
|
3
3
|
|
|
4
4
|
const __ThisModule__ = 'a-summer';
|
|
5
5
|
|
|
@@ -63,10 +63,10 @@ class CacheBase extends BeanBase {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
var _dec$5, _dec2$5, _class$5;
|
|
67
|
-
let BeanSummerCacheBase = (_dec$5 =
|
|
66
|
+
var _dec$5, _dec2$5, _dec3, _class$5;
|
|
67
|
+
let BeanSummerCacheBase = (_dec$5 = Bean(), _dec2$5 = Virtual(), _dec3 = BeanInfo({
|
|
68
68
|
module: "a-summer"
|
|
69
|
-
}), _dec$5(_class$5 = _dec2$5(_class$5 = class BeanSummerCacheBase extends CacheBase {
|
|
69
|
+
}), _dec$5(_class$5 = _dec2$5(_class$5 = _dec3(_class$5 = class BeanSummerCacheBase extends CacheBase {
|
|
70
70
|
__init__(cacheName, cacheOptions) {
|
|
71
71
|
let _cacheName;
|
|
72
72
|
let _cacheOptions;
|
|
@@ -143,7 +143,7 @@ let BeanSummerCacheBase = (_dec$5 = Virtual(), _dec2$5 = BeanInfo({
|
|
|
143
143
|
}
|
|
144
144
|
return this.localRedis;
|
|
145
145
|
}
|
|
146
|
-
}) || _class$5) || _class$5);
|
|
146
|
+
}) || _class$5) || _class$5) || _class$5);
|
|
147
147
|
|
|
148
148
|
var _dec$4, _dec2$4, _class$4;
|
|
149
149
|
let BeanSummer = (_dec$4 = Bean(), _dec2$4 = BeanInfo({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OmitNever } from 'vona';
|
|
2
2
|
import type { TypeBroadcastOnSet } from 'vona-module-a-cache';
|
|
3
|
-
import type { ServiceDb } from 'vona-module-a-database';
|
|
4
3
|
import type { IOnionOptionsEnable, ServiceOnion } from 'vona-module-a-onion';
|
|
4
|
+
import type { ServiceDb } from 'vona-module-a-orm';
|
|
5
5
|
import type { IRedisClientRecord } from 'vona-module-a-redis';
|
|
6
6
|
export interface ISummerCacheRecord {
|
|
7
7
|
}
|
|
@@ -12,7 +12,7 @@ export interface ISummerCacheGet<KEY, DATA> {
|
|
|
12
12
|
export interface ISummerCacheMGet<KEY, DATA> {
|
|
13
13
|
mgetNative(keys: KEY[], options?: TSummerCacheActionOptions<KEY, DATA>): Promise<Array<DATA | null | undefined>>;
|
|
14
14
|
}
|
|
15
|
-
export type TSummerCachePreset = 'redis' | 'all' | 'redisWithIgnoreNull' | 'allWithIgnoreNull';
|
|
15
|
+
export type TSummerCachePreset = 'mem' | 'redis' | 'all' | 'memWithIgnoreNull' | 'redisWithIgnoreNull' | 'allWithIgnoreNull';
|
|
16
16
|
export type TSummerCacheMode = 'all' | 'mem' | 'redis';
|
|
17
17
|
export interface IDecoratorSummerCacheOptions extends IOnionOptionsEnable {
|
|
18
18
|
preset?: TSummerCachePreset;
|