@anncic-api/cache 3.4.88 → 3.7.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.
@@ -1 +1 @@
1
- const a0_0x183495=a0_0x3009;function a0_0x3009(_0x1af810,_0x3b0680){const _0x5e6e24=a0_0x2e9f();return a0_0x3009=function(_0x4d73f3,_0x334c91){_0x4d73f3=_0x4d73f3-0x7b;let _0x2e9f30=_0x5e6e24[_0x4d73f3];return _0x2e9f30;},a0_0x3009(_0x1af810,_0x3b0680);}(function(_0x47f5b0,_0x4c834d){const _0x349679=a0_0x3009,_0x1aa18e=_0x47f5b0();while(!![]){try{const _0x456959=-parseInt(_0x349679(0x7b))/0x1+-parseInt(_0x349679(0x89))/0x2*(parseInt(_0x349679(0x7c))/0x3)+-parseInt(_0x349679(0x8f))/0x4*(parseInt(_0x349679(0x8c))/0x5)+-parseInt(_0x349679(0x80))/0x6*(-parseInt(_0x349679(0x8d))/0x7)+-parseInt(_0x349679(0x85))/0x8+parseInt(_0x349679(0x87))/0x9*(-parseInt(_0x349679(0x84))/0xa)+parseInt(_0x349679(0x90))/0xb;if(_0x456959===_0x4c834d)break;else _0x1aa18e['push'](_0x1aa18e['shift']());}catch(_0x1ff02a){_0x1aa18e['push'](_0x1aa18e['shift']());}}}(a0_0x2e9f,0x864e0));const a0_0x334c91=(function(){let _0x343c89=!![];return function(_0x45b09f,_0x5f2537){const _0x52173e=_0x343c89?function(){const _0x29a3bd=a0_0x3009;if(_0x5f2537){const _0xcbe754=_0x5f2537[_0x29a3bd(0x83)](_0x45b09f,arguments);return _0x5f2537=null,_0xcbe754;}}:function(){};return _0x343c89=![],_0x52173e;};}()),a0_0x4d73f3=a0_0x334c91(this,function(){const _0x48ead1=a0_0x3009;return a0_0x4d73f3['toString']()[_0x48ead1(0x81)](_0x48ead1(0x7d))[_0x48ead1(0x88)]()['constructor'](a0_0x4d73f3)[_0x48ead1(0x81)](_0x48ead1(0x7d));});a0_0x4d73f3();'use strict';Object['defineProperty'](exports,a0_0x183495(0x8e),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x183495(0x82));function a0_0x2e9f(){const _0x28f2ec=['/runtime/.cache','9VnhkDf','toString','2110juTacg','appDir','memory','455nFjsgY','15344gwfvwR','__esModule','31976MfQdAd','39585051kPesRb','786240PeHpUk','2265IaQagN','(((.+)+)+)+$','file','env','744BuNiLL','search','cache-manager-ioredis','apply','1582870bfZNuk','6814648fwmwSr'];a0_0x2e9f=function(){return _0x28f2ec;};return a0_0x2e9f();}exports['default']=_0x587c7c=>{const _0x3a05db=a0_0x183495;return{'cache':{'default':_0x3a05db(0x7e),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x587c7c[_0x3a05db(0x8a)]+_0x3a05db(0x86)+((_0x587c7c===null||_0x587c7c===void 0x0?void 0x0:_0x587c7c[_0x3a05db(0x7f)])?'-'+_0x587c7c[_0x3a05db(0x7f)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x587c7c['name']+':'+((_0x587c7c===null||_0x587c7c===void 0x0?void 0x0:_0x587c7c['env'])?_0x587c7c[_0x3a05db(0x7f)]+':':'')}},'memory':{'store':_0x3a05db(0x8b),'options':{'max':0x64}}}}};};
1
+ const a0_0x1e7866=a0_0x4b45;(function(_0x11fb24,_0x58e163){const _0x5ccf2b=a0_0x4b45,_0x3e7ec9=_0x11fb24();while(!![]){try{const _0x368f1e=parseInt(_0x5ccf2b(0x163))/0x1+parseInt(_0x5ccf2b(0x15a))/0x2+-parseInt(_0x5ccf2b(0x154))/0x3+parseInt(_0x5ccf2b(0x153))/0x4*(-parseInt(_0x5ccf2b(0x159))/0x5)+parseInt(_0x5ccf2b(0x15b))/0x6+-parseInt(_0x5ccf2b(0x14d))/0x7+parseInt(_0x5ccf2b(0x160))/0x8*(-parseInt(_0x5ccf2b(0x155))/0x9);if(_0x368f1e===_0x58e163)break;else _0x3e7ec9['push'](_0x3e7ec9['shift']());}catch(_0x690720){_0x3e7ec9['push'](_0x3e7ec9['shift']());}}}(a0_0x15a0,0x98634));const a0_0x469760=(function(){let _0x8eccda=!![];return function(_0x2eec71,_0x41035c){const _0x150477=_0x8eccda?function(){const _0x576d3f=a0_0x4b45;if(_0x41035c){const _0x394066=_0x41035c[_0x576d3f(0x14e)](_0x2eec71,arguments);return _0x41035c=null,_0x394066;}}:function(){};return _0x8eccda=![],_0x150477;};}()),a0_0x1d4f3f=a0_0x469760(this,function(){const _0x131bb5=a0_0x4b45;return a0_0x1d4f3f[_0x131bb5(0x158)]()['search'](_0x131bb5(0x15e))[_0x131bb5(0x158)]()['constructor'](a0_0x1d4f3f)[_0x131bb5(0x161)](_0x131bb5(0x15e));});a0_0x1d4f3f();function a0_0x4b45(_0xe1774b,_0x1a3867){const _0x1709d7=a0_0x15a0();return a0_0x4b45=function(_0x1d4f3f,_0x469760){_0x1d4f3f=_0x1d4f3f-0x14d;let _0x15a042=_0x1709d7[_0x1d4f3f];return _0x15a042;},a0_0x4b45(_0xe1774b,_0x1a3867);}'use strict';function a0_0x15a0(){const _0x5a0ade=['132955aNDREE','1735024ZwPzoX','4555938DXjKUo','/runtime/.cache','appDir','(((.+)+)+)+$','name','1144dBSjZP','search','memory','894604SzlJCn','127.0.0.1','2565542xXTlKy','apply','default','env','file','cache-manager-fs-hash','140lPxIhZ','786048YdxpUq','21276DihKKx','cache-manager-ioredis','defineProperty','toString'];a0_0x15a0=function(){return _0x5a0ade;};return a0_0x15a0();}Object[a0_0x1e7866(0x157)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x1e7866(0x152)),redisStore=require(a0_0x1e7866(0x156));exports[a0_0x1e7866(0x14f)]=_0x1e7365=>{const _0x45bc1a=a0_0x1e7866;return{'cache':{'default':_0x45bc1a(0x151),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x1e7365[_0x45bc1a(0x15d)]+_0x45bc1a(0x15c)+((_0x1e7365===null||_0x1e7365===void 0x0?void 0x0:_0x1e7365[_0x45bc1a(0x150)])?'-'+_0x1e7365[_0x45bc1a(0x150)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x45bc1a(0x164),'password':'','keyPrefix':_0x1e7365[_0x45bc1a(0x15f)]+':'+((_0x1e7365===null||_0x1e7365===void 0x0?void 0x0:_0x1e7365[_0x45bc1a(0x150)])?_0x1e7365[_0x45bc1a(0x150)]+':':'')}},'memory':{'store':_0x45bc1a(0x162),'options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- var a1_0x31d12f=a1_0x379b;(function(_0x5b60af,_0x19f516){var _0x1508d8=a1_0x379b,_0x27768a=_0x5b60af();while(!![]){try{var _0xf1cbbe=parseInt(_0x1508d8(0x16f))/0x1*(-parseInt(_0x1508d8(0x173))/0x2)+parseInt(_0x1508d8(0x178))/0x3*(parseInt(_0x1508d8(0x172))/0x4)+parseInt(_0x1508d8(0x16c))/0x5*(parseInt(_0x1508d8(0x175))/0x6)+-parseInt(_0x1508d8(0x170))/0x7+parseInt(_0x1508d8(0x167))/0x8*(parseInt(_0x1508d8(0x16e))/0x9)+-parseInt(_0x1508d8(0x168))/0xa+parseInt(_0x1508d8(0x16b))/0xb*(parseInt(_0x1508d8(0x17f))/0xc);if(_0xf1cbbe===_0x19f516)break;else _0x27768a['push'](_0x27768a['shift']());}catch(_0x158d14){_0x27768a['push'](_0x27768a['shift']());}}}(a1_0x4bfe,0x7007e));var a1_0x53c806=(function(){var _0x480233=!![];return function(_0x401b1a,_0x13887a){var _0x209c7=_0x480233?function(){var _0x2f47fe=a1_0x379b;if(_0x13887a){var _0x35a761=_0x13887a[_0x2f47fe(0x16d)](_0x401b1a,arguments);return _0x13887a=null,_0x35a761;}}:function(){};return _0x480233=![],_0x209c7;};}()),a1_0x207abe=a1_0x53c806(this,function(){var _0xa81ad0=a1_0x379b;return a1_0x207abe['toString']()[_0xa81ad0(0x177)](_0xa81ad0(0x169))['toString']()[_0xa81ad0(0x17c)](a1_0x207abe)[_0xa81ad0(0x177)](_0xa81ad0(0x169));});a1_0x207abe();'use strict';var __decorate=this&&this[a1_0x31d12f(0x17b)]||function(_0x33d44c,_0x3d5f70,_0x3fde47,_0x5d68e8){var _0x111fe5=a1_0x31d12f,_0x31ba78=arguments['length'],_0x50c215=_0x31ba78<0x3?_0x3d5f70:_0x5d68e8===null?_0x5d68e8=Object['getOwnPropertyDescriptor'](_0x3d5f70,_0x3fde47):_0x5d68e8,_0x2cf9ef;if(typeof Reflect==='object'&&typeof Reflect[_0x111fe5(0x174)]===_0x111fe5(0x17d))_0x50c215=Reflect['decorate'](_0x33d44c,_0x3d5f70,_0x3fde47,_0x5d68e8);else{for(var _0x4e90e0=_0x33d44c[_0x111fe5(0x17a)]-0x1;_0x4e90e0>=0x0;_0x4e90e0--)if(_0x2cf9ef=_0x33d44c[_0x4e90e0])_0x50c215=(_0x31ba78<0x3?_0x2cf9ef(_0x50c215):_0x31ba78>0x3?_0x2cf9ef(_0x3d5f70,_0x3fde47,_0x50c215):_0x2cf9ef(_0x3d5f70,_0x3fde47))||_0x50c215;}return _0x31ba78>0x3&&_0x50c215&&Object[_0x111fe5(0x176)](_0x3d5f70,_0x3fde47,_0x50c215),_0x50c215;};function a1_0x379b(_0x3bb385,_0x119ae7){var _0x4c05ff=a1_0x4bfe();return a1_0x379b=function(_0x207abe,_0x53c806){_0x207abe=_0x207abe-0x167;var _0x4bfe8b=_0x4c05ff[_0x207abe];return _0x4bfe8b;},a1_0x379b(_0x3bb385,_0x119ae7);}Object[a1_0x31d12f(0x176)](exports,a1_0x31d12f(0x16a),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require(a1_0x31d12f(0x179)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};exports[a1_0x31d12f(0x171)]=CustomConfiguration,exports[a1_0x31d12f(0x171)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x31d12f(0x17e)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);function a1_0x4bfe(){var _0x4b2dea=['5221846wuxTfn','CustomConfiguration','36cWygQs','40YZdeOY','decorate','1321818ihbBOq','defineProperty','search','11901rlTdxY','@midwayjs/core','length','__decorate','constructor','function','Configuration','7475316vWNmrU','1724512fUHYIK','5589930pYOnQE','(((.+)+)+)+$','__esModule','22fGcTCA','20etiVcg','apply','18IEsEOX','41504rVCcdO'];a1_0x4bfe=function(){return _0x4b2dea;};return a1_0x4bfe();}
1
+ var a1_0x5a92b2=a1_0xaf4b;(function(_0x4e85b6,_0x16c28c){var _0x31c396=a1_0xaf4b,_0xdbc546=_0x4e85b6();while(!![]){try{var _0x3e805c=-parseInt(_0x31c396(0x1bb))/0x1*(-parseInt(_0x31c396(0x1af))/0x2)+-parseInt(_0x31c396(0x1c4))/0x3+parseInt(_0x31c396(0x1ad))/0x4+parseInt(_0x31c396(0x1b8))/0x5*(-parseInt(_0x31c396(0x1bd))/0x6)+parseInt(_0x31c396(0x1c0))/0x7+-parseInt(_0x31c396(0x1c3))/0x8*(parseInt(_0x31c396(0x1b2))/0x9)+-parseInt(_0x31c396(0x1bc))/0xa*(-parseInt(_0x31c396(0x1ae))/0xb);if(_0x3e805c===_0x16c28c)break;else _0xdbc546['push'](_0xdbc546['shift']());}catch(_0x217b5f){_0xdbc546['push'](_0xdbc546['shift']());}}}(a1_0x333b,0xf147f));var a1_0x56789e=(function(){var _0x881ca1=!![];return function(_0x165de0,_0x15a364){var _0x2a9ba7=_0x881ca1?function(){if(_0x15a364){var _0x3cbc58=_0x15a364['apply'](_0x165de0,arguments);return _0x15a364=null,_0x3cbc58;}}:function(){};return _0x881ca1=![],_0x2a9ba7;};}()),a1_0x215e02=a1_0x56789e(this,function(){var _0x268a4e=a1_0xaf4b;return a1_0x215e02[_0x268a4e(0x1ba)]()['search']('(((.+)+)+)+$')[_0x268a4e(0x1ba)]()[_0x268a4e(0x1b7)](a1_0x215e02)[_0x268a4e(0x1b9)](_0x268a4e(0x1b4));});function a1_0xaf4b(_0x37a82d,_0x359a4a){var _0x5b19e5=a1_0x333b();return a1_0xaf4b=function(_0x215e02,_0x56789e){_0x215e02=_0x215e02-0x1ad;var _0x333bd7=_0x5b19e5[_0x215e02];return _0x333bd7;},a1_0xaf4b(_0x37a82d,_0x359a4a);}function a1_0x333b(){var _0x33c78c=['34JhtvmR','CustomConfiguration','__esModule','1953QEQulq','./config/config.default','(((.+)+)+)+$','object','decorate','constructor','55DsIxnp','search','toString','31019aELpgx','773770RuQEMk','903558zZczgt','Configuration','defineProperty','2276043kAKgjE','length','anncic-api:cache','15688GQDSrM','4516875dHYHji','5299252fqmSSj','341DrKLKt'];a1_0x333b=function(){return _0x33c78c;};return a1_0x333b();}a1_0x215e02();'use strict';var __decorate=this&&this['__decorate']||function(_0x31a9f1,_0x4180f3,_0x15c26b,_0x41cd51){var _0x2c2264=a1_0xaf4b,_0x46ff4c=arguments[_0x2c2264(0x1c1)],_0x4bdb86=_0x46ff4c<0x3?_0x4180f3:_0x41cd51===null?_0x41cd51=Object['getOwnPropertyDescriptor'](_0x4180f3,_0x15c26b):_0x41cd51,_0x71fbe8;if(typeof Reflect===_0x2c2264(0x1b5)&&typeof Reflect[_0x2c2264(0x1b6)]==='function')_0x4bdb86=Reflect[_0x2c2264(0x1b6)](_0x31a9f1,_0x4180f3,_0x15c26b,_0x41cd51);else{for(var _0x59b859=_0x31a9f1[_0x2c2264(0x1c1)]-0x1;_0x59b859>=0x0;_0x59b859--)if(_0x71fbe8=_0x31a9f1[_0x59b859])_0x4bdb86=(_0x46ff4c<0x3?_0x71fbe8(_0x4bdb86):_0x46ff4c>0x3?_0x71fbe8(_0x4180f3,_0x15c26b,_0x4bdb86):_0x71fbe8(_0x4180f3,_0x15c26b))||_0x4bdb86;}return _0x46ff4c>0x3&&_0x4bdb86&&Object[_0x2c2264(0x1bf)](_0x4180f3,_0x15c26b,_0x4bdb86),_0x4bdb86;};Object['defineProperty'](exports,a1_0x5a92b2(0x1b1),{'value':!![]}),exports[a1_0x5a92b2(0x1b0)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x5a92b2(0x1b3));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x5a92b2(0x1b0)]=CustomConfiguration,exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a1_0x5a92b2(0x1be)])({'conflictCheck':![],'namespace':a1_0x5a92b2(0x1c2),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x1b3eb7=a2_0x2e06;function a2_0x3b4d(){const _0x59a04e=['apply','1560882DKxZgV','1199810yqftwB','REQUEST_OBJ_CTX_KEY','15SKQexP','parse','get','MD5','1030870mRPrHM','constructor','use','getAsync','app','781650fScfTA','1HCPBrW','__esModule','stringify','value','Method::Decorator','243AkILNs','toString','crypto-js','getApplicationContext','75216RvZBgh','22XJmJMp','232176zArJCO','@midwayjs/core','../service/CacheService','380172oqdOjG'];a2_0x3b4d=function(){return _0x59a04e;};return a2_0x3b4d();}(function(_0x503671,_0x54460d){const _0x55b1bd=a2_0x2e06,_0x2acae2=_0x503671();while(!![]){try{const _0x47bce7=parseInt(_0x55b1bd(0x123))/0x1*(parseInt(_0x55b1bd(0x11d))/0x2)+-parseInt(_0x55b1bd(0x119))/0x3*(parseInt(_0x55b1bd(0x114))/0x4)+parseInt(_0x55b1bd(0x122))/0x5+parseInt(_0x55b1bd(0x116))/0x6+-parseInt(_0x55b1bd(0x12e))/0x7+-parseInt(_0x55b1bd(0x12c))/0x8*(parseInt(_0x55b1bd(0x128))/0x9)+parseInt(_0x55b1bd(0x117))/0xa*(parseInt(_0x55b1bd(0x12d))/0xb);if(_0x47bce7===_0x54460d)break;else _0x2acae2['push'](_0x2acae2['shift']());}catch(_0x510249){_0x2acae2['push'](_0x2acae2['shift']());}}}(a2_0x3b4d,0x64025));const a2_0x387bc6=(function(){let _0x106141=!![];return function(_0x11d207,_0x931fe2){const _0x5ee414=_0x106141?function(){if(_0x931fe2){const _0x193bcb=_0x931fe2['apply'](_0x11d207,arguments);return _0x931fe2=null,_0x193bcb;}}:function(){};return _0x106141=![],_0x5ee414;};}()),a2_0x27e828=a2_0x387bc6(this,function(){const _0x3f6376=a2_0x2e06;return a2_0x27e828[_0x3f6376(0x129)]()['search']('(((.+)+)+)+$')[_0x3f6376(0x129)]()[_0x3f6376(0x11e)](a2_0x27e828)['search']('(((.+)+)+)+$');});a2_0x27e828();function a2_0x2e06(_0x21d11f,_0x2d1637){const _0x437246=a2_0x3b4d();return a2_0x2e06=function(_0x27e828,_0x387bc6){_0x27e828=_0x27e828-0x114;let _0x3b4df3=_0x437246[_0x27e828];return _0x3b4df3;},a2_0x2e06(_0x21d11f,_0x2d1637);}'use strict';Object['defineProperty'](exports,a2_0x1b3eb7(0x124),{'value':!![]}),exports['Cache']=Cache;const crypto_js_1=require(a2_0x1b3eb7(0x12a)),CacheService_1=require(a2_0x1b3eb7(0x130)),core_1=require(a2_0x1b3eb7(0x12f));function json_encode(_0x4c8035){const _0x250a1f=a2_0x1b3eb7;try{return JSON[_0x250a1f(0x125)](_0x4c8035);}catch(_0x2ac7a0){return undefined;}}function Cache(_0x27d93f,_0x2e3d03){return(_0x5db704,_0x1ba9bd,_0x55db2a)=>{const _0x5704bf=a2_0x2e06,_0x474188=_0x55db2a['value'];return _0x55db2a[_0x5704bf(0x126)]=async function(..._0x33224b){const _0x30fe4f=_0x5704bf;_0x27d93f=(_0x27d93f?''+_0x27d93f:''+(_0x1ba9bd||''))+'.'+(0x0,crypto_js_1[_0x30fe4f(0x11c)])(json_encode(_0x33224b))[_0x30fe4f(0x129)]();let _0x4dbb6a=await this[core_1[_0x30fe4f(0x118)]][_0x30fe4f(0x121)][_0x30fe4f(0x12b)]()[_0x30fe4f(0x120)](CacheService_1['CacheService']),_0x321714=await _0x4dbb6a[_0x30fe4f(0x11f)]('Method::Decorator')[_0x30fe4f(0x11b)](_0x27d93f);if(_0x321714)return JSON[_0x30fe4f(0x11a)](_0x321714);else _0x321714=await _0x474188[_0x30fe4f(0x115)](this,[..._0x33224b]),await _0x4dbb6a[_0x30fe4f(0x11f)](_0x30fe4f(0x127))['set'](_0x27d93f,JSON['stringify'](_0x321714),_0x2e3d03);return _0x321714;},_0x55db2a;};}
1
+ const a2_0x4b8a37=a2_0x2db0;function a2_0x4909(){const _0x208ff7=['__esModule','set','2CgzCUR','619812HRMTVx','15ExpGAb','Method::Decorator','535764VhjvbD','(((.+)+)+)+$','get','defineProperty','Cache','162784OkTsxz','toString','CacheService','3507584CwIwzy','getAsync','parse','70992eODeWf','value','constructor','apply','REQUEST_OBJ_CTX_KEY','stringify','crypto-js','MD5','112083AZPZeV','../service/CacheService','20nkkkEt','3808399yfzHyj','use'];a2_0x4909=function(){return _0x208ff7;};return a2_0x4909();}(function(_0x5ed7aa,_0xd345b3){const _0x12eade=a2_0x2db0,_0xcee991=_0x5ed7aa();while(!![]){try{const _0x2a957b=parseInt(_0x12eade(0x9d))/0x1+-parseInt(_0x12eade(0x94))/0x2*(parseInt(_0x12eade(0x8d))/0x3)+-parseInt(_0x12eade(0x95))/0x4+parseInt(_0x12eade(0x96))/0x5*(parseInt(_0x12eade(0x98))/0x6)+parseInt(_0x12eade(0x90))/0x7+-parseInt(_0x12eade(0xa0))/0x8+-parseInt(_0x12eade(0x85))/0x9*(-parseInt(_0x12eade(0x8f))/0xa);if(_0x2a957b===_0xd345b3)break;else _0xcee991['push'](_0xcee991['shift']());}catch(_0x5a211e){_0xcee991['push'](_0xcee991['shift']());}}}(a2_0x4909,0x57d39));function a2_0x2db0(_0x52a5e1,_0x47ece3){const _0x372420=a2_0x4909();return a2_0x2db0=function(_0x1eb58d,_0x5b78ec){_0x1eb58d=_0x1eb58d-0x84;let _0x4909f7=_0x372420[_0x1eb58d];return _0x4909f7;},a2_0x2db0(_0x52a5e1,_0x47ece3);}const a2_0x5b78ec=(function(){let _0x38e441=!![];return function(_0x3ed42d,_0x2b8a92){const _0x18bbdc=_0x38e441?function(){const _0x58494d=a2_0x2db0;if(_0x2b8a92){const _0x3dd04d=_0x2b8a92[_0x58494d(0x88)](_0x3ed42d,arguments);return _0x2b8a92=null,_0x3dd04d;}}:function(){};return _0x38e441=![],_0x18bbdc;};}()),a2_0x1eb58d=a2_0x5b78ec(this,function(){const _0x5bf244=a2_0x2db0;return a2_0x1eb58d[_0x5bf244(0x9e)]()['search'](_0x5bf244(0x99))[_0x5bf244(0x9e)]()[_0x5bf244(0x87)](a2_0x1eb58d)['search'](_0x5bf244(0x99));});a2_0x1eb58d();'use strict';Object[a2_0x4b8a37(0x9b)](exports,a2_0x4b8a37(0x92),{'value':!![]}),exports[a2_0x4b8a37(0x9c)]=Cache;const crypto_js_1=require(a2_0x4b8a37(0x8b)),CacheService_1=require(a2_0x4b8a37(0x8e)),core_1=require('@midwayjs/core');function json_encode(_0x5e2f36){const _0x1c679d=a2_0x4b8a37;try{return JSON[_0x1c679d(0x8a)](_0x5e2f36);}catch(_0x2e619b){return undefined;}}function Cache(_0x5a852d,_0x4c52b2){return(_0x331952,_0x412be7,_0x135fa4)=>{const _0x46070a=a2_0x2db0,_0x44ff9a=_0x135fa4[_0x46070a(0x86)];return _0x135fa4['value']=async function(..._0x3c1bbf){const _0x2158fa=_0x46070a;_0x5a852d=(_0x5a852d?''+_0x5a852d:''+(_0x412be7||''))+'.'+(0x0,crypto_js_1[_0x2158fa(0x8c)])(json_encode(_0x3c1bbf))['toString']();let _0x263c90=await this[core_1[_0x2158fa(0x89)]]['app']['getApplicationContext']()[_0x2158fa(0xa1)](CacheService_1[_0x2158fa(0x9f)]),_0x40c646=await _0x263c90[_0x2158fa(0x91)](_0x2158fa(0x97))[_0x2158fa(0x9a)](_0x5a852d);if(_0x40c646)return JSON[_0x2158fa(0x84)](_0x40c646);else _0x40c646=await _0x44ff9a[_0x2158fa(0x88)](this,[..._0x3c1bbf]),await _0x263c90[_0x2158fa(0x91)](_0x2158fa(0x97))[_0x2158fa(0x93)](_0x5a852d,JSON[_0x2158fa(0x8a)](_0x40c646),_0x4c52b2);return _0x40c646;},_0x135fa4;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0xfd4487=a3_0x1bc5;(function(_0x255acf,_0x28a820){var _0x3908b4=a3_0x1bc5,_0x4ebf9e=_0x255acf();while(!![]){try{var _0x3c3299=-parseInt(_0x3908b4(0x1ab))/0x1+-parseInt(_0x3908b4(0x1a4))/0x2+parseInt(_0x3908b4(0x1a3))/0x3+parseInt(_0x3908b4(0x1a7))/0x4+parseInt(_0x3908b4(0x1b1))/0x5*(parseInt(_0x3908b4(0x1b0))/0x6)+parseInt(_0x3908b4(0x1a2))/0x7*(-parseInt(_0x3908b4(0x19f))/0x8)+-parseInt(_0x3908b4(0x1b3))/0x9;if(_0x3c3299===_0x28a820)break;else _0x4ebf9e['push'](_0x4ebf9e['shift']());}catch(_0x57e922){_0x4ebf9e['push'](_0x4ebf9e['shift']());}}}(a3_0xc4c7,0xc46ec));var a3_0x48e3ce=(function(){var _0x556951=!![];return function(_0x438637,_0x1618e5){var _0xbbc70d=_0x556951?function(){var _0x5b190f=a3_0x1bc5;if(_0x1618e5){var _0x2436f4=_0x1618e5[_0x5b190f(0x1a6)](_0x438637,arguments);return _0x1618e5=null,_0x2436f4;}}:function(){};return _0x556951=![],_0xbbc70d;};}()),a3_0x488f68=a3_0x48e3ce(this,function(){var _0xbbd0dc=a3_0x1bc5;return a3_0x488f68[_0xbbd0dc(0x1ac)]()[_0xbbd0dc(0x1a5)](_0xbbd0dc(0x1ae))[_0xbbd0dc(0x1ac)]()[_0xbbd0dc(0x1af)](a3_0x488f68)[_0xbbd0dc(0x1a5)](_0xbbd0dc(0x1ae));});a3_0x488f68();function a3_0xc4c7(){var _0x13f21d=['apply','4706840OqaADn','CacheService','__esModule','./service/CacheService','31400yLYhje','toString','defineProperty','(((.+)+)+)+$','constructor','66vtPCIc','519985AILDpn','Cache','11086983PeHoVg','CustomConfiguration','616sXzQPI','./decorator/Cache','Configuration','63609zNfVvh','4771629oBPSDb','2287292mvjNFy','search'];a3_0xc4c7=function(){return _0x13f21d;};return a3_0xc4c7();}function a3_0x1bc5(_0x115229,_0x97168){var _0x1fcc0c=a3_0xc4c7();return a3_0x1bc5=function(_0x488f68,_0x48e3ce){_0x488f68=_0x488f68-0x19f;var _0xc4c768=_0x1fcc0c[_0x488f68];return _0xc4c768;},a3_0x1bc5(_0x115229,_0x97168);}'use strict';Object[a3_0xfd4487(0x1ad)](exports,a3_0xfd4487(0x1a9),{'value':!![]}),exports['CacheService']=exports[a3_0xfd4487(0x1b2)]=exports[a3_0xfd4487(0x1a1)]=void 0x0;var configuration_1=require('./configuration');Object[a3_0xfd4487(0x1ad)](exports,a3_0xfd4487(0x1a1),{'enumerable':!![],'get':function(){var _0x4b680c=a3_0xfd4487;return configuration_1[_0x4b680c(0x1b4)];}});var Cache_1=require(a3_0xfd4487(0x1a0));Object['defineProperty'](exports,a3_0xfd4487(0x1b2),{'enumerable':!![],'get':function(){var _0x1294a9=a3_0xfd4487;return Cache_1[_0x1294a9(0x1b2)];}});var CacheService_1=require(a3_0xfd4487(0x1aa));Object[a3_0xfd4487(0x1ad)](exports,a3_0xfd4487(0x1a8),{'enumerable':!![],'get':function(){var _0x1d0cce=a3_0xfd4487;return CacheService_1[_0x1d0cce(0x1a8)];}});
1
+ var a3_0x95390=a3_0x5627;(function(_0x54e80f,_0x4cb8a2){var _0x5e8f1b=a3_0x5627,_0x852dee=_0x54e80f();while(!![]){try{var _0x44fd80=parseInt(_0x5e8f1b(0x183))/0x1+-parseInt(_0x5e8f1b(0x180))/0x2*(parseInt(_0x5e8f1b(0x18b))/0x3)+parseInt(_0x5e8f1b(0x185))/0x4+parseInt(_0x5e8f1b(0x17f))/0x5+parseInt(_0x5e8f1b(0x184))/0x6+parseInt(_0x5e8f1b(0x189))/0x7*(parseInt(_0x5e8f1b(0x182))/0x8)+-parseInt(_0x5e8f1b(0x186))/0x9;if(_0x44fd80===_0x4cb8a2)break;else _0x852dee['push'](_0x852dee['shift']());}catch(_0x259e92){_0x852dee['push'](_0x852dee['shift']());}}}(a3_0x5383,0xc0967));function a3_0x5627(_0x2b51f7,_0x16dbd6){var _0x5351af=a3_0x5383();return a3_0x5627=function(_0x133f61,_0x55055d){_0x133f61=_0x133f61-0x176;var _0x538369=_0x5351af[_0x133f61];return _0x538369;},a3_0x5627(_0x2b51f7,_0x16dbd6);}var a3_0x55055d=(function(){var _0x40de7c=!![];return function(_0x87a1e8,_0x2da623){var _0x3cb456=_0x40de7c?function(){var _0x1ad429=a3_0x5627;if(_0x2da623){var _0x91b1bb=_0x2da623[_0x1ad429(0x176)](_0x87a1e8,arguments);return _0x2da623=null,_0x91b1bb;}}:function(){};return _0x40de7c=![],_0x3cb456;};}()),a3_0x133f61=a3_0x55055d(this,function(){var _0x325f2a=a3_0x5627;return a3_0x133f61['toString']()['search'](_0x325f2a(0x17b))[_0x325f2a(0x181)]()[_0x325f2a(0x178)](a3_0x133f61)[_0x325f2a(0x18a)](_0x325f2a(0x17b));});a3_0x133f61();'use strict';Object[a3_0x95390(0x188)](exports,a3_0x95390(0x17d),{'value':!![]}),exports[a3_0x95390(0x17c)]=exports[a3_0x95390(0x17a)]=exports[a3_0x95390(0x187)]=void 0x0;function a3_0x5383(){var _0x4ffa6c=['search','228960BFnrbb','apply','./decorator/Cache','constructor','./service/CacheService','Cache','(((.+)+)+)+$','CacheService','__esModule','CustomConfiguration','2791545MbTLBb','26TlWEcU','toString','8EuUstz','595467eOAOjY','5522556QMeEZd','1086040DrkWnb','8550414EnJwBj','Configuration','defineProperty','2697331gDwTAJ'];a3_0x5383=function(){return _0x4ffa6c;};return a3_0x5383();}var configuration_1=require('./configuration');Object[a3_0x95390(0x188)](exports,a3_0x95390(0x187),{'enumerable':!![],'get':function(){var _0x3bf81b=a3_0x95390;return configuration_1[_0x3bf81b(0x17e)];}});var Cache_1=require(a3_0x95390(0x177));Object[a3_0x95390(0x188)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x1e8557=a3_0x95390;return Cache_1[_0x1e8557(0x17a)];}});var CacheService_1=require(a3_0x95390(0x179));Object['defineProperty'](exports,a3_0x95390(0x17c),{'enumerable':!![],'get':function(){var _0x6f6384=a3_0x95390;return CacheService_1[_0x6f6384(0x17c)];}});
@@ -1 +1 @@
1
- var a4_0x4f94c1=a4_0x1502;function a4_0x2ab1(){var _0x2ac456=['has','metadata','Config','set','4USnMjr','store','filter','Scope','70325qQyMFI','clients','__decorate','reset','@midwayjs/core','object','decorate','1040814YkLGPs','120794okkCmR','8ODHhbb','32895hPMaFF','__esModule','length','json_decode','del','Provide','lrange','search','get','prefix','getClient','485569SJpvyY','hdel','cache','cache-manager','stores','Cache','shift','undefined','name','file','toString','(((.+)+)+)+$','config','push','33735vMKIuC','140029kfrbaL','stringify','parse','ScopeEnum','apply','constructor','function','redis','rpush','defineProperty','CacheService','prototype','design:type'];a4_0x2ab1=function(){return _0x2ac456;};return a4_0x2ab1();}(function(_0x28a0e9,_0xf39bcc){var _0x1ad7c9=a4_0x1502,_0x27c827=_0x28a0e9();while(!![]){try{var _0x2cccb7=parseInt(_0x1ad7c9(0x1c2))/0x1+parseInt(_0x1ad7c9(0x1a6))/0x2+-parseInt(_0x1ad7c9(0x1c1))/0x3*(-parseInt(_0x1ad7c9(0x19a))/0x4)+parseInt(_0x1ad7c9(0x19e))/0x5+-parseInt(_0x1ad7c9(0x1a5))/0x6+parseInt(_0x1ad7c9(0x1b3))/0x7+-parseInt(_0x1ad7c9(0x1a7))/0x8*(parseInt(_0x1ad7c9(0x1a8))/0x9);if(_0x2cccb7===_0xf39bcc)break;else _0x27c827['push'](_0x27c827['shift']());}catch(_0x17e60b){_0x27c827['push'](_0x27c827['shift']());}}}(a4_0x2ab1,0x1ccdb));var a4_0x110c0a=(function(){var _0x36e064=!![];return function(_0x36e659,_0xba6b20){var _0x4467d8=_0x36e064?function(){var _0xa04564=a4_0x1502;if(_0xba6b20){var _0x9cb23=_0xba6b20[_0xa04564(0x1c6)](_0x36e659,arguments);return _0xba6b20=null,_0x9cb23;}}:function(){};return _0x36e064=![],_0x4467d8;};}()),a4_0x3182d5=a4_0x110c0a(this,function(){var _0x1dc17f=a4_0x1502;return a4_0x3182d5[_0x1dc17f(0x1bd)]()[_0x1dc17f(0x1af)](_0x1dc17f(0x1be))['toString']()[_0x1dc17f(0x1c7)](a4_0x3182d5)[_0x1dc17f(0x1af)](_0x1dc17f(0x1be));});a4_0x3182d5();'use strict';var __decorate=this&&this[a4_0x4f94c1(0x1a0)]||function(_0x4dbc7a,_0x5d1701,_0x3c743c,_0x4bb73d){var _0x1fe0fa=a4_0x4f94c1,_0x4f4569=arguments[_0x1fe0fa(0x1aa)],_0x32ab93=_0x4f4569<0x3?_0x5d1701:_0x4bb73d===null?_0x4bb73d=Object['getOwnPropertyDescriptor'](_0x5d1701,_0x3c743c):_0x4bb73d,_0x2ee2e0;if(typeof Reflect===_0x1fe0fa(0x1a3)&&typeof Reflect['decorate']===_0x1fe0fa(0x1c8))_0x32ab93=Reflect[_0x1fe0fa(0x1a4)](_0x4dbc7a,_0x5d1701,_0x3c743c,_0x4bb73d);else{for(var _0x1704bb=_0x4dbc7a[_0x1fe0fa(0x1aa)]-0x1;_0x1704bb>=0x0;_0x1704bb--)if(_0x2ee2e0=_0x4dbc7a[_0x1704bb])_0x32ab93=(_0x4f4569<0x3?_0x2ee2e0(_0x32ab93):_0x4f4569>0x3?_0x2ee2e0(_0x5d1701,_0x3c743c,_0x32ab93):_0x2ee2e0(_0x5d1701,_0x3c743c))||_0x32ab93;}return _0x4f4569>0x3&&_0x32ab93&&Object[_0x1fe0fa(0x1cb)](_0x5d1701,_0x3c743c,_0x32ab93),_0x32ab93;},__metadata=this&&this['__metadata']||function(_0x2959e1,_0x1dcde0){var _0x4ba516=a4_0x4f94c1;if(typeof Reflect==='object'&&typeof Reflect[_0x4ba516(0x1d0)]===_0x4ba516(0x1c8))return Reflect[_0x4ba516(0x1d0)](_0x2959e1,_0x1dcde0);};Object[a4_0x4f94c1(0x1cb)](exports,a4_0x4f94c1(0x1a9),{'value':!![]}),exports['Cache']=exports[a4_0x4f94c1(0x1cc)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x4f94c1(0x1ab)]=json_decode;const cacheManager=require(a4_0x4f94c1(0x1b6)),core_1=require(a4_0x4f94c1(0x1a2));let CacheService=class CacheService{constructor(){var _0x22014b=a4_0x4f94c1;this['cache']=undefined,this[_0x22014b(0x19f)]=new Map();}['use'](_0x4e72ed){var _0x2960a5=a4_0x4f94c1,_0x246bdc,_0x262e7d;if(!this[_0x2960a5(0x1b5)]){const _0x145528=((_0x246bdc=this[_0x2960a5(0x1bf)][_0x2960a5(0x1b7)])===null||_0x246bdc===void 0x0?void 0x0:_0x246bdc[(_0x262e7d=this[_0x2960a5(0x1bf)])===null||_0x262e7d===void 0x0?void 0x0:_0x262e7d['default']])||this[_0x2960a5(0x1bf)]['stores'][_0x2960a5(0x1bc)];this[_0x2960a5(0x1b5)]=cacheManager['caching']({..._0x145528['options'],'store':_0x145528[_0x2960a5(0x19b)]});}return!this[_0x2960a5(0x19f)][_0x2960a5(0x1cf)](_0x4e72ed)&&this['clients'][_0x2960a5(0x199)](_0x4e72ed,new Cache(_0x4e72ed,this['cache'])),this[_0x2960a5(0x19f)]['get'](_0x4e72ed);}async[a4_0x4f94c1(0x1a1)](){return await this['cache']['reset']();}};exports[a4_0x4f94c1(0x1cc)]=CacheService,__decorate([(0x0,core_1[a4_0x4f94c1(0x1d1)])(a4_0x4f94c1(0x1b5)),__metadata(a4_0x4f94c1(0x1ce),Object)],CacheService[a4_0x4f94c1(0x1cd)],a4_0x4f94c1(0x1bf),void 0x0),exports['CacheService']=CacheService=__decorate([(0x0,core_1[a4_0x4f94c1(0x1ad)])(),(0x0,core_1[a4_0x4f94c1(0x19d)])(core_1[a4_0x4f94c1(0x1c5)]['Singleton'])],CacheService);function a4_0x1502(_0x4c6163,_0x511888){var _0x124b43=a4_0x2ab1();return a4_0x1502=function(_0x3182d5,_0x110c0a){_0x3182d5=_0x3182d5-0x199;var _0x2ab136=_0x124b43[_0x3182d5];return _0x2ab136;},a4_0x1502(_0x4c6163,_0x511888);}class Cache{constructor(_0x1882e8,_0x45f329){var _0x12cb44=a4_0x4f94c1;this[_0x12cb44(0x1b5)]=_0x45f329,this['prefix']=_0x1882e8;}async[a4_0x4f94c1(0x1ac)](_0x2796fa){var _0x48388b=a4_0x4f94c1;return await this['cache'][_0x48388b(0x1ac)](this[_0x48388b(0x1b1)]+':'+_0x2796fa);}async[a4_0x4f94c1(0x199)](_0x54b540,_0x3b3211,_0x33e6ca){var _0x24a123=a4_0x4f94c1,_0x337a31,_0xd130d0;return((_0xd130d0=(_0x337a31=this[_0x24a123(0x1b5)])===null||_0x337a31===void 0x0?void 0x0:_0x337a31[_0x24a123(0x19b)])===null||_0xd130d0===void 0x0?void 0x0:_0xd130d0['name'])==_0x24a123(0x1c9)?await this[_0x24a123(0x1b5)]['set'](this[_0x24a123(0x1b1)]+':'+_0x54b540,_0x3b3211,{'ttl':_0x33e6ca}):await this[_0x24a123(0x1b5)][_0x24a123(0x199)](this[_0x24a123(0x1b1)]+':'+_0x54b540,_0x3b3211,{'ttl':_0x33e6ca});}async['get'](_0x39632d,_0x3b5c58,_0x1eac11){return new Promise((_0x24c68f,_0x34b36c)=>{var _0x1e0720=a4_0x1502;this[_0x1e0720(0x1b5)]['get'](this['prefix']+':'+_0x39632d,async(_0x174ad6,_0x357a94)=>{var _0x451931=_0x1e0720;_0x174ad6?_0x34b36c(_0x174ad6):((_0x357a94===undefined||_0x357a94===null)&&(typeof _0x3b5c58=='function'?(_0x357a94=await _0x3b5c58()['catch'](_0x2b112c=>_0x34b36c(_0x2b112c)),typeof _0x357a94!=_0x451931(0x1ba)&&await this[_0x451931(0x199)](_0x39632d,_0x357a94,_0x1eac11)):_0x357a94=_0x3b5c58),_0x24c68f(_0x357a94));});});}async[a4_0x4f94c1(0x1b4)](_0x5c5f63,_0x4c76c2){return await this['del'](_0x5c5f63+'#'+_0x4c76c2);}async['hset'](_0x46edcb,_0x5a1188,_0x552e5f,_0x3977e6){var _0xe54dcc=a4_0x4f94c1;return await this[_0xe54dcc(0x199)](_0x46edcb+'#'+_0x5a1188,_0x552e5f,_0x3977e6);}async['hget'](_0xf08fcd,_0x20b2cf,_0x4ca0e1,_0x29a960){var _0xd2244d=a4_0x4f94c1;return await this[_0xd2244d(0x1b0)](_0xf08fcd+'#'+_0x20b2cf,_0x4ca0e1,_0x29a960);}['list'](_0x12d87e){const _0x39c6f7={'all':async()=>{var _0x4c81cd=a4_0x1502,_0x52b23a,_0x48ca50,_0x1b58c0,_0x3a0c3c,_0x387f4f;return((_0x48ca50=(_0x52b23a=this['cache'])===null||_0x52b23a===void 0x0?void 0x0:_0x52b23a[_0x4c81cd(0x19b)])===null||_0x48ca50===void 0x0?void 0x0:_0x48ca50[_0x4c81cd(0x1bb)])==_0x4c81cd(0x1c9)?(await((_0x387f4f=(_0x3a0c3c=(_0x1b58c0=this===null||this===void 0x0?void 0x0:this[_0x4c81cd(0x1b5)])===null||_0x1b58c0===void 0x0?void 0x0:_0x1b58c0[_0x4c81cd(0x19b)])===null||_0x3a0c3c===void 0x0?void 0x0:_0x3a0c3c[_0x4c81cd(0x1b2)]())===null||_0x387f4f===void 0x0?void 0x0:_0x387f4f[_0x4c81cd(0x1ae)](this[_0x4c81cd(0x1b1)]+':'+_0x12d87e,0x0,-0x1))||[])['map'](_0x4d767f=>json_decode(_0x4d767f)):await this[_0x4c81cd(0x1b0)](_0x12d87e,[]);},'pop':async()=>{var _0x37bdd5=a4_0x1502,_0x2f2375,_0x56efd2,_0x315fb8,_0x3139b3,_0x32e0ad;if(((_0x56efd2=(_0x2f2375=this['cache'])===null||_0x2f2375===void 0x0?void 0x0:_0x2f2375['store'])===null||_0x56efd2===void 0x0?void 0x0:_0x56efd2[_0x37bdd5(0x1bb)])=='redis')return json_decode(await((_0x32e0ad=(_0x3139b3=(_0x315fb8=this===null||this===void 0x0?void 0x0:this[_0x37bdd5(0x1b5)])===null||_0x315fb8===void 0x0?void 0x0:_0x315fb8[_0x37bdd5(0x19b)])===null||_0x3139b3===void 0x0?void 0x0:_0x3139b3[_0x37bdd5(0x1b2)]())===null||_0x32e0ad===void 0x0?void 0x0:_0x32e0ad['lpop'](this[_0x37bdd5(0x1b1)]+':'+_0x12d87e)));else{let _0x4cf7e1=await this['get'](_0x12d87e,[]),_0x58fcd4=_0x4cf7e1[_0x37bdd5(0x1b9)]();return await this[_0x37bdd5(0x199)](_0x12d87e,_0x4cf7e1),_0x58fcd4;}},'push':async(..._0x1350bc)=>{var _0x179736=a4_0x1502,_0x59571a,_0x3eef04,_0x541b1b,_0x2b7634,_0x64bc95;const _0x328a7d=_0x1350bc[_0x179736(0x19c)](_0x319862=>_0x319862!==undefined&&_0x319862!==null);if(((_0x3eef04=(_0x59571a=this['cache'])===null||_0x59571a===void 0x0?void 0x0:_0x59571a['store'])===null||_0x3eef04===void 0x0?void 0x0:_0x3eef04['name'])==_0x179736(0x1c9))return await((_0x64bc95=(_0x2b7634=(_0x541b1b=this===null||this===void 0x0?void 0x0:this[_0x179736(0x1b5)])===null||_0x541b1b===void 0x0?void 0x0:_0x541b1b['store'])===null||_0x2b7634===void 0x0?void 0x0:_0x2b7634['getClient']())===null||_0x64bc95===void 0x0?void 0x0:_0x64bc95[_0x179736(0x1ca)](this[_0x179736(0x1b1)]+':'+_0x12d87e,..._0x328a7d['map'](_0x3fdf00=>json_encode(_0x3fdf00)))),_0x328a7d;else{let _0x381a84=await this[_0x179736(0x1b0)](_0x12d87e,[]);return _0x381a84[_0x179736(0x1c0)](..._0x328a7d),await this[_0x179736(0x199)](_0x12d87e,_0x381a84),_0x381a84;}}};return _0x39c6f7;}}exports[a4_0x4f94c1(0x1b8)]=Cache;function json_encode(_0x57a109){var _0x43ba1e=a4_0x4f94c1;try{return JSON[_0x43ba1e(0x1c3)](_0x57a109);}catch(_0x2ed015){return undefined;}}function json_decode(_0x546f90){var _0xbfddcd=a4_0x4f94c1;try{return JSON[_0xbfddcd(0x1c4)](_0x546f90);}catch(_0x9dbc40){return undefined;}}
1
+ function a4_0x4a77(_0x18a743,_0x5290e2){var _0x295d63=a4_0x8a67();return a4_0x4a77=function(_0x2c7b83,_0x4f1265){_0x2c7b83=_0x2c7b83-0x67;var _0x8a674b=_0x295d63[_0x2c7b83];return _0x8a674b;},a4_0x4a77(_0x18a743,_0x5290e2);}var a4_0x51b0e3=a4_0x4a77;(function(_0x530aea,_0x428f45){var _0x26fe30=a4_0x4a77,_0x4408a9=_0x530aea();while(!![]){try{var _0xe86088=parseInt(_0x26fe30(0x9d))/0x1+-parseInt(_0x26fe30(0x76))/0x2*(-parseInt(_0x26fe30(0xa4))/0x3)+-parseInt(_0x26fe30(0x72))/0x4*(parseInt(_0x26fe30(0x74))/0x5)+parseInt(_0x26fe30(0x97))/0x6+-parseInt(_0x26fe30(0x83))/0x7*(parseInt(_0x26fe30(0x78))/0x8)+-parseInt(_0x26fe30(0x6c))/0x9+-parseInt(_0x26fe30(0x8c))/0xa*(-parseInt(_0x26fe30(0x89))/0xb);if(_0xe86088===_0x428f45)break;else _0x4408a9['push'](_0x4408a9['shift']());}catch(_0x1d8cc8){_0x4408a9['push'](_0x4408a9['shift']());}}}(a4_0x8a67,0xb13f5));var a4_0x4f1265=(function(){var _0x2b078b=!![];return function(_0x4c4f53,_0x4d9d51){var _0x18cdf4=_0x2b078b?function(){var _0x273d9a=a4_0x4a77;if(_0x4d9d51){var _0x16d97c=_0x4d9d51[_0x273d9a(0x70)](_0x4c4f53,arguments);return _0x4d9d51=null,_0x16d97c;}}:function(){};return _0x2b078b=![],_0x18cdf4;};}()),a4_0x2c7b83=a4_0x4f1265(this,function(){var _0x476385=a4_0x4a77;return a4_0x2c7b83[_0x476385(0x6b)]()['search'](_0x476385(0xa3))[_0x476385(0x6b)]()['constructor'](a4_0x2c7b83)[_0x476385(0x85)]('(((.+)+)+)+$');});a4_0x2c7b83();function a4_0x8a67(){var _0x211b93=['catch','store','reset','ScopeEnum','del','7iCCkHR','options','search','stringify','getClient','decorate','1177JVFazI','Cache','stores','96510aHoHxt','json_decode','lrange','name','caching','Provide','parse','redis','Config','@midwayjs/core','CacheService','6344814AHzuXM','Scope','cache-manager','list','get','json_encode','1311290irkEUw','__esModule','length','file','lpop','prototype','(((.+)+)+)+$','3qHxxWE','prefix','object','has','undefined','defineProperty','toString','8908731ZyWmQy','filter','clients','getOwnPropertyDescriptor','apply','set','5692ymbcuM','config','4310uXcICH','cache','458438wPaAaK','function','5505160nAwVWz','hset','__metadata','map','metadata','hget'];a4_0x8a67=function(){return _0x211b93;};return a4_0x8a67();}'use strict';var __decorate=this&&this['__decorate']||function(_0xd4d65f,_0x3d4bae,_0x3477a0,_0xfd52d0){var _0x58b71e=a4_0x4a77,_0x1b9a71=arguments[_0x58b71e(0x9f)],_0x1320e5=_0x1b9a71<0x3?_0x3d4bae:_0xfd52d0===null?_0xfd52d0=Object[_0x58b71e(0x6f)](_0x3d4bae,_0x3477a0):_0xfd52d0,_0x1af61f;if(typeof Reflect===_0x58b71e(0x67)&&typeof Reflect[_0x58b71e(0x88)]==='function')_0x1320e5=Reflect[_0x58b71e(0x88)](_0xd4d65f,_0x3d4bae,_0x3477a0,_0xfd52d0);else{for(var _0x4450ae=_0xd4d65f[_0x58b71e(0x9f)]-0x1;_0x4450ae>=0x0;_0x4450ae--)if(_0x1af61f=_0xd4d65f[_0x4450ae])_0x1320e5=(_0x1b9a71<0x3?_0x1af61f(_0x1320e5):_0x1b9a71>0x3?_0x1af61f(_0x3d4bae,_0x3477a0,_0x1320e5):_0x1af61f(_0x3d4bae,_0x3477a0))||_0x1320e5;}return _0x1b9a71>0x3&&_0x1320e5&&Object[_0x58b71e(0x6a)](_0x3d4bae,_0x3477a0,_0x1320e5),_0x1320e5;},__metadata=this&&this[a4_0x51b0e3(0x7a)]||function(_0x326190,_0x3812c0){var _0x490640=a4_0x51b0e3;if(typeof Reflect==='object'&&typeof Reflect[_0x490640(0x7c)]===_0x490640(0x77))return Reflect[_0x490640(0x7c)](_0x326190,_0x3812c0);};Object['defineProperty'](exports,a4_0x51b0e3(0x9e),{'value':!![]}),exports[a4_0x51b0e3(0x8a)]=exports[a4_0x51b0e3(0x96)]=void 0x0,exports[a4_0x51b0e3(0x9c)]=json_encode,exports[a4_0x51b0e3(0x8d)]=json_decode;const cacheManager=require(a4_0x51b0e3(0x99)),core_1=require(a4_0x51b0e3(0x95));let CacheService=class CacheService{constructor(){var _0x31a041=a4_0x51b0e3;this[_0x31a041(0x75)]=undefined,this[_0x31a041(0x6e)]=new Map();}['use'](_0x5cb637){var _0x2d8752=a4_0x51b0e3,_0x275dbc,_0x1dc603;if(!this[_0x2d8752(0x75)]){const _0x108105=((_0x275dbc=this[_0x2d8752(0x73)]['stores'])===null||_0x275dbc===void 0x0?void 0x0:_0x275dbc[(_0x1dc603=this[_0x2d8752(0x73)])===null||_0x1dc603===void 0x0?void 0x0:_0x1dc603['default']])||this[_0x2d8752(0x73)][_0x2d8752(0x8b)][_0x2d8752(0xa0)];this[_0x2d8752(0x75)]=cacheManager[_0x2d8752(0x90)]({..._0x108105[_0x2d8752(0x84)],'store':_0x108105[_0x2d8752(0x7f)]});}return!this['clients'][_0x2d8752(0x68)](_0x5cb637)&&this[_0x2d8752(0x6e)][_0x2d8752(0x71)](_0x5cb637,new Cache(_0x5cb637,this[_0x2d8752(0x75)])),this['clients'][_0x2d8752(0x9b)](_0x5cb637);}async[a4_0x51b0e3(0x80)](){return await this['cache']['reset']();}};exports[a4_0x51b0e3(0x96)]=CacheService,__decorate([(0x0,core_1[a4_0x51b0e3(0x94)])(a4_0x51b0e3(0x75)),__metadata('design:type',Object)],CacheService[a4_0x51b0e3(0xa2)],a4_0x51b0e3(0x73),void 0x0),exports[a4_0x51b0e3(0x96)]=CacheService=__decorate([(0x0,core_1[a4_0x51b0e3(0x91)])(),(0x0,core_1[a4_0x51b0e3(0x98)])(core_1[a4_0x51b0e3(0x81)]['Singleton'])],CacheService);class Cache{constructor(_0x2f40e6,_0x57e479){var _0x182a5a=a4_0x51b0e3;this[_0x182a5a(0x75)]=_0x57e479,this[_0x182a5a(0xa5)]=_0x2f40e6;}async[a4_0x51b0e3(0x82)](_0x4a6cd5){var _0x5546d9=a4_0x51b0e3;return await this[_0x5546d9(0x75)][_0x5546d9(0x82)](this[_0x5546d9(0xa5)]+':'+_0x4a6cd5);}async[a4_0x51b0e3(0x71)](_0x763015,_0x6d5387,_0x40f1f3){var _0x451579=a4_0x51b0e3,_0x1c4cb,_0x2fafd6;return((_0x2fafd6=(_0x1c4cb=this[_0x451579(0x75)])===null||_0x1c4cb===void 0x0?void 0x0:_0x1c4cb[_0x451579(0x7f)])===null||_0x2fafd6===void 0x0?void 0x0:_0x2fafd6[_0x451579(0x8f)])==_0x451579(0x93)?await this[_0x451579(0x75)][_0x451579(0x71)](this[_0x451579(0xa5)]+':'+_0x763015,_0x6d5387,{'ttl':_0x40f1f3}):await this['cache'][_0x451579(0x71)](this[_0x451579(0xa5)]+':'+_0x763015,_0x6d5387,{'ttl':_0x40f1f3});}async['get'](_0x46ece9,_0x1eac6a,_0x52d6c1){return new Promise((_0x9853ed,_0x2caa4a)=>{var _0x36bdcd=a4_0x4a77;this[_0x36bdcd(0x75)]['get'](this[_0x36bdcd(0xa5)]+':'+_0x46ece9,async(_0x1fbc5b,_0x2cfacd)=>{var _0x32789e=_0x36bdcd;_0x1fbc5b?_0x2caa4a(_0x1fbc5b):((_0x2cfacd===undefined||_0x2cfacd===null)&&(typeof _0x1eac6a=='function'?(_0x2cfacd=await _0x1eac6a()[_0x32789e(0x7e)](_0x10ddd1=>_0x2caa4a(_0x10ddd1)),typeof _0x2cfacd!=_0x32789e(0x69)&&await this[_0x32789e(0x71)](_0x46ece9,_0x2cfacd,_0x52d6c1)):_0x2cfacd=_0x1eac6a),_0x9853ed(_0x2cfacd));});});}async['hdel'](_0x21d684,_0x52c607){var _0x3a101f=a4_0x51b0e3;return await this[_0x3a101f(0x82)](_0x21d684+'#'+_0x52c607);}async[a4_0x51b0e3(0x79)](_0x5b34fe,_0x2998eb,_0x307a1e,_0x470fbf){var _0x1eb5d3=a4_0x51b0e3;return await this[_0x1eb5d3(0x71)](_0x5b34fe+'#'+_0x2998eb,_0x307a1e,_0x470fbf);}async[a4_0x51b0e3(0x7d)](_0x5277ac,_0xf3611,_0x7e3a57,_0x13980a){var _0x30ebe2=a4_0x51b0e3;return await this[_0x30ebe2(0x9b)](_0x5277ac+'#'+_0xf3611,_0x7e3a57,_0x13980a);}[a4_0x51b0e3(0x9a)](_0x3f5512){const _0x38f39b={'all':async()=>{var _0x58e5e5=a4_0x4a77,_0x295891,_0x3b65b3,_0x12d276,_0x305fe0,_0x59761f;return((_0x3b65b3=(_0x295891=this['cache'])===null||_0x295891===void 0x0?void 0x0:_0x295891[_0x58e5e5(0x7f)])===null||_0x3b65b3===void 0x0?void 0x0:_0x3b65b3['name'])==_0x58e5e5(0x93)?(await((_0x59761f=(_0x305fe0=(_0x12d276=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x12d276===void 0x0?void 0x0:_0x12d276[_0x58e5e5(0x7f)])===null||_0x305fe0===void 0x0?void 0x0:_0x305fe0['getClient']())===null||_0x59761f===void 0x0?void 0x0:_0x59761f[_0x58e5e5(0x8e)](this[_0x58e5e5(0xa5)]+':'+_0x3f5512,0x0,-0x1))||[])['map'](_0x4e78e3=>json_decode(_0x4e78e3)):await this[_0x58e5e5(0x9b)](_0x3f5512,[]);},'pop':async()=>{var _0x29f297=a4_0x4a77,_0x1f20bb,_0x381f27,_0x5b6c68,_0x593199,_0x4bceac;if(((_0x381f27=(_0x1f20bb=this[_0x29f297(0x75)])===null||_0x1f20bb===void 0x0?void 0x0:_0x1f20bb['store'])===null||_0x381f27===void 0x0?void 0x0:_0x381f27[_0x29f297(0x8f)])==_0x29f297(0x93))return json_decode(await((_0x4bceac=(_0x593199=(_0x5b6c68=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x5b6c68===void 0x0?void 0x0:_0x5b6c68[_0x29f297(0x7f)])===null||_0x593199===void 0x0?void 0x0:_0x593199[_0x29f297(0x87)]())===null||_0x4bceac===void 0x0?void 0x0:_0x4bceac[_0x29f297(0xa1)](this['prefix']+':'+_0x3f5512)));else{let _0x43d1c4=await this[_0x29f297(0x9b)](_0x3f5512,[]),_0x27512d=_0x43d1c4['shift']();return await this[_0x29f297(0x71)](_0x3f5512,_0x43d1c4),_0x27512d;}},'push':async(..._0x1497b9)=>{var _0xe5cc58=a4_0x4a77,_0x5d183d,_0x28ab19,_0x38a58f,_0x36d51f,_0x2e86a9;const _0x2a1e4f=_0x1497b9[_0xe5cc58(0x6d)](_0x2e1a71=>_0x2e1a71!==undefined&&_0x2e1a71!==null);if(((_0x28ab19=(_0x5d183d=this[_0xe5cc58(0x75)])===null||_0x5d183d===void 0x0?void 0x0:_0x5d183d[_0xe5cc58(0x7f)])===null||_0x28ab19===void 0x0?void 0x0:_0x28ab19[_0xe5cc58(0x8f)])==_0xe5cc58(0x93))return await((_0x2e86a9=(_0x36d51f=(_0x38a58f=this===null||this===void 0x0?void 0x0:this[_0xe5cc58(0x75)])===null||_0x38a58f===void 0x0?void 0x0:_0x38a58f[_0xe5cc58(0x7f)])===null||_0x36d51f===void 0x0?void 0x0:_0x36d51f[_0xe5cc58(0x87)]())===null||_0x2e86a9===void 0x0?void 0x0:_0x2e86a9['rpush'](this['prefix']+':'+_0x3f5512,..._0x2a1e4f[_0xe5cc58(0x7b)](_0x2d5547=>json_encode(_0x2d5547)))),_0x2a1e4f;else{let _0x1d04f5=await this[_0xe5cc58(0x9b)](_0x3f5512,[]);return _0x1d04f5['push'](..._0x2a1e4f),await this[_0xe5cc58(0x71)](_0x3f5512,_0x1d04f5),_0x1d04f5;}}};return _0x38f39b;}}exports[a4_0x51b0e3(0x8a)]=Cache;function json_encode(_0xce54f6){var _0x53f29a=a4_0x51b0e3;try{return JSON[_0x53f29a(0x86)](_0xce54f6);}catch(_0x2eadf9){return undefined;}}function json_decode(_0x27e0c1){var _0x5a9cdc=a4_0x51b0e3;try{return JSON[_0x5a9cdc(0x92)](_0x27e0c1);}catch(_0x2fae56){return undefined;}}
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.88",
3
+ "version": "3.7.0",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "publishConfig": {
10
- "access": "public"
10
+ "access": "public",
11
+ "registry": "https://registry.npmjs.org/"
11
12
  },
12
13
  "scripts": {
13
14
  "build2": "tsc",
@@ -23,5 +24,5 @@
23
24
  "javascript-obfuscator": "^4.0.2",
24
25
  "typescript": "^5.5.4"
25
26
  },
26
- "gitHead": "e2570a901c4965bbe4d5c5eb3e74aff723870d60"
27
+ "gitHead": "725020d29dd02779df3b02bbc24e3347c44b9e9c"
27
28
  }