@anncic-api/cache 3.4.64 → 3.4.66

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_0x5f4827=a0_0xe11e;(function(_0x28ee0f,_0x471785){const _0x161f8d=a0_0xe11e,_0x2b2594=_0x28ee0f();while(!![]){try{const _0x1be390=parseInt(_0x161f8d(0xd3))/0x1+parseInt(_0x161f8d(0xc8))/0x2*(-parseInt(_0x161f8d(0xc6))/0x3)+-parseInt(_0x161f8d(0xc4))/0x4*(parseInt(_0x161f8d(0xbe))/0x5)+parseInt(_0x161f8d(0xd7))/0x6+-parseInt(_0x161f8d(0xc2))/0x7+parseInt(_0x161f8d(0xc5))/0x8*(parseInt(_0x161f8d(0xd2))/0x9)+-parseInt(_0x161f8d(0xd1))/0xa*(parseInt(_0x161f8d(0xcb))/0xb);if(_0x1be390===_0x471785)break;else _0x2b2594['push'](_0x2b2594['shift']());}catch(_0x51f970){_0x2b2594['push'](_0x2b2594['shift']());}}}(a0_0x2e52,0x63a5c));const a0_0x22ec06=(function(){let _0x302ac6=!![];return function(_0x46d916,_0x78f657){const _0x2665e7=_0x302ac6?function(){const _0x367a26=a0_0xe11e;if(_0x78f657){const _0x162a2f=_0x78f657[_0x367a26(0xd5)](_0x46d916,arguments);return _0x78f657=null,_0x162a2f;}}:function(){};return _0x302ac6=![],_0x2665e7;};}()),a0_0x433e8f=a0_0x22ec06(this,function(){const _0x130d71=a0_0xe11e;return a0_0x433e8f[_0x130d71(0xca)]()[_0x130d71(0xd6)](_0x130d71(0xbf))['toString']()[_0x130d71(0xc0)](a0_0x433e8f)['search']('(((.+)+)+)+$');});function a0_0x2e52(){const _0x2a98d8=['cache-manager-ioredis','env','__esModule','file','70uhpbWX','144ogEpaD','787864vfDicH','/runtime/.cache','apply','search','1062894zdQuAL','5xfkfSH','(((.+)+)+)+$','constructor','appDir','2080995dhwqGk','defineProperty','717844aWZuyU','379976Fixpum','1074yvIqWO','127.0.0.1','1246ICKOHn','default','toString','969617JTCMiF','cache-manager-fs-hash'];a0_0x2e52=function(){return _0x2a98d8;};return a0_0x2e52();}a0_0x433e8f();'use strict';function a0_0xe11e(_0xc1e1a9,_0x2ff4b6){const _0x55f865=a0_0x2e52();return a0_0xe11e=function(_0x433e8f,_0x22ec06){_0x433e8f=_0x433e8f-0xbe;let _0x2e52dc=_0x55f865[_0x433e8f];return _0x2e52dc;},a0_0xe11e(_0xc1e1a9,_0x2ff4b6);}Object[a0_0x5f4827(0xc3)](exports,a0_0x5f4827(0xcf),{'value':!![]});const fsStore=require(a0_0x5f4827(0xcc)),redisStore=require(a0_0x5f4827(0xcd));exports[a0_0x5f4827(0xc9)]=_0x233e85=>{const _0x2bdff6=a0_0x5f4827;return{'cache':{'default':_0x2bdff6(0xd0),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x233e85[_0x2bdff6(0xc1)]+_0x2bdff6(0xd4)+((_0x233e85===null||_0x233e85===void 0x0?void 0x0:_0x233e85[_0x2bdff6(0xce)])?'-'+_0x233e85[_0x2bdff6(0xce)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x2bdff6(0xc7),'password':'','keyPrefix':_0x233e85['name']+':'+((_0x233e85===null||_0x233e85===void 0x0?void 0x0:_0x233e85[_0x2bdff6(0xce)])?_0x233e85[_0x2bdff6(0xce)]+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};
1
+ const a0_0x536ffe=a0_0x2c75;(function(_0x2d2d5b,_0x2e9fee){const _0x55b17f=a0_0x2c75,_0x46f568=_0x2d2d5b();while(!![]){try{const _0x2ba48d=-parseInt(_0x55b17f(0xe8))/0x1+parseInt(_0x55b17f(0xea))/0x2+-parseInt(_0x55b17f(0xe0))/0x3+-parseInt(_0x55b17f(0xe5))/0x4*(parseInt(_0x55b17f(0xe4))/0x5)+-parseInt(_0x55b17f(0xe6))/0x6*(-parseInt(_0x55b17f(0xec))/0x7)+parseInt(_0x55b17f(0xf4))/0x8*(-parseInt(_0x55b17f(0xde))/0x9)+parseInt(_0x55b17f(0xf5))/0xa*(parseInt(_0x55b17f(0xf1))/0xb);if(_0x2ba48d===_0x2e9fee)break;else _0x46f568['push'](_0x46f568['shift']());}catch(_0xb1ae5b){_0x46f568['push'](_0x46f568['shift']());}}}(a0_0x5242,0x8c90b));const a0_0x58e68a=(function(){let _0x3ce598=!![];return function(_0x37ba2b,_0x5751e1){const _0x2848de=_0x3ce598?function(){const _0x3468b9=a0_0x2c75;if(_0x5751e1){const _0x21c246=_0x5751e1[_0x3468b9(0xdd)](_0x37ba2b,arguments);return _0x5751e1=null,_0x21c246;}}:function(){};return _0x3ce598=![],_0x2848de;};}()),a0_0x18e23e=a0_0x58e68a(this,function(){const _0x562607=a0_0x2c75;return a0_0x18e23e[_0x562607(0xe7)]()['search'](_0x562607(0xdf))[_0x562607(0xe7)]()[_0x562607(0xf3)](a0_0x18e23e)[_0x562607(0xe9)](_0x562607(0xdf));});a0_0x18e23e();'use strict';function a0_0x2c75(_0xcc9702,_0x5a116c){const _0x3f410e=a0_0x5242();return a0_0x2c75=function(_0x18e23e,_0x58e68a){_0x18e23e=_0x18e23e-0xdd;let _0x5242a7=_0x3f410e[_0x18e23e];return _0x5242a7;},a0_0x2c75(_0xcc9702,_0x5a116c);}Object[a0_0x536ffe(0xf0)](exports,a0_0x536ffe(0xe3),{'value':!![]});function a0_0x5242(){const _0x8f0b69=['6845kiaYUh','428PxlWyw','36mMvKnQ','toString','494366WuJoaw','search','675756GLQSor','default','697193pcTafr','env','cache-manager-fs-hash','/runtime/.cache','defineProperty','472637XCERdc','appDir','constructor','632XWQdiJ','200iMmpWT','cache-manager-ioredis','name','apply','33381TDLUva','(((.+)+)+)+$','855591oFTZvo','file','memory','__esModule'];a0_0x5242=function(){return _0x8f0b69;};return a0_0x5242();}const fsStore=require(a0_0x536ffe(0xee)),redisStore=require(a0_0x536ffe(0xf6));exports[a0_0x536ffe(0xeb)]=_0x6481d4=>{const _0xd9cfb4=a0_0x536ffe;return{'cache':{'default':_0xd9cfb4(0xe1),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x6481d4[_0xd9cfb4(0xf2)]+_0xd9cfb4(0xef)+((_0x6481d4===null||_0x6481d4===void 0x0?void 0x0:_0x6481d4[_0xd9cfb4(0xed)])?'-'+_0x6481d4[_0xd9cfb4(0xed)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x6481d4[_0xd9cfb4(0xf7)]+':'+((_0x6481d4===null||_0x6481d4===void 0x0?void 0x0:_0x6481d4[_0xd9cfb4(0xed)])?_0x6481d4[_0xd9cfb4(0xed)]+':':'')}},'memory':{'store':_0xd9cfb4(0xe2),'options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- var a1_0x19d6b1=a1_0x3bbe;(function(_0x122f6c,_0x447492){var _0x2fd2c9=a1_0x3bbe,_0x390b93=_0x122f6c();while(!![]){try{var _0x2750d4=parseInt(_0x2fd2c9(0x180))/0x1+-parseInt(_0x2fd2c9(0x179))/0x2*(parseInt(_0x2fd2c9(0x172))/0x3)+-parseInt(_0x2fd2c9(0x185))/0x4+parseInt(_0x2fd2c9(0x173))/0x5+-parseInt(_0x2fd2c9(0x17a))/0x6*(-parseInt(_0x2fd2c9(0x17d))/0x7)+parseInt(_0x2fd2c9(0x183))/0x8*(parseInt(_0x2fd2c9(0x188))/0x9)+parseInt(_0x2fd2c9(0x186))/0xa*(-parseInt(_0x2fd2c9(0x178))/0xb);if(_0x2750d4===_0x447492)break;else _0x390b93['push'](_0x390b93['shift']());}catch(_0xf4bd60){_0x390b93['push'](_0x390b93['shift']());}}}(a1_0x562b,0xe2ed0));var a1_0x175669=(function(){var _0x1d4a22=!![];return function(_0x4eb33a,_0x53796c){var _0xbe3d05=_0x1d4a22?function(){var _0x155a98=a1_0x3bbe;if(_0x53796c){var _0x2fa601=_0x53796c[_0x155a98(0x182)](_0x4eb33a,arguments);return _0x53796c=null,_0x2fa601;}}:function(){};return _0x1d4a22=![],_0xbe3d05;};}()),a1_0x1bc955=a1_0x175669(this,function(){var _0x4332f1=a1_0x3bbe;return a1_0x1bc955['toString']()['search'](_0x4332f1(0x177))['toString']()[_0x4332f1(0x17f)](a1_0x1bc955)['search'](_0x4332f1(0x177));});function a1_0x562b(){var _0x511e67=['Configuration','constructor','1043988pFtESG','defineProperty','apply','8slMjSU','__esModule','5275896JQvalo','3343390IGmvMY','CustomConfiguration','5645889SvzlLb','getOwnPropertyDescriptor','107523WSWATa','5117675ENxNlF','anncic-api:cache','function','decorate','(((.+)+)+)+$','11LuwOHx','46HcaPgS','2040AIFthp','object','length','14665jVwBEq'];a1_0x562b=function(){return _0x511e67;};return a1_0x562b();}a1_0x1bc955();'use strict';function a1_0x3bbe(_0x55f2f0,_0x614e62){var _0x19dc41=a1_0x562b();return a1_0x3bbe=function(_0x1bc955,_0x175669){_0x1bc955=_0x1bc955-0x172;var _0x562b32=_0x19dc41[_0x1bc955];return _0x562b32;},a1_0x3bbe(_0x55f2f0,_0x614e62);}var __decorate=this&&this['__decorate']||function(_0x3c258b,_0x4f0859,_0x5e2ed3,_0x5a9981){var _0x597aff=a1_0x3bbe,_0x5a10be=arguments[_0x597aff(0x17c)],_0x374d36=_0x5a10be<0x3?_0x4f0859:_0x5a9981===null?_0x5a9981=Object[_0x597aff(0x189)](_0x4f0859,_0x5e2ed3):_0x5a9981,_0x9e7baa;if(typeof Reflect===_0x597aff(0x17b)&&typeof Reflect[_0x597aff(0x176)]===_0x597aff(0x175))_0x374d36=Reflect[_0x597aff(0x176)](_0x3c258b,_0x4f0859,_0x5e2ed3,_0x5a9981);else{for(var _0x5a39bb=_0x3c258b[_0x597aff(0x17c)]-0x1;_0x5a39bb>=0x0;_0x5a39bb--)if(_0x9e7baa=_0x3c258b[_0x5a39bb])_0x374d36=(_0x5a10be<0x3?_0x9e7baa(_0x374d36):_0x5a10be>0x3?_0x9e7baa(_0x4f0859,_0x5e2ed3,_0x374d36):_0x9e7baa(_0x4f0859,_0x5e2ed3))||_0x374d36;}return _0x5a10be>0x3&&_0x374d36&&Object[_0x597aff(0x181)](_0x4f0859,_0x5e2ed3,_0x374d36),_0x374d36;};Object['defineProperty'](exports,a1_0x19d6b1(0x184),{'value':!![]}),exports[a1_0x19d6b1(0x187)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};exports[a1_0x19d6b1(0x187)]=CustomConfiguration,exports[a1_0x19d6b1(0x187)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x19d6b1(0x17e)])({'conflictCheck':![],'namespace':a1_0x19d6b1(0x174),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x1f4966=a1_0x265e;(function(_0x3ce5df,_0x1f7178){var _0x171eaa=a1_0x265e,_0x2bbea9=_0x3ce5df();while(!![]){try{var _0x4b9ef3=parseInt(_0x171eaa(0x7c))/0x1+-parseInt(_0x171eaa(0x7b))/0x2*(-parseInt(_0x171eaa(0x6f))/0x3)+-parseInt(_0x171eaa(0x6b))/0x4*(parseInt(_0x171eaa(0x6a))/0x5)+-parseInt(_0x171eaa(0x75))/0x6+parseInt(_0x171eaa(0x66))/0x7+parseInt(_0x171eaa(0x72))/0x8*(parseInt(_0x171eaa(0x6c))/0x9)+parseInt(_0x171eaa(0x65))/0xa*(-parseInt(_0x171eaa(0x73))/0xb);if(_0x4b9ef3===_0x1f7178)break;else _0x2bbea9['push'](_0x2bbea9['shift']());}catch(_0x37c6a9){_0x2bbea9['push'](_0x2bbea9['shift']());}}}(a1_0x5a9d,0x50d24));var a1_0x36401b=(function(){var _0x4a3a89=!![];return function(_0x3b8e9a,_0xc0fe06){var _0xa6186b=_0x4a3a89?function(){if(_0xc0fe06){var _0x5550ab=_0xc0fe06['apply'](_0x3b8e9a,arguments);return _0xc0fe06=null,_0x5550ab;}}:function(){};return _0x4a3a89=![],_0xa6186b;};}()),a1_0x3457ac=a1_0x36401b(this,function(){var _0x4e6b52=a1_0x265e;return a1_0x3457ac['toString']()[_0x4e6b52(0x6e)]('(((.+)+)+)+$')[_0x4e6b52(0x69)]()[_0x4e6b52(0x74)](a1_0x3457ac)['search']('(((.+)+)+)+$');});function a1_0x5a9d(){var _0x5564a8=['211530pxZApX','__esModule','Configuration','length','anncic-api:cache','__decorate','164BqlYlJ','642298uRcagH','getOwnPropertyDescriptor','10ceJUHB','3615101bJoAqS','function','defineProperty','toString','5cfSCHN','1843732RldIZD','9459ocvcbz','decorate','search','13170cVTbuD','CustomConfiguration','./config/config.default','3072kGGrms','12045803awQAVF','constructor'];a1_0x5a9d=function(){return _0x5564a8;};return a1_0x5a9d();}a1_0x3457ac();'use strict';var __decorate=this&&this[a1_0x1f4966(0x7a)]||function(_0xababc0,_0x536d46,_0x1277d3,_0x3444f0){var _0x195c93=a1_0x1f4966,_0x3c38be=arguments[_0x195c93(0x78)],_0x151749=_0x3c38be<0x3?_0x536d46:_0x3444f0===null?_0x3444f0=Object[_0x195c93(0x64)](_0x536d46,_0x1277d3):_0x3444f0,_0x3aeec0;if(typeof Reflect==='object'&&typeof Reflect[_0x195c93(0x6d)]===_0x195c93(0x67))_0x151749=Reflect[_0x195c93(0x6d)](_0xababc0,_0x536d46,_0x1277d3,_0x3444f0);else{for(var _0x5274a6=_0xababc0['length']-0x1;_0x5274a6>=0x0;_0x5274a6--)if(_0x3aeec0=_0xababc0[_0x5274a6])_0x151749=(_0x3c38be<0x3?_0x3aeec0(_0x151749):_0x3c38be>0x3?_0x3aeec0(_0x536d46,_0x1277d3,_0x151749):_0x3aeec0(_0x536d46,_0x1277d3))||_0x151749;}return _0x3c38be>0x3&&_0x151749&&Object[_0x195c93(0x68)](_0x536d46,_0x1277d3,_0x151749),_0x151749;};function a1_0x265e(_0x4ae039,_0x47bacc){var _0x3ab24a=a1_0x5a9d();return a1_0x265e=function(_0x3457ac,_0x36401b){_0x3457ac=_0x3457ac-0x64;var _0x5a9d86=_0x3ab24a[_0x3457ac];return _0x5a9d86;},a1_0x265e(_0x4ae039,_0x47bacc);}Object[a1_0x1f4966(0x68)](exports,a1_0x1f4966(0x76),{'value':!![]}),exports[a1_0x1f4966(0x70)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x1f4966(0x71));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x1f4966(0x70)]=CustomConfiguration,exports[a1_0x1f4966(0x70)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x1f4966(0x77)])({'conflictCheck':![],'namespace':a1_0x1f4966(0x79),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x13c1be=a2_0x6fe5;(function(_0x400862,_0x237d2d){const _0x100741=a2_0x6fe5,_0x261ad4=_0x400862();while(!![]){try{const _0x2eb9bf=parseInt(_0x100741(0x104))/0x1*(parseInt(_0x100741(0xf2))/0x2)+parseInt(_0x100741(0x106))/0x3+parseInt(_0x100741(0x107))/0x4+-parseInt(_0x100741(0xef))/0x5*(parseInt(_0x100741(0xf5))/0x6)+-parseInt(_0x100741(0xf9))/0x7*(parseInt(_0x100741(0xee))/0x8)+parseInt(_0x100741(0xf1))/0x9+-parseInt(_0x100741(0xfc))/0xa;if(_0x2eb9bf===_0x237d2d)break;else _0x261ad4['push'](_0x261ad4['shift']());}catch(_0x212c6e){_0x261ad4['push'](_0x261ad4['shift']());}}}(a2_0x3139,0x3929c));function a2_0x3139(){const _0x45fbed=['set','value','apply','get','crypto-js','205YLdhoA','toString','1400664JcwFDk','1478324ySooZO','stringify','app','__esModule','MD5','REQUEST_OBJ_CTX_KEY','784bzaHqP','1957735ttxbaV','getAsync','3686643YKnoWm','2122uvAgip','(((.+)+)+)+$','parse','6bPkbXZ','getApplicationContext','use','Method::Decorator','30814eMshpN','../service/CacheService','search','4065180SwsZel','@midwayjs/core','Cache'];a2_0x3139=function(){return _0x45fbed;};return a2_0x3139();}const a2_0x13027e=(function(){let _0x4f9179=!![];return function(_0x164f6b,_0x36805a){const _0x3d2f9a=_0x4f9179?function(){const _0x54d4c7=a2_0x6fe5;if(_0x36805a){const _0x24efd2=_0x36805a[_0x54d4c7(0x101)](_0x164f6b,arguments);return _0x36805a=null,_0x24efd2;}}:function(){};return _0x4f9179=![],_0x3d2f9a;};}()),a2_0x4dbd1f=a2_0x13027e(this,function(){const _0x5330d2=a2_0x6fe5;return a2_0x4dbd1f[_0x5330d2(0x105)]()[_0x5330d2(0xfb)](_0x5330d2(0xf3))[_0x5330d2(0x105)]()['constructor'](a2_0x4dbd1f)[_0x5330d2(0xfb)](_0x5330d2(0xf3));});a2_0x4dbd1f();'use strict';Object['defineProperty'](exports,a2_0x13c1be(0xeb),{'value':!![]}),exports[a2_0x13c1be(0xfe)]=Cache;const crypto_js_1=require(a2_0x13c1be(0x103)),CacheService_1=require(a2_0x13c1be(0xfa)),core_1=require(a2_0x13c1be(0xfd));function json_encode(_0xccca1b){const _0x5f26a2=a2_0x13c1be;try{return JSON[_0x5f26a2(0x108)](_0xccca1b);}catch(_0x52cf56){return undefined;}}function a2_0x6fe5(_0x27d31b,_0x2388c3){const _0x356bed=a2_0x3139();return a2_0x6fe5=function(_0x4dbd1f,_0x13027e){_0x4dbd1f=_0x4dbd1f-0xeb;let _0x3139f9=_0x356bed[_0x4dbd1f];return _0x3139f9;},a2_0x6fe5(_0x27d31b,_0x2388c3);}function Cache(_0x152207,_0x236cc1){return(_0x48a68f,_0x3b3b62,_0xa094e1)=>{const _0x282a70=a2_0x6fe5,_0x5a4113=_0xa094e1[_0x282a70(0x100)];return _0xa094e1[_0x282a70(0x100)]=async function(..._0x1aff89){const _0x160f2c=_0x282a70;_0x152207=(_0x152207?''+_0x152207:''+(_0x3b3b62||''))+'.'+(0x0,crypto_js_1[_0x160f2c(0xec)])(json_encode(_0x1aff89))[_0x160f2c(0x105)]();let _0x86b4f9=await this[core_1[_0x160f2c(0xed)]][_0x160f2c(0x109)][_0x160f2c(0xf6)]()[_0x160f2c(0xf0)](CacheService_1['CacheService']),_0x5ed7d9=await _0x86b4f9['use'](_0x160f2c(0xf8))[_0x160f2c(0x102)](_0x152207);if(_0x5ed7d9)return JSON[_0x160f2c(0xf4)](_0x5ed7d9);else _0x5ed7d9=await _0x5a4113[_0x160f2c(0x101)](this,[..._0x1aff89]),await _0x86b4f9[_0x160f2c(0xf7)]('Method::Decorator')[_0x160f2c(0xff)](_0x152207,JSON['stringify'](_0x5ed7d9),_0x236cc1);return _0x5ed7d9;},_0xa094e1;};}
1
+ const a2_0x2a7c8b=a2_0xbca7;(function(_0x25c7dd,_0x58d548){const _0x5006d7=a2_0xbca7,_0x2f742b=_0x25c7dd();while(!![]){try{const _0x2d41b1=-parseInt(_0x5006d7(0x78))/0x1*(-parseInt(_0x5006d7(0x83))/0x2)+-parseInt(_0x5006d7(0x86))/0x3+parseInt(_0x5006d7(0x8a))/0x4*(parseInt(_0x5006d7(0x7b))/0x5)+parseInt(_0x5006d7(0x6f))/0x6+-parseInt(_0x5006d7(0x8c))/0x7+-parseInt(_0x5006d7(0x73))/0x8*(-parseInt(_0x5006d7(0x72))/0x9)+parseInt(_0x5006d7(0x85))/0xa*(-parseInt(_0x5006d7(0x7a))/0xb);if(_0x2d41b1===_0x58d548)break;else _0x2f742b['push'](_0x2f742b['shift']());}catch(_0xc6fc92){_0x2f742b['push'](_0x2f742b['shift']());}}}(a2_0x3832,0x49816));const a2_0x197acf=(function(){let _0x124a9a=!![];return function(_0x2c9853,_0xb11cd3){const _0x3d4b5d=_0x124a9a?function(){const _0x331667=a2_0xbca7;if(_0xb11cd3){const _0xc61195=_0xb11cd3[_0x331667(0x71)](_0x2c9853,arguments);return _0xb11cd3=null,_0xc61195;}}:function(){};return _0x124a9a=![],_0x3d4b5d;};}()),a2_0x112e57=a2_0x197acf(this,function(){const _0x24fbda=a2_0xbca7;return a2_0x112e57['toString']()[_0x24fbda(0x77)]('(((.+)+)+)+$')[_0x24fbda(0x8b)]()[_0x24fbda(0x7d)](a2_0x112e57)[_0x24fbda(0x77)](_0x24fbda(0x79));});a2_0x112e57();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0x2a7c8b(0x84)]=Cache;const crypto_js_1=require(a2_0x2a7c8b(0x82)),CacheService_1=require(a2_0x2a7c8b(0x7c)),core_1=require(a2_0x2a7c8b(0x81));function a2_0x3832(){const _0x5baf04=['77TLLebW','(((.+)+)+)+$','6085739svHdiH','10yksTkf','../service/CacheService','constructor','set','getApplicationContext','stringify','@midwayjs/core','crypto-js','3296cyEQzm','Cache','10sCyGrz','830115FUhukE','use','REQUEST_OBJ_CTX_KEY','value','670328UVADau','toString','2538144dTZqco','3223692tZoHSR','Method::Decorator','apply','4448538ArfxdK','8cYdsSU','get','MD5','CacheService','search'];a2_0x3832=function(){return _0x5baf04;};return a2_0x3832();}function a2_0xbca7(_0x47104d,_0x526bba){const _0x197e33=a2_0x3832();return a2_0xbca7=function(_0x112e57,_0x197acf){_0x112e57=_0x112e57-0x6f;let _0x383298=_0x197e33[_0x112e57];return _0x383298;},a2_0xbca7(_0x47104d,_0x526bba);}function json_encode(_0x526b0f){const _0x56cac3=a2_0x2a7c8b;try{return JSON[_0x56cac3(0x80)](_0x526b0f);}catch(_0x12f6fe){return undefined;}}function Cache(_0x43c27e,_0x4cc2d8){return(_0x582305,_0xa7aed,_0x7a7365)=>{const _0x1b906a=a2_0xbca7,_0x436bff=_0x7a7365['value'];return _0x7a7365[_0x1b906a(0x89)]=async function(..._0x4ff0b5){const _0xfcc96d=_0x1b906a;_0x43c27e=(_0x43c27e?''+_0x43c27e:''+(_0xa7aed||''))+'.'+(0x0,crypto_js_1[_0xfcc96d(0x75)])(json_encode(_0x4ff0b5))[_0xfcc96d(0x8b)]();let _0x5cc7ee=await this[core_1[_0xfcc96d(0x88)]]['app'][_0xfcc96d(0x7f)]()['getAsync'](CacheService_1[_0xfcc96d(0x76)]),_0x52ade4=await _0x5cc7ee[_0xfcc96d(0x87)](_0xfcc96d(0x70))[_0xfcc96d(0x74)](_0x43c27e);if(_0x52ade4)return JSON['parse'](_0x52ade4);else _0x52ade4=await _0x436bff[_0xfcc96d(0x71)](this,[..._0x4ff0b5]),await _0x5cc7ee[_0xfcc96d(0x87)]('Method::Decorator')[_0xfcc96d(0x7e)](_0x43c27e,JSON['stringify'](_0x52ade4),_0x4cc2d8);return _0x52ade4;},_0x7a7365;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x5ac32d=a3_0x2318;(function(_0x3bd4eb,_0x5d4fd4){var _0x16e323=a3_0x2318,_0x2d1472=_0x3bd4eb();while(!![]){try{var _0x507ec9=parseInt(_0x16e323(0x1a2))/0x1+parseInt(_0x16e323(0x19c))/0x2*(-parseInt(_0x16e323(0x1b0))/0x3)+-parseInt(_0x16e323(0x1ab))/0x4+-parseInt(_0x16e323(0x19d))/0x5+parseInt(_0x16e323(0x1a6))/0x6+parseInt(_0x16e323(0x1af))/0x7+parseInt(_0x16e323(0x1ac))/0x8*(parseInt(_0x16e323(0x1a1))/0x9);if(_0x507ec9===_0x5d4fd4)break;else _0x2d1472['push'](_0x2d1472['shift']());}catch(_0xb7941d){_0x2d1472['push'](_0x2d1472['shift']());}}}(a3_0x47dd,0x5b39d));var a3_0x52712e=(function(){var _0x1c4f62=!![];return function(_0x19f325,_0x4806a6){var _0x4a26a6=_0x1c4f62?function(){var _0x5b7298=a3_0x2318;if(_0x4806a6){var _0xb6f6fc=_0x4806a6[_0x5b7298(0x1aa)](_0x19f325,arguments);return _0x4806a6=null,_0xb6f6fc;}}:function(){};return _0x1c4f62=![],_0x4a26a6;};}()),a3_0x3ff62b=a3_0x52712e(this,function(){var _0x15c3c5=a3_0x2318;return a3_0x3ff62b[_0x15c3c5(0x1a4)]()[_0x15c3c5(0x1ae)](_0x15c3c5(0x19b))[_0x15c3c5(0x1a4)]()[_0x15c3c5(0x1a5)](a3_0x3ff62b)[_0x15c3c5(0x1ae)](_0x15c3c5(0x19b));});a3_0x3ff62b();'use strict';Object[a3_0x5ac32d(0x1a0)](exports,'__esModule',{'value':!![]}),exports[a3_0x5ac32d(0x19f)]=exports[a3_0x5ac32d(0x1a3)]=exports[a3_0x5ac32d(0x1ad)]=void 0x0;var configuration_1=require(a3_0x5ac32d(0x1a9));function a3_0x2318(_0x586605,_0x1209ab){var _0x29d48f=a3_0x47dd();return a3_0x2318=function(_0x3ff62b,_0x52712e){_0x3ff62b=_0x3ff62b-0x19b;var _0x47dd6e=_0x29d48f[_0x3ff62b];return _0x47dd6e;},a3_0x2318(_0x586605,_0x1209ab);}Object[a3_0x5ac32d(0x1a0)](exports,a3_0x5ac32d(0x1ad),{'enumerable':!![],'get':function(){var _0x22a8a9=a3_0x5ac32d;return configuration_1[_0x22a8a9(0x19e)];}});function a3_0x47dd(){var _0x3fec9b=['./configuration','apply','2913076ofZwIs','9125656gcOhcK','Configuration','search','3502079NxLiPi','273cnqStH','(((.+)+)+)+$','8696SXJWKj','3253315XRmGWw','CustomConfiguration','CacheService','defineProperty','9LBNXar','180267dnoCwt','Cache','toString','constructor','1961940pheSqX','./service/CacheService','./decorator/Cache'];a3_0x47dd=function(){return _0x3fec9b;};return a3_0x47dd();}var Cache_1=require(a3_0x5ac32d(0x1a8));Object['defineProperty'](exports,a3_0x5ac32d(0x1a3),{'enumerable':!![],'get':function(){var _0x276662=a3_0x5ac32d;return Cache_1[_0x276662(0x1a3)];}});var CacheService_1=require(a3_0x5ac32d(0x1a7));Object[a3_0x5ac32d(0x1a0)](exports,a3_0x5ac32d(0x19f),{'enumerable':!![],'get':function(){var _0x11c76c=a3_0x5ac32d;return CacheService_1[_0x11c76c(0x19f)];}});
1
+ var a3_0x3f03c8=a3_0x230a;(function(_0x442879,_0x10939c){var _0x40d767=a3_0x230a,_0xb89e86=_0x442879();while(!![]){try{var _0x2b6fbd=-parseInt(_0x40d767(0x1a7))/0x1+parseInt(_0x40d767(0x1ae))/0x2*(parseInt(_0x40d767(0x1a6))/0x3)+-parseInt(_0x40d767(0x1a8))/0x4*(-parseInt(_0x40d767(0x1a3))/0x5)+parseInt(_0x40d767(0x1ad))/0x6+parseInt(_0x40d767(0x1ac))/0x7+-parseInt(_0x40d767(0x1a5))/0x8+-parseInt(_0x40d767(0x1a9))/0x9;if(_0x2b6fbd===_0x10939c)break;else _0xb89e86['push'](_0xb89e86['shift']());}catch(_0xfd919){_0xb89e86['push'](_0xb89e86['shift']());}}}(a3_0x3c57,0x76ff1));var a3_0x5c0182=(function(){var _0xc966f6=!![];return function(_0x2bbe3f,_0x3badae){var _0x2e08f2=_0xc966f6?function(){var _0x3d0a5e=a3_0x230a;if(_0x3badae){var _0x4b4c1e=_0x3badae[_0x3d0a5e(0x1b1)](_0x2bbe3f,arguments);return _0x3badae=null,_0x4b4c1e;}}:function(){};return _0xc966f6=![],_0x2e08f2;};}()),a3_0x926b3c=a3_0x5c0182(this,function(){var _0xdda598=a3_0x230a;return a3_0x926b3c[_0xdda598(0x1b4)]()['search'](_0xdda598(0x1b5))[_0xdda598(0x1b4)]()[_0xdda598(0x1b2)](a3_0x926b3c)[_0xdda598(0x1ab)]('(((.+)+)+)+$');});a3_0x926b3c();function a3_0x230a(_0x4476f2,_0x51ec58){var _0x1f1e81=a3_0x3c57();return a3_0x230a=function(_0x926b3c,_0x5c0182){_0x926b3c=_0x926b3c-0x1a0;var _0x3c5762=_0x1f1e81[_0x926b3c];return _0x3c5762;},a3_0x230a(_0x4476f2,_0x51ec58);}'use strict';Object[a3_0x3f03c8(0x1b0)](exports,'__esModule',{'value':!![]}),exports[a3_0x3f03c8(0x1aa)]=exports['Cache']=exports[a3_0x3f03c8(0x1a0)]=void 0x0;var configuration_1=require(a3_0x3f03c8(0x1a1));function a3_0x3c57(){var _0x2c33ae=['search','5848745JKYDiA','4274328VLwJJL','160HEpRIR','Cache','defineProperty','apply','constructor','./service/CacheService','toString','(((.+)+)+)+$','Configuration','./configuration','CustomConfiguration','35fhzgLu','./decorator/Cache','4672896Ibosqq','16491kHOutl','446262jFVSfn','331612UJKOzA','9451989qTIlzY','CacheService'];a3_0x3c57=function(){return _0x2c33ae;};return a3_0x3c57();}Object[a3_0x3f03c8(0x1b0)](exports,a3_0x3f03c8(0x1a0),{'enumerable':!![],'get':function(){var _0x5542be=a3_0x3f03c8;return configuration_1[_0x5542be(0x1a2)];}});var Cache_1=require(a3_0x3f03c8(0x1a4));Object[a3_0x3f03c8(0x1b0)](exports,a3_0x3f03c8(0x1af),{'enumerable':!![],'get':function(){var _0x520ecd=a3_0x3f03c8;return Cache_1[_0x520ecd(0x1af)];}});var CacheService_1=require(a3_0x3f03c8(0x1b3));Object['defineProperty'](exports,a3_0x3f03c8(0x1aa),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
@@ -1 +1 @@
1
- var a4_0x4c51d2=a4_0x4ab1;(function(_0x1f9094,_0x22818b){var _0x42e308=a4_0x4ab1,_0xf702f2=_0x1f9094();while(!![]){try{var _0x598574=parseInt(_0x42e308(0x1f4))/0x1+-parseInt(_0x42e308(0x1fc))/0x2+-parseInt(_0x42e308(0x1ec))/0x3*(-parseInt(_0x42e308(0x202))/0x4)+parseInt(_0x42e308(0x223))/0x5*(-parseInt(_0x42e308(0x203))/0x6)+parseInt(_0x42e308(0x21b))/0x7+parseInt(_0x42e308(0x1f2))/0x8+-parseInt(_0x42e308(0x218))/0x9;if(_0x598574===_0x22818b)break;else _0xf702f2['push'](_0xf702f2['shift']());}catch(_0x56cfc7){_0xf702f2['push'](_0xf702f2['shift']());}}}(a4_0x429e,0x26d46));function a4_0x429e(){var _0x207657=['name','getOwnPropertyDescriptor','__metadata','redis','lrange','del','CacheService','apply','2306709YkJeMS','clients','cache','1818705MpVDOG','rpush','store','design:type','prefix','defineProperty','use','parse','23295oJRaUv','hset','push','metadata','get','417RiSoDa','getClient','object','caching','default','list','1638072SWAQJP','(((.+)+)+)+$','109612rMxziu','set','hget','json_encode','__decorate','file','Scope','length','362732BEdtpJ','toString','prototype','stores','constructor','catch','7620Ixwdjg','312wjtyKH','map','stringify','function','@midwayjs/core','filter','shift','config','has','Provide','decorate','Cache','reset'];a4_0x429e=function(){return _0x207657;};return a4_0x429e();}var a4_0x1384cb=(function(){var _0x20d332=!![];return function(_0x60c5b4,_0xb3c341){var _0x2ab90b=_0x20d332?function(){var _0x4cc348=a4_0x4ab1;if(_0xb3c341){var _0x53f5af=_0xb3c341[_0x4cc348(0x217)](_0x60c5b4,arguments);return _0xb3c341=null,_0x53f5af;}}:function(){};return _0x20d332=![],_0x2ab90b;};}()),a4_0x36cdf7=a4_0x1384cb(this,function(){var _0x2bd46d=a4_0x4ab1;return a4_0x36cdf7[_0x2bd46d(0x1fd)]()['search'](_0x2bd46d(0x1f3))[_0x2bd46d(0x1fd)]()[_0x2bd46d(0x200)](a4_0x36cdf7)['search']('(((.+)+)+)+$');});a4_0x36cdf7();'use strict';var __decorate=this&&this[a4_0x4c51d2(0x1f8)]||function(_0x5e16f6,_0x27bcca,_0x4d6e76,_0x4b94fd){var _0x53bad7=a4_0x4c51d2,_0x4fbb6b=arguments[_0x53bad7(0x1fb)],_0x2ccff9=_0x4fbb6b<0x3?_0x27bcca:_0x4b94fd===null?_0x4b94fd=Object[_0x53bad7(0x211)](_0x27bcca,_0x4d6e76):_0x4b94fd,_0x3dea6e;if(typeof Reflect===_0x53bad7(0x1ee)&&typeof Reflect[_0x53bad7(0x20d)]==='function')_0x2ccff9=Reflect['decorate'](_0x5e16f6,_0x27bcca,_0x4d6e76,_0x4b94fd);else{for(var _0x43245f=_0x5e16f6['length']-0x1;_0x43245f>=0x0;_0x43245f--)if(_0x3dea6e=_0x5e16f6[_0x43245f])_0x2ccff9=(_0x4fbb6b<0x3?_0x3dea6e(_0x2ccff9):_0x4fbb6b>0x3?_0x3dea6e(_0x27bcca,_0x4d6e76,_0x2ccff9):_0x3dea6e(_0x27bcca,_0x4d6e76))||_0x2ccff9;}return _0x4fbb6b>0x3&&_0x2ccff9&&Object[_0x53bad7(0x220)](_0x27bcca,_0x4d6e76,_0x2ccff9),_0x2ccff9;},__metadata=this&&this[a4_0x4c51d2(0x212)]||function(_0x46415d,_0x4b4696){var _0x37c0ef=a4_0x4c51d2;if(typeof Reflect===_0x37c0ef(0x1ee)&&typeof Reflect['metadata']===_0x37c0ef(0x206))return Reflect[_0x37c0ef(0x1ea)](_0x46415d,_0x4b4696);};Object[a4_0x4c51d2(0x220)](exports,'__esModule',{'value':!![]}),exports[a4_0x4c51d2(0x20e)]=exports[a4_0x4c51d2(0x216)]=void 0x0,exports[a4_0x4c51d2(0x1f7)]=json_encode,exports['json_decode']=json_decode;const cacheManager=require('cache-manager'),core_1=require(a4_0x4c51d2(0x207));let CacheService=class CacheService{constructor(){var _0x4dde39=a4_0x4c51d2;this['cache']=undefined,this[_0x4dde39(0x219)]=new Map();}[a4_0x4c51d2(0x221)](_0x19c213){var _0x233ee8=a4_0x4c51d2,_0xb191e0,_0x21ea2a;if(!this[_0x233ee8(0x21a)]){const _0x19d067=((_0xb191e0=this[_0x233ee8(0x20a)][_0x233ee8(0x1ff)])===null||_0xb191e0===void 0x0?void 0x0:_0xb191e0[(_0x21ea2a=this[_0x233ee8(0x20a)])===null||_0x21ea2a===void 0x0?void 0x0:_0x21ea2a[_0x233ee8(0x1f0)]])||this[_0x233ee8(0x20a)][_0x233ee8(0x1ff)][_0x233ee8(0x1f9)];this[_0x233ee8(0x21a)]=cacheManager[_0x233ee8(0x1ef)]({..._0x19d067['options'],'store':_0x19d067[_0x233ee8(0x21d)]});}return!this[_0x233ee8(0x219)][_0x233ee8(0x20b)](_0x19c213)&&this['clients'][_0x233ee8(0x1f5)](_0x19c213,new Cache(_0x19c213,this[_0x233ee8(0x21a)])),this[_0x233ee8(0x219)]['get'](_0x19c213);}async[a4_0x4c51d2(0x20f)](){var _0x2ea6fb=a4_0x4c51d2;return await this[_0x2ea6fb(0x21a)][_0x2ea6fb(0x20f)]();}};exports[a4_0x4c51d2(0x216)]=CacheService,__decorate([(0x0,core_1['Config'])(a4_0x4c51d2(0x21a)),__metadata(a4_0x4c51d2(0x21e),Object)],CacheService[a4_0x4c51d2(0x1fe)],'config',void 0x0),exports[a4_0x4c51d2(0x216)]=CacheService=__decorate([(0x0,core_1[a4_0x4c51d2(0x20c)])(),(0x0,core_1[a4_0x4c51d2(0x1fa)])(core_1['ScopeEnum']['Singleton'])],CacheService);class Cache{constructor(_0x38ab7d,_0x2a40cb){var _0x1728a7=a4_0x4c51d2;this[_0x1728a7(0x21a)]=_0x2a40cb,this[_0x1728a7(0x21f)]=_0x38ab7d;}async[a4_0x4c51d2(0x215)](_0x192345){var _0x26ec2f=a4_0x4c51d2;return await this[_0x26ec2f(0x21a)][_0x26ec2f(0x215)](this[_0x26ec2f(0x21f)]+':'+_0x192345);}async['set'](_0x1e5b1f,_0x289b2f,_0x200dbc){var _0x5815e4=a4_0x4c51d2,_0x558ade,_0x23f8d2;return((_0x23f8d2=(_0x558ade=this[_0x5815e4(0x21a)])===null||_0x558ade===void 0x0?void 0x0:_0x558ade[_0x5815e4(0x21d)])===null||_0x23f8d2===void 0x0?void 0x0:_0x23f8d2['name'])==_0x5815e4(0x213)?await this[_0x5815e4(0x21a)][_0x5815e4(0x1f5)](this[_0x5815e4(0x21f)]+':'+_0x1e5b1f,_0x289b2f,{'ttl':_0x200dbc}):await this[_0x5815e4(0x21a)][_0x5815e4(0x1f5)](this[_0x5815e4(0x21f)]+':'+_0x1e5b1f,_0x289b2f,{'ttl':_0x200dbc});}async['get'](_0x2ce8e2,_0x58f05e,_0x4ee458){return new Promise((_0x325d1a,_0x2cb5a9)=>{var _0x565140=a4_0x4ab1;this[_0x565140(0x21a)][_0x565140(0x1eb)](this[_0x565140(0x21f)]+':'+_0x2ce8e2,async(_0xb31e0c,_0x1ca201)=>{var _0x292b4b=_0x565140;_0xb31e0c?_0x2cb5a9(_0xb31e0c):((_0x1ca201===undefined||_0x1ca201===null)&&(typeof _0x58f05e==_0x292b4b(0x206)?(_0x1ca201=await _0x58f05e()[_0x292b4b(0x201)](_0x4d5b83=>_0x2cb5a9(_0x4d5b83)),typeof _0x1ca201!='undefined'&&await this[_0x292b4b(0x1f5)](_0x2ce8e2,_0x1ca201,_0x4ee458)):_0x1ca201=_0x58f05e),_0x325d1a(_0x1ca201));});});}async['hdel'](_0x5cf7d4,_0x35f5c5){return await this['del'](_0x5cf7d4+'#'+_0x35f5c5);}async[a4_0x4c51d2(0x1e8)](_0x9dcbdd,_0x1c3449,_0x7cd464,_0x1292ae){var _0x533455=a4_0x4c51d2;return await this[_0x533455(0x1f5)](_0x9dcbdd+'#'+_0x1c3449,_0x7cd464,_0x1292ae);}async[a4_0x4c51d2(0x1f6)](_0x1e0e7f,_0x190cbd,_0x320c14,_0xbf41f4){var _0x496a9c=a4_0x4c51d2;return await this[_0x496a9c(0x1eb)](_0x1e0e7f+'#'+_0x190cbd,_0x320c14,_0xbf41f4);}[a4_0x4c51d2(0x1f1)](_0x2fd496){const _0x43dc7d={'all':async()=>{var _0x586069=a4_0x4ab1,_0x101bed,_0x54dd91,_0x6dcbb0,_0x36c649,_0x1a767d;return((_0x54dd91=(_0x101bed=this[_0x586069(0x21a)])===null||_0x101bed===void 0x0?void 0x0:_0x101bed[_0x586069(0x21d)])===null||_0x54dd91===void 0x0?void 0x0:_0x54dd91[_0x586069(0x210)])=='redis'?(await((_0x1a767d=(_0x36c649=(_0x6dcbb0=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x6dcbb0===void 0x0?void 0x0:_0x6dcbb0[_0x586069(0x21d)])===null||_0x36c649===void 0x0?void 0x0:_0x36c649[_0x586069(0x1ed)]())===null||_0x1a767d===void 0x0?void 0x0:_0x1a767d[_0x586069(0x214)](this['prefix']+':'+_0x2fd496,0x0,-0x1))||[])[_0x586069(0x204)](_0x127ee5=>json_decode(_0x127ee5)):await this[_0x586069(0x1eb)](_0x2fd496,[]);},'pop':async()=>{var _0x25add4=a4_0x4ab1,_0x465f4e,_0x51e07b,_0x5890d8,_0xfd3cd2,_0x112475;if(((_0x51e07b=(_0x465f4e=this[_0x25add4(0x21a)])===null||_0x465f4e===void 0x0?void 0x0:_0x465f4e['store'])===null||_0x51e07b===void 0x0?void 0x0:_0x51e07b[_0x25add4(0x210)])==_0x25add4(0x213))return json_decode(await((_0x112475=(_0xfd3cd2=(_0x5890d8=this===null||this===void 0x0?void 0x0:this[_0x25add4(0x21a)])===null||_0x5890d8===void 0x0?void 0x0:_0x5890d8[_0x25add4(0x21d)])===null||_0xfd3cd2===void 0x0?void 0x0:_0xfd3cd2['getClient']())===null||_0x112475===void 0x0?void 0x0:_0x112475['lpop'](this[_0x25add4(0x21f)]+':'+_0x2fd496)));else{let _0x576ffd=await this[_0x25add4(0x1eb)](_0x2fd496,[]),_0x3cd1f3=_0x576ffd[_0x25add4(0x209)]();return await this[_0x25add4(0x1f5)](_0x2fd496,_0x576ffd),_0x3cd1f3;}},'push':async(..._0x3da18d)=>{var _0x262fea=a4_0x4ab1,_0x3a088d,_0x559cd5,_0x289722,_0x2f9ad7,_0x3dd887;const _0x48cdf9=_0x3da18d[_0x262fea(0x208)](_0x41ef8c=>_0x41ef8c!==undefined&&_0x41ef8c!==null);if(((_0x559cd5=(_0x3a088d=this[_0x262fea(0x21a)])===null||_0x3a088d===void 0x0?void 0x0:_0x3a088d['store'])===null||_0x559cd5===void 0x0?void 0x0:_0x559cd5[_0x262fea(0x210)])==_0x262fea(0x213))return await((_0x3dd887=(_0x2f9ad7=(_0x289722=this===null||this===void 0x0?void 0x0:this[_0x262fea(0x21a)])===null||_0x289722===void 0x0?void 0x0:_0x289722[_0x262fea(0x21d)])===null||_0x2f9ad7===void 0x0?void 0x0:_0x2f9ad7['getClient']())===null||_0x3dd887===void 0x0?void 0x0:_0x3dd887[_0x262fea(0x21c)](this['prefix']+':'+_0x2fd496,..._0x48cdf9[_0x262fea(0x204)](_0x6c80e8=>json_encode(_0x6c80e8)))),_0x48cdf9;else{let _0x18b648=await this[_0x262fea(0x1eb)](_0x2fd496,[]);return _0x18b648[_0x262fea(0x1e9)](..._0x48cdf9),await this[_0x262fea(0x1f5)](_0x2fd496,_0x18b648),_0x18b648;}}};return _0x43dc7d;}}exports[a4_0x4c51d2(0x20e)]=Cache;function a4_0x4ab1(_0x11277c,_0x5c632c){var _0x439fe4=a4_0x429e();return a4_0x4ab1=function(_0x36cdf7,_0x1384cb){_0x36cdf7=_0x36cdf7-0x1e8;var _0x429e2c=_0x439fe4[_0x36cdf7];return _0x429e2c;},a4_0x4ab1(_0x11277c,_0x5c632c);}function json_encode(_0x3bbd38){var _0x2e8382=a4_0x4c51d2;try{return JSON[_0x2e8382(0x205)](_0x3bbd38);}catch(_0x46a0be){return undefined;}}function json_decode(_0x4d51f4){var _0x112f7e=a4_0x4c51d2;try{return JSON[_0x112f7e(0x222)](_0x4d51f4);}catch(_0x50d001){return undefined;}}
1
+ var a4_0x271511=a4_0x1f58;function a4_0x1f58(_0x1fd9ff,_0x482771){var _0x42ba5a=a4_0x4b19();return a4_0x1f58=function(_0x31647b,_0x2f9f18){_0x31647b=_0x31647b-0x65;var _0x4b19c3=_0x42ba5a[_0x31647b];return _0x4b19c3;},a4_0x1f58(_0x1fd9ff,_0x482771);}(function(_0x19a703,_0x56460d){var _0x459625=a4_0x1f58,_0x1b60b7=_0x19a703();while(!![]){try{var _0x278031=-parseInt(_0x459625(0x84))/0x1+-parseInt(_0x459625(0x66))/0x2+-parseInt(_0x459625(0x8a))/0x3+parseInt(_0x459625(0x6d))/0x4+-parseInt(_0x459625(0x9d))/0x5*(parseInt(_0x459625(0x8e))/0x6)+-parseInt(_0x459625(0x86))/0x7*(-parseInt(_0x459625(0x88))/0x8)+parseInt(_0x459625(0xa3))/0x9;if(_0x278031===_0x56460d)break;else _0x1b60b7['push'](_0x1b60b7['shift']());}catch(_0x2660c3){_0x1b60b7['push'](_0x1b60b7['shift']());}}}(a4_0x4b19,0xcd896));var a4_0x2f9f18=(function(){var _0x260d18=!![];return function(_0x333cc4,_0x3b628e){var _0x583ea2=_0x260d18?function(){var _0x5712c6=a4_0x1f58;if(_0x3b628e){var _0x1008b3=_0x3b628e[_0x5712c6(0x99)](_0x333cc4,arguments);return _0x3b628e=null,_0x1008b3;}}:function(){};return _0x260d18=![],_0x583ea2;};}()),a4_0x31647b=a4_0x2f9f18(this,function(){var _0xb41466=a4_0x1f58;return a4_0x31647b[_0xb41466(0x93)]()[_0xb41466(0x69)]('(((.+)+)+)+$')['toString']()[_0xb41466(0x6f)](a4_0x31647b)[_0xb41466(0x69)](_0xb41466(0x81));});a4_0x31647b();'use strict';var __decorate=this&&this['__decorate']||function(_0xbba7d9,_0x3ce52d,_0x53af7d,_0x539e96){var _0x1b675e=a4_0x1f58,_0xdfa910=arguments[_0x1b675e(0xa0)],_0x4392a3=_0xdfa910<0x3?_0x3ce52d:_0x539e96===null?_0x539e96=Object[_0x1b675e(0x7e)](_0x3ce52d,_0x53af7d):_0x539e96,_0x3a09d8;if(typeof Reflect===_0x1b675e(0x98)&&typeof Reflect[_0x1b675e(0x83)]===_0x1b675e(0xa2))_0x4392a3=Reflect['decorate'](_0xbba7d9,_0x3ce52d,_0x53af7d,_0x539e96);else{for(var _0x22cba5=_0xbba7d9[_0x1b675e(0xa0)]-0x1;_0x22cba5>=0x0;_0x22cba5--)if(_0x3a09d8=_0xbba7d9[_0x22cba5])_0x4392a3=(_0xdfa910<0x3?_0x3a09d8(_0x4392a3):_0xdfa910>0x3?_0x3a09d8(_0x3ce52d,_0x53af7d,_0x4392a3):_0x3a09d8(_0x3ce52d,_0x53af7d))||_0x4392a3;}return _0xdfa910>0x3&&_0x4392a3&&Object['defineProperty'](_0x3ce52d,_0x53af7d,_0x4392a3),_0x4392a3;},__metadata=this&&this[a4_0x271511(0x6c)]||function(_0x269217,_0x467677){var _0x44f157=a4_0x271511;if(typeof Reflect===_0x44f157(0x98)&&typeof Reflect['metadata']===_0x44f157(0xa2))return Reflect[_0x44f157(0x7f)](_0x269217,_0x467677);};Object[a4_0x271511(0x7d)](exports,a4_0x271511(0x95),{'value':!![]}),exports['Cache']=exports['CacheService']=void 0x0,exports[a4_0x271511(0x7b)]=json_encode,exports[a4_0x271511(0x96)]=json_decode;const cacheManager=require(a4_0x271511(0x85)),core_1=require(a4_0x271511(0x87));let CacheService=class CacheService{constructor(){var _0x72b6e4=a4_0x271511;this[_0x72b6e4(0x78)]=undefined,this[_0x72b6e4(0x71)]=new Map();}[a4_0x271511(0x7a)](_0x33523c){var _0x1f025a=a4_0x271511,_0x72ca7d,_0x174567;if(!this[_0x1f025a(0x78)]){const _0xafc6f8=((_0x72ca7d=this[_0x1f025a(0x8d)][_0x1f025a(0x68)])===null||_0x72ca7d===void 0x0?void 0x0:_0x72ca7d[(_0x174567=this[_0x1f025a(0x8d)])===null||_0x174567===void 0x0?void 0x0:_0x174567[_0x1f025a(0x94)]])||this[_0x1f025a(0x8d)][_0x1f025a(0x68)][_0x1f025a(0x9f)];this[_0x1f025a(0x78)]=cacheManager[_0x1f025a(0x74)]({..._0xafc6f8[_0x1f025a(0x77)],'store':_0xafc6f8[_0x1f025a(0x7c)]});}return!this[_0x1f025a(0x71)][_0x1f025a(0x97)](_0x33523c)&&this[_0x1f025a(0x71)]['set'](_0x33523c,new Cache(_0x33523c,this['cache'])),this[_0x1f025a(0x71)][_0x1f025a(0x79)](_0x33523c);}async[a4_0x271511(0x9a)](){var _0x45b830=a4_0x271511;return await this['cache'][_0x45b830(0x9a)]();}};exports[a4_0x271511(0x8b)]=CacheService,__decorate([(0x0,core_1[a4_0x271511(0x82)])(a4_0x271511(0x78)),__metadata(a4_0x271511(0x8c),Object)],CacheService['prototype'],'config',void 0x0),exports[a4_0x271511(0x8b)]=CacheService=__decorate([(0x0,core_1[a4_0x271511(0x70)])(),(0x0,core_1[a4_0x271511(0x9e)])(core_1['ScopeEnum']['Singleton'])],CacheService);class Cache{constructor(_0x4af20d,_0x20face){var _0x5e7258=a4_0x271511;this[_0x5e7258(0x78)]=_0x20face,this[_0x5e7258(0x75)]=_0x4af20d;}async[a4_0x271511(0x6e)](_0x1b09d7){var _0x34d419=a4_0x271511;return await this[_0x34d419(0x78)][_0x34d419(0x6e)](this[_0x34d419(0x75)]+':'+_0x1b09d7);}async[a4_0x271511(0x67)](_0x10726e,_0x5aa9d8,_0x36ea2f){var _0x4463f0=a4_0x271511,_0x43484d,_0x1ca0de;return((_0x1ca0de=(_0x43484d=this['cache'])===null||_0x43484d===void 0x0?void 0x0:_0x43484d[_0x4463f0(0x7c)])===null||_0x1ca0de===void 0x0?void 0x0:_0x1ca0de[_0x4463f0(0x6a)])==_0x4463f0(0x89)?await this['cache']['set'](this[_0x4463f0(0x75)]+':'+_0x10726e,_0x5aa9d8,{'ttl':_0x36ea2f}):await this[_0x4463f0(0x78)][_0x4463f0(0x67)](this[_0x4463f0(0x75)]+':'+_0x10726e,_0x5aa9d8,{'ttl':_0x36ea2f});}async[a4_0x271511(0x79)](_0x4c0302,_0x49f29b,_0x38aa05){return new Promise((_0x3fcfd6,_0x5901c6)=>{var _0x447f95=a4_0x1f58;this[_0x447f95(0x78)]['get'](this[_0x447f95(0x75)]+':'+_0x4c0302,async(_0x1c62ed,_0x401903)=>{var _0x25f65e=_0x447f95;_0x1c62ed?_0x5901c6(_0x1c62ed):((_0x401903===undefined||_0x401903===null)&&(typeof _0x49f29b==_0x25f65e(0xa2)?(_0x401903=await _0x49f29b()[_0x25f65e(0x72)](_0x2fa750=>_0x5901c6(_0x2fa750)),typeof _0x401903!='undefined'&&await this[_0x25f65e(0x67)](_0x4c0302,_0x401903,_0x38aa05)):_0x401903=_0x49f29b),_0x3fcfd6(_0x401903));});});}async[a4_0x271511(0x6b)](_0x24edc0,_0x1c2cf4){var _0x133654=a4_0x271511;return await this[_0x133654(0x6e)](_0x24edc0+'#'+_0x1c2cf4);}async[a4_0x271511(0x92)](_0x5a517,_0x1b6662,_0x1da945,_0x2d0591){var _0x29a495=a4_0x271511;return await this[_0x29a495(0x67)](_0x5a517+'#'+_0x1b6662,_0x1da945,_0x2d0591);}async[a4_0x271511(0x91)](_0x3bc893,_0x48cec9,_0x5634eb,_0x1bb4bd){var _0xf0d95b=a4_0x271511;return await this[_0xf0d95b(0x79)](_0x3bc893+'#'+_0x48cec9,_0x5634eb,_0x1bb4bd);}['list'](_0xe5eecf){const _0x586c70={'all':async()=>{var _0x5e6bd4=a4_0x1f58,_0x365444,_0x59b420,_0x2d254b,_0xf9c013,_0x32982d;return((_0x59b420=(_0x365444=this['cache'])===null||_0x365444===void 0x0?void 0x0:_0x365444['store'])===null||_0x59b420===void 0x0?void 0x0:_0x59b420[_0x5e6bd4(0x6a)])==_0x5e6bd4(0x89)?(await((_0x32982d=(_0xf9c013=(_0x2d254b=this===null||this===void 0x0?void 0x0:this[_0x5e6bd4(0x78)])===null||_0x2d254b===void 0x0?void 0x0:_0x2d254b[_0x5e6bd4(0x7c)])===null||_0xf9c013===void 0x0?void 0x0:_0xf9c013[_0x5e6bd4(0xa1)]())===null||_0x32982d===void 0x0?void 0x0:_0x32982d[_0x5e6bd4(0x65)](this[_0x5e6bd4(0x75)]+':'+_0xe5eecf,0x0,-0x1))||[])[_0x5e6bd4(0x73)](_0x302f1c=>json_decode(_0x302f1c)):await this['get'](_0xe5eecf,[]);},'pop':async()=>{var _0x1a4682=a4_0x1f58,_0x4110a1,_0x2e11a2,_0x39e9aa,_0xbf1517,_0x2f6d09;if(((_0x2e11a2=(_0x4110a1=this[_0x1a4682(0x78)])===null||_0x4110a1===void 0x0?void 0x0:_0x4110a1[_0x1a4682(0x7c)])===null||_0x2e11a2===void 0x0?void 0x0:_0x2e11a2['name'])==_0x1a4682(0x89))return json_decode(await((_0x2f6d09=(_0xbf1517=(_0x39e9aa=this===null||this===void 0x0?void 0x0:this[_0x1a4682(0x78)])===null||_0x39e9aa===void 0x0?void 0x0:_0x39e9aa[_0x1a4682(0x7c)])===null||_0xbf1517===void 0x0?void 0x0:_0xbf1517[_0x1a4682(0xa1)]())===null||_0x2f6d09===void 0x0?void 0x0:_0x2f6d09[_0x1a4682(0x8f)](this['prefix']+':'+_0xe5eecf)));else{let _0x3799ae=await this[_0x1a4682(0x79)](_0xe5eecf,[]),_0x5c83ac=_0x3799ae[_0x1a4682(0x90)]();return await this[_0x1a4682(0x67)](_0xe5eecf,_0x3799ae),_0x5c83ac;}},'push':async(..._0xbedba3)=>{var _0x5b2219=a4_0x1f58,_0x287ee0,_0x261ed3,_0x1f13fd,_0x867987,_0x59a100;const _0x4a41f6=_0xbedba3[_0x5b2219(0x76)](_0x43877a=>_0x43877a!==undefined&&_0x43877a!==null);if(((_0x261ed3=(_0x287ee0=this[_0x5b2219(0x78)])===null||_0x287ee0===void 0x0?void 0x0:_0x287ee0[_0x5b2219(0x7c)])===null||_0x261ed3===void 0x0?void 0x0:_0x261ed3[_0x5b2219(0x6a)])==_0x5b2219(0x89))return await((_0x59a100=(_0x867987=(_0x1f13fd=this===null||this===void 0x0?void 0x0:this[_0x5b2219(0x78)])===null||_0x1f13fd===void 0x0?void 0x0:_0x1f13fd[_0x5b2219(0x7c)])===null||_0x867987===void 0x0?void 0x0:_0x867987[_0x5b2219(0xa1)]())===null||_0x59a100===void 0x0?void 0x0:_0x59a100[_0x5b2219(0x9b)](this['prefix']+':'+_0xe5eecf,..._0x4a41f6[_0x5b2219(0x73)](_0x39de6c=>json_encode(_0x39de6c)))),_0x4a41f6;else{let _0x117fc1=await this[_0x5b2219(0x79)](_0xe5eecf,[]);return _0x117fc1['push'](..._0x4a41f6),await this[_0x5b2219(0x67)](_0xe5eecf,_0x117fc1),_0x117fc1;}}};return _0x586c70;}}exports[a4_0x271511(0x9c)]=Cache;function a4_0x4b19(){var _0x438b19=['metadata','stringify','(((.+)+)+)+$','Config','decorate','898934ssQkrM','cache-manager','1548211DkRNFT','@midwayjs/core','8TqPVau','redis','3212250ziQCma','CacheService','design:type','config','27858FRLGrL','lpop','shift','hget','hset','toString','default','__esModule','json_decode','has','object','apply','reset','rpush','Cache','905LiTDdZ','Scope','file','length','getClient','function','35824203UdAsGe','lrange','1890394bHGutU','set','stores','search','name','hdel','__metadata','1582008RVOzdv','del','constructor','Provide','clients','catch','map','caching','prefix','filter','options','cache','get','use','json_encode','store','defineProperty','getOwnPropertyDescriptor'];a4_0x4b19=function(){return _0x438b19;};return a4_0x4b19();}function json_encode(_0x1eb06c){var _0x14aec1=a4_0x271511;try{return JSON[_0x14aec1(0x80)](_0x1eb06c);}catch(_0x30dcfe){return undefined;}}function json_decode(_0x3100d7){try{return JSON['parse'](_0x3100d7);}catch(_0x554c9c){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.64",
3
+ "version": "3.4.66",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -23,5 +23,5 @@
23
23
  "javascript-obfuscator": "^4.0.2",
24
24
  "typescript": "^5.5.4"
25
25
  },
26
- "gitHead": "b8b31c59a0c86429efa9887b88b0169dfe98c116"
26
+ "gitHead": "c6565df81584b2f46c0b6fbab3e11bd83f94128e"
27
27
  }