@anncic-api/cache 3.4.81 → 3.4.83

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_0x19e653=a0_0x5c41;(function(_0x5709bf,_0xd76ebc){const _0x4210c0=a0_0x5c41,_0xe14823=_0x5709bf();while(!![]){try{const _0x211762=-parseInt(_0x4210c0(0x135))/0x1+-parseInt(_0x4210c0(0x124))/0x2+parseInt(_0x4210c0(0x12d))/0x3*(parseInt(_0x4210c0(0x136))/0x4)+-parseInt(_0x4210c0(0x12c))/0x5*(-parseInt(_0x4210c0(0x139))/0x6)+-parseInt(_0x4210c0(0x137))/0x7+parseInt(_0x4210c0(0x125))/0x8*(parseInt(_0x4210c0(0x126))/0x9)+-parseInt(_0x4210c0(0x128))/0xa*(parseInt(_0x4210c0(0x123))/0xb);if(_0x211762===_0xd76ebc)break;else _0xe14823['push'](_0xe14823['shift']());}catch(_0x591a85){_0xe14823['push'](_0xe14823['shift']());}}}(a0_0x58a7,0x43b7b));const a0_0x211df1=(function(){let _0x4b9390=!![];return function(_0x3bc3b1,_0x155ee0){const _0x467f9e=_0x4b9390?function(){const _0x479463=a0_0x5c41;if(_0x155ee0){const _0x5e5a1b=_0x155ee0[_0x479463(0x12b)](_0x3bc3b1,arguments);return _0x155ee0=null,_0x5e5a1b;}}:function(){};return _0x4b9390=![],_0x467f9e;};}()),a0_0x524048=a0_0x211df1(this,function(){const _0x4b113e=a0_0x5c41;return a0_0x524048['toString']()[_0x4b113e(0x129)](_0x4b113e(0x133))['toString']()['constructor'](a0_0x524048)[_0x4b113e(0x129)](_0x4b113e(0x133));});a0_0x524048();function a0_0x58a7(){const _0x210192=['260jIRPbJ','search','cache-manager-fs-hash','apply','575jGQyWb','54vLZdMC','__esModule','127.0.0.1','cache-manager-ioredis','appDir','env','(((.+)+)+)+$','memory','127486nEbsDI','54444rSGlDn','1258061xtXFEP','defineProperty','10104slpqMV','16434ottsaA','185702mQccSI','76584YcLZsG','261TjXeyH','/runtime/.cache'];a0_0x58a7=function(){return _0x210192;};return a0_0x58a7();}function a0_0x5c41(_0x411709,_0x3834e1){const _0x439c9b=a0_0x58a7();return a0_0x5c41=function(_0x524048,_0x211df1){_0x524048=_0x524048-0x123;let _0x58a786=_0x439c9b[_0x524048];return _0x58a786;},a0_0x5c41(_0x411709,_0x3834e1);}'use strict';Object[a0_0x19e653(0x138)](exports,a0_0x19e653(0x12e),{'value':!![]});const fsStore=require(a0_0x19e653(0x12a)),redisStore=require(a0_0x19e653(0x130));exports['default']=_0x481d93=>{const _0x119053=a0_0x19e653;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x481d93[_0x119053(0x131)]+_0x119053(0x127)+((_0x481d93===null||_0x481d93===void 0x0?void 0x0:_0x481d93[_0x119053(0x132)])?'-'+_0x481d93[_0x119053(0x132)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x119053(0x12f),'password':'','keyPrefix':_0x481d93['name']+':'+((_0x481d93===null||_0x481d93===void 0x0?void 0x0:_0x481d93['env'])?_0x481d93[_0x119053(0x132)]+':':'')}},'memory':{'store':_0x119053(0x134),'options':{'max':0x64}}}}};};
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 +1 @@
1
- var a1_0x1cd709=a1_0x2f95;(function(_0x48590b,_0x3d4e0c){var _0x32b3fe=a1_0x2f95,_0x4b77f9=_0x48590b();while(!![]){try{var _0x505adb=parseInt(_0x32b3fe(0x98))/0x1+parseInt(_0x32b3fe(0xae))/0x2*(parseInt(_0x32b3fe(0xac))/0x3)+parseInt(_0x32b3fe(0x99))/0x4+parseInt(_0x32b3fe(0x9b))/0x5+-parseInt(_0x32b3fe(0xa9))/0x6*(parseInt(_0x32b3fe(0xa2))/0x7)+-parseInt(_0x32b3fe(0xa5))/0x8*(parseInt(_0x32b3fe(0x9f))/0x9)+-parseInt(_0x32b3fe(0xa7))/0xa;if(_0x505adb===_0x3d4e0c)break;else _0x4b77f9['push'](_0x4b77f9['shift']());}catch(_0x3b7120){_0x4b77f9['push'](_0x4b77f9['shift']());}}}(a1_0x5bf2,0x41dfb));var a1_0x53a727=(function(){var _0x10d931=!![];return function(_0x186db7,_0x1cd66e){var _0xadadb0=_0x10d931?function(){if(_0x1cd66e){var _0x55ef53=_0x1cd66e['apply'](_0x186db7,arguments);return _0x1cd66e=null,_0x55ef53;}}:function(){};return _0x10d931=![],_0xadadb0;};}()),a1_0x5446e3=a1_0x53a727(this,function(){var _0x1b2074=a1_0x2f95;return a1_0x5446e3[_0x1b2074(0xa0)]()[_0x1b2074(0xaf)](_0x1b2074(0xab))['toString']()[_0x1b2074(0x9a)](a1_0x5446e3)['search'](_0x1b2074(0xab));});function a1_0x2f95(_0x882c1,_0x448826){var _0x514708=a1_0x5bf2();return a1_0x2f95=function(_0x5446e3,_0x53a727){_0x5446e3=_0x5446e3-0x98;var _0x5bf2cc=_0x514708[_0x5446e3];return _0x5bf2cc;},a1_0x2f95(_0x882c1,_0x448826);}a1_0x5446e3();'use strict';var __decorate=this&&this[a1_0x1cd709(0xa6)]||function(_0x2c946f,_0x178e0e,_0x45c069,_0x1a04e0){var _0x423359=a1_0x1cd709,_0x140c47=arguments[_0x423359(0xad)],_0x47d95d=_0x140c47<0x3?_0x178e0e:_0x1a04e0===null?_0x1a04e0=Object[_0x423359(0x9c)](_0x178e0e,_0x45c069):_0x1a04e0,_0x51d22f;if(typeof Reflect===_0x423359(0x9d)&&typeof Reflect['decorate']==='function')_0x47d95d=Reflect['decorate'](_0x2c946f,_0x178e0e,_0x45c069,_0x1a04e0);else{for(var _0x4acfd4=_0x2c946f[_0x423359(0xad)]-0x1;_0x4acfd4>=0x0;_0x4acfd4--)if(_0x51d22f=_0x2c946f[_0x4acfd4])_0x47d95d=(_0x140c47<0x3?_0x51d22f(_0x47d95d):_0x140c47>0x3?_0x51d22f(_0x178e0e,_0x45c069,_0x47d95d):_0x51d22f(_0x178e0e,_0x45c069))||_0x47d95d;}return _0x140c47>0x3&&_0x47d95d&&Object['defineProperty'](_0x178e0e,_0x45c069,_0x47d95d),_0x47d95d;};Object['defineProperty'](exports,a1_0x1cd709(0x9e),{'value':!![]}),exports[a1_0x1cd709(0xa4)]=void 0x0;const core_1=require(a1_0x1cd709(0xaa)),ConfigDefault=require(a1_0x1cd709(0xa1));function a1_0x5bf2(){var _0x28eec2=['420039SUdZJa','toString','./config/config.default','2118347TcEpPb','Configuration','CustomConfiguration','8UPLNTC','__decorate','2374750kieikD','anncic-api:cache','6ejSoFh','@midwayjs/core','(((.+)+)+)+$','35385HXkdYd','length','34dOjQtB','search','210927bDbIyr','665764ndtoUy','constructor','1393515FxzPin','getOwnPropertyDescriptor','object','__esModule'];a1_0x5bf2=function(){return _0x28eec2;};return a1_0x5bf2();}let CustomConfiguration=class CustomConfiguration{};exports[a1_0x1cd709(0xa4)]=CustomConfiguration,exports[a1_0x1cd709(0xa4)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x1cd709(0xa3)])({'conflictCheck':![],'namespace':a1_0x1cd709(0xa8),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
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 +1 @@
1
- const a2_0x1bc7e7=a2_0x281c;function a2_0x29d6(){const _0x1e4f0c=['__esModule','383MlHQJR','use','get','constructor','4554qWFmKi','search','3651110piYKNr','188523fqhAEq','REQUEST_OBJ_CTX_KEY','Method::Decorator','../service/CacheService','crypto-js','MD5','52hjsrCM','1123507QmFHhY','apply','CacheService','defineProperty','5640054QfedCA','334ORuruZ','getAsync','20710jZNQtn','toString','2181728tdNbQK','stringify','(((.+)+)+)+$','value','Cache','@midwayjs/core','getApplicationContext','set'];a2_0x29d6=function(){return _0x1e4f0c;};return a2_0x29d6();}(function(_0x4fba08,_0x22c9b7){const _0x4587e1=a2_0x281c,_0x127238=_0x4fba08();while(!![]){try{const _0xcf2829=parseInt(_0x4587e1(0x119))/0x1*(parseInt(_0x4587e1(0x10c))/0x2)+-parseInt(_0x4587e1(0x120))/0x3*(parseInt(_0x4587e1(0x126))/0x4)+parseInt(_0x4587e1(0x11f))/0x5+-parseInt(_0x4587e1(0x10b))/0x6+parseInt(_0x4587e1(0x107))/0x7+parseInt(_0x4587e1(0x110))/0x8+parseInt(_0x4587e1(0x11d))/0x9*(parseInt(_0x4587e1(0x10e))/0xa);if(_0xcf2829===_0x22c9b7)break;else _0x127238['push'](_0x127238['shift']());}catch(_0x360942){_0x127238['push'](_0x127238['shift']());}}}(a2_0x29d6,0x7e8f0));function a2_0x281c(_0x22e890,_0x1f8400){const _0x13439d=a2_0x29d6();return a2_0x281c=function(_0x569242,_0x378916){_0x569242=_0x569242-0x107;let _0x29d6dc=_0x13439d[_0x569242];return _0x29d6dc;},a2_0x281c(_0x22e890,_0x1f8400);}const a2_0x378916=(function(){let _0x4b03ba=!![];return function(_0x3f29ab,_0x15e345){const _0x1f20e2=_0x4b03ba?function(){if(_0x15e345){const _0x10aebf=_0x15e345['apply'](_0x3f29ab,arguments);return _0x15e345=null,_0x10aebf;}}:function(){};return _0x4b03ba=![],_0x1f20e2;};}()),a2_0x569242=a2_0x378916(this,function(){const _0x2b70bc=a2_0x281c;return a2_0x569242[_0x2b70bc(0x10f)]()[_0x2b70bc(0x11e)](_0x2b70bc(0x112))[_0x2b70bc(0x10f)]()[_0x2b70bc(0x11c)](a2_0x569242)['search'](_0x2b70bc(0x112));});a2_0x569242();'use strict';Object[a2_0x1bc7e7(0x10a)](exports,a2_0x1bc7e7(0x118),{'value':!![]}),exports[a2_0x1bc7e7(0x114)]=Cache;const crypto_js_1=require(a2_0x1bc7e7(0x124)),CacheService_1=require(a2_0x1bc7e7(0x123)),core_1=require(a2_0x1bc7e7(0x115));function json_encode(_0x56eb66){const _0x82df60=a2_0x1bc7e7;try{return JSON[_0x82df60(0x111)](_0x56eb66);}catch(_0x390eea){return undefined;}}function Cache(_0x28f5c3,_0x57945e){return(_0x83737e,_0x13361a,_0x1ccabb)=>{const _0xa21251=a2_0x281c,_0x3e1072=_0x1ccabb[_0xa21251(0x113)];return _0x1ccabb['value']=async function(..._0x1c7533){const _0x5c7c83=_0xa21251;_0x28f5c3=(_0x28f5c3?''+_0x28f5c3:''+(_0x13361a||''))+'.'+(0x0,crypto_js_1[_0x5c7c83(0x125)])(json_encode(_0x1c7533))[_0x5c7c83(0x10f)]();let _0xa1074d=await this[core_1[_0x5c7c83(0x121)]]['app'][_0x5c7c83(0x116)]()[_0x5c7c83(0x10d)](CacheService_1[_0x5c7c83(0x109)]),_0xdc6201=await _0xa1074d[_0x5c7c83(0x11a)](_0x5c7c83(0x122))[_0x5c7c83(0x11b)](_0x28f5c3);if(_0xdc6201)return JSON['parse'](_0xdc6201);else _0xdc6201=await _0x3e1072[_0x5c7c83(0x108)](this,[..._0x1c7533]),await _0xa1074d['use']('Method::Decorator')[_0x5c7c83(0x117)](_0x28f5c3,JSON[_0x5c7c83(0x111)](_0xdc6201),_0x57945e);return _0xdc6201;},_0x1ccabb;};}
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;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x42fb6c=a3_0x21d5;(function(_0x13a8aa,_0x322781){var _0x1d32f5=a3_0x21d5,_0x1ec5b4=_0x13a8aa();while(!![]){try{var _0x4674f5=parseInt(_0x1d32f5(0x10a))/0x1+-parseInt(_0x1d32f5(0x115))/0x2+parseInt(_0x1d32f5(0x112))/0x3+-parseInt(_0x1d32f5(0x114))/0x4*(parseInt(_0x1d32f5(0x116))/0x5)+-parseInt(_0x1d32f5(0x10e))/0x6+-parseInt(_0x1d32f5(0x119))/0x7+parseInt(_0x1d32f5(0x118))/0x8;if(_0x4674f5===_0x322781)break;else _0x1ec5b4['push'](_0x1ec5b4['shift']());}catch(_0x365c44){_0x1ec5b4['push'](_0x1ec5b4['shift']());}}}(a3_0x5d79,0xe85f8));var a3_0x5a8732=(function(){var _0x5d731f=!![];return function(_0x2893ec,_0x5047c4){var _0x546f9b=_0x5d731f?function(){var _0x39c6f9=a3_0x21d5;if(_0x5047c4){var _0x1f4fd3=_0x5047c4[_0x39c6f9(0x11a)](_0x2893ec,arguments);return _0x5047c4=null,_0x1f4fd3;}}:function(){};return _0x5d731f=![],_0x546f9b;};}()),a3_0x16133e=a3_0x5a8732(this,function(){var _0x1b21eb=a3_0x21d5;return a3_0x16133e[_0x1b21eb(0x11c)]()['search'](_0x1b21eb(0x10d))['toString']()[_0x1b21eb(0x10c)](a3_0x16133e)[_0x1b21eb(0x110)](_0x1b21eb(0x10d));});a3_0x16133e();'use strict';Object[a3_0x42fb6c(0x111)](exports,'__esModule',{'value':!![]}),exports[a3_0x42fb6c(0x113)]=exports[a3_0x42fb6c(0x10f)]=exports['Configuration']=void 0x0;var configuration_1=require('./configuration');function a3_0x21d5(_0x175b57,_0x920617){var _0x49c375=a3_0x5d79();return a3_0x21d5=function(_0x16133e,_0x5a8732){_0x16133e=_0x16133e-0x10a;var _0x5d7921=_0x49c375[_0x16133e];return _0x5d7921;},a3_0x21d5(_0x175b57,_0x920617);}Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x207f56=a3_0x42fb6c;return configuration_1[_0x207f56(0x117)];}});var Cache_1=require(a3_0x42fb6c(0x10b));Object[a3_0x42fb6c(0x111)](exports,a3_0x42fb6c(0x10f),{'enumerable':!![],'get':function(){var _0x28f338=a3_0x42fb6c;return Cache_1[_0x28f338(0x10f)];}});var CacheService_1=require(a3_0x42fb6c(0x11b));Object[a3_0x42fb6c(0x111)](exports,a3_0x42fb6c(0x113),{'enumerable':!![],'get':function(){var _0x4696e1=a3_0x42fb6c;return CacheService_1[_0x4696e1(0x113)];}});function a3_0x5d79(){var _0x53e7fc=['22945672wcPoTm','4834410xaGCja','apply','./service/CacheService','toString','500888cOQLqK','./decorator/Cache','constructor','(((.+)+)+)+$','5278680QcCrMl','Cache','search','defineProperty','464196IAaDAn','CacheService','12GEhsMO','600330lUbGyX','1169090gJVyiy','CustomConfiguration'];a3_0x5d79=function(){return _0x53e7fc;};return a3_0x5d79();}
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 +1 @@
1
- var a4_0x55409d=a4_0x2868;(function(_0x10b180,_0x26907){var _0xb8c4b4=a4_0x2868,_0x23d431=_0x10b180();while(!![]){try{var _0x1e95ae=-parseInt(_0xb8c4b4(0x172))/0x1*(-parseInt(_0xb8c4b4(0x177))/0x2)+parseInt(_0xb8c4b4(0x18f))/0x3+-parseInt(_0xb8c4b4(0x187))/0x4*(parseInt(_0xb8c4b4(0x18a))/0x5)+parseInt(_0xb8c4b4(0x17f))/0x6+-parseInt(_0xb8c4b4(0x1a6))/0x7*(-parseInt(_0xb8c4b4(0x181))/0x8)+parseInt(_0xb8c4b4(0x18e))/0x9+-parseInt(_0xb8c4b4(0x179))/0xa*(parseInt(_0xb8c4b4(0x17e))/0xb);if(_0x1e95ae===_0x26907)break;else _0x23d431['push'](_0x23d431['shift']());}catch(_0xccd690){_0x23d431['push'](_0x23d431['shift']());}}}(a4_0x2a6d,0x83116));var a4_0x5dd903=(function(){var _0x54a633=!![];return function(_0x5b98af,_0x5338bf){var _0x540698=_0x54a633?function(){var _0x16d9bc=a4_0x2868;if(_0x5338bf){var _0x2088b6=_0x5338bf[_0x16d9bc(0x17c)](_0x5b98af,arguments);return _0x5338bf=null,_0x2088b6;}}:function(){};return _0x54a633=![],_0x540698;};}()),a4_0x4fb3a2=a4_0x5dd903(this,function(){var _0x5bcb4a=a4_0x2868;return a4_0x4fb3a2[_0x5bcb4a(0x19b)]()[_0x5bcb4a(0x17d)](_0x5bcb4a(0x188))['toString']()['constructor'](a4_0x4fb3a2)['search'](_0x5bcb4a(0x188));});a4_0x4fb3a2();'use strict';var __decorate=this&&this[a4_0x55409d(0x173)]||function(_0x42bd7a,_0x58924a,_0x60f5af,_0x338bfe){var _0x12c46e=a4_0x55409d,_0x221a96=arguments[_0x12c46e(0x180)],_0x3b7a44=_0x221a96<0x3?_0x58924a:_0x338bfe===null?_0x338bfe=Object[_0x12c46e(0x184)](_0x58924a,_0x60f5af):_0x338bfe,_0x43323a;if(typeof Reflect==='object'&&typeof Reflect[_0x12c46e(0x195)]===_0x12c46e(0x1a0))_0x3b7a44=Reflect[_0x12c46e(0x195)](_0x42bd7a,_0x58924a,_0x60f5af,_0x338bfe);else{for(var _0x66814e=_0x42bd7a['length']-0x1;_0x66814e>=0x0;_0x66814e--)if(_0x43323a=_0x42bd7a[_0x66814e])_0x3b7a44=(_0x221a96<0x3?_0x43323a(_0x3b7a44):_0x221a96>0x3?_0x43323a(_0x58924a,_0x60f5af,_0x3b7a44):_0x43323a(_0x58924a,_0x60f5af))||_0x3b7a44;}return _0x221a96>0x3&&_0x3b7a44&&Object[_0x12c46e(0x170)](_0x58924a,_0x60f5af,_0x3b7a44),_0x3b7a44;},__metadata=this&&this[a4_0x55409d(0x185)]||function(_0x4aabbd,_0x97e9b8){var _0x2c9007=a4_0x55409d;if(typeof Reflect===_0x2c9007(0x199)&&typeof Reflect['metadata']===_0x2c9007(0x1a0))return Reflect[_0x2c9007(0x16f)](_0x4aabbd,_0x97e9b8);};Object['defineProperty'](exports,a4_0x55409d(0x196),{'value':!![]}),exports[a4_0x55409d(0x198)]=exports[a4_0x55409d(0x197)]=void 0x0,exports[a4_0x55409d(0x191)]=json_encode,exports['json_decode']=json_decode;const cacheManager=require('cache-manager'),core_1=require('@midwayjs/core');let CacheService=class CacheService{constructor(){var _0x3aeb8a=a4_0x55409d;this[_0x3aeb8a(0x1a5)]=undefined,this[_0x3aeb8a(0x1a9)]=new Map();}[a4_0x55409d(0x193)](_0x346466){var _0x3325e3=a4_0x55409d,_0x467248,_0x2885c4;if(!this['cache']){const _0x1f6e4a=((_0x467248=this['config']['stores'])===null||_0x467248===void 0x0?void 0x0:_0x467248[(_0x2885c4=this[_0x3325e3(0x17b)])===null||_0x2885c4===void 0x0?void 0x0:_0x2885c4['default']])||this[_0x3325e3(0x17b)]['stores'][_0x3325e3(0x176)];this['cache']=cacheManager['caching']({..._0x1f6e4a[_0x3325e3(0x194)],'store':_0x1f6e4a[_0x3325e3(0x16e)]});}return!this['clients'][_0x3325e3(0x19c)](_0x346466)&&this[_0x3325e3(0x1a9)][_0x3325e3(0x18d)](_0x346466,new Cache(_0x346466,this[_0x3325e3(0x1a5)])),this[_0x3325e3(0x1a9)]['get'](_0x346466);}async[a4_0x55409d(0x1a2)](){var _0x380555=a4_0x55409d;return await this[_0x380555(0x1a5)]['reset']();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x55409d(0x16d)])(a4_0x55409d(0x1a5)),__metadata(a4_0x55409d(0x19e),Object)],CacheService[a4_0x55409d(0x182)],'config',void 0x0),exports[a4_0x55409d(0x197)]=CacheService=__decorate([(0x0,core_1[a4_0x55409d(0x18b)])(),(0x0,core_1[a4_0x55409d(0x1a4)])(core_1['ScopeEnum'][a4_0x55409d(0x19a)])],CacheService);class Cache{constructor(_0x88355,_0x5ec1fc){this['cache']=_0x5ec1fc,this['prefix']=_0x88355;}async[a4_0x55409d(0x1a8)](_0x544e1f){var _0x4fd27d=a4_0x55409d;return await this['cache'][_0x4fd27d(0x1a8)](this['prefix']+':'+_0x544e1f);}async['set'](_0x3bbdce,_0x152e04,_0x41ca36){var _0x46f9c0=a4_0x55409d,_0x181ea3,_0x14f485;return((_0x14f485=(_0x181ea3=this[_0x46f9c0(0x1a5)])===null||_0x181ea3===void 0x0?void 0x0:_0x181ea3['store'])===null||_0x14f485===void 0x0?void 0x0:_0x14f485[_0x46f9c0(0x183)])=='redis'?await this[_0x46f9c0(0x1a5)][_0x46f9c0(0x18d)](this[_0x46f9c0(0x1a3)]+':'+_0x3bbdce,_0x152e04,{'ttl':_0x41ca36}):await this[_0x46f9c0(0x1a5)]['set'](this[_0x46f9c0(0x1a3)]+':'+_0x3bbdce,_0x152e04,{'ttl':_0x41ca36});}async[a4_0x55409d(0x19f)](_0x4c442e,_0x503a5b,_0xca782f){return new Promise((_0x2a637c,_0x510049)=>{var _0x1f1e32=a4_0x2868;this[_0x1f1e32(0x1a5)][_0x1f1e32(0x19f)](this[_0x1f1e32(0x1a3)]+':'+_0x4c442e,async(_0x136e34,_0x4b0d65)=>{var _0x330cf2=_0x1f1e32;_0x136e34?_0x510049(_0x136e34):((_0x4b0d65===undefined||_0x4b0d65===null)&&(typeof _0x503a5b=='function'?(_0x4b0d65=await _0x503a5b()['catch'](_0x4956fa=>_0x510049(_0x4956fa)),typeof _0x4b0d65!=_0x330cf2(0x18c)&&await this['set'](_0x4c442e,_0x4b0d65,_0xca782f)):_0x4b0d65=_0x503a5b),_0x2a637c(_0x4b0d65));});});}async[a4_0x55409d(0x178)](_0x11bc95,_0x27b9a0){var _0x12340e=a4_0x55409d;return await this[_0x12340e(0x1a8)](_0x11bc95+'#'+_0x27b9a0);}async[a4_0x55409d(0x190)](_0x520dfe,_0x4522ba,_0x306b21,_0x44249b){var _0x208ec8=a4_0x55409d;return await this[_0x208ec8(0x18d)](_0x520dfe+'#'+_0x4522ba,_0x306b21,_0x44249b);}async[a4_0x55409d(0x171)](_0x313edb,_0x305521,_0x40c049,_0x473310){return await this['get'](_0x313edb+'#'+_0x305521,_0x40c049,_0x473310);}[a4_0x55409d(0x17a)](_0x14e7b8){const _0x2de135={'all':async()=>{var _0x267995=a4_0x2868,_0x5d01fd,_0x20b45b,_0x315521,_0x354c07,_0x3a542e;return((_0x20b45b=(_0x5d01fd=this['cache'])===null||_0x5d01fd===void 0x0?void 0x0:_0x5d01fd['store'])===null||_0x20b45b===void 0x0?void 0x0:_0x20b45b[_0x267995(0x183)])==_0x267995(0x1a1)?(await((_0x3a542e=(_0x354c07=(_0x315521=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x315521===void 0x0?void 0x0:_0x315521[_0x267995(0x16e)])===null||_0x354c07===void 0x0?void 0x0:_0x354c07['getClient']())===null||_0x3a542e===void 0x0?void 0x0:_0x3a542e['lrange'](this[_0x267995(0x1a3)]+':'+_0x14e7b8,0x0,-0x1))||[])['map'](_0x4ef91c=>json_decode(_0x4ef91c)):await this['get'](_0x14e7b8,[]);},'pop':async()=>{var _0x3e1393=a4_0x2868,_0x47fc45,_0x29ac83,_0x438b49,_0x30dadf,_0x2c2ea3;if(((_0x29ac83=(_0x47fc45=this[_0x3e1393(0x1a5)])===null||_0x47fc45===void 0x0?void 0x0:_0x47fc45['store'])===null||_0x29ac83===void 0x0?void 0x0:_0x29ac83[_0x3e1393(0x183)])==_0x3e1393(0x1a1))return json_decode(await((_0x2c2ea3=(_0x30dadf=(_0x438b49=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x438b49===void 0x0?void 0x0:_0x438b49[_0x3e1393(0x16e)])===null||_0x30dadf===void 0x0?void 0x0:_0x30dadf[_0x3e1393(0x186)]())===null||_0x2c2ea3===void 0x0?void 0x0:_0x2c2ea3[_0x3e1393(0x1a7)](this[_0x3e1393(0x1a3)]+':'+_0x14e7b8)));else{let _0x468916=await this[_0x3e1393(0x19f)](_0x14e7b8,[]),_0x1592b3=_0x468916[_0x3e1393(0x189)]();return await this[_0x3e1393(0x18d)](_0x14e7b8,_0x468916),_0x1592b3;}},'push':async(..._0x41b000)=>{var _0x39a258=a4_0x2868,_0x43d4d2,_0x42f655,_0x2a1893,_0x1a4e4e,_0x55f014;const _0x34fb49=_0x41b000[_0x39a258(0x192)](_0x5acc12=>_0x5acc12!==undefined&&_0x5acc12!==null);if(((_0x42f655=(_0x43d4d2=this[_0x39a258(0x1a5)])===null||_0x43d4d2===void 0x0?void 0x0:_0x43d4d2[_0x39a258(0x16e)])===null||_0x42f655===void 0x0?void 0x0:_0x42f655[_0x39a258(0x183)])==_0x39a258(0x1a1))return await((_0x55f014=(_0x1a4e4e=(_0x2a1893=this===null||this===void 0x0?void 0x0:this[_0x39a258(0x1a5)])===null||_0x2a1893===void 0x0?void 0x0:_0x2a1893['store'])===null||_0x1a4e4e===void 0x0?void 0x0:_0x1a4e4e[_0x39a258(0x186)]())===null||_0x55f014===void 0x0?void 0x0:_0x55f014[_0x39a258(0x175)](this[_0x39a258(0x1a3)]+':'+_0x14e7b8,..._0x34fb49[_0x39a258(0x174)](_0x512f83=>json_encode(_0x512f83)))),_0x34fb49;else{let _0x314b18=await this[_0x39a258(0x19f)](_0x14e7b8,[]);return _0x314b18['push'](..._0x34fb49),await this[_0x39a258(0x18d)](_0x14e7b8,_0x314b18),_0x314b18;}}};return _0x2de135;}}exports[a4_0x55409d(0x198)]=Cache;function json_encode(_0x9ef381){var _0x293b4b=a4_0x55409d;try{return JSON[_0x293b4b(0x19d)](_0x9ef381);}catch(_0x4a78e8){return undefined;}}function a4_0x2a6d(){var _0x1c45b8=['redis','reset','prefix','Scope','cache','3297wzAcRR','lpop','del','clients','Config','store','metadata','defineProperty','hget','12807rdPeKB','__decorate','map','rpush','file','64uGwiRv','hdel','50yHbDMR','list','config','apply','search','1194556IzcUvH','2228184Kkdyzb','length','4336WJdbeM','prototype','name','getOwnPropertyDescriptor','__metadata','getClient','329876GZBcyH','(((.+)+)+)+$','shift','45dgfjuT','Provide','undefined','set','1755567CHygyu','1771566cIOVUR','hset','json_encode','filter','use','options','decorate','__esModule','CacheService','Cache','object','Singleton','toString','has','stringify','design:type','get','function'];a4_0x2a6d=function(){return _0x1c45b8;};return a4_0x2a6d();}function a4_0x2868(_0x4bf248,_0x2e017f){var _0x4e4999=a4_0x2a6d();return a4_0x2868=function(_0x4fb3a2,_0x5dd903){_0x4fb3a2=_0x4fb3a2-0x16d;var _0x2a6d0d=_0x4e4999[_0x4fb3a2];return _0x2a6d0d;},a4_0x2868(_0x4bf248,_0x2e017f);}function json_decode(_0x51ad7c){try{return JSON['parse'](_0x51ad7c);}catch(_0x395b95){return undefined;}}
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;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.81",
3
+ "version": "3.4.83",
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": "87b04383d9f9a6f68f971d8180a8619dbfe01e99"
26
+ "gitHead": "cc719751e8cc837de31b52bbf3de8a3cbb4d3410"
27
27
  }