@anveroapi/cache 4.0.2 → 4.1.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x492475=a0_0x16f9;(function(_0x54b7de,_0x46b228){const _0xcb5a22=a0_0x16f9,_0x40798e=_0x54b7de();while(!![]){try{const _0x45eccd=parseInt(_0xcb5a22(0x19a))/0x1*(parseInt(_0xcb5a22(0x190))/0x2)+parseInt(_0xcb5a22(0x19f))/0x3+-parseInt(_0xcb5a22(0x18f))/0x4+-parseInt(_0xcb5a22(0x18d))/0x5+parseInt(_0xcb5a22(0x1a3))/0x6*(-parseInt(_0xcb5a22(0x192))/0x7)+-parseInt(_0xcb5a22(0x1a0))/0x8*(-parseInt(_0xcb5a22(0x18e))/0x9)+parseInt(_0xcb5a22(0x191))/0xa;if(_0x45eccd===_0x46b228)break;else _0x40798e['push'](_0x40798e['shift']());}catch(_0x1cb810){_0x40798e['push'](_0x40798e['shift']());}}}(a0_0x3f4d,0xf2042));const a0_0x102423=(function(){let _0x1d8adf=!![];return function(_0x88c673,_0x5f00f6){const _0x5a0233=_0x1d8adf?function(){const _0x4e8feb=a0_0x16f9;if(_0x5f00f6){const _0x35682f=_0x5f00f6[_0x4e8feb(0x19e)](_0x88c673,arguments);return _0x5f00f6=null,_0x35682f;}}:function(){};return _0x1d8adf=![],_0x5a0233;};}()),a0_0x287d55=a0_0x102423(this,function(){const _0x52580a=a0_0x16f9;return a0_0x287d55[_0x52580a(0x197)]()[_0x52580a(0x193)](_0x52580a(0x19d))[_0x52580a(0x197)]()[_0x52580a(0x196)](a0_0x287d55)[_0x52580a(0x193)]('(((.+)+)+)+$');});a0_0x287d55();function a0_0x3f4d(){const _0x22feb8=['cache-manager-fs-hash','127.0.0.1','(((.+)+)+)+$','apply','479496uFQTxD','24SCLmRk','__esModule','cache-manager-ioredis','3186618xFBzFJ','env','name','defineProperty','9399590vTdITp','5579172WFcmTp','4885880aPqtsB','2Rpszaq','28117450Qbqqri','14mdycvm','search','file','/runtime/.cache','constructor','toString','appDir','default','323591KFBLeX'];a0_0x3f4d=function(){return _0x22feb8;};return a0_0x3f4d();}'use strict';Object[a0_0x492475(0x1a6)](exports,a0_0x492475(0x1a1),{'value':!![]});function a0_0x16f9(_0x2dd26f,_0x1da119){_0x2dd26f=_0x2dd26f-0x18d;const _0x4eaa57=a0_0x3f4d();let _0x287d55=_0x4eaa57[_0x2dd26f];return _0x287d55;}const fsStore=require(a0_0x492475(0x19b)),redisStore=require(a0_0x492475(0x1a2));exports[a0_0x492475(0x199)]=_0x3908f3=>{const _0x2220e9=a0_0x492475;return{'cache':{'default':_0x2220e9(0x194),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x3908f3[_0x2220e9(0x198)]+_0x2220e9(0x195)+((_0x3908f3===null||_0x3908f3===void 0x0?void 0x0:_0x3908f3[_0x2220e9(0x1a4)])?'-'+_0x3908f3[_0x2220e9(0x1a4)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x2220e9(0x19c),'password':'','keyPrefix':_0x3908f3[_0x2220e9(0x1a5)]+':'+((_0x3908f3===null||_0x3908f3===void 0x0?void 0x0:_0x3908f3[_0x2220e9(0x1a4)])?_0x3908f3['env']+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x4d8aa4=a1_0x45d2;(function(_0x590f15,_0x95b750){var _0x5d3dcc=a1_0x45d2,_0x3a1507=_0x590f15();while(!![]){try{var _0x999f50=parseInt(_0x5d3dcc(0x155))/0x1*(parseInt(_0x5d3dcc(0x158))/0x2)+-parseInt(_0x5d3dcc(0x14e))/0x3+parseInt(_0x5d3dcc(0x156))/0x4*(-parseInt(_0x5d3dcc(0x153))/0x5)+-parseInt(_0x5d3dcc(0x152))/0x6+parseInt(_0x5d3dcc(0x15b))/0x7+-parseInt(_0x5d3dcc(0x157))/0x8+parseInt(_0x5d3dcc(0x149))/0x9;if(_0x999f50===_0x95b750)break;else _0x3a1507['push'](_0x3a1507['shift']());}catch(_0x5ae77d){_0x3a1507['push'](_0x3a1507['shift']());}}}(a1_0x5bae,0x54f7e));var a1_0x1ede36=(function(){var _0x43c020=!![];return function(_0x426e17,_0x2ecb6d){var _0x365103=_0x43c020?function(){var _0x325146=a1_0x45d2;if(_0x2ecb6d){var _0x22a309=_0x2ecb6d[_0x325146(0x14b)](_0x426e17,arguments);return _0x2ecb6d=null,_0x22a309;}}:function(){};return _0x43c020=![],_0x365103;};}()),a1_0x44efd7=a1_0x1ede36(this,function(){var _0x185448=a1_0x45d2;return a1_0x44efd7[_0x185448(0x14a)]()[_0x185448(0x160)](_0x185448(0x14c))[_0x185448(0x14a)]()[_0x185448(0x154)](a1_0x44efd7)[_0x185448(0x160)]('(((.+)+)+)+$');});a1_0x44efd7();'use strict';function a1_0x5bae(){var _0x1eb0a4=['CustomConfiguration','search','defineProperty','Configuration','5783778etpSdx','toString','apply','(((.+)+)+)+$','getOwnPropertyDescriptor','1888089rtyrKs','anvero-api:cache','__esModule','__decorate','2343930ZSLbce','24230GvRcyG','constructor','598997ZzDYgj','272krLsSX','525648PUpoXK','2vCnAva','length','./config/config.default','3651501TIsqUM','decorate','@midwayjs/core','function'];a1_0x5bae=function(){return _0x1eb0a4;};return a1_0x5bae();}var __decorate=this&&this[a1_0x4d8aa4(0x151)]||function(_0x46857d,_0x5d1a6b,_0x5111c3,_0x10af8e){var _0x4d9bed=a1_0x4d8aa4,_0x17f61c=arguments['length'],_0x47f1f3=_0x17f61c<0x3?_0x5d1a6b:_0x10af8e===null?_0x10af8e=Object[_0x4d9bed(0x14d)](_0x5d1a6b,_0x5111c3):_0x10af8e,_0x1384e2;if(typeof Reflect==='object'&&typeof Reflect[_0x4d9bed(0x15c)]===_0x4d9bed(0x15e))_0x47f1f3=Reflect[_0x4d9bed(0x15c)](_0x46857d,_0x5d1a6b,_0x5111c3,_0x10af8e);else{for(var _0x51a8ab=_0x46857d[_0x4d9bed(0x159)]-0x1;_0x51a8ab>=0x0;_0x51a8ab--)if(_0x1384e2=_0x46857d[_0x51a8ab])_0x47f1f3=(_0x17f61c<0x3?_0x1384e2(_0x47f1f3):_0x17f61c>0x3?_0x1384e2(_0x5d1a6b,_0x5111c3,_0x47f1f3):_0x1384e2(_0x5d1a6b,_0x5111c3))||_0x47f1f3;}return _0x17f61c>0x3&&_0x47f1f3&&Object[_0x4d9bed(0x161)](_0x5d1a6b,_0x5111c3,_0x47f1f3),_0x47f1f3;};function a1_0x45d2(_0x594e65,_0x13b850){_0x594e65=_0x594e65-0x149;var _0x91532b=a1_0x5bae();var _0x44efd7=_0x91532b[_0x594e65];return _0x44efd7;}Object[a1_0x4d8aa4(0x161)](exports,a1_0x4d8aa4(0x150),{'value':!![]}),exports[a1_0x4d8aa4(0x15f)]=void 0x0;const core_1=require(a1_0x4d8aa4(0x15d)),ConfigDefault=require(a1_0x4d8aa4(0x15a));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x4d8aa4(0x15f)]=CustomConfiguration,exports[a1_0x4d8aa4(0x15f)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x4d8aa4(0x162)])({'namespace':a1_0x4d8aa4(0x14f),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x48d286=a2_0x171a;(function(_0x2e1f39,_0x2e31a7){const _0x52aed9=a2_0x171a,_0x4e653e=_0x2e1f39();while(!![]){try{const _0x54d21d=-parseInt(_0x52aed9(0x136))/0x1*(-parseInt(_0x52aed9(0x11f))/0x2)+-parseInt(_0x52aed9(0x125))/0x3+-parseInt(_0x52aed9(0x12e))/0x4*(parseInt(_0x52aed9(0x12a))/0x5)+-parseInt(_0x52aed9(0x128))/0x6+parseInt(_0x52aed9(0x120))/0x7*(-parseInt(_0x52aed9(0x123))/0x8)+parseInt(_0x52aed9(0x12d))/0x9+-parseInt(_0x52aed9(0x12c))/0xa;if(_0x54d21d===_0x2e31a7)break;else _0x4e653e['push'](_0x4e653e['shift']());}catch(_0x96002b){_0x4e653e['push'](_0x4e653e['shift']());}}}(a2_0x5b73,0xc20ac));const a2_0x71f14e=(function(){let _0x1ba079=!![];return function(_0x203ae9,_0x3b4afc){const _0x3c1dcd=_0x1ba079?function(){if(_0x3b4afc){const _0x1d73be=_0x3b4afc['apply'](_0x203ae9,arguments);return _0x3b4afc=null,_0x1d73be;}}:function(){};return _0x1ba079=![],_0x3c1dcd;};}()),a2_0x1b79a7=a2_0x71f14e(this,function(){const _0x2acfe9=a2_0x171a;return a2_0x1b79a7['toString']()[_0x2acfe9(0x127)]('(((.+)+)+)+$')['toString']()['constructor'](a2_0x1b79a7)['search'](_0x2acfe9(0x139));});a2_0x1b79a7();function a2_0x171a(_0x8fe8c2,_0x381c64){_0x8fe8c2=_0x8fe8c2-0x11e;const _0x2df08d=a2_0x5b73();let _0x1b79a7=_0x2df08d[_0x8fe8c2];return _0x1b79a7;}'use strict';function a2_0x5b73(){const _0x1f89ea=['581YtjooQ','set','parse','6232CtgKVm','value','158943vlUEzO','__esModule','search','453090HacLgu','@midwayjs/core','5lRSckX','defineProperty','199560tzuMHB','7029450mKporC','2192556DLRYbY','MD5','crypto-js','stringify','Cache','getAsync','REQUEST_OBJ_CTX_KEY','CacheService','1URqGBU','app','use','(((.+)+)+)+$','Method::Decorator','1549988GndFNL'];a2_0x5b73=function(){return _0x1f89ea;};return a2_0x5b73();}Object[a2_0x48d286(0x12b)](exports,a2_0x48d286(0x126),{'value':!![]}),exports[a2_0x48d286(0x132)]=Cache;const crypto_js_1=require(a2_0x48d286(0x130)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x48d286(0x129));function json_encode(_0xd2dab7){try{return JSON['stringify'](_0xd2dab7);}catch(_0x389aad){return undefined;}}function Cache(_0x8683fa,_0x14063d){return(_0x28f95f,_0x3683ab,_0x32a5ef)=>{const _0x34834e=a2_0x171a,_0x2ad105=_0x32a5ef['value'];return _0x32a5ef[_0x34834e(0x124)]=async function(..._0x9ea854){const _0x19174e=_0x34834e;_0x8683fa=(_0x8683fa?''+_0x8683fa:''+(_0x3683ab||''))+'.'+(0x0,crypto_js_1[_0x19174e(0x12f)])(json_encode(_0x9ea854))['toString']();let _0x35b602=await this[core_1[_0x19174e(0x134)]][_0x19174e(0x137)]['getApplicationContext']()[_0x19174e(0x133)](CacheService_1[_0x19174e(0x135)]),_0x9c2287=await _0x35b602[_0x19174e(0x138)](_0x19174e(0x11e))['get'](_0x8683fa);if(_0x9c2287)return JSON[_0x19174e(0x122)](_0x9c2287);else _0x9c2287=await _0x2ad105['apply'](this,[..._0x9ea854]),await _0x35b602['use'](_0x19174e(0x11e))[_0x19174e(0x121)](_0x8683fa,JSON[_0x19174e(0x131)](_0x9c2287),_0x14063d);return _0x9c2287;},_0x32a5ef;};}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0xa690d6=a3_0x58db;(function(_0x520eb4,_0x35bf54){var _0x3cb593=a3_0x58db,_0x3a41ed=_0x520eb4();while(!![]){try{var _0x5bb98f=parseInt(_0x3cb593(0x104))/0x1+parseInt(_0x3cb593(0x109))/0x2*(parseInt(_0x3cb593(0x102))/0x3)+-parseInt(_0x3cb593(0x10c))/0x4*(parseInt(_0x3cb593(0x105))/0x5)+-parseInt(_0x3cb593(0xfe))/0x6+parseInt(_0x3cb593(0x10b))/0x7+-parseInt(_0x3cb593(0x100))/0x8*(-parseInt(_0x3cb593(0x101))/0x9)+-parseInt(_0x3cb593(0xfc))/0xa;if(_0x5bb98f===_0x35bf54)break;else _0x3a41ed['push'](_0x3a41ed['shift']());}catch(_0x125134){_0x3a41ed['push'](_0x3a41ed['shift']());}}}(a3_0x39a0,0x99a57));var a3_0x4ee5b8=(function(){var _0x1f0aae=!![];return function(_0x3f69b1,_0x2431c3){var _0x14769f=_0x1f0aae?function(){if(_0x2431c3){var _0x22d5ac=_0x2431c3['apply'](_0x3f69b1,arguments);return _0x2431c3=null,_0x22d5ac;}}:function(){};return _0x1f0aae=![],_0x14769f;};}()),a3_0x216af7=a3_0x4ee5b8(this,function(){var _0x50d403=a3_0x58db;return a3_0x216af7[_0x50d403(0x106)]()['search']('(((.+)+)+)+$')[_0x50d403(0x106)]()[_0x50d403(0x10a)](a3_0x216af7)['search']('(((.+)+)+)+$');});a3_0x216af7();function a3_0x39a0(){var _0x45f0eb=['toString','Configuration','./configuration','2503370guCTlY','constructor','4816798SZFGGz','4MLUCyT','__esModule','CacheService','19999850qcKHSL','CustomConfiguration','4657206gijZdC','./service/CacheService','8Iwmfuj','7528203YGlglP','3pyFxDW','Cache','1046062TziRna','2084035NqJvOb'];a3_0x39a0=function(){return _0x45f0eb;};return a3_0x39a0();}'use strict';Object['defineProperty'](exports,a3_0xa690d6(0x10d),{'value':!![]}),exports[a3_0xa690d6(0x10e)]=exports[a3_0xa690d6(0x103)]=exports[a3_0xa690d6(0x107)]=void 0x0;var configuration_1=require(a3_0xa690d6(0x108));Object['defineProperty'](exports,a3_0xa690d6(0x107),{'enumerable':!![],'get':function(){var _0x55ceb3=a3_0xa690d6;return configuration_1[_0x55ceb3(0xfd)];}});var Cache_1=require('./decorator/Cache');Object['defineProperty'](exports,'Cache',{'enumerable':!![],'get':function(){var _0x210ac2=a3_0xa690d6;return Cache_1[_0x210ac2(0x103)];}});function a3_0x58db(_0x193b3b,_0x32d7c3){_0x193b3b=_0x193b3b-0xfc;var _0x27b598=a3_0x39a0();var _0x216af7=_0x27b598[_0x193b3b];return _0x216af7;}var CacheService_1=require(a3_0xa690d6(0xff));Object['defineProperty'](exports,a3_0xa690d6(0x10e),{'enumerable':!![],'get':function(){var _0x495cb6=a3_0xa690d6;return CacheService_1[_0x495cb6(0x10e)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x518cc3=a4_0x3521;(function(_0x1ea68c,_0x11da76){var _0x6bcb5e=a4_0x3521,_0x1e4b76=_0x1ea68c();while(!![]){try{var _0x57e15e=-parseInt(_0x6bcb5e(0x126))/0x1+-parseInt(_0x6bcb5e(0x113))/0x2+parseInt(_0x6bcb5e(0x13f))/0x3+-parseInt(_0x6bcb5e(0x13d))/0x4*(parseInt(_0x6bcb5e(0x144))/0x5)+-parseInt(_0x6bcb5e(0x10e))/0x6*(-parseInt(_0x6bcb5e(0x13c))/0x7)+-parseInt(_0x6bcb5e(0x120))/0x8*(parseInt(_0x6bcb5e(0x125))/0x9)+parseInt(_0x6bcb5e(0x143))/0xa;if(_0x57e15e===_0x11da76)break;else _0x1e4b76['push'](_0x1e4b76['shift']());}catch(_0xcd7f81){_0x1e4b76['push'](_0x1e4b76['shift']());}}}(a4_0x11a2,0xebd6f));var a4_0x326d23=(function(){var _0x1f5e12=!![];return function(_0x26045,_0x1b02ef){var _0x23e16d=_0x1f5e12?function(){if(_0x1b02ef){var _0x2314ca=_0x1b02ef['apply'](_0x26045,arguments);return _0x1b02ef=null,_0x2314ca;}}:function(){};return _0x1f5e12=![],_0x23e16d;};}()),a4_0x3e4efa=a4_0x326d23(this,function(){var _0x45b5d9=a4_0x3521;return a4_0x3e4efa[_0x45b5d9(0x12a)]()[_0x45b5d9(0x115)](_0x45b5d9(0x13b))[_0x45b5d9(0x12a)]()[_0x45b5d9(0x114)](a4_0x3e4efa)['search'](_0x45b5d9(0x13b));});a4_0x3e4efa();'use strict';var __decorate=this&&this[a4_0x518cc3(0x133)]||function(_0x52e833,_0x434079,_0x3b7b18,_0x2ae5f5){var _0x2e1930=a4_0x518cc3,_0xe7bfc0=arguments[_0x2e1930(0x138)],_0x5ef563=_0xe7bfc0<0x3?_0x434079:_0x2ae5f5===null?_0x2ae5f5=Object[_0x2e1930(0x11f)](_0x434079,_0x3b7b18):_0x2ae5f5,_0x37f5e7;if(typeof Reflect===_0x2e1930(0x11e)&&typeof Reflect['decorate']==='function')_0x5ef563=Reflect[_0x2e1930(0x11b)](_0x52e833,_0x434079,_0x3b7b18,_0x2ae5f5);else{for(var _0x58f6fd=_0x52e833['length']-0x1;_0x58f6fd>=0x0;_0x58f6fd--)if(_0x37f5e7=_0x52e833[_0x58f6fd])_0x5ef563=(_0xe7bfc0<0x3?_0x37f5e7(_0x5ef563):_0xe7bfc0>0x3?_0x37f5e7(_0x434079,_0x3b7b18,_0x5ef563):_0x37f5e7(_0x434079,_0x3b7b18))||_0x5ef563;}return _0xe7bfc0>0x3&&_0x5ef563&&Object[_0x2e1930(0x128)](_0x434079,_0x3b7b18,_0x5ef563),_0x5ef563;},__metadata=this&&this[a4_0x518cc3(0x12f)]||function(_0x177e21,_0x36924b){var _0x5c22e0=a4_0x518cc3;if(typeof Reflect===_0x5c22e0(0x11e)&&typeof Reflect['metadata']==='function')return Reflect[_0x5c22e0(0x121)](_0x177e21,_0x36924b);};Object[a4_0x518cc3(0x128)](exports,a4_0x518cc3(0x146),{'value':!![]}),exports[a4_0x518cc3(0x12b)]=exports[a4_0x518cc3(0x145)]=void 0x0,exports[a4_0x518cc3(0x124)]=json_encode,exports[a4_0x518cc3(0x12e)]=json_decode;const cacheManager=require(a4_0x518cc3(0x13e)),core_1=require(a4_0x518cc3(0x11d));let CacheService=class CacheService{constructor(){var _0x5ba23b=a4_0x518cc3;this['cache']=undefined,this[_0x5ba23b(0x140)]=new Map();}[a4_0x518cc3(0x11a)](_0x67c2c9){var _0x25950e=a4_0x518cc3,_0x5eaf03,_0x10036f;if(!this[_0x25950e(0x137)]){const _0x228fea=((_0x5eaf03=this[_0x25950e(0x10d)][_0x25950e(0x117)])===null||_0x5eaf03===void 0x0?void 0x0:_0x5eaf03[(_0x10036f=this[_0x25950e(0x10d)])===null||_0x10036f===void 0x0?void 0x0:_0x10036f[_0x25950e(0x132)]])||this[_0x25950e(0x10d)][_0x25950e(0x117)][_0x25950e(0x139)];this['cache']=cacheManager[_0x25950e(0x123)]({..._0x228fea['options'],'store':_0x228fea[_0x25950e(0x10f)]});}return!this['clients']['has'](_0x67c2c9)&&this['clients'][_0x25950e(0x110)](_0x67c2c9,new Cache(_0x67c2c9,this[_0x25950e(0x137)])),this[_0x25950e(0x140)]['get'](_0x67c2c9);}async['reset'](){var _0x2fe354=a4_0x518cc3;return await this[_0x2fe354(0x137)][_0x2fe354(0x11c)]();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1['Config'])(a4_0x518cc3(0x137)),__metadata(a4_0x518cc3(0x10c),Object)],CacheService['prototype'],a4_0x518cc3(0x10d),void 0x0),exports[a4_0x518cc3(0x145)]=CacheService=__decorate([(0x0,core_1[a4_0x518cc3(0x112)])(),(0x0,core_1[a4_0x518cc3(0x148)])(core_1[a4_0x518cc3(0x119)]['Singleton'])],CacheService);class Cache{constructor(_0x5de31e,_0x1d721b){var _0x551ffd=a4_0x518cc3;this[_0x551ffd(0x137)]=_0x1d721b,this['prefix']=_0x5de31e;}async[a4_0x518cc3(0x12c)](_0x4269a6){var _0x5ea7a2=a4_0x518cc3;return await this[_0x5ea7a2(0x137)]['del'](this[_0x5ea7a2(0x136)]+':'+_0x4269a6);}async[a4_0x518cc3(0x110)](_0x5130cc,_0x266f3e,_0x648197){var _0x2183c4=a4_0x518cc3,_0xacb3e2,_0x4ae4cf;return((_0x4ae4cf=(_0xacb3e2=this['cache'])===null||_0xacb3e2===void 0x0?void 0x0:_0xacb3e2[_0x2183c4(0x10f)])===null||_0x4ae4cf===void 0x0?void 0x0:_0x4ae4cf[_0x2183c4(0x118)])==_0x2183c4(0x134)?await this[_0x2183c4(0x137)][_0x2183c4(0x110)](this[_0x2183c4(0x136)]+':'+_0x5130cc,_0x266f3e,{'ttl':_0x648197}):await this['cache'][_0x2183c4(0x110)](this['prefix']+':'+_0x5130cc,_0x266f3e,{'ttl':_0x648197});}async[a4_0x518cc3(0x10b)](_0x47e9b3,_0x23ecd2,_0x16b307){return new Promise((_0x1e627f,_0x282f6a)=>{var _0x4da5f9=a4_0x3521;this['cache'][_0x4da5f9(0x10b)](this[_0x4da5f9(0x136)]+':'+_0x47e9b3,async(_0x29fff7,_0x379012)=>{var _0x13d793=_0x4da5f9;_0x29fff7?_0x282f6a(_0x29fff7):((_0x379012===undefined||_0x379012===null)&&(typeof _0x23ecd2=='function'?(_0x379012=await _0x23ecd2()[_0x13d793(0x116)](_0x35926d=>_0x282f6a(_0x35926d)),typeof _0x379012!=_0x13d793(0x131)&&await this['set'](_0x47e9b3,_0x379012,_0x16b307)):_0x379012=_0x23ecd2),_0x1e627f(_0x379012));});});}async[a4_0x518cc3(0x127)](_0x130c32,_0x1cc88f){var _0x1d7cf6=a4_0x518cc3;return await this[_0x1d7cf6(0x12c)](_0x130c32+'#'+_0x1cc88f);}async['hset'](_0x17fae0,_0x4d6950,_0xbe997,_0x3f7697){var _0x472274=a4_0x518cc3;return await this[_0x472274(0x110)](_0x17fae0+'#'+_0x4d6950,_0xbe997,_0x3f7697);}async['hget'](_0x2521af,_0x1b0a96,_0x4baa53,_0x39ef3c){var _0x1d693f=a4_0x518cc3;return await this[_0x1d693f(0x10b)](_0x2521af+'#'+_0x1b0a96,_0x4baa53,_0x39ef3c);}[a4_0x518cc3(0x13a)](_0x578bfa){const _0x3307d5={'all':async()=>{var _0x1ad5fe=a4_0x3521,_0x2b27e6,_0x55c6ae,_0x525f2a,_0x37f572,_0x21ed5f;return((_0x55c6ae=(_0x2b27e6=this[_0x1ad5fe(0x137)])===null||_0x2b27e6===void 0x0?void 0x0:_0x2b27e6[_0x1ad5fe(0x10f)])===null||_0x55c6ae===void 0x0?void 0x0:_0x55c6ae[_0x1ad5fe(0x118)])==_0x1ad5fe(0x134)?(await((_0x21ed5f=(_0x37f572=(_0x525f2a=this===null||this===void 0x0?void 0x0:this[_0x1ad5fe(0x137)])===null||_0x525f2a===void 0x0?void 0x0:_0x525f2a['store'])===null||_0x37f572===void 0x0?void 0x0:_0x37f572[_0x1ad5fe(0x129)]())===null||_0x21ed5f===void 0x0?void 0x0:_0x21ed5f[_0x1ad5fe(0x130)](this['prefix']+':'+_0x578bfa,0x0,-0x1))||[])['map'](_0x355bbc=>json_decode(_0x355bbc)):await this['get'](_0x578bfa,[]);},'pop':async()=>{var _0x6b5771=a4_0x3521,_0x2b767b,_0x5f1e94,_0x380589,_0x29768e,_0x409449;if(((_0x5f1e94=(_0x2b767b=this[_0x6b5771(0x137)])===null||_0x2b767b===void 0x0?void 0x0:_0x2b767b[_0x6b5771(0x10f)])===null||_0x5f1e94===void 0x0?void 0x0:_0x5f1e94[_0x6b5771(0x118)])==_0x6b5771(0x134))return json_decode(await((_0x409449=(_0x29768e=(_0x380589=this===null||this===void 0x0?void 0x0:this[_0x6b5771(0x137)])===null||_0x380589===void 0x0?void 0x0:_0x380589[_0x6b5771(0x10f)])===null||_0x29768e===void 0x0?void 0x0:_0x29768e[_0x6b5771(0x129)]())===null||_0x409449===void 0x0?void 0x0:_0x409449[_0x6b5771(0x147)](this[_0x6b5771(0x136)]+':'+_0x578bfa)));else{let _0x180090=await this[_0x6b5771(0x10b)](_0x578bfa,[]),_0x453635=_0x180090[_0x6b5771(0x122)]();return await this[_0x6b5771(0x110)](_0x578bfa,_0x180090),_0x453635;}},'push':async(..._0x12f431)=>{var _0x537e7a=a4_0x3521,_0x4e3f37,_0x37e0b6,_0x3c24b4,_0x121dc6,_0x2421ca;const _0x214e43=_0x12f431[_0x537e7a(0x111)](_0x5dfe03=>_0x5dfe03!==undefined&&_0x5dfe03!==null);if(((_0x37e0b6=(_0x4e3f37=this[_0x537e7a(0x137)])===null||_0x4e3f37===void 0x0?void 0x0:_0x4e3f37[_0x537e7a(0x10f)])===null||_0x37e0b6===void 0x0?void 0x0:_0x37e0b6[_0x537e7a(0x118)])==_0x537e7a(0x134))return await((_0x2421ca=(_0x121dc6=(_0x3c24b4=this===null||this===void 0x0?void 0x0:this[_0x537e7a(0x137)])===null||_0x3c24b4===void 0x0?void 0x0:_0x3c24b4[_0x537e7a(0x10f)])===null||_0x121dc6===void 0x0?void 0x0:_0x121dc6[_0x537e7a(0x129)]())===null||_0x2421ca===void 0x0?void 0x0:_0x2421ca['rpush'](this[_0x537e7a(0x136)]+':'+_0x578bfa,..._0x214e43[_0x537e7a(0x141)](_0x333ef6=>json_encode(_0x333ef6)))),_0x214e43;else{let _0x2de144=await this[_0x537e7a(0x10b)](_0x578bfa,[]);return _0x2de144[_0x537e7a(0x135)](..._0x214e43),await this[_0x537e7a(0x110)](_0x578bfa,_0x2de144),_0x2de144;}}};return _0x3307d5;}}exports[a4_0x518cc3(0x12b)]=Cache;function json_encode(_0x5ea015){var _0x2b0e6b=a4_0x518cc3;try{return JSON[_0x2b0e6b(0x142)](_0x5ea015);}catch(_0x2f8604){return undefined;}}function a4_0x3521(_0x1ed137,_0x44a05c){_0x1ed137=_0x1ed137-0x10b;var _0x19122e=a4_0x11a2();var _0x3e4efa=_0x19122e[_0x1ed137];return _0x3e4efa;}function a4_0x11a2(){var _0x3cf060=['31068910DZCajw','4890swOBJK','CacheService','__esModule','lpop','Scope','get','design:type','config','42oUJXAq','store','set','filter','Provide','1949196uVuyST','constructor','search','catch','stores','name','ScopeEnum','use','decorate','reset','@midwayjs/core','object','getOwnPropertyDescriptor','8cKRQaV','metadata','shift','caching','json_encode','5228919CPhwtR','1232758ZsCDcn','hdel','defineProperty','getClient','toString','Cache','del','parse','json_decode','__metadata','lrange','undefined','default','__decorate','redis','push','prefix','cache','length','file','list','(((.+)+)+)+$','428029TEsPpe','992kwVtpy','cache-manager','1385910ClKSkG','clients','map','stringify'];a4_0x11a2=function(){return _0x3cf060;};return a4_0x11a2();}function json_decode(_0x445bef){var _0x34d3f1=a4_0x518cc3;try{return JSON[_0x34d3f1(0x12d)](_0x445bef);}catch(_0xfd38bf){return undefined;}}
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
2
|
+
"name": "@anveroapi/cache",
|
|
3
|
+
"version": "4.1.2",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public",
|
|
11
|
+
"registry": "https://registry.npmjs.org/"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build2": "tsc",
|
|
15
|
+
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"crypto-js": "~4.2.0",
|
|
19
|
+
"cache-manager": "^3.6.3",
|
|
20
|
+
"cache-manager-fs-hash": "^1.0.0",
|
|
21
|
+
"cache-manager-ioredis": "^2.1.0",
|
|
22
|
+
"@midwayjs/core": "^4.2.6"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"typescript": "~5.9.3",
|
|
26
|
+
"@types/node": "20.10.0",
|
|
27
|
+
"javascript-obfuscator": "^4.0.2"
|
|
28
|
+
},
|
|
29
|
+
"gitHead": "f7d4644d5e0591c4b383021edab6db20d1714880"
|
|
30
|
+
}
|