@anncic-api/cache 3.4.77 → 3.4.79

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_0x4df94c=a0_0x1697;(function(_0x45d24a,_0x4927db){const _0x274ef6=a0_0x1697,_0x1925fe=_0x45d24a();while(!![]){try{const _0x103dbc=-parseInt(_0x274ef6(0x1ba))/0x1+-parseInt(_0x274ef6(0x1bf))/0x2*(parseInt(_0x274ef6(0x1b8))/0x3)+-parseInt(_0x274ef6(0x1bc))/0x4+-parseInt(_0x274ef6(0x1c2))/0x5*(parseInt(_0x274ef6(0x1c0))/0x6)+parseInt(_0x274ef6(0x1c9))/0x7+parseInt(_0x274ef6(0x1c4))/0x8*(-parseInt(_0x274ef6(0x1c8))/0x9)+parseInt(_0x274ef6(0x1bd))/0xa*(parseInt(_0x274ef6(0x1c6))/0xb);if(_0x103dbc===_0x4927db)break;else _0x1925fe['push'](_0x1925fe['shift']());}catch(_0x1045d8){_0x1925fe['push'](_0x1925fe['shift']());}}}(a0_0x3cee,0xe4a22));const a0_0x4f522c=(function(){let _0x4f059d=!![];return function(_0x236d09,_0x2b296c){const _0xf44e21=_0x4f059d?function(){const _0x1c9e7f=a0_0x1697;if(_0x2b296c){const _0x4c49bc=_0x2b296c[_0x1c9e7f(0x1b3)](_0x236d09,arguments);return _0x2b296c=null,_0x4c49bc;}}:function(){};return _0x4f059d=![],_0xf44e21;};}()),a0_0x32b0ed=a0_0x4f522c(this,function(){const _0x38e52a=a0_0x1697;return a0_0x32b0ed['toString']()['search'](_0x38e52a(0x1c3))[_0x38e52a(0x1c7)]()[_0x38e52a(0x1b4)](a0_0x32b0ed)[_0x38e52a(0x1b6)](_0x38e52a(0x1c3));});function a0_0x3cee(){const _0x3ae79e=['7757015JAIyhp','(((.+)+)+)+$','624vOzTdy','env','44ZMUcgf','toString','169920NXZtOM','6788418lTmdlW','__esModule','apply','constructor','memory','search','cache-manager-ioredis','75yLZQNK','defineProperty','420335rPPKjM','default','6849428WJqGir','14450920yvnVJS','/runtime/.cache','52554IDfLHY','6PqtJwf','appDir'];a0_0x3cee=function(){return _0x3ae79e;};return a0_0x3cee();}a0_0x32b0ed();'use strict';function a0_0x1697(_0x2be59b,_0x382fd4){const _0x3e7990=a0_0x3cee();return a0_0x1697=function(_0x32b0ed,_0x4f522c){_0x32b0ed=_0x32b0ed-0x1b2;let _0x3ceeef=_0x3e7990[_0x32b0ed];return _0x3ceeef;},a0_0x1697(_0x2be59b,_0x382fd4);}Object[a0_0x4df94c(0x1b9)](exports,a0_0x4df94c(0x1b2),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x4df94c(0x1b7));exports[a0_0x4df94c(0x1bb)]=_0x3636db=>{const _0x59129e=a0_0x4df94c;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x3636db[_0x59129e(0x1c1)]+_0x59129e(0x1be)+((_0x3636db===null||_0x3636db===void 0x0?void 0x0:_0x3636db[_0x59129e(0x1c5)])?'-'+_0x3636db['env']:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x3636db['name']+':'+((_0x3636db===null||_0x3636db===void 0x0?void 0x0:_0x3636db[_0x59129e(0x1c5)])?_0x3636db['env']+':':'')}},'memory':{'store':_0x59129e(0x1b5),'options':{'max':0x64}}}}};};
1
+ const a0_0x2dc9b8=a0_0x9679;(function(_0x7fd844,_0x7e0f71){const _0xeab593=a0_0x9679,_0x4b34bc=_0x7fd844();while(!![]){try{const _0xda1ff8=parseInt(_0xeab593(0xa1))/0x1*(-parseInt(_0xeab593(0x9f))/0x2)+parseInt(_0xeab593(0x94))/0x3+-parseInt(_0xeab593(0xa8))/0x4+parseInt(_0xeab593(0x98))/0x5+parseInt(_0xeab593(0xab))/0x6+-parseInt(_0xeab593(0xa6))/0x7*(parseInt(_0xeab593(0xa9))/0x8)+-parseInt(_0xeab593(0xa7))/0x9*(parseInt(_0xeab593(0xa0))/0xa);if(_0xda1ff8===_0x7e0f71)break;else _0x4b34bc['push'](_0x4b34bc['shift']());}catch(_0x4af476){_0x4b34bc['push'](_0x4b34bc['shift']());}}}(a0_0x4c31,0xb6dcb));const a0_0x188ec1=(function(){let _0x20464a=!![];return function(_0x2a3085,_0x1673b6){const _0x3bc662=_0x20464a?function(){const _0x293ee4=a0_0x9679;if(_0x1673b6){const _0x44cd85=_0x1673b6[_0x293ee4(0x97)](_0x2a3085,arguments);return _0x1673b6=null,_0x44cd85;}}:function(){};return _0x20464a=![],_0x3bc662;};}()),a0_0x3e1143=a0_0x188ec1(this,function(){const _0x1fa50c=a0_0x9679;return a0_0x3e1143[_0x1fa50c(0xa5)]()[_0x1fa50c(0x96)](_0x1fa50c(0x95))[_0x1fa50c(0xa5)]()[_0x1fa50c(0xa2)](a0_0x3e1143)[_0x1fa50c(0x96)](_0x1fa50c(0x95));});a0_0x3e1143();function a0_0x9679(_0x1e7f92,_0x3c8ba5){const _0xd8d563=a0_0x4c31();return a0_0x9679=function(_0x3e1143,_0x188ec1){_0x3e1143=_0x3e1143-0x94;let _0x4c3173=_0xd8d563[_0x3e1143];return _0x4c3173;},a0_0x9679(_0x1e7f92,_0x3c8ba5);}function a0_0x4c31(){const _0xaff8c1=['1030300GlpEUW','9SgjUyk','constructor','defineProperty','cache-manager-ioredis','toString','4303313wBqGFm','9SXGCvo','924740IlxerS','8jiMpoN','__esModule','8666778CxzqVx','env','2554773YLoQKk','(((.+)+)+)+$','search','apply','1798650nWhTFG','appDir','name','memory','/runtime/.cache','cache-manager-fs-hash','default','212846NmkPUY'];a0_0x4c31=function(){return _0xaff8c1;};return a0_0x4c31();}'use strict';Object[a0_0x2dc9b8(0xa3)](exports,a0_0x2dc9b8(0xaa),{'value':!![]});const fsStore=require(a0_0x2dc9b8(0x9d)),redisStore=require(a0_0x2dc9b8(0xa4));exports[a0_0x2dc9b8(0x9e)]=_0x2011d0=>{const _0x33d946=a0_0x2dc9b8;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x2011d0[_0x33d946(0x99)]+_0x33d946(0x9c)+((_0x2011d0===null||_0x2011d0===void 0x0?void 0x0:_0x2011d0[_0x33d946(0xac)])?'-'+_0x2011d0[_0x33d946(0xac)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','keyPrefix':_0x2011d0[_0x33d946(0x9a)]+':'+((_0x2011d0===null||_0x2011d0===void 0x0?void 0x0:_0x2011d0[_0x33d946(0xac)])?_0x2011d0[_0x33d946(0xac)]+':':'')}},'memory':{'store':_0x33d946(0x9b),'options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- var a1_0xcf8a7=a1_0x5b17;(function(_0x2a374e,_0x5292cf){var _0x39365b=a1_0x5b17,_0x158e8a=_0x2a374e();while(!![]){try{var _0x4cb6ab=-parseInt(_0x39365b(0xc5))/0x1+parseInt(_0x39365b(0xd0))/0x2+parseInt(_0x39365b(0xbc))/0x3*(parseInt(_0x39365b(0xc7))/0x4)+-parseInt(_0x39365b(0xc9))/0x5*(parseInt(_0x39365b(0xd2))/0x6)+-parseInt(_0x39365b(0xc4))/0x7*(parseInt(_0x39365b(0xc6))/0x8)+-parseInt(_0x39365b(0xca))/0x9+-parseInt(_0x39365b(0xcd))/0xa*(-parseInt(_0x39365b(0xd3))/0xb);if(_0x4cb6ab===_0x5292cf)break;else _0x158e8a['push'](_0x158e8a['shift']());}catch(_0x3c7ae3){_0x158e8a['push'](_0x158e8a['shift']());}}}(a1_0x29e7,0x2f311));var a1_0x30a583=(function(){var _0x399e80=!![];return function(_0x35415f,_0x1e14ac){var _0x44341c=_0x399e80?function(){var _0x62808d=a1_0x5b17;if(_0x1e14ac){var _0x438f0c=_0x1e14ac[_0x62808d(0xc8)](_0x35415f,arguments);return _0x1e14ac=null,_0x438f0c;}}:function(){};return _0x399e80=![],_0x44341c;};}()),a1_0x1abfcc=a1_0x30a583(this,function(){var _0x29b0e2=a1_0x5b17;return a1_0x1abfcc['toString']()[_0x29b0e2(0xba)](_0x29b0e2(0xbb))[_0x29b0e2(0xc2)]()[_0x29b0e2(0xc1)](a1_0x1abfcc)[_0x29b0e2(0xba)](_0x29b0e2(0xbb));});a1_0x1abfcc();function a1_0x5b17(_0x2a1e21,_0x35febb){var _0x44e41e=a1_0x29e7();return a1_0x5b17=function(_0x1abfcc,_0x30a583){_0x1abfcc=_0x1abfcc-0xba;var _0x29e731=_0x44e41e[_0x1abfcc];return _0x29e731;},a1_0x5b17(_0x2a1e21,_0x35febb);}'use strict';function a1_0x29e7(){var _0x35353c=['24hBwYKi','8hsEAUh','apply','745hToTNk','2806047edBdpj','anncic-api:cache','__esModule','310EVEmxA','defineProperty','__decorate','346720BZKDaJ','length','10734eitsrI','215347BeSWzA','object','search','(((.+)+)+)+$','392052ZmVsii','@midwayjs/core','./config/config.default','getOwnPropertyDescriptor','CustomConfiguration','constructor','toString','Configuration','178521rOBgeJ','193465NPYZoQ'];a1_0x29e7=function(){return _0x35353c;};return a1_0x29e7();}var __decorate=this&&this[a1_0xcf8a7(0xcf)]||function(_0x2b87f1,_0x2f29f6,_0x14a391,_0x19bc9c){var _0x5c109a=a1_0xcf8a7,_0x171271=arguments[_0x5c109a(0xd1)],_0x26496d=_0x171271<0x3?_0x2f29f6:_0x19bc9c===null?_0x19bc9c=Object[_0x5c109a(0xbf)](_0x2f29f6,_0x14a391):_0x19bc9c,_0x702353;if(typeof Reflect===_0x5c109a(0xd4)&&typeof Reflect['decorate']==='function')_0x26496d=Reflect['decorate'](_0x2b87f1,_0x2f29f6,_0x14a391,_0x19bc9c);else{for(var _0x4cf3f7=_0x2b87f1[_0x5c109a(0xd1)]-0x1;_0x4cf3f7>=0x0;_0x4cf3f7--)if(_0x702353=_0x2b87f1[_0x4cf3f7])_0x26496d=(_0x171271<0x3?_0x702353(_0x26496d):_0x171271>0x3?_0x702353(_0x2f29f6,_0x14a391,_0x26496d):_0x702353(_0x2f29f6,_0x14a391))||_0x26496d;}return _0x171271>0x3&&_0x26496d&&Object[_0x5c109a(0xce)](_0x2f29f6,_0x14a391,_0x26496d),_0x26496d;};Object['defineProperty'](exports,a1_0xcf8a7(0xcc),{'value':!![]}),exports[a1_0xcf8a7(0xc0)]=void 0x0;const core_1=require(a1_0xcf8a7(0xbd)),ConfigDefault=require(a1_0xcf8a7(0xbe));let CustomConfiguration=class CustomConfiguration{};exports[a1_0xcf8a7(0xc0)]=CustomConfiguration,exports[a1_0xcf8a7(0xc0)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0xcf8a7(0xc3)])({'conflictCheck':![],'namespace':a1_0xcf8a7(0xcb),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x1ccfff=a1_0x2767;(function(_0x55fd5c,_0x4680cf){var _0x30278b=a1_0x2767,_0x5123f9=_0x55fd5c();while(!![]){try{var _0xaf2511=-parseInt(_0x30278b(0x1fb))/0x1*(-parseInt(_0x30278b(0x1ed))/0x2)+-parseInt(_0x30278b(0x1f9))/0x3*(parseInt(_0x30278b(0x1f8))/0x4)+-parseInt(_0x30278b(0x1e2))/0x5*(-parseInt(_0x30278b(0x1ee))/0x6)+parseInt(_0x30278b(0x1f2))/0x7*(-parseInt(_0x30278b(0x1f5))/0x8)+parseInt(_0x30278b(0x1ec))/0x9+parseInt(_0x30278b(0x1e8))/0xa+parseInt(_0x30278b(0x1f7))/0xb;if(_0xaf2511===_0x4680cf)break;else _0x5123f9['push'](_0x5123f9['shift']());}catch(_0x568e7f){_0x5123f9['push'](_0x5123f9['shift']());}}}(a1_0x35ed,0xccf61));var a1_0x44dcc5=(function(){var _0x2d53df=!![];return function(_0xdfff13,_0x388b00){var _0x12dd6e=_0x2d53df?function(){var _0x3ba0f0=a1_0x2767;if(_0x388b00){var _0x44eb00=_0x388b00[_0x3ba0f0(0x1e9)](_0xdfff13,arguments);return _0x388b00=null,_0x44eb00;}}:function(){};return _0x2d53df=![],_0x12dd6e;};}()),a1_0x16716f=a1_0x44dcc5(this,function(){var _0x437c4b=a1_0x2767;return a1_0x16716f[_0x437c4b(0x1e6)]()['search']('(((.+)+)+)+$')[_0x437c4b(0x1e6)]()[_0x437c4b(0x1f1)](a1_0x16716f)[_0x437c4b(0x1fa)](_0x437c4b(0x1ef));});a1_0x16716f();'use strict';function a1_0x35ed(){var _0x412d30=['__esModule','toString','decorate','1824320WsuDtV','apply','object','Configuration','10368315KRXDid','356mxLWFf','1422MuDTTD','(((.+)+)+)+$','defineProperty','constructor','10801NjUBfj','getOwnPropertyDescriptor','CustomConfiguration','7576UXYIdS','@midwayjs/core','14516909MeLxwp','25588CFRABh','435VMmDub','search','2324LHiKSJ','3385JHTxqT','anncic-api:cache','length'];a1_0x35ed=function(){return _0x412d30;};return a1_0x35ed();}var __decorate=this&&this['__decorate']||function(_0x17a206,_0xdc26cd,_0x447bec,_0xca6140){var _0x1fcc10=a1_0x2767,_0x4351f5=arguments[_0x1fcc10(0x1e4)],_0x37c1e7=_0x4351f5<0x3?_0xdc26cd:_0xca6140===null?_0xca6140=Object[_0x1fcc10(0x1f3)](_0xdc26cd,_0x447bec):_0xca6140,_0xc8337e;if(typeof Reflect===_0x1fcc10(0x1ea)&&typeof Reflect[_0x1fcc10(0x1e7)]==='function')_0x37c1e7=Reflect[_0x1fcc10(0x1e7)](_0x17a206,_0xdc26cd,_0x447bec,_0xca6140);else{for(var _0x1302e6=_0x17a206[_0x1fcc10(0x1e4)]-0x1;_0x1302e6>=0x0;_0x1302e6--)if(_0xc8337e=_0x17a206[_0x1302e6])_0x37c1e7=(_0x4351f5<0x3?_0xc8337e(_0x37c1e7):_0x4351f5>0x3?_0xc8337e(_0xdc26cd,_0x447bec,_0x37c1e7):_0xc8337e(_0xdc26cd,_0x447bec))||_0x37c1e7;}return _0x4351f5>0x3&&_0x37c1e7&&Object[_0x1fcc10(0x1f0)](_0xdc26cd,_0x447bec,_0x37c1e7),_0x37c1e7;};Object[a1_0x1ccfff(0x1f0)](exports,a1_0x1ccfff(0x1e5),{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x2767(_0x4cc69e,_0x55b45b){var _0x487937=a1_0x35ed();return a1_0x2767=function(_0x16716f,_0x44dcc5){_0x16716f=_0x16716f-0x1e2;var _0x35edef=_0x487937[_0x16716f];return _0x35edef;},a1_0x2767(_0x4cc69e,_0x55b45b);}const core_1=require(a1_0x1ccfff(0x1f6)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};exports[a1_0x1ccfff(0x1f4)]=CustomConfiguration,exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a1_0x1ccfff(0x1eb)])({'conflictCheck':![],'namespace':a1_0x1ccfff(0x1e3),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x20e02f=a2_0x4a7e;(function(_0x212aa3,_0x304940){const _0x25aa33=a2_0x4a7e,_0xb40dc0=_0x212aa3();while(!![]){try{const _0x46bffd=parseInt(_0x25aa33(0x7c))/0x1*(parseInt(_0x25aa33(0x84))/0x2)+-parseInt(_0x25aa33(0x71))/0x3*(parseInt(_0x25aa33(0x7e))/0x4)+parseInt(_0x25aa33(0x7b))/0x5*(-parseInt(_0x25aa33(0x6e))/0x6)+parseInt(_0x25aa33(0x74))/0x7+parseInt(_0x25aa33(0x7f))/0x8*(-parseInt(_0x25aa33(0x70))/0x9)+parseInt(_0x25aa33(0x72))/0xa*(-parseInt(_0x25aa33(0x6d))/0xb)+parseInt(_0x25aa33(0x85))/0xc;if(_0x46bffd===_0x304940)break;else _0xb40dc0['push'](_0xb40dc0['shift']());}catch(_0xaa1324){_0xb40dc0['push'](_0xb40dc0['shift']());}}}(a2_0x1c91,0x84ddf));function a2_0x4a7e(_0x5a86a6,_0x887cfa){const _0x486882=a2_0x1c91();return a2_0x4a7e=function(_0x344f1b,_0x8102a7){_0x344f1b=_0x344f1b-0x6c;let _0x1c91b5=_0x486882[_0x344f1b];return _0x1c91b5;},a2_0x4a7e(_0x5a86a6,_0x887cfa);}const a2_0x8102a7=(function(){let _0x60b61b=!![];return function(_0x1ec451,_0x76a8b6){const _0x3c7e5f=_0x60b61b?function(){if(_0x76a8b6){const _0x60a0e8=_0x76a8b6['apply'](_0x1ec451,arguments);return _0x76a8b6=null,_0x60a0e8;}}:function(){};return _0x60b61b=![],_0x3c7e5f;};}()),a2_0x344f1b=a2_0x8102a7(this,function(){const _0x5dbe4a=a2_0x4a7e;return a2_0x344f1b[_0x5dbe4a(0x7d)]()[_0x5dbe4a(0x88)](_0x5dbe4a(0x75))[_0x5dbe4a(0x7d)]()['constructor'](a2_0x344f1b)['search'](_0x5dbe4a(0x75));});a2_0x344f1b();'use strict';Object[a2_0x20e02f(0x81)](exports,a2_0x20e02f(0x7a),{'value':!![]}),exports[a2_0x20e02f(0x83)]=Cache;const crypto_js_1=require(a2_0x20e02f(0x78)),CacheService_1=require(a2_0x20e02f(0x76)),core_1=require('@midwayjs/core');function json_encode(_0x2c53a0){const _0x418a16=a2_0x20e02f;try{return JSON[_0x418a16(0x86)](_0x2c53a0);}catch(_0x5ba507){return undefined;}}function a2_0x1c91(){const _0x41c38d=['802398UlvrPX','2894990lMWtMV','MD5','3831086eVRibW','(((.+)+)+)+$','../service/CacheService','Method::Decorator','crypto-js','REQUEST_OBJ_CTX_KEY','__esModule','15fVszeE','1lglLpB','toString','4FQpNcq','848DwZLPN','getApplicationContext','defineProperty','app','Cache','1783892UGANlc','10470036klbILg','stringify','parse','search','set','value','use','11bQpegc','1806954uqAoNf','apply','26073WuJjMZ'];a2_0x1c91=function(){return _0x41c38d;};return a2_0x1c91();}function Cache(_0x360c75,_0x5a15d6){return(_0x2c12d2,_0x74f1d9,_0x26c285)=>{const _0x22e156=a2_0x4a7e,_0x238ad2=_0x26c285[_0x22e156(0x8a)];return _0x26c285['value']=async function(..._0x42db2d){const _0x27ae23=_0x22e156;_0x360c75=(_0x360c75?''+_0x360c75:''+(_0x74f1d9||''))+'.'+(0x0,crypto_js_1[_0x27ae23(0x73)])(json_encode(_0x42db2d))[_0x27ae23(0x7d)]();let _0x562d82=await this[core_1[_0x27ae23(0x79)]][_0x27ae23(0x82)][_0x27ae23(0x80)]()['getAsync'](CacheService_1['CacheService']),_0x1fec59=await _0x562d82['use']('Method::Decorator')['get'](_0x360c75);if(_0x1fec59)return JSON[_0x27ae23(0x87)](_0x1fec59);else _0x1fec59=await _0x238ad2[_0x27ae23(0x6f)](this,[..._0x42db2d]),await _0x562d82[_0x27ae23(0x6c)](_0x27ae23(0x77))[_0x27ae23(0x89)](_0x360c75,JSON[_0x27ae23(0x86)](_0x1fec59),_0x5a15d6);return _0x1fec59;},_0x26c285;};}
1
+ const a2_0x47b03b=a2_0x36a9;function a2_0x36a9(_0x23be0d,_0x345c0b){const _0x1f0de2=a2_0x52eb();return a2_0x36a9=function(_0x345202,_0x2ea712){_0x345202=_0x345202-0x10b;let _0x52eb37=_0x1f0de2[_0x345202];return _0x52eb37;},a2_0x36a9(_0x23be0d,_0x345c0b);}(function(_0x238e6b,_0x21002c){const _0x1dc731=a2_0x36a9,_0x328cff=_0x238e6b();while(!![]){try{const _0x590c91=-parseInt(_0x1dc731(0x11a))/0x1+-parseInt(_0x1dc731(0x119))/0x2*(parseInt(_0x1dc731(0x116))/0x3)+parseInt(_0x1dc731(0x11f))/0x4*(-parseInt(_0x1dc731(0x114))/0x5)+parseInt(_0x1dc731(0x10b))/0x6+-parseInt(_0x1dc731(0x11c))/0x7*(parseInt(_0x1dc731(0x110))/0x8)+-parseInt(_0x1dc731(0x10c))/0x9*(-parseInt(_0x1dc731(0x11b))/0xa)+parseInt(_0x1dc731(0x124))/0xb;if(_0x590c91===_0x21002c)break;else _0x328cff['push'](_0x328cff['shift']());}catch(_0x340d06){_0x328cff['push'](_0x328cff['shift']());}}}(a2_0x52eb,0x5c093));const a2_0x2ea712=(function(){let _0x2a6907=!![];return function(_0x494fd9,_0x21761f){const _0x17785a=_0x2a6907?function(){const _0x5ea879=a2_0x36a9;if(_0x21761f){const _0x522a9f=_0x21761f[_0x5ea879(0x10d)](_0x494fd9,arguments);return _0x21761f=null,_0x522a9f;}}:function(){};return _0x2a6907=![],_0x17785a;};}()),a2_0x345202=a2_0x2ea712(this,function(){const _0x49e701=a2_0x36a9;return a2_0x345202['toString']()[_0x49e701(0x113)]('(((.+)+)+)+$')['toString']()[_0x49e701(0x126)](a2_0x345202)[_0x49e701(0x113)](_0x49e701(0x127));});a2_0x345202();'use strict';function a2_0x52eb(){const _0x1b9781=['18293451FHDjkw','getApplicationContext','constructor','(((.+)+)+)+$','app','getAsync','toString','get','380946EitGsN','81PNorDa','apply','crypto-js','set','8DhjTgY','__esModule','value','search','2314315IGKxGQ','parse','26319tFVETs','stringify','REQUEST_OBJ_CTX_KEY','166PTsexZ','73321AkNyLM','273330mDEieU','2318449Ufjzng','../service/CacheService','Method::Decorator','4ZSgkuA','CacheService','Cache','use','MD5'];a2_0x52eb=function(){return _0x1b9781;};return a2_0x52eb();}Object['defineProperty'](exports,a2_0x47b03b(0x111),{'value':!![]}),exports[a2_0x47b03b(0x121)]=Cache;const crypto_js_1=require(a2_0x47b03b(0x10e)),CacheService_1=require(a2_0x47b03b(0x11d)),core_1=require('@midwayjs/core');function json_encode(_0x30c7c7){const _0x17871b=a2_0x47b03b;try{return JSON[_0x17871b(0x117)](_0x30c7c7);}catch(_0x3839c1){return undefined;}}function Cache(_0x3f3c1a,_0x217b81){return(_0x4c370b,_0x36bfbc,_0x1ff114)=>{const _0x1a28f9=a2_0x36a9,_0x4f2b19=_0x1ff114[_0x1a28f9(0x112)];return _0x1ff114[_0x1a28f9(0x112)]=async function(..._0x53bcfc){const _0x292f87=_0x1a28f9;_0x3f3c1a=(_0x3f3c1a?''+_0x3f3c1a:''+(_0x36bfbc||''))+'.'+(0x0,crypto_js_1[_0x292f87(0x123)])(json_encode(_0x53bcfc))[_0x292f87(0x12a)]();let _0x2fcf43=await this[core_1[_0x292f87(0x118)]][_0x292f87(0x128)][_0x292f87(0x125)]()[_0x292f87(0x129)](CacheService_1[_0x292f87(0x120)]),_0x510dbf=await _0x2fcf43['use'](_0x292f87(0x11e))[_0x292f87(0x12b)](_0x3f3c1a);if(_0x510dbf)return JSON[_0x292f87(0x115)](_0x510dbf);else _0x510dbf=await _0x4f2b19[_0x292f87(0x10d)](this,[..._0x53bcfc]),await _0x2fcf43[_0x292f87(0x122)]('Method::Decorator')[_0x292f87(0x10f)](_0x3f3c1a,JSON[_0x292f87(0x117)](_0x510dbf),_0x217b81);return _0x510dbf;},_0x1ff114;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x5d160b=a3_0x5567;(function(_0x3bb873,_0x1518aa){var _0x30199a=a3_0x5567,_0x5621a3=_0x3bb873();while(!![]){try{var _0x4bc87f=parseInt(_0x30199a(0xd7))/0x1+parseInt(_0x30199a(0xd1))/0x2*(-parseInt(_0x30199a(0xc8))/0x3)+-parseInt(_0x30199a(0xd2))/0x4*(-parseInt(_0x30199a(0xcc))/0x5)+parseInt(_0x30199a(0xca))/0x6+-parseInt(_0x30199a(0xd8))/0x7+-parseInt(_0x30199a(0xcd))/0x8+parseInt(_0x30199a(0xd9))/0x9*(parseInt(_0x30199a(0xd4))/0xa);if(_0x4bc87f===_0x1518aa)break;else _0x5621a3['push'](_0x5621a3['shift']());}catch(_0x429f5f){_0x5621a3['push'](_0x5621a3['shift']());}}}(a3_0x3cb2,0x30ba3));var a3_0x3c98b5=(function(){var _0x5dbdab=!![];return function(_0x58dcd1,_0x3895ee){var _0x483fad=_0x5dbdab?function(){var _0x408ee8=a3_0x5567;if(_0x3895ee){var _0x57a76f=_0x3895ee[_0x408ee8(0xc7)](_0x58dcd1,arguments);return _0x3895ee=null,_0x57a76f;}}:function(){};return _0x5dbdab=![],_0x483fad;};}()),a3_0x6f900f=a3_0x3c98b5(this,function(){var _0x2c1ef3=a3_0x5567;return a3_0x6f900f[_0x2c1ef3(0xcb)]()[_0x2c1ef3(0xc4)]('(((.+)+)+)+$')['toString']()[_0x2c1ef3(0xc6)](a3_0x6f900f)[_0x2c1ef3(0xc4)](_0x2c1ef3(0xd5));});function a3_0x3cb2(){var _0x4d6be5=['search','./decorator/Cache','constructor','apply','31755sLlNhS','Cache','2175822uCxzIT','toString','365rfcyrZ','2902496pXfZQw','CacheService','CustomConfiguration','Configuration','32lugCMX','20628rwhhYu','__esModule','13820iwzhEe','(((.+)+)+)+$','defineProperty','126842uuwrDb','987637ZdZiXr','45GjriTc'];a3_0x3cb2=function(){return _0x4d6be5;};return a3_0x3cb2();}a3_0x6f900f();'use strict';Object[a3_0x5d160b(0xd6)](exports,a3_0x5d160b(0xd3),{'value':!![]}),exports[a3_0x5d160b(0xce)]=exports['Cache']=exports[a3_0x5d160b(0xd0)]=void 0x0;var configuration_1=require('./configuration');Object['defineProperty'](exports,a3_0x5d160b(0xd0),{'enumerable':!![],'get':function(){var _0x56651c=a3_0x5d160b;return configuration_1[_0x56651c(0xcf)];}});var Cache_1=require(a3_0x5d160b(0xc5));Object[a3_0x5d160b(0xd6)](exports,a3_0x5d160b(0xc9),{'enumerable':!![],'get':function(){var _0x1a02be=a3_0x5d160b;return Cache_1[_0x1a02be(0xc9)];}});function a3_0x5567(_0x567a39,_0x124c74){var _0x42ae32=a3_0x3cb2();return a3_0x5567=function(_0x6f900f,_0x3c98b5){_0x6f900f=_0x6f900f-0xc4;var _0x3cb22a=_0x42ae32[_0x6f900f];return _0x3cb22a;},a3_0x5567(_0x567a39,_0x124c74);}var CacheService_1=require('./service/CacheService');Object[a3_0x5d160b(0xd6)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x28e74d=a3_0x5d160b;return CacheService_1[_0x28e74d(0xce)];}});
1
+ var a3_0x37f282=a3_0x59f0;(function(_0x2c8895,_0x4a4be7){var _0x4e17b1=a3_0x59f0,_0x26db37=_0x2c8895();while(!![]){try{var _0x428cd8=-parseInt(_0x4e17b1(0x1ec))/0x1+-parseInt(_0x4e17b1(0x1ef))/0x2*(-parseInt(_0x4e17b1(0x1e5))/0x3)+parseInt(_0x4e17b1(0x1eb))/0x4*(-parseInt(_0x4e17b1(0x1e9))/0x5)+-parseInt(_0x4e17b1(0x1e2))/0x6+parseInt(_0x4e17b1(0x1ea))/0x7+parseInt(_0x4e17b1(0x1dd))/0x8*(parseInt(_0x4e17b1(0x1e3))/0x9)+parseInt(_0x4e17b1(0x1f2))/0xa*(parseInt(_0x4e17b1(0x1ee))/0xb);if(_0x428cd8===_0x4a4be7)break;else _0x26db37['push'](_0x26db37['shift']());}catch(_0x481234){_0x26db37['push'](_0x26db37['shift']());}}}(a3_0x1cab,0x91f85));var a3_0x5e6830=(function(){var _0x171bad=!![];return function(_0x40ecbe,_0x24b2fa){var _0x3a9c1e=_0x171bad?function(){var _0x50a0c=a3_0x59f0;if(_0x24b2fa){var _0x360b19=_0x24b2fa[_0x50a0c(0x1f1)](_0x40ecbe,arguments);return _0x24b2fa=null,_0x360b19;}}:function(){};return _0x171bad=![],_0x3a9c1e;};}()),a3_0x3a1332=a3_0x5e6830(this,function(){var _0x4d224a=a3_0x59f0;return a3_0x3a1332[_0x4d224a(0x1e1)]()[_0x4d224a(0x1e7)]('(((.+)+)+)+$')[_0x4d224a(0x1e1)]()[_0x4d224a(0x1df)](a3_0x3a1332)[_0x4d224a(0x1e7)]('(((.+)+)+)+$');});a3_0x3a1332();'use strict';Object[a3_0x37f282(0x1ed)](exports,a3_0x37f282(0x1e6),{'value':!![]}),exports[a3_0x37f282(0x1f4)]=exports['Cache']=exports[a3_0x37f282(0x1f0)]=void 0x0;var configuration_1=require(a3_0x37f282(0x1e8));function a3_0x59f0(_0x66075c,_0x579b47){var _0x188823=a3_0x1cab();return a3_0x59f0=function(_0x3a1332,_0x5e6830){_0x3a1332=_0x3a1332-0x1dd;var _0x1cabb6=_0x188823[_0x3a1332];return _0x1cabb6;},a3_0x59f0(_0x66075c,_0x579b47);}Object[a3_0x37f282(0x1ed)](exports,a3_0x37f282(0x1f0),{'enumerable':!![],'get':function(){var _0x56ef84=a3_0x37f282;return configuration_1[_0x56ef84(0x1de)];}});function a3_0x1cab(){var _0x307aa3=['3444296ylarpw','CustomConfiguration','constructor','./decorator/Cache','toString','805494XvBlbq','9VOzLfn','./service/CacheService','26157NUHuYY','__esModule','search','./configuration','1332345NdWzNR','8088934DwffFV','12blijMa','461448FRmcaX','defineProperty','3377vjfkPA','2tpbHCm','Configuration','apply','12970QkeiiT','Cache','CacheService'];a3_0x1cab=function(){return _0x307aa3;};return a3_0x1cab();}var Cache_1=require(a3_0x37f282(0x1e0));Object[a3_0x37f282(0x1ed)](exports,a3_0x37f282(0x1f3),{'enumerable':!![],'get':function(){var _0x47cd77=a3_0x37f282;return Cache_1[_0x47cd77(0x1f3)];}});var CacheService_1=require(a3_0x37f282(0x1e4));Object[a3_0x37f282(0x1ed)](exports,a3_0x37f282(0x1f4),{'enumerable':!![],'get':function(){var _0x4871b6=a3_0x37f282;return CacheService_1[_0x4871b6(0x1f4)];}});
@@ -1 +1 @@
1
- var a4_0x19ac74=a4_0x3c4e;function a4_0x3c4e(_0x53dfd9,_0x1abce7){var _0x4b6a61=a4_0x346c();return a4_0x3c4e=function(_0x5cff96,_0xf0342d){_0x5cff96=_0x5cff96-0x74;var _0x346c18=_0x4b6a61[_0x5cff96];return _0x346c18;},a4_0x3c4e(_0x53dfd9,_0x1abce7);}(function(_0x22b254,_0x31b0be){var _0x27f727=a4_0x3c4e,_0x580d71=_0x22b254();while(!![]){try{var _0x596549=parseInt(_0x27f727(0x89))/0x1*(-parseInt(_0x27f727(0x81))/0x2)+parseInt(_0x27f727(0x8a))/0x3*(parseInt(_0x27f727(0xa8))/0x4)+-parseInt(_0x27f727(0x86))/0x5+-parseInt(_0x27f727(0x7c))/0x6*(-parseInt(_0x27f727(0xaa))/0x7)+-parseInt(_0x27f727(0x82))/0x8+-parseInt(_0x27f727(0x8f))/0x9*(parseInt(_0x27f727(0xb0))/0xa)+parseInt(_0x27f727(0x76))/0xb;if(_0x596549===_0x31b0be)break;else _0x580d71['push'](_0x580d71['shift']());}catch(_0x4c3b6d){_0x580d71['push'](_0x580d71['shift']());}}}(a4_0x346c,0xcbbcd));var a4_0xf0342d=(function(){var _0x5713f5=!![];return function(_0x2794fc,_0x42d282){var _0x2a6bb7=_0x5713f5?function(){var _0x3736a9=a4_0x3c4e;if(_0x42d282){var _0x2f19b5=_0x42d282[_0x3736a9(0x77)](_0x2794fc,arguments);return _0x42d282=null,_0x2f19b5;}}:function(){};return _0x5713f5=![],_0x2a6bb7;};}()),a4_0x5cff96=a4_0xf0342d(this,function(){var _0x474316=a4_0x3c4e;return a4_0x5cff96[_0x474316(0xae)]()[_0x474316(0x78)]('(((.+)+)+)+$')[_0x474316(0xae)]()['constructor'](a4_0x5cff96)[_0x474316(0x78)](_0x474316(0x7d));});a4_0x5cff96();'use strict';var __decorate=this&&this['__decorate']||function(_0x58fe8a,_0x4b193f,_0x470852,_0x272a2f){var _0x3f8545=a4_0x3c4e,_0x3ac76f=arguments[_0x3f8545(0xa0)],_0x49d17=_0x3ac76f<0x3?_0x4b193f:_0x272a2f===null?_0x272a2f=Object['getOwnPropertyDescriptor'](_0x4b193f,_0x470852):_0x272a2f,_0x365d5b;if(typeof Reflect===_0x3f8545(0x87)&&typeof Reflect[_0x3f8545(0x90)]===_0x3f8545(0x99))_0x49d17=Reflect['decorate'](_0x58fe8a,_0x4b193f,_0x470852,_0x272a2f);else{for(var _0x536148=_0x58fe8a[_0x3f8545(0xa0)]-0x1;_0x536148>=0x0;_0x536148--)if(_0x365d5b=_0x58fe8a[_0x536148])_0x49d17=(_0x3ac76f<0x3?_0x365d5b(_0x49d17):_0x3ac76f>0x3?_0x365d5b(_0x4b193f,_0x470852,_0x49d17):_0x365d5b(_0x4b193f,_0x470852))||_0x49d17;}return _0x3ac76f>0x3&&_0x49d17&&Object[_0x3f8545(0xaf)](_0x4b193f,_0x470852,_0x49d17),_0x49d17;},__metadata=this&&this['__metadata']||function(_0x475d4c,_0x4b2f4e){var _0x2708a5=a4_0x3c4e;if(typeof Reflect===_0x2708a5(0x87)&&typeof Reflect[_0x2708a5(0xa5)]===_0x2708a5(0x99))return Reflect['metadata'](_0x475d4c,_0x4b2f4e);};Object[a4_0x19ac74(0xaf)](exports,a4_0x19ac74(0x7b),{'value':!![]}),exports[a4_0x19ac74(0x92)]=exports[a4_0x19ac74(0x9b)]=void 0x0,exports[a4_0x19ac74(0x94)]=json_encode,exports['json_decode']=json_decode;const cacheManager=require(a4_0x19ac74(0x85)),core_1=require(a4_0x19ac74(0x8e));let CacheService=class CacheService{constructor(){var _0x3b93ad=a4_0x19ac74;this[_0x3b93ad(0x88)]=undefined,this[_0x3b93ad(0xa4)]=new Map();}[a4_0x19ac74(0x7f)](_0xb7d231){var _0x227e5f=a4_0x19ac74,_0x1f7d90,_0x4d2240;if(!this['cache']){const _0x17696c=((_0x1f7d90=this[_0x227e5f(0x74)][_0x227e5f(0x93)])===null||_0x1f7d90===void 0x0?void 0x0:_0x1f7d90[(_0x4d2240=this[_0x227e5f(0x74)])===null||_0x4d2240===void 0x0?void 0x0:_0x4d2240[_0x227e5f(0x8d)]])||this[_0x227e5f(0x74)][_0x227e5f(0x93)]['file'];this['cache']=cacheManager[_0x227e5f(0x98)]({..._0x17696c['options'],'store':_0x17696c['store']});}return!this['clients']['has'](_0xb7d231)&&this['clients'][_0x227e5f(0xab)](_0xb7d231,new Cache(_0xb7d231,this[_0x227e5f(0x88)])),this['clients']['get'](_0xb7d231);}async[a4_0x19ac74(0x97)](){var _0x19a91c=a4_0x19ac74;return await this[_0x19a91c(0x88)][_0x19a91c(0x97)]();}};exports[a4_0x19ac74(0x9b)]=CacheService,__decorate([(0x0,core_1[a4_0x19ac74(0x9a)])('cache'),__metadata(a4_0x19ac74(0xa7),Object)],CacheService[a4_0x19ac74(0xa6)],a4_0x19ac74(0x74),void 0x0),exports[a4_0x19ac74(0x9b)]=CacheService=__decorate([(0x0,core_1[a4_0x19ac74(0x91)])(),(0x0,core_1[a4_0x19ac74(0x7e)])(core_1[a4_0x19ac74(0xa3)][a4_0x19ac74(0x80)])],CacheService);class Cache{constructor(_0x250729,_0xbaff2){var _0x1e1b86=a4_0x19ac74;this[_0x1e1b86(0x88)]=_0xbaff2,this[_0x1e1b86(0x9d)]=_0x250729;}async[a4_0x19ac74(0xa2)](_0x21dbaf){var _0x2fa6a0=a4_0x19ac74;return await this[_0x2fa6a0(0x88)][_0x2fa6a0(0xa2)](this[_0x2fa6a0(0x9d)]+':'+_0x21dbaf);}async[a4_0x19ac74(0xab)](_0xaf2e58,_0x2bccc7,_0x34481e){var _0x1cedd2=a4_0x19ac74,_0x206bd9,_0xa09265;return((_0xa09265=(_0x206bd9=this[_0x1cedd2(0x88)])===null||_0x206bd9===void 0x0?void 0x0:_0x206bd9[_0x1cedd2(0xa9)])===null||_0xa09265===void 0x0?void 0x0:_0xa09265[_0x1cedd2(0x9e)])==_0x1cedd2(0x8c)?await this['cache'][_0x1cedd2(0xab)](this[_0x1cedd2(0x9d)]+':'+_0xaf2e58,_0x2bccc7,{'ttl':_0x34481e}):await this[_0x1cedd2(0x88)][_0x1cedd2(0xab)](this[_0x1cedd2(0x9d)]+':'+_0xaf2e58,_0x2bccc7,{'ttl':_0x34481e});}async[a4_0x19ac74(0xb1)](_0x503e66,_0x323c99,_0x269056){return new Promise((_0x3b1ca7,_0x1e2c54)=>{var _0x55ed85=a4_0x3c4e;this[_0x55ed85(0x88)][_0x55ed85(0xb1)](this[_0x55ed85(0x9d)]+':'+_0x503e66,async(_0x34ffbf,_0x30d040)=>{var _0x5e0cc5=_0x55ed85;_0x34ffbf?_0x1e2c54(_0x34ffbf):((_0x30d040===undefined||_0x30d040===null)&&(typeof _0x323c99==_0x5e0cc5(0x99)?(_0x30d040=await _0x323c99()[_0x5e0cc5(0x84)](_0x579fdf=>_0x1e2c54(_0x579fdf)),typeof _0x30d040!=_0x5e0cc5(0x9c)&&await this[_0x5e0cc5(0xab)](_0x503e66,_0x30d040,_0x269056)):_0x30d040=_0x323c99),_0x3b1ca7(_0x30d040));});});}async[a4_0x19ac74(0x83)](_0x3278be,_0x14610b){return await this['del'](_0x3278be+'#'+_0x14610b);}async[a4_0x19ac74(0x7a)](_0x5ecf70,_0x401c88,_0x377a48,_0x5a9d13){return await this['set'](_0x5ecf70+'#'+_0x401c88,_0x377a48,_0x5a9d13);}async[a4_0x19ac74(0x96)](_0x2f1b60,_0x179361,_0x5257b5,_0x5ddcf1){var _0x420222=a4_0x19ac74;return await this[_0x420222(0xb1)](_0x2f1b60+'#'+_0x179361,_0x5257b5,_0x5ddcf1);}[a4_0x19ac74(0xa1)](_0x4f8a41){const _0x368d4c={'all':async()=>{var _0x52a8be=a4_0x3c4e,_0x49a599,_0xec33bc,_0x3d64e5,_0x14a194,_0xa199e2;return((_0xec33bc=(_0x49a599=this['cache'])===null||_0x49a599===void 0x0?void 0x0:_0x49a599[_0x52a8be(0xa9)])===null||_0xec33bc===void 0x0?void 0x0:_0xec33bc[_0x52a8be(0x9e)])=='redis'?(await((_0xa199e2=(_0x14a194=(_0x3d64e5=this===null||this===void 0x0?void 0x0:this[_0x52a8be(0x88)])===null||_0x3d64e5===void 0x0?void 0x0:_0x3d64e5['store'])===null||_0x14a194===void 0x0?void 0x0:_0x14a194[_0x52a8be(0x95)]())===null||_0xa199e2===void 0x0?void 0x0:_0xa199e2[_0x52a8be(0xac)](this['prefix']+':'+_0x4f8a41,0x0,-0x1))||[])[_0x52a8be(0x9f)](_0x191a30=>json_decode(_0x191a30)):await this['get'](_0x4f8a41,[]);},'pop':async()=>{var _0xf6ccd3=a4_0x3c4e,_0x33aa88,_0x2da0f5,_0x2480ce,_0x4a4d47,_0x1f1dd5;if(((_0x2da0f5=(_0x33aa88=this[_0xf6ccd3(0x88)])===null||_0x33aa88===void 0x0?void 0x0:_0x33aa88['store'])===null||_0x2da0f5===void 0x0?void 0x0:_0x2da0f5['name'])==_0xf6ccd3(0x8c))return json_decode(await((_0x1f1dd5=(_0x4a4d47=(_0x2480ce=this===null||this===void 0x0?void 0x0:this[_0xf6ccd3(0x88)])===null||_0x2480ce===void 0x0?void 0x0:_0x2480ce[_0xf6ccd3(0xa9)])===null||_0x4a4d47===void 0x0?void 0x0:_0x4a4d47[_0xf6ccd3(0x95)]())===null||_0x1f1dd5===void 0x0?void 0x0:_0x1f1dd5[_0xf6ccd3(0x8b)](this['prefix']+':'+_0x4f8a41)));else{let _0x1747b1=await this[_0xf6ccd3(0xb1)](_0x4f8a41,[]),_0x2b989b=_0x1747b1[_0xf6ccd3(0xad)]();return await this[_0xf6ccd3(0xab)](_0x4f8a41,_0x1747b1),_0x2b989b;}},'push':async(..._0x52c4ed)=>{var _0x40edf9=a4_0x3c4e,_0x5a79ac,_0x350ff8,_0x29dcfb,_0x1726d7,_0x30820f;const _0x4cd29d=_0x52c4ed[_0x40edf9(0x75)](_0x4d4a01=>_0x4d4a01!==undefined&&_0x4d4a01!==null);if(((_0x350ff8=(_0x5a79ac=this[_0x40edf9(0x88)])===null||_0x5a79ac===void 0x0?void 0x0:_0x5a79ac[_0x40edf9(0xa9)])===null||_0x350ff8===void 0x0?void 0x0:_0x350ff8[_0x40edf9(0x9e)])==_0x40edf9(0x8c))return await((_0x30820f=(_0x1726d7=(_0x29dcfb=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x29dcfb===void 0x0?void 0x0:_0x29dcfb['store'])===null||_0x1726d7===void 0x0?void 0x0:_0x1726d7[_0x40edf9(0x95)]())===null||_0x30820f===void 0x0?void 0x0:_0x30820f['rpush'](this[_0x40edf9(0x9d)]+':'+_0x4f8a41,..._0x4cd29d[_0x40edf9(0x9f)](_0x394c26=>json_encode(_0x394c26)))),_0x4cd29d;else{let _0x1dba08=await this[_0x40edf9(0xb1)](_0x4f8a41,[]);return _0x1dba08[_0x40edf9(0x79)](..._0x4cd29d),await this['set'](_0x4f8a41,_0x1dba08),_0x1dba08;}}};return _0x368d4c;}}exports[a4_0x19ac74(0x92)]=Cache;function json_encode(_0x2347ab){try{return JSON['stringify'](_0x2347ab);}catch(_0xf6f7e3){return undefined;}}function json_decode(_0x37ab4a){try{return JSON['parse'](_0x37ab4a);}catch(_0x2c4d78){return undefined;}}function a4_0x346c(){var _0x4ca1db=['43134850bINqgA','apply','search','push','hset','__esModule','6OBBQGd','(((.+)+)+)+$','Scope','use','Singleton','758374BLyoiY','3183968AfWzMR','hdel','catch','cache-manager','6123150eJGhgJ','object','cache','2lrFckY','3OUDeUL','lpop','redis','default','@midwayjs/core','207TbAXqE','decorate','Provide','Cache','stores','json_encode','getClient','hget','reset','caching','function','Config','CacheService','undefined','prefix','name','map','length','list','del','ScopeEnum','clients','metadata','prototype','design:type','940180EQcpXL','store','1000279UqpEgs','set','lrange','shift','toString','defineProperty','471210PZAznr','get','config','filter'];a4_0x346c=function(){return _0x4ca1db;};return a4_0x346c();}
1
+ function a4_0x3aed(_0xc79c55,_0x1a1205){var _0x124227=a4_0x2174();return a4_0x3aed=function(_0x3a2aea,_0x103b98){_0x3a2aea=_0x3a2aea-0x89;var _0x2174ad=_0x124227[_0x3a2aea];return _0x2174ad;},a4_0x3aed(_0xc79c55,_0x1a1205);}var a4_0x421c7c=a4_0x3aed;(function(_0x26bf24,_0x4a04ac){var _0x52d8d8=a4_0x3aed,_0x2961ea=_0x26bf24();while(!![]){try{var _0x5d0802=-parseInt(_0x52d8d8(0xaa))/0x1*(parseInt(_0x52d8d8(0xa2))/0x2)+parseInt(_0x52d8d8(0x98))/0x3+parseInt(_0x52d8d8(0xb3))/0x4+-parseInt(_0x52d8d8(0xb4))/0x5+parseInt(_0x52d8d8(0xc4))/0x6*(parseInt(_0x52d8d8(0xbc))/0x7)+-parseInt(_0x52d8d8(0x8a))/0x8+-parseInt(_0x52d8d8(0xa3))/0x9*(-parseInt(_0x52d8d8(0xc1))/0xa);if(_0x5d0802===_0x4a04ac)break;else _0x2961ea['push'](_0x2961ea['shift']());}catch(_0x3731bc){_0x2961ea['push'](_0x2961ea['shift']());}}}(a4_0x2174,0x49f3a));var a4_0x103b98=(function(){var _0x5a51c7=!![];return function(_0x1a7ab9,_0x494ba4){var _0xfc1862=_0x5a51c7?function(){var _0x109d72=a4_0x3aed;if(_0x494ba4){var _0x4406f8=_0x494ba4[_0x109d72(0x90)](_0x1a7ab9,arguments);return _0x494ba4=null,_0x4406f8;}}:function(){};return _0x5a51c7=![],_0xfc1862;};}()),a4_0x3a2aea=a4_0x103b98(this,function(){var _0x1e98bf=a4_0x3aed;return a4_0x3a2aea['toString']()['search'](_0x1e98bf(0xc3))[_0x1e98bf(0xb7)]()[_0x1e98bf(0xb1)](a4_0x3a2aea)[_0x1e98bf(0xc7)](_0x1e98bf(0xc3));});a4_0x3a2aea();'use strict';var __decorate=this&&this[a4_0x421c7c(0x8d)]||function(_0x378d66,_0x39f380,_0xe7582c,_0x3402e7){var _0x13f195=a4_0x421c7c,_0xb8c318=arguments[_0x13f195(0x96)],_0x104d79=_0xb8c318<0x3?_0x39f380:_0x3402e7===null?_0x3402e7=Object['getOwnPropertyDescriptor'](_0x39f380,_0xe7582c):_0x3402e7,_0x272a21;if(typeof Reflect===_0x13f195(0xa9)&&typeof Reflect[_0x13f195(0xb5)]===_0x13f195(0xbe))_0x104d79=Reflect[_0x13f195(0xb5)](_0x378d66,_0x39f380,_0xe7582c,_0x3402e7);else{for(var _0x3b4c13=_0x378d66[_0x13f195(0x96)]-0x1;_0x3b4c13>=0x0;_0x3b4c13--)if(_0x272a21=_0x378d66[_0x3b4c13])_0x104d79=(_0xb8c318<0x3?_0x272a21(_0x104d79):_0xb8c318>0x3?_0x272a21(_0x39f380,_0xe7582c,_0x104d79):_0x272a21(_0x39f380,_0xe7582c))||_0x104d79;}return _0xb8c318>0x3&&_0x104d79&&Object[_0x13f195(0xac)](_0x39f380,_0xe7582c,_0x104d79),_0x104d79;},__metadata=this&&this[a4_0x421c7c(0xbf)]||function(_0x83d095,_0x4fd6bb){var _0x2a0068=a4_0x421c7c;if(typeof Reflect==='object'&&typeof Reflect['metadata']===_0x2a0068(0xbe))return Reflect[_0x2a0068(0xc8)](_0x83d095,_0x4fd6bb);};Object[a4_0x421c7c(0xac)](exports,'__esModule',{'value':!![]}),exports[a4_0x421c7c(0xba)]=exports[a4_0x421c7c(0xa7)]=void 0x0,exports[a4_0x421c7c(0xad)]=json_encode,exports[a4_0x421c7c(0xbb)]=json_decode;const cacheManager=require(a4_0x421c7c(0xa0)),core_1=require(a4_0x421c7c(0xab));function a4_0x2174(){var _0xf38e67=['Singleton','name','getClient','lrange','lpop','has','prefix','cache-manager','store','172pCksNA','3645144CWDaVY','get','config','hdel','CacheService','Scope','object','5723ojDAVC','@midwayjs/core','defineProperty','json_encode','cache','rpush','clients','constructor','list','67976ROznfw','1776580egZzhl','decorate','map','toString','prototype','stringify','Cache','json_decode','2527637pfsmXu','set','function','__metadata','default','10KTQYGH','undefined','(((.+)+)+)+$','6KoJGlV','push','design:type','search','metadata','Config','hget','1700288AdCiqD','redis','del','__decorate','options','stores','apply','reset','catch','Provide','ScopeEnum','shift','length','caching','1739505SBEVaq'];a4_0x2174=function(){return _0xf38e67;};return a4_0x2174();}let CacheService=class CacheService{constructor(){var _0x534dba=a4_0x421c7c;this['cache']=undefined,this[_0x534dba(0xb0)]=new Map();}['use'](_0x2869a5){var _0x18cf5f=a4_0x421c7c,_0x3fdd16,_0x56f1f3;if(!this[_0x18cf5f(0xae)]){const _0x2b452f=((_0x3fdd16=this[_0x18cf5f(0xa5)][_0x18cf5f(0x8f)])===null||_0x3fdd16===void 0x0?void 0x0:_0x3fdd16[(_0x56f1f3=this['config'])===null||_0x56f1f3===void 0x0?void 0x0:_0x56f1f3[_0x18cf5f(0xc0)]])||this[_0x18cf5f(0xa5)][_0x18cf5f(0x8f)]['file'];this[_0x18cf5f(0xae)]=cacheManager[_0x18cf5f(0x97)]({..._0x2b452f[_0x18cf5f(0x8e)],'store':_0x2b452f['store']});}return!this[_0x18cf5f(0xb0)][_0x18cf5f(0x9e)](_0x2869a5)&&this['clients'][_0x18cf5f(0xbd)](_0x2869a5,new Cache(_0x2869a5,this[_0x18cf5f(0xae)])),this['clients']['get'](_0x2869a5);}async[a4_0x421c7c(0x91)](){var _0x5532f6=a4_0x421c7c;return await this[_0x5532f6(0xae)][_0x5532f6(0x91)]();}};exports[a4_0x421c7c(0xa7)]=CacheService,__decorate([(0x0,core_1[a4_0x421c7c(0xc9)])('cache'),__metadata(a4_0x421c7c(0xc6),Object)],CacheService[a4_0x421c7c(0xb8)],a4_0x421c7c(0xa5),void 0x0),exports[a4_0x421c7c(0xa7)]=CacheService=__decorate([(0x0,core_1[a4_0x421c7c(0x93)])(),(0x0,core_1[a4_0x421c7c(0xa8)])(core_1[a4_0x421c7c(0x94)][a4_0x421c7c(0x99)])],CacheService);class Cache{constructor(_0x12c0d2,_0x36328c){this['cache']=_0x36328c,this['prefix']=_0x12c0d2;}async[a4_0x421c7c(0x8c)](_0x3da280){var _0x303834=a4_0x421c7c;return await this[_0x303834(0xae)][_0x303834(0x8c)](this[_0x303834(0x9f)]+':'+_0x3da280);}async[a4_0x421c7c(0xbd)](_0x3dcda6,_0x4daefc,_0x1d01bc){var _0x1d7445=a4_0x421c7c,_0x158eca,_0x1cfcf5;return((_0x1cfcf5=(_0x158eca=this[_0x1d7445(0xae)])===null||_0x158eca===void 0x0?void 0x0:_0x158eca[_0x1d7445(0xa1)])===null||_0x1cfcf5===void 0x0?void 0x0:_0x1cfcf5[_0x1d7445(0x9a)])==_0x1d7445(0x8b)?await this[_0x1d7445(0xae)][_0x1d7445(0xbd)](this[_0x1d7445(0x9f)]+':'+_0x3dcda6,_0x4daefc,{'ttl':_0x1d01bc}):await this[_0x1d7445(0xae)][_0x1d7445(0xbd)](this['prefix']+':'+_0x3dcda6,_0x4daefc,{'ttl':_0x1d01bc});}async[a4_0x421c7c(0xa4)](_0x3cf8fe,_0x2d0c1f,_0x53128f){return new Promise((_0xa4f17b,_0x4f03e5)=>{var _0x5c9e26=a4_0x3aed;this[_0x5c9e26(0xae)][_0x5c9e26(0xa4)](this['prefix']+':'+_0x3cf8fe,async(_0x3850ea,_0xe1226e)=>{var _0x2c3703=_0x5c9e26;_0x3850ea?_0x4f03e5(_0x3850ea):((_0xe1226e===undefined||_0xe1226e===null)&&(typeof _0x2d0c1f==_0x2c3703(0xbe)?(_0xe1226e=await _0x2d0c1f()[_0x2c3703(0x92)](_0x5ea679=>_0x4f03e5(_0x5ea679)),typeof _0xe1226e!=_0x2c3703(0xc2)&&await this[_0x2c3703(0xbd)](_0x3cf8fe,_0xe1226e,_0x53128f)):_0xe1226e=_0x2d0c1f),_0xa4f17b(_0xe1226e));});});}async[a4_0x421c7c(0xa6)](_0x572cc2,_0x14cc1c){var _0x1d37f8=a4_0x421c7c;return await this[_0x1d37f8(0x8c)](_0x572cc2+'#'+_0x14cc1c);}async['hset'](_0x21f8e8,_0x146472,_0x249602,_0x335f58){return await this['set'](_0x21f8e8+'#'+_0x146472,_0x249602,_0x335f58);}async[a4_0x421c7c(0x89)](_0x1f28ee,_0xf3fde9,_0x3c76df,_0x5a85ad){var _0x372b25=a4_0x421c7c;return await this[_0x372b25(0xa4)](_0x1f28ee+'#'+_0xf3fde9,_0x3c76df,_0x5a85ad);}[a4_0x421c7c(0xb2)](_0x52ca85){const _0x5a22d1={'all':async()=>{var _0x513944=a4_0x3aed,_0x392c44,_0xd1641d,_0x4fd714,_0x5d55bb,_0x5c10be;return((_0xd1641d=(_0x392c44=this[_0x513944(0xae)])===null||_0x392c44===void 0x0?void 0x0:_0x392c44[_0x513944(0xa1)])===null||_0xd1641d===void 0x0?void 0x0:_0xd1641d['name'])==_0x513944(0x8b)?(await((_0x5c10be=(_0x5d55bb=(_0x4fd714=this===null||this===void 0x0?void 0x0:this[_0x513944(0xae)])===null||_0x4fd714===void 0x0?void 0x0:_0x4fd714['store'])===null||_0x5d55bb===void 0x0?void 0x0:_0x5d55bb['getClient']())===null||_0x5c10be===void 0x0?void 0x0:_0x5c10be[_0x513944(0x9c)](this[_0x513944(0x9f)]+':'+_0x52ca85,0x0,-0x1))||[])[_0x513944(0xb6)](_0x43b4e4=>json_decode(_0x43b4e4)):await this[_0x513944(0xa4)](_0x52ca85,[]);},'pop':async()=>{var _0x572e6b=a4_0x3aed,_0x3799ee,_0x256e0c,_0x2ed707,_0x49f556,_0x859245;if(((_0x256e0c=(_0x3799ee=this[_0x572e6b(0xae)])===null||_0x3799ee===void 0x0?void 0x0:_0x3799ee[_0x572e6b(0xa1)])===null||_0x256e0c===void 0x0?void 0x0:_0x256e0c['name'])==_0x572e6b(0x8b))return json_decode(await((_0x859245=(_0x49f556=(_0x2ed707=this===null||this===void 0x0?void 0x0:this[_0x572e6b(0xae)])===null||_0x2ed707===void 0x0?void 0x0:_0x2ed707[_0x572e6b(0xa1)])===null||_0x49f556===void 0x0?void 0x0:_0x49f556[_0x572e6b(0x9b)]())===null||_0x859245===void 0x0?void 0x0:_0x859245[_0x572e6b(0x9d)](this[_0x572e6b(0x9f)]+':'+_0x52ca85)));else{let _0x1f56cc=await this[_0x572e6b(0xa4)](_0x52ca85,[]),_0x2fd90d=_0x1f56cc[_0x572e6b(0x95)]();return await this[_0x572e6b(0xbd)](_0x52ca85,_0x1f56cc),_0x2fd90d;}},'push':async(..._0x204139)=>{var _0x4785b2=a4_0x3aed,_0x122209,_0x2d148d,_0x40aacc,_0x1ec146,_0x1d75c0;const _0x28e5f3=_0x204139['filter'](_0x4506a2=>_0x4506a2!==undefined&&_0x4506a2!==null);if(((_0x2d148d=(_0x122209=this[_0x4785b2(0xae)])===null||_0x122209===void 0x0?void 0x0:_0x122209['store'])===null||_0x2d148d===void 0x0?void 0x0:_0x2d148d[_0x4785b2(0x9a)])==_0x4785b2(0x8b))return await((_0x1d75c0=(_0x1ec146=(_0x40aacc=this===null||this===void 0x0?void 0x0:this[_0x4785b2(0xae)])===null||_0x40aacc===void 0x0?void 0x0:_0x40aacc['store'])===null||_0x1ec146===void 0x0?void 0x0:_0x1ec146['getClient']())===null||_0x1d75c0===void 0x0?void 0x0:_0x1d75c0[_0x4785b2(0xaf)](this[_0x4785b2(0x9f)]+':'+_0x52ca85,..._0x28e5f3[_0x4785b2(0xb6)](_0x9e7d66=>json_encode(_0x9e7d66)))),_0x28e5f3;else{let _0x9390e8=await this['get'](_0x52ca85,[]);return _0x9390e8[_0x4785b2(0xc5)](..._0x28e5f3),await this['set'](_0x52ca85,_0x9390e8),_0x9390e8;}}};return _0x5a22d1;}}exports[a4_0x421c7c(0xba)]=Cache;function json_encode(_0x45fc14){var _0x235a8b=a4_0x421c7c;try{return JSON[_0x235a8b(0xb9)](_0x45fc14);}catch(_0x20840a){return undefined;}}function json_decode(_0x417332){try{return JSON['parse'](_0x417332);}catch(_0x8ab32c){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.77",
3
+ "version": "3.4.79",
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": "d49c9f6dda7c4e858d49a6221b4d7752ac6a938b"
26
+ "gitHead": "75751216454646a879664a3b1d8a8efa837248db"
27
27
  }