@anncic-api/cache 3.4.83 → 3.4.84

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_0x1efc73=a0_0x5366;function a0_0x52a9(){const _0x15620f=['127.0.0.1','search','115YDSrxl','189fYdYEN','3868494OYMJdI','298Xsuscf','175768qWmWSw','defineProperty','constructor','file','name','345030gHdwXn','env','toString','apply','appDir','11064bMdBXt','24918eVTiSi','memory','__esModule','1442290soLrbE','(((.+)+)+)+$','cache-manager-fs-hash','2121616GfbHII','cache-manager-ioredis'];a0_0x52a9=function(){return _0x15620f;};return a0_0x52a9();}(function(_0xcb78d9,_0x38540d){const _0xd65ef8=a0_0x5366,_0x4900ef=_0xcb78d9();while(!![]){try{const _0x4ca3be=parseInt(_0xd65ef8(0x6f))/0x1+-parseInt(_0xd65ef8(0x82))/0x2*(-parseInt(_0xd65ef8(0x74))/0x3)+parseInt(_0xd65ef8(0x7b))/0x4+parseInt(_0xd65ef8(0x7f))/0x5*(parseInt(_0xd65ef8(0x75))/0x6)+-parseInt(_0xd65ef8(0x81))/0x7+parseInt(_0xd65ef8(0x6a))/0x8*(-parseInt(_0xd65ef8(0x80))/0x9)+-parseInt(_0xd65ef8(0x78))/0xa;if(_0x4ca3be===_0x38540d)break;else _0x4900ef['push'](_0x4900ef['shift']());}catch(_0x418542){_0x4900ef['push'](_0x4900ef['shift']());}}}(a0_0x52a9,0x586db));const a0_0x2b1ce3=(function(){let _0x4eb965=!![];return function(_0x1e1d5a,_0x5ea578){const _0x14809d=_0x4eb965?function(){const _0x3d89f6=a0_0x5366;if(_0x5ea578){const _0x56d71a=_0x5ea578[_0x3d89f6(0x72)](_0x1e1d5a,arguments);return _0x5ea578=null,_0x56d71a;}}:function(){};return _0x4eb965=![],_0x14809d;};}()),a0_0x4a9262=a0_0x2b1ce3(this,function(){const _0x399ef9=a0_0x5366;return a0_0x4a9262['toString']()[_0x399ef9(0x7e)](_0x399ef9(0x79))[_0x399ef9(0x71)]()[_0x399ef9(0x6c)](a0_0x4a9262)[_0x399ef9(0x7e)](_0x399ef9(0x79));});a0_0x4a9262();'use strict';function a0_0x5366(_0x57511c,_0x5e5de7){const _0x24323a=a0_0x52a9();return a0_0x5366=function(_0x4a9262,_0x2b1ce3){_0x4a9262=_0x4a9262-0x6a;let _0x52a9e9=_0x24323a[_0x4a9262];return _0x52a9e9;},a0_0x5366(_0x57511c,_0x5e5de7);}Object[a0_0x1efc73(0x6b)](exports,a0_0x1efc73(0x77),{'value':!![]});const fsStore=require(a0_0x1efc73(0x7a)),redisStore=require(a0_0x1efc73(0x7c));exports['default']=_0x180b9a=>{const _0xf54916=a0_0x1efc73;return{'cache':{'default':_0xf54916(0x6d),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x180b9a[_0xf54916(0x73)]+'/runtime/.cache'+((_0x180b9a===null||_0x180b9a===void 0x0?void 0x0:_0x180b9a[_0xf54916(0x70)])?'-'+_0x180b9a[_0xf54916(0x70)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0xf54916(0x7d),'password':'','keyPrefix':_0x180b9a[_0xf54916(0x6e)]+':'+((_0x180b9a===null||_0x180b9a===void 0x0?void 0x0:_0x180b9a[_0xf54916(0x70)])?_0x180b9a[_0xf54916(0x70)]+':':'')}},'memory':{'store':_0xf54916(0x76),'options':{'max':0x64}}}}};};
1
+ const a0_0x947285=a0_0x47c8;function a0_0x47c8(_0x354303,_0x1a7c2a){const _0x3d19ee=a0_0x2ba3();return a0_0x47c8=function(_0x58f139,_0x1aa67d){_0x58f139=_0x58f139-0xfe;let _0x2ba328=_0x3d19ee[_0x58f139];return _0x2ba328;},a0_0x47c8(_0x354303,_0x1a7c2a);}(function(_0x5b1cd9,_0x83c13c){const _0x1d5bf4=a0_0x47c8,_0x22fc28=_0x5b1cd9();while(!![]){try{const _0x556222=parseInt(_0x1d5bf4(0x100))/0x1*(parseInt(_0x1d5bf4(0x106))/0x2)+-parseInt(_0x1d5bf4(0x108))/0x3+-parseInt(_0x1d5bf4(0x118))/0x4*(parseInt(_0x1d5bf4(0x10d))/0x5)+-parseInt(_0x1d5bf4(0x109))/0x6+-parseInt(_0x1d5bf4(0x10b))/0x7*(parseInt(_0x1d5bf4(0x104))/0x8)+-parseInt(_0x1d5bf4(0xff))/0x9*(parseInt(_0x1d5bf4(0x112))/0xa)+parseInt(_0x1d5bf4(0x114))/0xb*(parseInt(_0x1d5bf4(0x111))/0xc);if(_0x556222===_0x83c13c)break;else _0x22fc28['push'](_0x22fc28['shift']());}catch(_0x5aa486){_0x22fc28['push'](_0x22fc28['shift']());}}}(a0_0x2ba3,0x4f79f));function a0_0x2ba3(){const _0x2369d8=['176161frlRNo','/runtime/.cache','(((.+)+)+)+$','name','232784JGBULo','file','2agQnpW','search','572238BICjwG','1545924beGWKB','cache-manager-fs-hash','21TQwqEi','env','136015xufECr','apply','toString','cache-manager-ioredis','8616AlbNmZ','10ATZgkO','127.0.0.1','16489IsVTTX','defineProperty','default','constructor','28QziIUS','memory','1807137NBnPWP'];a0_0x2ba3=function(){return _0x2369d8;};return a0_0x2ba3();}const a0_0x1aa67d=(function(){let _0x5e2997=!![];return function(_0x40be8f,_0x382e7b){const _0x205bd6=_0x5e2997?function(){const _0x63fe65=a0_0x47c8;if(_0x382e7b){const _0x28c5ad=_0x382e7b[_0x63fe65(0x10e)](_0x40be8f,arguments);return _0x382e7b=null,_0x28c5ad;}}:function(){};return _0x5e2997=![],_0x205bd6;};}()),a0_0x58f139=a0_0x1aa67d(this,function(){const _0x23c398=a0_0x47c8;return a0_0x58f139[_0x23c398(0x10f)]()[_0x23c398(0x107)](_0x23c398(0x102))['toString']()[_0x23c398(0x117)](a0_0x58f139)['search'](_0x23c398(0x102));});a0_0x58f139();'use strict';Object[a0_0x947285(0x115)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x947285(0x10a)),redisStore=require(a0_0x947285(0x110));exports[a0_0x947285(0x116)]=_0x1cde9d=>{const _0x103cc6=a0_0x947285;return{'cache':{'default':_0x103cc6(0x105),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x1cde9d['appDir']+_0x103cc6(0x101)+((_0x1cde9d===null||_0x1cde9d===void 0x0?void 0x0:_0x1cde9d['env'])?'-'+_0x1cde9d[_0x103cc6(0x10c)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x103cc6(0x113),'password':'','keyPrefix':_0x1cde9d[_0x103cc6(0x103)]+':'+((_0x1cde9d===null||_0x1cde9d===void 0x0?void 0x0:_0x1cde9d['env'])?_0x1cde9d[_0x103cc6(0x10c)]+':':'')}},'memory':{'store':_0x103cc6(0xfe),'options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- var a1_0x1a1b5f=a1_0x4aca;(function(_0xa0597d,_0x196a99){var _0x29e44c=a1_0x4aca,_0x136c3c=_0xa0597d();while(!![]){try{var _0xbdb52e=-parseInt(_0x29e44c(0x202))/0x1*(parseInt(_0x29e44c(0x1ff))/0x2)+parseInt(_0x29e44c(0x1f7))/0x3*(-parseInt(_0x29e44c(0x204))/0x4)+parseInt(_0x29e44c(0x1f3))/0x5+-parseInt(_0x29e44c(0x1f1))/0x6*(parseInt(_0x29e44c(0x1f5))/0x7)+parseInt(_0x29e44c(0x1f9))/0x8+parseInt(_0x29e44c(0x207))/0x9+parseInt(_0x29e44c(0x1f2))/0xa*(parseInt(_0x29e44c(0x203))/0xb);if(_0xbdb52e===_0x196a99)break;else _0x136c3c['push'](_0x136c3c['shift']());}catch(_0x11c43b){_0x136c3c['push'](_0x136c3c['shift']());}}}(a1_0x4aac,0x8a9fb));function a1_0x4aca(_0x5ca12c,_0x50b4d7){var _0x53cd35=a1_0x4aac();return a1_0x4aca=function(_0x48f82d,_0x2668c6){_0x48f82d=_0x48f82d-0x1f0;var _0x4aace5=_0x53cd35[_0x48f82d];return _0x4aace5;},a1_0x4aca(_0x5ca12c,_0x50b4d7);}var a1_0x2668c6=(function(){var _0x2195db=!![];return function(_0x4c34e2,_0x5cf686){var _0x4099c2=_0x2195db?function(){var _0x596f7e=a1_0x4aca;if(_0x5cf686){var _0x4e0171=_0x5cf686[_0x596f7e(0x1fa)](_0x4c34e2,arguments);return _0x5cf686=null,_0x4e0171;}}:function(){};return _0x2195db=![],_0x4099c2;};}()),a1_0x48f82d=a1_0x2668c6(this,function(){var _0x255b2a=a1_0x4aca;return a1_0x48f82d[_0x255b2a(0x205)]()[_0x255b2a(0x20a)]('(((.+)+)+)+$')['toString']()[_0x255b2a(0x1fb)](a1_0x48f82d)['search']('(((.+)+)+)+$');});a1_0x48f82d();'use strict';var __decorate=this&&this[a1_0x1a1b5f(0x201)]||function(_0x58dcad,_0x753091,_0x24c648,_0x32e267){var _0x1092b7=a1_0x1a1b5f,_0x20b9c2=arguments['length'],_0x2b7812=_0x20b9c2<0x3?_0x753091:_0x32e267===null?_0x32e267=Object[_0x1092b7(0x209)](_0x753091,_0x24c648):_0x32e267,_0x3800b1;if(typeof Reflect==='object'&&typeof Reflect[_0x1092b7(0x1f0)]===_0x1092b7(0x206))_0x2b7812=Reflect[_0x1092b7(0x1f0)](_0x58dcad,_0x753091,_0x24c648,_0x32e267);else{for(var _0x563d2e=_0x58dcad[_0x1092b7(0x1fd)]-0x1;_0x563d2e>=0x0;_0x563d2e--)if(_0x3800b1=_0x58dcad[_0x563d2e])_0x2b7812=(_0x20b9c2<0x3?_0x3800b1(_0x2b7812):_0x20b9c2>0x3?_0x3800b1(_0x753091,_0x24c648,_0x2b7812):_0x3800b1(_0x753091,_0x24c648))||_0x2b7812;}return _0x20b9c2>0x3&&_0x2b7812&&Object[_0x1092b7(0x1fc)](_0x753091,_0x24c648,_0x2b7812),_0x2b7812;};Object[a1_0x1a1b5f(0x1fc)](exports,a1_0x1a1b5f(0x1f6),{'value':!![]}),exports[a1_0x1a1b5f(0x208)]=void 0x0;const core_1=require(a1_0x1a1b5f(0x200)),ConfigDefault=require(a1_0x1a1b5f(0x1fe));let CustomConfiguration=class CustomConfiguration{};function a1_0x4aac(){var _0x315917=['./config/config.default','5786IsRQeP','@midwayjs/core','__decorate','267kVvGMT','16533hmnspw','367428tPzBme','toString','function','646758OfzDNH','CustomConfiguration','getOwnPropertyDescriptor','search','decorate','54wpENlN','5870Ysjlng','4264930ZywvyN','anncic-api:cache','602651acabbb','__esModule','27pjcMQb','Configuration','9077400SYeRqS','apply','constructor','defineProperty','length'];a1_0x4aac=function(){return _0x315917;};return a1_0x4aac();}exports[a1_0x1a1b5f(0x208)]=CustomConfiguration,exports[a1_0x1a1b5f(0x208)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x1a1b5f(0x1f8)])({'conflictCheck':![],'namespace':a1_0x1a1b5f(0x1f4),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x665996=a1_0x4d57;(function(_0x54e06e,_0x251803){var _0x2da7bc=a1_0x4d57,_0x53c37a=_0x54e06e();while(!![]){try{var _0x1e8fa0=-parseInt(_0x2da7bc(0x1a1))/0x1*(-parseInt(_0x2da7bc(0x192))/0x2)+-parseInt(_0x2da7bc(0x195))/0x3+parseInt(_0x2da7bc(0x193))/0x4+parseInt(_0x2da7bc(0x19d))/0x5+parseInt(_0x2da7bc(0x196))/0x6+parseInt(_0x2da7bc(0x1a3))/0x7+parseInt(_0x2da7bc(0x19e))/0x8*(-parseInt(_0x2da7bc(0x1a4))/0x9);if(_0x1e8fa0===_0x251803)break;else _0x53c37a['push'](_0x53c37a['shift']());}catch(_0xabbf19){_0x53c37a['push'](_0x53c37a['shift']());}}}(a1_0x57a8,0x85328));var a1_0x25ce30=(function(){var _0xbc004=!![];return function(_0x59bbc4,_0x1c4147){var _0x4f8dea=_0xbc004?function(){var _0x4af6c1=a1_0x4d57;if(_0x1c4147){var _0xbef43e=_0x1c4147[_0x4af6c1(0x1a0)](_0x59bbc4,arguments);return _0x1c4147=null,_0xbef43e;}}:function(){};return _0xbc004=![],_0x4f8dea;};}()),a1_0x2a747a=a1_0x25ce30(this,function(){var _0x59fb0b=a1_0x4d57;return a1_0x2a747a[_0x59fb0b(0x199)]()[_0x59fb0b(0x198)]('(((.+)+)+)+$')[_0x59fb0b(0x199)]()[_0x59fb0b(0x1a2)](a1_0x2a747a)[_0x59fb0b(0x198)]('(((.+)+)+)+$');});a1_0x2a747a();'use strict';function a1_0x57a8(){var _0x5dd543=['702NSdfhM','2542500PLfIab','__esModule','2671791tKSPBe','2613864WwzNim','@midwayjs/core','search','toString','CustomConfiguration','decorate','function','376570ePjJbc','8biYxoC','defineProperty','apply','2103cZDGcb','constructor','5567464fXguoQ','11195235rEFhLK','object','Configuration','getOwnPropertyDescriptor'];a1_0x57a8=function(){return _0x5dd543;};return a1_0x57a8();}function a1_0x4d57(_0x112bbe,_0x34585f){var _0x3bbc5f=a1_0x57a8();return a1_0x4d57=function(_0x2a747a,_0x25ce30){_0x2a747a=_0x2a747a-0x192;var _0x57a803=_0x3bbc5f[_0x2a747a];return _0x57a803;},a1_0x4d57(_0x112bbe,_0x34585f);}var __decorate=this&&this['__decorate']||function(_0x482b1c,_0x1d5653,_0x52e76f,_0x3f4d8a){var _0xa8db80=a1_0x4d57,_0x555d24=arguments['length'],_0x247696=_0x555d24<0x3?_0x1d5653:_0x3f4d8a===null?_0x3f4d8a=Object[_0xa8db80(0x1a7)](_0x1d5653,_0x52e76f):_0x3f4d8a,_0xd91f96;if(typeof Reflect===_0xa8db80(0x1a5)&&typeof Reflect[_0xa8db80(0x19b)]===_0xa8db80(0x19c))_0x247696=Reflect[_0xa8db80(0x19b)](_0x482b1c,_0x1d5653,_0x52e76f,_0x3f4d8a);else{for(var _0x342022=_0x482b1c['length']-0x1;_0x342022>=0x0;_0x342022--)if(_0xd91f96=_0x482b1c[_0x342022])_0x247696=(_0x555d24<0x3?_0xd91f96(_0x247696):_0x555d24>0x3?_0xd91f96(_0x1d5653,_0x52e76f,_0x247696):_0xd91f96(_0x1d5653,_0x52e76f))||_0x247696;}return _0x555d24>0x3&&_0x247696&&Object[_0xa8db80(0x19f)](_0x1d5653,_0x52e76f,_0x247696),_0x247696;};Object[a1_0x665996(0x19f)](exports,a1_0x665996(0x194),{'value':!![]}),exports[a1_0x665996(0x19a)]=void 0x0;const core_1=require(a1_0x665996(0x197)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};exports[a1_0x665996(0x19a)]=CustomConfiguration,exports[a1_0x665996(0x19a)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x665996(0x1a6)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x5c94ba=a2_0x2c7d;function a2_0x2c7d(_0xab89f5,_0x4aa342){const _0xc4b454=a2_0x2083();return a2_0x2c7d=function(_0x17c71c,_0x39630b){_0x17c71c=_0x17c71c-0x184;let _0x2083b1=_0xc4b454[_0x17c71c];return _0x2083b1;},a2_0x2c7d(_0xab89f5,_0x4aa342);}(function(_0x37e71f,_0x11ce78){const _0x1d3385=a2_0x2c7d,_0xffc0f5=_0x37e71f();while(!![]){try{const _0x4460e1=-parseInt(_0x1d3385(0x189))/0x1+parseInt(_0x1d3385(0x18e))/0x2*(parseInt(_0x1d3385(0x19a))/0x3)+parseInt(_0x1d3385(0x184))/0x4+parseInt(_0x1d3385(0x193))/0x5*(parseInt(_0x1d3385(0x198))/0x6)+parseInt(_0x1d3385(0x192))/0x7*(-parseInt(_0x1d3385(0x19b))/0x8)+parseInt(_0x1d3385(0x1a4))/0x9*(-parseInt(_0x1d3385(0x19e))/0xa)+-parseInt(_0x1d3385(0x1a2))/0xb*(-parseInt(_0x1d3385(0x190))/0xc);if(_0x4460e1===_0x11ce78)break;else _0xffc0f5['push'](_0xffc0f5['shift']());}catch(_0x9adb40){_0xffc0f5['push'](_0xffc0f5['shift']());}}}(a2_0x2083,0x58574));const a2_0x39630b=(function(){let _0x4c9633=!![];return function(_0x43d91f,_0x22018f){const _0x4ed192=_0x4c9633?function(){if(_0x22018f){const _0x523f19=_0x22018f['apply'](_0x43d91f,arguments);return _0x22018f=null,_0x523f19;}}:function(){};return _0x4c9633=![],_0x4ed192;};}()),a2_0x17c71c=a2_0x39630b(this,function(){const _0x1e7ccc=a2_0x2c7d;return a2_0x17c71c[_0x1e7ccc(0x188)]()[_0x1e7ccc(0x18f)](_0x1e7ccc(0x195))[_0x1e7ccc(0x188)]()[_0x1e7ccc(0x1a1)](a2_0x17c71c)[_0x1e7ccc(0x18f)](_0x1e7ccc(0x195));});a2_0x17c71c();'use strict';function a2_0x2083(){const _0x53764c=['constructor','5687qApDpZ','getAsync','131715JZzRbR','291220ZtccHH','crypto-js','parse','apply','toString','318026AqWyQD','MD5','../service/CacheService','get','use','58pjivEz','search','15012kkEjUB','Method::Decorator','7sdEZoP','25eLAJpB','defineProperty','(((.+)+)+)+$','app','REQUEST_OBJ_CTX_KEY','118362PCfDQH','getApplicationContext','53373cqVYYt','3946328kWFpTK','stringify','value','110mJbkuk','__esModule','set'];a2_0x2083=function(){return _0x53764c;};return a2_0x2083();}Object[a2_0x5c94ba(0x194)](exports,a2_0x5c94ba(0x19f),{'value':!![]}),exports['Cache']=Cache;const crypto_js_1=require(a2_0x5c94ba(0x185)),CacheService_1=require(a2_0x5c94ba(0x18b)),core_1=require('@midwayjs/core');function json_encode(_0x117fe3){const _0x2da55f=a2_0x5c94ba;try{return JSON[_0x2da55f(0x19c)](_0x117fe3);}catch(_0x5109af){return undefined;}}function Cache(_0x4d17f2,_0x53f7c5){return(_0x10f7fd,_0x1071e7,_0x2036ff)=>{const _0x4dd580=a2_0x2c7d,_0x3ee98d=_0x2036ff[_0x4dd580(0x19d)];return _0x2036ff[_0x4dd580(0x19d)]=async function(..._0x261e06){const _0x301a50=_0x4dd580;_0x4d17f2=(_0x4d17f2?''+_0x4d17f2:''+(_0x1071e7||''))+'.'+(0x0,crypto_js_1[_0x301a50(0x18a)])(json_encode(_0x261e06))[_0x301a50(0x188)]();let _0x451fe7=await this[core_1[_0x301a50(0x197)]][_0x301a50(0x196)][_0x301a50(0x199)]()[_0x301a50(0x1a3)](CacheService_1['CacheService']),_0x3310c9=await _0x451fe7[_0x301a50(0x18d)](_0x301a50(0x191))[_0x301a50(0x18c)](_0x4d17f2);if(_0x3310c9)return JSON[_0x301a50(0x186)](_0x3310c9);else _0x3310c9=await _0x3ee98d[_0x301a50(0x187)](this,[..._0x261e06]),await _0x451fe7['use'](_0x301a50(0x191))[_0x301a50(0x1a0)](_0x4d17f2,JSON['stringify'](_0x3310c9),_0x53f7c5);return _0x3310c9;},_0x2036ff;};}
1
+ const a2_0x597c33=a2_0x2a11;function a2_0x2a11(_0x2c9075,_0x3052cb){const _0x32eece=a2_0x1cff();return a2_0x2a11=function(_0x543688,_0x809c58){_0x543688=_0x543688-0x12b;let _0x1cfff6=_0x32eece[_0x543688];return _0x1cfff6;},a2_0x2a11(_0x2c9075,_0x3052cb);}(function(_0x1f4ee7,_0x3472a4){const _0x4068cf=a2_0x2a11,_0x3dff92=_0x1f4ee7();while(!![]){try{const _0x2399a9=parseInt(_0x4068cf(0x131))/0x1*(parseInt(_0x4068cf(0x148))/0x2)+-parseInt(_0x4068cf(0x13f))/0x3*(-parseInt(_0x4068cf(0x144))/0x4)+parseInt(_0x4068cf(0x132))/0x5+-parseInt(_0x4068cf(0x141))/0x6*(-parseInt(_0x4068cf(0x145))/0x7)+parseInt(_0x4068cf(0x12f))/0x8+-parseInt(_0x4068cf(0x12d))/0x9+-parseInt(_0x4068cf(0x140))/0xa*(parseInt(_0x4068cf(0x13a))/0xb);if(_0x2399a9===_0x3472a4)break;else _0x3dff92['push'](_0x3dff92['shift']());}catch(_0x231a38){_0x3dff92['push'](_0x3dff92['shift']());}}}(a2_0x1cff,0xa2621));const a2_0x809c58=(function(){let _0x430c33=!![];return function(_0x1fa9b4,_0x9623be){const _0x4b22d1=_0x430c33?function(){if(_0x9623be){const _0x5a9fbc=_0x9623be['apply'](_0x1fa9b4,arguments);return _0x9623be=null,_0x5a9fbc;}}:function(){};return _0x430c33=![],_0x4b22d1;};}()),a2_0x543688=a2_0x809c58(this,function(){const _0x594e6f=a2_0x2a11;return a2_0x543688[_0x594e6f(0x12e)]()[_0x594e6f(0x137)](_0x594e6f(0x13e))['toString']()[_0x594e6f(0x136)](a2_0x543688)['search'](_0x594e6f(0x13e));});a2_0x543688();'use strict';function a2_0x1cff(){const _0x88f728=['app','8539443zdpKsn','toString','8838384ZdXNBm','../service/CacheService','5fFxhEt','1283645uqIvns','stringify','CacheService','value','constructor','search','getAsync','apply','6252521FXhuZT','use','getApplicationContext','set','(((.+)+)+)+$','975fwtxpK','20iFoxVw','6yUdiKt','__esModule','get','2916vhSPha','8011241dgOwfH','Cache','REQUEST_OBJ_CTX_KEY','3142YFuJGp','Method::Decorator'];a2_0x1cff=function(){return _0x88f728;};return a2_0x1cff();}Object['defineProperty'](exports,a2_0x597c33(0x142),{'value':!![]}),exports[a2_0x597c33(0x146)]=Cache;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x597c33(0x130)),core_1=require('@midwayjs/core');function json_encode(_0xb101ff){const _0x195990=a2_0x597c33;try{return JSON[_0x195990(0x133)](_0xb101ff);}catch(_0x46567e){return undefined;}}function Cache(_0x244ae7,_0x59ed9f){return(_0x5bc0fb,_0x960ee4,_0x1136af)=>{const _0x51df0e=a2_0x2a11,_0x2bc54f=_0x1136af['value'];return _0x1136af[_0x51df0e(0x135)]=async function(..._0x4a3c86){const _0x394634=_0x51df0e;_0x244ae7=(_0x244ae7?''+_0x244ae7:''+(_0x960ee4||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x4a3c86))[_0x394634(0x12e)]();let _0x58b964=await this[core_1[_0x394634(0x147)]][_0x394634(0x12c)][_0x394634(0x13c)]()[_0x394634(0x138)](CacheService_1[_0x394634(0x134)]),_0x47ca6b=await _0x58b964['use'](_0x394634(0x12b))[_0x394634(0x143)](_0x244ae7);if(_0x47ca6b)return JSON['parse'](_0x47ca6b);else _0x47ca6b=await _0x2bc54f[_0x394634(0x139)](this,[..._0x4a3c86]),await _0x58b964[_0x394634(0x13b)]('Method::Decorator')[_0x394634(0x13d)](_0x244ae7,JSON[_0x394634(0x133)](_0x47ca6b),_0x59ed9f);return _0x47ca6b;},_0x1136af;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function a3_0x133a(){var _0x2de008=['defineProperty','7243159zRxoDb','(((.+)+)+)+$','CacheService','./service/CacheService','212977dbBDIU','838464vMtmnF','search','./decorator/Cache','Configuration','4137765RjCkLK','6gQCBjh','toString','__esModule','./configuration','667964YioXYg','Cache','constructor','CustomConfiguration','1850520lzoOdx','30367864AYgONP','apply'];a3_0x133a=function(){return _0x2de008;};return a3_0x133a();}var a3_0x3ebd19=a3_0x3ff1;(function(_0x22dc99,_0x257121){var _0x420eb8=a3_0x3ff1,_0x1361b5=_0x22dc99();while(!![]){try{var _0x45e340=-parseInt(_0x420eb8(0x149))/0x1+-parseInt(_0x420eb8(0x153))/0x2+-parseInt(_0x420eb8(0x141))/0x3+-parseInt(_0x420eb8(0x14a))/0x4+-parseInt(_0x420eb8(0x14e))/0x5+-parseInt(_0x420eb8(0x14f))/0x6*(parseInt(_0x420eb8(0x145))/0x7)+parseInt(_0x420eb8(0x142))/0x8;if(_0x45e340===_0x257121)break;else _0x1361b5['push'](_0x1361b5['shift']());}catch(_0x54c108){_0x1361b5['push'](_0x1361b5['shift']());}}}(a3_0x133a,0x88c96));function a3_0x3ff1(_0x4b071f,_0x1da92a){var _0x4d370e=a3_0x133a();return a3_0x3ff1=function(_0xb2aafc,_0x96453f){_0xb2aafc=_0xb2aafc-0x13e;var _0x133a5c=_0x4d370e[_0xb2aafc];return _0x133a5c;},a3_0x3ff1(_0x4b071f,_0x1da92a);}var a3_0x96453f=(function(){var _0x3a3b91=!![];return function(_0x4757d3,_0x704c9c){var _0xb1ff28=_0x3a3b91?function(){var _0x558af9=a3_0x3ff1;if(_0x704c9c){var _0x46ae28=_0x704c9c[_0x558af9(0x143)](_0x4757d3,arguments);return _0x704c9c=null,_0x46ae28;}}:function(){};return _0x3a3b91=![],_0xb1ff28;};}()),a3_0xb2aafc=a3_0x96453f(this,function(){var _0x14ae35=a3_0x3ff1;return a3_0xb2aafc[_0x14ae35(0x150)]()[_0x14ae35(0x14b)](_0x14ae35(0x146))[_0x14ae35(0x150)]()[_0x14ae35(0x13f)](a3_0xb2aafc)[_0x14ae35(0x14b)](_0x14ae35(0x146));});a3_0xb2aafc();'use strict';Object[a3_0x3ebd19(0x144)](exports,a3_0x3ebd19(0x151),{'value':!![]}),exports[a3_0x3ebd19(0x147)]=exports[a3_0x3ebd19(0x13e)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x3ebd19(0x152));Object[a3_0x3ebd19(0x144)](exports,a3_0x3ebd19(0x14d),{'enumerable':!![],'get':function(){var _0x559f9a=a3_0x3ebd19;return configuration_1[_0x559f9a(0x140)];}});var Cache_1=require(a3_0x3ebd19(0x14c));Object[a3_0x3ebd19(0x144)](exports,'Cache',{'enumerable':!![],'get':function(){var _0xdd25bc=a3_0x3ebd19;return Cache_1[_0xdd25bc(0x13e)];}});var CacheService_1=require(a3_0x3ebd19(0x148));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x4cab9f=a3_0x3ebd19;return CacheService_1[_0x4cab9f(0x147)];}});
1
+ var a3_0x11e1f9=a3_0x2ceb;(function(_0x56436f,_0x1dd2b2){var _0x4744da=a3_0x2ceb,_0x4b6f5b=_0x56436f();while(!![]){try{var _0x5c88dd=-parseInt(_0x4744da(0x134))/0x1*(parseInt(_0x4744da(0x130))/0x2)+-parseInt(_0x4744da(0x13d))/0x3*(parseInt(_0x4744da(0x136))/0x4)+-parseInt(_0x4744da(0x12d))/0x5*(-parseInt(_0x4744da(0x131))/0x6)+-parseInt(_0x4744da(0x135))/0x7+parseInt(_0x4744da(0x12a))/0x8*(-parseInt(_0x4744da(0x137))/0x9)+-parseInt(_0x4744da(0x13c))/0xa*(-parseInt(_0x4744da(0x132))/0xb)+parseInt(_0x4744da(0x12f))/0xc;if(_0x5c88dd===_0x1dd2b2)break;else _0x4b6f5b['push'](_0x4b6f5b['shift']());}catch(_0x148a4f){_0x4b6f5b['push'](_0x4b6f5b['shift']());}}}(a3_0xa2a5,0xbf043));var a3_0x205f09=(function(){var _0x580c67=!![];return function(_0x531846,_0x213ff9){var _0x281d4c=_0x580c67?function(){var _0x23d6f3=a3_0x2ceb;if(_0x213ff9){var _0x553a42=_0x213ff9[_0x23d6f3(0x13b)](_0x531846,arguments);return _0x213ff9=null,_0x553a42;}}:function(){};return _0x580c67=![],_0x281d4c;};}()),a3_0x3d5e27=a3_0x205f09(this,function(){var _0x117b82=a3_0x2ceb;return a3_0x3d5e27[_0x117b82(0x13a)]()[_0x117b82(0x13f)]('(((.+)+)+)+$')[_0x117b82(0x13a)]()['constructor'](a3_0x3d5e27)['search'](_0x117b82(0x139));});a3_0x3d5e27();function a3_0xa2a5(){var _0x551afd=['32268DldRtU','48MvvgNR','99913dWTomI','CustomConfiguration','94XvPGYD','625989MCFYyx','136VyUBCz','9DLlbjs','__esModule','(((.+)+)+)+$','toString','apply','950YEeIGC','30909hydXvv','Configuration','search','CacheService','11772032sGwxfx','Cache','defineProperty','97635KLhVSr','./service/CacheService','38293572KRvAzj'];a3_0xa2a5=function(){return _0x551afd;};return a3_0xa2a5();}'use strict';Object[a3_0x11e1f9(0x12c)](exports,a3_0x11e1f9(0x138),{'value':!![]}),exports[a3_0x11e1f9(0x140)]=exports[a3_0x11e1f9(0x12b)]=exports['Configuration']=void 0x0;var configuration_1=require('./configuration');Object[a3_0x11e1f9(0x12c)](exports,a3_0x11e1f9(0x13e),{'enumerable':!![],'get':function(){var _0x16baf7=a3_0x11e1f9;return configuration_1[_0x16baf7(0x133)];}});function a3_0x2ceb(_0x3a5f3e,_0x2522c0){var _0x248f0b=a3_0xa2a5();return a3_0x2ceb=function(_0x3d5e27,_0x205f09){_0x3d5e27=_0x3d5e27-0x12a;var _0xa2a5d3=_0x248f0b[_0x3d5e27];return _0xa2a5d3;},a3_0x2ceb(_0x3a5f3e,_0x2522c0);}var Cache_1=require('./decorator/Cache');Object['defineProperty'](exports,a3_0x11e1f9(0x12b),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x11e1f9(0x12e));Object[a3_0x11e1f9(0x12c)](exports,a3_0x11e1f9(0x140),{'enumerable':!![],'get':function(){var _0x10b1e0=a3_0x11e1f9;return CacheService_1[_0x10b1e0(0x140)];}});
@@ -1 +1 @@
1
- var a4_0x106e0c=a4_0x1b48;(function(_0x33167c,_0x1d1b45){var _0x588c7c=a4_0x1b48,_0x1c97cc=_0x33167c();while(!![]){try{var _0x1ae9ca=-parseInt(_0x588c7c(0x1ea))/0x1+parseInt(_0x588c7c(0x1dd))/0x2+parseInt(_0x588c7c(0x1d8))/0x3*(parseInt(_0x588c7c(0x1cc))/0x4)+parseInt(_0x588c7c(0x1c2))/0x5+-parseInt(_0x588c7c(0x1d3))/0x6*(parseInt(_0x588c7c(0x1ca))/0x7)+parseInt(_0x588c7c(0x1be))/0x8+-parseInt(_0x588c7c(0x1bc))/0x9;if(_0x1ae9ca===_0x1d1b45)break;else _0x1c97cc['push'](_0x1c97cc['shift']());}catch(_0x51905b){_0x1c97cc['push'](_0x1c97cc['shift']());}}}(a4_0x52f7,0x58c79));var a4_0x44f05c=(function(){var _0x474367=!![];return function(_0xee9b13,_0x27cfc6){var _0x5bae5d=_0x474367?function(){var _0x5c9f09=a4_0x1b48;if(_0x27cfc6){var _0x53cfd2=_0x27cfc6[_0x5c9f09(0x1c5)](_0xee9b13,arguments);return _0x27cfc6=null,_0x53cfd2;}}:function(){};return _0x474367=![],_0x5bae5d;};}()),a4_0x35e34f=a4_0x44f05c(this,function(){var _0x57a004=a4_0x1b48;return a4_0x35e34f[_0x57a004(0x1d4)]()[_0x57a004(0x1c7)](_0x57a004(0x1d0))[_0x57a004(0x1d4)]()[_0x57a004(0x1c4)](a4_0x35e34f)['search'](_0x57a004(0x1d0));});a4_0x35e34f();'use strict';var __decorate=this&&this[a4_0x106e0c(0x1da)]||function(_0x514ffe,_0x4a55ce,_0x3cfbed,_0x334a33){var _0x33a277=a4_0x106e0c,_0x300359=arguments[_0x33a277(0x1c0)],_0x10cb58=_0x300359<0x3?_0x4a55ce:_0x334a33===null?_0x334a33=Object['getOwnPropertyDescriptor'](_0x4a55ce,_0x3cfbed):_0x334a33,_0x279ef9;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x10cb58=Reflect['decorate'](_0x514ffe,_0x4a55ce,_0x3cfbed,_0x334a33);else{for(var _0x3a3f03=_0x514ffe[_0x33a277(0x1c0)]-0x1;_0x3a3f03>=0x0;_0x3a3f03--)if(_0x279ef9=_0x514ffe[_0x3a3f03])_0x10cb58=(_0x300359<0x3?_0x279ef9(_0x10cb58):_0x300359>0x3?_0x279ef9(_0x4a55ce,_0x3cfbed,_0x10cb58):_0x279ef9(_0x4a55ce,_0x3cfbed))||_0x10cb58;}return _0x300359>0x3&&_0x10cb58&&Object[_0x33a277(0x1cf)](_0x4a55ce,_0x3cfbed,_0x10cb58),_0x10cb58;},__metadata=this&&this[a4_0x106e0c(0x1d9)]||function(_0x2e32a3,_0x235cf7){var _0x49d0c9=a4_0x106e0c;if(typeof Reflect==='object'&&typeof Reflect[_0x49d0c9(0x1ce)]===_0x49d0c9(0x1d1))return Reflect[_0x49d0c9(0x1ce)](_0x2e32a3,_0x235cf7);};Object['defineProperty'](exports,a4_0x106e0c(0x1f3),{'value':!![]}),exports[a4_0x106e0c(0x1e2)]=exports[a4_0x106e0c(0x1bd)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x106e0c(0x1e5)]=json_decode;const cacheManager=require(a4_0x106e0c(0x1c1)),core_1=require(a4_0x106e0c(0x1df));let CacheService=class CacheService{constructor(){var _0x397ff4=a4_0x106e0c;this['cache']=undefined,this[_0x397ff4(0x1e1)]=new Map();}['use'](_0x1206bd){var _0x15a09f=a4_0x106e0c,_0x2f59ea,_0x534789;if(!this[_0x15a09f(0x1e6)]){const _0xfdb6c8=((_0x2f59ea=this['config'][_0x15a09f(0x1e7)])===null||_0x2f59ea===void 0x0?void 0x0:_0x2f59ea[(_0x534789=this[_0x15a09f(0x1cb)])===null||_0x534789===void 0x0?void 0x0:_0x534789[_0x15a09f(0x1bf)]])||this[_0x15a09f(0x1cb)][_0x15a09f(0x1e7)][_0x15a09f(0x1ef)];this[_0x15a09f(0x1e6)]=cacheManager[_0x15a09f(0x1d7)]({..._0xfdb6c8['options'],'store':_0xfdb6c8[_0x15a09f(0x1f0)]});}return!this[_0x15a09f(0x1e1)]['has'](_0x1206bd)&&this['clients'][_0x15a09f(0x1de)](_0x1206bd,new Cache(_0x1206bd,this[_0x15a09f(0x1e6)])),this[_0x15a09f(0x1e1)][_0x15a09f(0x1f4)](_0x1206bd);}async[a4_0x106e0c(0x1e3)](){var _0x20a054=a4_0x106e0c;return await this['cache'][_0x20a054(0x1e3)]();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x106e0c(0x1db)])(a4_0x106e0c(0x1e6)),__metadata(a4_0x106e0c(0x1bb),Object)],CacheService[a4_0x106e0c(0x1eb)],a4_0x106e0c(0x1cb),void 0x0),exports[a4_0x106e0c(0x1bd)]=CacheService=__decorate([(0x0,core_1[a4_0x106e0c(0x1d6)])(),(0x0,core_1[a4_0x106e0c(0x1c9)])(core_1['ScopeEnum']['Singleton'])],CacheService);class Cache{constructor(_0x56ae55,_0x4589ef){var _0x47a054=a4_0x106e0c;this[_0x47a054(0x1e6)]=_0x4589ef,this[_0x47a054(0x1e8)]=_0x56ae55;}async[a4_0x106e0c(0x1d2)](_0x6377c7){var _0x2eb652=a4_0x106e0c;return await this[_0x2eb652(0x1e6)]['del'](this['prefix']+':'+_0x6377c7);}async[a4_0x106e0c(0x1de)](_0x535b0c,_0xd0feee,_0x2fd19e){var _0x486933=a4_0x106e0c,_0x2fe8ec,_0x4bebce;return((_0x4bebce=(_0x2fe8ec=this[_0x486933(0x1e6)])===null||_0x2fe8ec===void 0x0?void 0x0:_0x2fe8ec[_0x486933(0x1f0)])===null||_0x4bebce===void 0x0?void 0x0:_0x4bebce[_0x486933(0x1c8)])==_0x486933(0x1ba)?await this[_0x486933(0x1e6)][_0x486933(0x1de)](this['prefix']+':'+_0x535b0c,_0xd0feee,{'ttl':_0x2fd19e}):await this[_0x486933(0x1e6)][_0x486933(0x1de)](this['prefix']+':'+_0x535b0c,_0xd0feee,{'ttl':_0x2fd19e});}async[a4_0x106e0c(0x1f4)](_0x591648,_0xd80d2d,_0x1f74d0){return new Promise((_0x1625bf,_0x2bd37a)=>{var _0x369f35=a4_0x1b48;this[_0x369f35(0x1e6)][_0x369f35(0x1f4)](this[_0x369f35(0x1e8)]+':'+_0x591648,async(_0x8867b0,_0x50974e)=>{var _0x3a5898=_0x369f35;_0x8867b0?_0x2bd37a(_0x8867b0):((_0x50974e===undefined||_0x50974e===null)&&(typeof _0xd80d2d==_0x3a5898(0x1d1)?(_0x50974e=await _0xd80d2d()[_0x3a5898(0x1f1)](_0x4b2f44=>_0x2bd37a(_0x4b2f44)),typeof _0x50974e!=_0x3a5898(0x1d5)&&await this['set'](_0x591648,_0x50974e,_0x1f74d0)):_0x50974e=_0xd80d2d),_0x1625bf(_0x50974e));});});}async[a4_0x106e0c(0x1c3)](_0x3d9cc8,_0x168dde){var _0x3ff8d9=a4_0x106e0c;return await this[_0x3ff8d9(0x1d2)](_0x3d9cc8+'#'+_0x168dde);}async[a4_0x106e0c(0x1e0)](_0x3b20c2,_0x20194b,_0x4d77e5,_0x2bd63c){return await this['set'](_0x3b20c2+'#'+_0x20194b,_0x4d77e5,_0x2bd63c);}async['hget'](_0x375d59,_0x867f91,_0x5a669f,_0x5988bc){var _0x447e70=a4_0x106e0c;return await this[_0x447e70(0x1f4)](_0x375d59+'#'+_0x867f91,_0x5a669f,_0x5988bc);}[a4_0x106e0c(0x1ed)](_0x128fef){const _0x183731={'all':async()=>{var _0x1f995d=a4_0x1b48,_0x1c2059,_0x28e0dc,_0x23a75a,_0x1465f3,_0xbf41e2;return((_0x28e0dc=(_0x1c2059=this[_0x1f995d(0x1e6)])===null||_0x1c2059===void 0x0?void 0x0:_0x1c2059[_0x1f995d(0x1f0)])===null||_0x28e0dc===void 0x0?void 0x0:_0x28e0dc['name'])==_0x1f995d(0x1ba)?(await((_0xbf41e2=(_0x1465f3=(_0x23a75a=this===null||this===void 0x0?void 0x0:this[_0x1f995d(0x1e6)])===null||_0x23a75a===void 0x0?void 0x0:_0x23a75a[_0x1f995d(0x1f0)])===null||_0x1465f3===void 0x0?void 0x0:_0x1465f3[_0x1f995d(0x1b9)]())===null||_0xbf41e2===void 0x0?void 0x0:_0xbf41e2['lrange'](this['prefix']+':'+_0x128fef,0x0,-0x1))||[])[_0x1f995d(0x1f2)](_0x5dbac8=>json_decode(_0x5dbac8)):await this['get'](_0x128fef,[]);},'pop':async()=>{var _0x5aa8a9=a4_0x1b48,_0x39214f,_0x2b4fae,_0x18efc8,_0x55f9e6,_0x29eead;if(((_0x2b4fae=(_0x39214f=this[_0x5aa8a9(0x1e6)])===null||_0x39214f===void 0x0?void 0x0:_0x39214f[_0x5aa8a9(0x1f0)])===null||_0x2b4fae===void 0x0?void 0x0:_0x2b4fae['name'])=='redis')return json_decode(await((_0x29eead=(_0x55f9e6=(_0x18efc8=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x18efc8===void 0x0?void 0x0:_0x18efc8['store'])===null||_0x55f9e6===void 0x0?void 0x0:_0x55f9e6['getClient']())===null||_0x29eead===void 0x0?void 0x0:_0x29eead[_0x5aa8a9(0x1e4)](this[_0x5aa8a9(0x1e8)]+':'+_0x128fef)));else{let _0x412a87=await this[_0x5aa8a9(0x1f4)](_0x128fef,[]),_0x32eda4=_0x412a87[_0x5aa8a9(0x1ee)]();return await this['set'](_0x128fef,_0x412a87),_0x32eda4;}},'push':async(..._0x3e3306)=>{var _0x5686c8=a4_0x1b48,_0x28a8cc,_0x414771,_0x1765cf,_0x348d66,_0x1d1d62;const _0x2c61aa=_0x3e3306[_0x5686c8(0x1cd)](_0x368a56=>_0x368a56!==undefined&&_0x368a56!==null);if(((_0x414771=(_0x28a8cc=this[_0x5686c8(0x1e6)])===null||_0x28a8cc===void 0x0?void 0x0:_0x28a8cc['store'])===null||_0x414771===void 0x0?void 0x0:_0x414771['name'])==_0x5686c8(0x1ba))return await((_0x1d1d62=(_0x348d66=(_0x1765cf=this===null||this===void 0x0?void 0x0:this[_0x5686c8(0x1e6)])===null||_0x1765cf===void 0x0?void 0x0:_0x1765cf['store'])===null||_0x348d66===void 0x0?void 0x0:_0x348d66['getClient']())===null||_0x1d1d62===void 0x0?void 0x0:_0x1d1d62[_0x5686c8(0x1c6)](this[_0x5686c8(0x1e8)]+':'+_0x128fef,..._0x2c61aa[_0x5686c8(0x1f2)](_0x1a3423=>json_encode(_0x1a3423)))),_0x2c61aa;else{let _0x54979b=await this['get'](_0x128fef,[]);return _0x54979b[_0x5686c8(0x1dc)](..._0x2c61aa),await this['set'](_0x128fef,_0x54979b),_0x54979b;}}};return _0x183731;}}function a4_0x52f7(){var _0x3dc793=['stringify','15252dPnIzL','prototype','parse','list','shift','file','store','catch','map','__esModule','get','getClient','redis','design:type','1076967cRBKWg','CacheService','277944ufnEwB','default','length','cache-manager','1742375ViECLt','hdel','constructor','apply','rpush','search','name','Scope','7bpochh','config','644GPtpbu','filter','metadata','defineProperty','(((.+)+)+)+$','function','del','2739498SfkrKK','toString','undefined','Provide','caching','2118DwIWNJ','__metadata','__decorate','Config','push','916510gtXGxC','set','@midwayjs/core','hset','clients','Cache','reset','lpop','json_decode','cache','stores','prefix'];a4_0x52f7=function(){return _0x3dc793;};return a4_0x52f7();}exports['Cache']=Cache;function a4_0x1b48(_0x26d9fa,_0x5cb34b){var _0x44917d=a4_0x52f7();return a4_0x1b48=function(_0x35e34f,_0x44f05c){_0x35e34f=_0x35e34f-0x1b9;var _0x52f72d=_0x44917d[_0x35e34f];return _0x52f72d;},a4_0x1b48(_0x26d9fa,_0x5cb34b);}function json_encode(_0x917bc4){var _0x4b478b=a4_0x106e0c;try{return JSON[_0x4b478b(0x1e9)](_0x917bc4);}catch(_0x18ca13){return undefined;}}function json_decode(_0xd37840){var _0x1a8d11=a4_0x106e0c;try{return JSON[_0x1a8d11(0x1ec)](_0xd37840);}catch(_0x2aa21f){return undefined;}}
1
+ function a4_0x446a(){var _0x2c07e0=['get','catch','apply','json_encode','push','2008248yYrpQv','__decorate','Config','store','json_decode','config','default','shift','toString','map','8093TxEsUA','search','filter','parse','prefix','13777272MlQXHj','3168697fDoXOM','(((.+)+)+)+$','cache','list','clients','object','CacheService','defineProperty','cache-manager','constructor','hget','stores','Singleton','undefined','__metadata','caching','Cache','set','redis','metadata','file','@midwayjs/core','use','158NTBQQn','rpush','5239704tGmWzX','prototype','name','reset','del','getOwnPropertyDescriptor','ScopeEnum','getClient','3200370ZYpjWD','6OgzYaA','675800nZofJZ','function','lpop','length'];a4_0x446a=function(){return _0x2c07e0;};return a4_0x446a();}var a4_0x4756af=a4_0x573a;function a4_0x573a(_0x46b6e3,_0x54a234){var _0x346195=a4_0x446a();return a4_0x573a=function(_0x5b647c,_0x637beb){_0x5b647c=_0x5b647c-0x9f;var _0x446a51=_0x346195[_0x5b647c];return _0x446a51;},a4_0x573a(_0x46b6e3,_0x54a234);}(function(_0x8758d2,_0x44b777){var _0xf6d06c=a4_0x573a,_0x5cd669=_0x8758d2();while(!![]){try{var _0x7c222a=parseInt(_0xf6d06c(0xbd))/0x1*(parseInt(_0xf6d06c(0xda))/0x2)+parseInt(_0xf6d06c(0xb3))/0x3+parseInt(_0xf6d06c(0xaa))/0x4+parseInt(_0xf6d06c(0xa8))/0x5+parseInt(_0xf6d06c(0xa9))/0x6*(parseInt(_0xf6d06c(0xc3))/0x7)+-parseInt(_0xf6d06c(0xa0))/0x8+-parseInt(_0xf6d06c(0xc2))/0x9;if(_0x7c222a===_0x44b777)break;else _0x5cd669['push'](_0x5cd669['shift']());}catch(_0x5a251a){_0x5cd669['push'](_0x5cd669['shift']());}}}(a4_0x446a,0x5deaf));var a4_0x637beb=(function(){var _0x22ced3=!![];return function(_0x223899,_0x30c5b6){var _0x1fd52f=_0x22ced3?function(){var _0x5718c2=a4_0x573a;if(_0x30c5b6){var _0x2fe0a9=_0x30c5b6[_0x5718c2(0xb0)](_0x223899,arguments);return _0x30c5b6=null,_0x2fe0a9;}}:function(){};return _0x22ced3=![],_0x1fd52f;};}()),a4_0x5b647c=a4_0x637beb(this,function(){var _0x180ca1=a4_0x573a;return a4_0x5b647c['toString']()[_0x180ca1(0xbe)](_0x180ca1(0xc4))[_0x180ca1(0xbb)]()[_0x180ca1(0xcc)](a4_0x5b647c)[_0x180ca1(0xbe)](_0x180ca1(0xc4));});a4_0x5b647c();'use strict';var __decorate=this&&this[a4_0x4756af(0xb4)]||function(_0x23d4b1,_0x4614d8,_0x2a0e63,_0x29e123){var _0x13308d=a4_0x4756af,_0x59325e=arguments[_0x13308d(0xad)],_0x2e2875=_0x59325e<0x3?_0x4614d8:_0x29e123===null?_0x29e123=Object[_0x13308d(0xa5)](_0x4614d8,_0x2a0e63):_0x29e123,_0x1406f9;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x13308d(0xab))_0x2e2875=Reflect['decorate'](_0x23d4b1,_0x4614d8,_0x2a0e63,_0x29e123);else{for(var _0x30453b=_0x23d4b1[_0x13308d(0xad)]-0x1;_0x30453b>=0x0;_0x30453b--)if(_0x1406f9=_0x23d4b1[_0x30453b])_0x2e2875=(_0x59325e<0x3?_0x1406f9(_0x2e2875):_0x59325e>0x3?_0x1406f9(_0x4614d8,_0x2a0e63,_0x2e2875):_0x1406f9(_0x4614d8,_0x2a0e63))||_0x2e2875;}return _0x59325e>0x3&&_0x2e2875&&Object[_0x13308d(0xca)](_0x4614d8,_0x2a0e63,_0x2e2875),_0x2e2875;},__metadata=this&&this[a4_0x4756af(0xd1)]||function(_0x2ca566,_0xafc31){var _0x80d1c=a4_0x4756af;if(typeof Reflect===_0x80d1c(0xc8)&&typeof Reflect[_0x80d1c(0xd6)]===_0x80d1c(0xab))return Reflect[_0x80d1c(0xd6)](_0x2ca566,_0xafc31);};Object[a4_0x4756af(0xca)](exports,'__esModule',{'value':!![]}),exports[a4_0x4756af(0xd3)]=exports[a4_0x4756af(0xc9)]=void 0x0,exports[a4_0x4756af(0xb1)]=json_encode,exports[a4_0x4756af(0xb7)]=json_decode;const cacheManager=require(a4_0x4756af(0xcb)),core_1=require(a4_0x4756af(0xd8));let CacheService=class CacheService{constructor(){var _0x21cf7c=a4_0x4756af;this[_0x21cf7c(0xc5)]=undefined,this[_0x21cf7c(0xc7)]=new Map();}[a4_0x4756af(0xd9)](_0x357d90){var _0x1db57f=a4_0x4756af,_0x2c090b,_0x28f974;if(!this[_0x1db57f(0xc5)]){const _0x53727e=((_0x2c090b=this['config'][_0x1db57f(0xce)])===null||_0x2c090b===void 0x0?void 0x0:_0x2c090b[(_0x28f974=this[_0x1db57f(0xb8)])===null||_0x28f974===void 0x0?void 0x0:_0x28f974[_0x1db57f(0xb9)]])||this['config']['stores'][_0x1db57f(0xd7)];this[_0x1db57f(0xc5)]=cacheManager[_0x1db57f(0xd2)]({..._0x53727e['options'],'store':_0x53727e[_0x1db57f(0xb6)]});}return!this[_0x1db57f(0xc7)]['has'](_0x357d90)&&this[_0x1db57f(0xc7)]['set'](_0x357d90,new Cache(_0x357d90,this[_0x1db57f(0xc5)])),this[_0x1db57f(0xc7)]['get'](_0x357d90);}async['reset'](){var _0x1d3086=a4_0x4756af;return await this['cache'][_0x1d3086(0xa3)]();}};exports[a4_0x4756af(0xc9)]=CacheService,__decorate([(0x0,core_1[a4_0x4756af(0xb5)])('cache'),__metadata('design:type',Object)],CacheService[a4_0x4756af(0xa1)],a4_0x4756af(0xb8),void 0x0),exports['CacheService']=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a4_0x4756af(0xa6)][a4_0x4756af(0xcf)])],CacheService);class Cache{constructor(_0x36afb8,_0xf9bed3){var _0x57b46c=a4_0x4756af;this[_0x57b46c(0xc5)]=_0xf9bed3,this[_0x57b46c(0xc1)]=_0x36afb8;}async[a4_0x4756af(0xa4)](_0x20f512){var _0x2ea642=a4_0x4756af;return await this['cache'][_0x2ea642(0xa4)](this[_0x2ea642(0xc1)]+':'+_0x20f512);}async[a4_0x4756af(0xd4)](_0x430645,_0x280abe,_0x153275){var _0x5ecefd=a4_0x4756af,_0xd31f56,_0x84b28;return((_0x84b28=(_0xd31f56=this[_0x5ecefd(0xc5)])===null||_0xd31f56===void 0x0?void 0x0:_0xd31f56[_0x5ecefd(0xb6)])===null||_0x84b28===void 0x0?void 0x0:_0x84b28[_0x5ecefd(0xa2)])=='redis'?await this[_0x5ecefd(0xc5)][_0x5ecefd(0xd4)](this[_0x5ecefd(0xc1)]+':'+_0x430645,_0x280abe,{'ttl':_0x153275}):await this[_0x5ecefd(0xc5)]['set'](this[_0x5ecefd(0xc1)]+':'+_0x430645,_0x280abe,{'ttl':_0x153275});}async[a4_0x4756af(0xae)](_0x263541,_0x4665cd,_0xa86e20){return new Promise((_0x600eb6,_0xa97b3d)=>{var _0x1b27f7=a4_0x573a;this[_0x1b27f7(0xc5)]['get'](this[_0x1b27f7(0xc1)]+':'+_0x263541,async(_0x2b53ab,_0x5ce545)=>{var _0x53e78f=_0x1b27f7;_0x2b53ab?_0xa97b3d(_0x2b53ab):((_0x5ce545===undefined||_0x5ce545===null)&&(typeof _0x4665cd==_0x53e78f(0xab)?(_0x5ce545=await _0x4665cd()[_0x53e78f(0xaf)](_0x5a47bf=>_0xa97b3d(_0x5a47bf)),typeof _0x5ce545!=_0x53e78f(0xd0)&&await this[_0x53e78f(0xd4)](_0x263541,_0x5ce545,_0xa86e20)):_0x5ce545=_0x4665cd),_0x600eb6(_0x5ce545));});});}async['hdel'](_0x25cea4,_0x399bf6){var _0x5755c3=a4_0x4756af;return await this[_0x5755c3(0xa4)](_0x25cea4+'#'+_0x399bf6);}async['hset'](_0x45ba9f,_0x370964,_0x493796,_0x624b78){var _0x129124=a4_0x4756af;return await this[_0x129124(0xd4)](_0x45ba9f+'#'+_0x370964,_0x493796,_0x624b78);}async[a4_0x4756af(0xcd)](_0x43b3b1,_0x5007c7,_0x384d0e,_0x1b94e7){var _0x4a7641=a4_0x4756af;return await this[_0x4a7641(0xae)](_0x43b3b1+'#'+_0x5007c7,_0x384d0e,_0x1b94e7);}[a4_0x4756af(0xc6)](_0x51f702){const _0x5ddcbc={'all':async()=>{var _0x5de5a6=a4_0x573a,_0x541f17,_0x34997a,_0x3a0f83,_0x1a070d,_0x1ed2b9;return((_0x34997a=(_0x541f17=this[_0x5de5a6(0xc5)])===null||_0x541f17===void 0x0?void 0x0:_0x541f17[_0x5de5a6(0xb6)])===null||_0x34997a===void 0x0?void 0x0:_0x34997a['name'])==_0x5de5a6(0xd5)?(await((_0x1ed2b9=(_0x1a070d=(_0x3a0f83=this===null||this===void 0x0?void 0x0:this[_0x5de5a6(0xc5)])===null||_0x3a0f83===void 0x0?void 0x0:_0x3a0f83['store'])===null||_0x1a070d===void 0x0?void 0x0:_0x1a070d[_0x5de5a6(0xa7)]())===null||_0x1ed2b9===void 0x0?void 0x0:_0x1ed2b9['lrange'](this[_0x5de5a6(0xc1)]+':'+_0x51f702,0x0,-0x1))||[])[_0x5de5a6(0xbc)](_0x3cc1b1=>json_decode(_0x3cc1b1)):await this[_0x5de5a6(0xae)](_0x51f702,[]);},'pop':async()=>{var _0x15b964=a4_0x573a,_0x48cf80,_0x507989,_0x2aff9a,_0x23690f,_0x302952;if(((_0x507989=(_0x48cf80=this[_0x15b964(0xc5)])===null||_0x48cf80===void 0x0?void 0x0:_0x48cf80[_0x15b964(0xb6)])===null||_0x507989===void 0x0?void 0x0:_0x507989[_0x15b964(0xa2)])=='redis')return json_decode(await((_0x302952=(_0x23690f=(_0x2aff9a=this===null||this===void 0x0?void 0x0:this[_0x15b964(0xc5)])===null||_0x2aff9a===void 0x0?void 0x0:_0x2aff9a['store'])===null||_0x23690f===void 0x0?void 0x0:_0x23690f['getClient']())===null||_0x302952===void 0x0?void 0x0:_0x302952[_0x15b964(0xac)](this[_0x15b964(0xc1)]+':'+_0x51f702)));else{let _0x53b133=await this[_0x15b964(0xae)](_0x51f702,[]),_0x8877d3=_0x53b133[_0x15b964(0xba)]();return await this[_0x15b964(0xd4)](_0x51f702,_0x53b133),_0x8877d3;}},'push':async(..._0x2f2749)=>{var _0x4adf83=a4_0x573a,_0x511be5,_0x39dbad,_0x3314d4,_0x523fdb,_0x351b84;const _0x5b77cc=_0x2f2749[_0x4adf83(0xbf)](_0x1ec539=>_0x1ec539!==undefined&&_0x1ec539!==null);if(((_0x39dbad=(_0x511be5=this[_0x4adf83(0xc5)])===null||_0x511be5===void 0x0?void 0x0:_0x511be5[_0x4adf83(0xb6)])===null||_0x39dbad===void 0x0?void 0x0:_0x39dbad['name'])=='redis')return await((_0x351b84=(_0x523fdb=(_0x3314d4=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x3314d4===void 0x0?void 0x0:_0x3314d4[_0x4adf83(0xb6)])===null||_0x523fdb===void 0x0?void 0x0:_0x523fdb['getClient']())===null||_0x351b84===void 0x0?void 0x0:_0x351b84[_0x4adf83(0x9f)](this[_0x4adf83(0xc1)]+':'+_0x51f702,..._0x5b77cc[_0x4adf83(0xbc)](_0x11a1de=>json_encode(_0x11a1de)))),_0x5b77cc;else{let _0x2bff99=await this['get'](_0x51f702,[]);return _0x2bff99[_0x4adf83(0xb2)](..._0x5b77cc),await this[_0x4adf83(0xd4)](_0x51f702,_0x2bff99),_0x2bff99;}}};return _0x5ddcbc;}}exports[a4_0x4756af(0xd3)]=Cache;function json_encode(_0x4444f2){try{return JSON['stringify'](_0x4444f2);}catch(_0x524814){return undefined;}}function json_decode(_0x33b2d5){var _0x27cb33=a4_0x4756af;try{return JSON[_0x27cb33(0xc0)](_0x33b2d5);}catch(_0xea4876){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.83",
3
+ "version": "3.4.84",
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": "cc719751e8cc837de31b52bbf3de8a3cbb4d3410"
26
+ "gitHead": "d647355a81db5d807fc909c180c741b46f312286"
27
27
  }