@anncic-api/cache 3.4.70 → 3.4.72

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_0x1b2cba=a0_0x4b64;(function(_0x50ce31,_0xc9c943){const _0x2b8564=a0_0x4b64,_0x437c2c=_0x50ce31();while(!![]){try{const _0x3d387c=-parseInt(_0x2b8564(0x7e))/0x1*(-parseInt(_0x2b8564(0x7c))/0x2)+-parseInt(_0x2b8564(0x8a))/0x3+-parseInt(_0x2b8564(0x87))/0x4*(parseInt(_0x2b8564(0x76))/0x5)+parseInt(_0x2b8564(0x89))/0x6+-parseInt(_0x2b8564(0x86))/0x7+parseInt(_0x2b8564(0x7f))/0x8+-parseInt(_0x2b8564(0x79))/0x9;if(_0x3d387c===_0xc9c943)break;else _0x437c2c['push'](_0x437c2c['shift']());}catch(_0x32148f){_0x437c2c['push'](_0x437c2c['shift']());}}}(a0_0x1abe,0x33843));const a0_0x4ff6da=(function(){let _0xfdc523=!![];return function(_0xfbc46d,_0x578e00){const _0x26748f=_0xfdc523?function(){const _0x9b15a8=a0_0x4b64;if(_0x578e00){const _0x428185=_0x578e00[_0x9b15a8(0x83)](_0xfbc46d,arguments);return _0x578e00=null,_0x428185;}}:function(){};return _0xfdc523=![],_0x26748f;};}()),a0_0x2c3c4b=a0_0x4ff6da(this,function(){const _0x5ae1a2=a0_0x4b64;return a0_0x2c3c4b[_0x5ae1a2(0x75)]()[_0x5ae1a2(0x85)](_0x5ae1a2(0x80))[_0x5ae1a2(0x75)]()[_0x5ae1a2(0x7b)](a0_0x2c3c4b)['search']('(((.+)+)+)+$');});a0_0x2c3c4b();function a0_0x1abe(){const _0x3c29e1=['name','127.0.0.1','117171dJdNaC','default','constructor','42950IYcVoW','cache-manager-fs-hash','4cnpALG','3060320IwVJLo','(((.+)+)+)+$','__esModule','env','apply','cache-manager-ioredis','search','564382DXINNE','69492GQutva','memory','2525394KVHYbc','1180740Qyjmsx','toString','55wwzWRU'];a0_0x1abe=function(){return _0x3c29e1;};return a0_0x1abe();}'use strict';function a0_0x4b64(_0x569a7a,_0x153293){const _0x35d3bc=a0_0x1abe();return a0_0x4b64=function(_0x2c3c4b,_0x4ff6da){_0x2c3c4b=_0x2c3c4b-0x75;let _0x1abe3c=_0x35d3bc[_0x2c3c4b];return _0x1abe3c;},a0_0x4b64(_0x569a7a,_0x153293);}Object['defineProperty'](exports,a0_0x1b2cba(0x81),{'value':!![]});const fsStore=require(a0_0x1b2cba(0x7d)),redisStore=require(a0_0x1b2cba(0x84));exports[a0_0x1b2cba(0x7a)]=_0x3b9061=>{const _0x50ec8c=a0_0x1b2cba;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x3b9061['appDir']+'/runtime/.cache'+((_0x3b9061===null||_0x3b9061===void 0x0?void 0x0:_0x3b9061[_0x50ec8c(0x82)])?'-'+_0x3b9061['env']:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x50ec8c(0x78),'password':'','keyPrefix':_0x3b9061[_0x50ec8c(0x77)]+':'+((_0x3b9061===null||_0x3b9061===void 0x0?void 0x0:_0x3b9061[_0x50ec8c(0x82)])?_0x3b9061[_0x50ec8c(0x82)]+':':'')}},'memory':{'store':_0x50ec8c(0x88),'options':{'max':0x64}}}}};};
1
+ const a0_0x53f354=a0_0x22ac;(function(_0x435b49,_0x58694a){const _0x3cf757=a0_0x22ac,_0x47b3fe=_0x435b49();while(!![]){try{const _0x1dcd3d=parseInt(_0x3cf757(0x1b6))/0x1*(parseInt(_0x3cf757(0x1cb))/0x2)+-parseInt(_0x3cf757(0x1ba))/0x3+-parseInt(_0x3cf757(0x1c4))/0x4*(-parseInt(_0x3cf757(0x1bd))/0x5)+parseInt(_0x3cf757(0x1c1))/0x6*(parseInt(_0x3cf757(0x1c8))/0x7)+-parseInt(_0x3cf757(0x1bb))/0x8*(-parseInt(_0x3cf757(0x1c5))/0x9)+-parseInt(_0x3cf757(0x1bc))/0xa+-parseInt(_0x3cf757(0x1ca))/0xb;if(_0x1dcd3d===_0x58694a)break;else _0x47b3fe['push'](_0x47b3fe['shift']());}catch(_0x2ab1de){_0x47b3fe['push'](_0x47b3fe['shift']());}}}(a0_0x55cb,0xaeeb1));function a0_0x22ac(_0x1b2a14,_0x1dae62){const _0x3eb00c=a0_0x55cb();return a0_0x22ac=function(_0x430ab0,_0x13a148){_0x430ab0=_0x430ab0-0x1b6;let _0x55cb46=_0x3eb00c[_0x430ab0];return _0x55cb46;},a0_0x22ac(_0x1b2a14,_0x1dae62);}const a0_0x13a148=(function(){let _0x8070da=!![];return function(_0x523b72,_0x4325bb){const _0x4e648d=_0x8070da?function(){const _0x213b75=a0_0x22ac;if(_0x4325bb){const _0x2e5be2=_0x4325bb[_0x213b75(0x1b8)](_0x523b72,arguments);return _0x4325bb=null,_0x2e5be2;}}:function(){};return _0x8070da=![],_0x4e648d;};}()),a0_0x430ab0=a0_0x13a148(this,function(){const _0x1dcee5=a0_0x22ac;return a0_0x430ab0[_0x1dcee5(0x1cc)]()[_0x1dcee5(0x1b9)](_0x1dcee5(0x1c9))[_0x1dcee5(0x1cc)]()[_0x1dcee5(0x1be)](a0_0x430ab0)[_0x1dcee5(0x1b9)](_0x1dcee5(0x1c9));});a0_0x430ab0();'use strict';Object[a0_0x53f354(0x1c0)](exports,a0_0x53f354(0x1cd),{'value':!![]});function a0_0x55cb(){const _0x527658=['6283140rKfwOJ','1635850sMfjhE','constructor','127.0.0.1','defineProperty','6YFWGhF','cache-manager-fs-hash','appDir','8FEAzhE','54soZNJe','name','file','613018FBOKyI','(((.+)+)+)+$','3821708tgKNxG','1449490ovkYtx','toString','__esModule','1xUBafl','env','apply','search','1736688CqNwzz','1072592FxyRGL'];a0_0x55cb=function(){return _0x527658;};return a0_0x55cb();}const fsStore=require(a0_0x53f354(0x1c2)),redisStore=require('cache-manager-ioredis');exports['default']=_0xde5df1=>{const _0x11bb62=a0_0x53f354;return{'cache':{'default':_0x11bb62(0x1c7),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0xde5df1[_0x11bb62(0x1c3)]+'/runtime/.cache'+((_0xde5df1===null||_0xde5df1===void 0x0?void 0x0:_0xde5df1[_0x11bb62(0x1b7)])?'-'+_0xde5df1[_0x11bb62(0x1b7)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x11bb62(0x1bf),'password':'','keyPrefix':_0xde5df1[_0x11bb62(0x1c6)]+':'+((_0xde5df1===null||_0xde5df1===void 0x0?void 0x0:_0xde5df1[_0x11bb62(0x1b7)])?_0xde5df1['env']+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- var a1_0x3efc27=a1_0x3341;(function(_0x4578e1,_0x407bde){var _0x5a78b4=a1_0x3341,_0x28542c=_0x4578e1();while(!![]){try{var _0x42ce16=-parseInt(_0x5a78b4(0x14c))/0x1*(-parseInt(_0x5a78b4(0x13e))/0x2)+-parseInt(_0x5a78b4(0x14b))/0x3*(parseInt(_0x5a78b4(0x139))/0x4)+parseInt(_0x5a78b4(0x141))/0x5*(-parseInt(_0x5a78b4(0x14f))/0x6)+parseInt(_0x5a78b4(0x145))/0x7*(-parseInt(_0x5a78b4(0x152))/0x8)+parseInt(_0x5a78b4(0x153))/0x9*(parseInt(_0x5a78b4(0x148))/0xa)+parseInt(_0x5a78b4(0x144))/0xb+parseInt(_0x5a78b4(0x147))/0xc;if(_0x42ce16===_0x407bde)break;else _0x28542c['push'](_0x28542c['shift']());}catch(_0x43e071){_0x28542c['push'](_0x28542c['shift']());}}}(a1_0x7643,0xe0080));var a1_0x5351a9=(function(){var _0x2f9d37=!![];return function(_0x378874,_0x25932e){var _0x5742f0=_0x2f9d37?function(){var _0x4aefbc=a1_0x3341;if(_0x25932e){var _0x17c4cc=_0x25932e[_0x4aefbc(0x151)](_0x378874,arguments);return _0x25932e=null,_0x17c4cc;}}:function(){};return _0x2f9d37=![],_0x5742f0;};}()),a1_0x375119=a1_0x5351a9(this,function(){var _0x3794a2=a1_0x3341;return a1_0x375119[_0x3794a2(0x149)]()[_0x3794a2(0x13f)](_0x3794a2(0x143))[_0x3794a2(0x149)]()[_0x3794a2(0x13d)](a1_0x375119)['search'](_0x3794a2(0x143));});a1_0x375119();'use strict';var __decorate=this&&this[a1_0x3efc27(0x14a)]||function(_0x31bbbc,_0x236870,_0x2cc48a,_0x1cf292){var _0x1eb357=a1_0x3efc27,_0x327949=arguments[_0x1eb357(0x140)],_0x585882=_0x327949<0x3?_0x236870:_0x1cf292===null?_0x1cf292=Object[_0x1eb357(0x150)](_0x236870,_0x2cc48a):_0x1cf292,_0x272e8b;if(typeof Reflect===_0x1eb357(0x13a)&&typeof Reflect[_0x1eb357(0x13c)]===_0x1eb357(0x13b))_0x585882=Reflect[_0x1eb357(0x13c)](_0x31bbbc,_0x236870,_0x2cc48a,_0x1cf292);else{for(var _0x44db0f=_0x31bbbc[_0x1eb357(0x140)]-0x1;_0x44db0f>=0x0;_0x44db0f--)if(_0x272e8b=_0x31bbbc[_0x44db0f])_0x585882=(_0x327949<0x3?_0x272e8b(_0x585882):_0x327949>0x3?_0x272e8b(_0x236870,_0x2cc48a,_0x585882):_0x272e8b(_0x236870,_0x2cc48a))||_0x585882;}return _0x327949>0x3&&_0x585882&&Object[_0x1eb357(0x14d)](_0x236870,_0x2cc48a,_0x585882),_0x585882;};Object[a1_0x3efc27(0x14d)](exports,a1_0x3efc27(0x154),{'value':!![]}),exports[a1_0x3efc27(0x142)]=void 0x0;const core_1=require(a1_0x3efc27(0x155)),ConfigDefault=require(a1_0x3efc27(0x14e));function a1_0x7643(){var _0x297b36=['18980cGCCUT','toString','__decorate','500289lyUcpU','402962sJyHYW','defineProperty','./config/config.default','1068fCLqqc','getOwnPropertyDescriptor','apply','61296LxeCCD','6714OpeLaT','__esModule','@midwayjs/core','anncic-api:cache','4RORjTk','object','function','decorate','constructor','4kGtzmC','search','length','20035XsNiED','CustomConfiguration','(((.+)+)+)+$','10685400sgQzyk','1421vQPXku','Configuration','1917540yEVxCD'];a1_0x7643=function(){return _0x297b36;};return a1_0x7643();}function a1_0x3341(_0xdd5744,_0x181853){var _0x8d63d1=a1_0x7643();return a1_0x3341=function(_0x375119,_0x5351a9){_0x375119=_0x375119-0x139;var _0x764389=_0x8d63d1[_0x375119];return _0x764389;},a1_0x3341(_0xdd5744,_0x181853);}let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x3efc27(0x142)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x3efc27(0x146)])({'conflictCheck':![],'namespace':a1_0x3efc27(0x156),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x4e09aa=a1_0x29dd;(function(_0x1ec027,_0x3d30e1){var _0x41b94d=a1_0x29dd,_0x3b8ffb=_0x1ec027();while(!![]){try{var _0x9a81da=-parseInt(_0x41b94d(0xa3))/0x1*(parseInt(_0x41b94d(0x9e))/0x2)+parseInt(_0x41b94d(0xac))/0x3+-parseInt(_0x41b94d(0x9a))/0x4+-parseInt(_0x41b94d(0x9f))/0x5+-parseInt(_0x41b94d(0x9c))/0x6+-parseInt(_0x41b94d(0xa2))/0x7+parseInt(_0x41b94d(0x9d))/0x8;if(_0x9a81da===_0x3d30e1)break;else _0x3b8ffb['push'](_0x3b8ffb['shift']());}catch(_0x58ed7e){_0x3b8ffb['push'](_0x3b8ffb['shift']());}}}(a1_0x54d7,0x354c3));var a1_0x19dd59=(function(){var _0x40643e=!![];return function(_0x1061a4,_0x4c98c1){var _0x5d377f=_0x40643e?function(){var _0xeb780b=a1_0x29dd;if(_0x4c98c1){var _0x5dbd86=_0x4c98c1[_0xeb780b(0xad)](_0x1061a4,arguments);return _0x4c98c1=null,_0x5dbd86;}}:function(){};return _0x40643e=![],_0x5d377f;};}()),a1_0x377847=a1_0x19dd59(this,function(){var _0x18a568=a1_0x29dd;return a1_0x377847[_0x18a568(0x99)]()[_0x18a568(0xa7)]('(((.+)+)+)+$')[_0x18a568(0x99)]()[_0x18a568(0xa4)](a1_0x377847)[_0x18a568(0xa7)](_0x18a568(0x9b));});a1_0x377847();'use strict';var __decorate=this&&this[a1_0x4e09aa(0xb0)]||function(_0x53eb09,_0x3d3350,_0x2fd4bd,_0x20b069){var _0x1ed1e2=a1_0x4e09aa,_0x1ebb3a=arguments[_0x1ed1e2(0xaa)],_0x1a8808=_0x1ebb3a<0x3?_0x3d3350:_0x20b069===null?_0x20b069=Object['getOwnPropertyDescriptor'](_0x3d3350,_0x2fd4bd):_0x20b069,_0x4b7966;if(typeof Reflect===_0x1ed1e2(0xa5)&&typeof Reflect[_0x1ed1e2(0xa0)]==='function')_0x1a8808=Reflect[_0x1ed1e2(0xa0)](_0x53eb09,_0x3d3350,_0x2fd4bd,_0x20b069);else{for(var _0x58ddae=_0x53eb09[_0x1ed1e2(0xaa)]-0x1;_0x58ddae>=0x0;_0x58ddae--)if(_0x4b7966=_0x53eb09[_0x58ddae])_0x1a8808=(_0x1ebb3a<0x3?_0x4b7966(_0x1a8808):_0x1ebb3a>0x3?_0x4b7966(_0x3d3350,_0x2fd4bd,_0x1a8808):_0x4b7966(_0x3d3350,_0x2fd4bd))||_0x1a8808;}return _0x1ebb3a>0x3&&_0x1a8808&&Object[_0x1ed1e2(0xaf)](_0x3d3350,_0x2fd4bd,_0x1a8808),_0x1a8808;};function a1_0x54d7(){var _0x10da96=['Configuration','defineProperty','__decorate','toString','1201696tteyIZ','(((.+)+)+)+$','940836dWSDMP','8447368UKowgy','18698EjnGGz','1512505JcSCYc','decorate','anncic-api:cache','2713060bbGVyw','3igwZtB','constructor','object','CustomConfiguration','search','__esModule','@midwayjs/core','length','./config/config.default','1013232mRePbu','apply'];a1_0x54d7=function(){return _0x10da96;};return a1_0x54d7();}Object['defineProperty'](exports,a1_0x4e09aa(0xa8),{'value':!![]}),exports[a1_0x4e09aa(0xa6)]=void 0x0;const core_1=require(a1_0x4e09aa(0xa9)),ConfigDefault=require(a1_0x4e09aa(0xab));function a1_0x29dd(_0x3966f3,_0x2180e9){var _0x1c204b=a1_0x54d7();return a1_0x29dd=function(_0x377847,_0x19dd59){_0x377847=_0x377847-0x99;var _0x54d72f=_0x1c204b[_0x377847];return _0x54d72f;},a1_0x29dd(_0x3966f3,_0x2180e9);}let CustomConfiguration=class CustomConfiguration{};exports[a1_0x4e09aa(0xa6)]=CustomConfiguration,exports[a1_0x4e09aa(0xa6)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x4e09aa(0xae)])({'conflictCheck':![],'namespace':a1_0x4e09aa(0xa1),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x4c0708=a2_0x4364;(function(_0x7d4bdb,_0x4f9be8){const _0x2f7984=a2_0x4364,_0x6eccd4=_0x7d4bdb();while(!![]){try{const _0x37848c=parseInt(_0x2f7984(0xab))/0x1+parseInt(_0x2f7984(0xa9))/0x2*(parseInt(_0x2f7984(0xae))/0x3)+parseInt(_0x2f7984(0xc2))/0x4+-parseInt(_0x2f7984(0xb5))/0x5*(-parseInt(_0x2f7984(0xb1))/0x6)+parseInt(_0x2f7984(0xc0))/0x7+-parseInt(_0x2f7984(0xc6))/0x8*(-parseInt(_0x2f7984(0xad))/0x9)+parseInt(_0x2f7984(0xb0))/0xa*(-parseInt(_0x2f7984(0xc1))/0xb);if(_0x37848c===_0x4f9be8)break;else _0x6eccd4['push'](_0x6eccd4['shift']());}catch(_0x51442c){_0x6eccd4['push'](_0x6eccd4['shift']());}}}(a2_0x3ce6,0x54ac4));const a2_0x5f47c3=(function(){let _0xef4218=!![];return function(_0x145d99,_0x1da31b){const _0x7bf1e7=_0xef4218?function(){const _0xa943fc=a2_0x4364;if(_0x1da31b){const _0x4d3b81=_0x1da31b[_0xa943fc(0xac)](_0x145d99,arguments);return _0x1da31b=null,_0x4d3b81;}}:function(){};return _0xef4218=![],_0x7bf1e7;};}()),a2_0x584a54=a2_0x5f47c3(this,function(){const _0x2fbdc5=a2_0x4364;return a2_0x584a54['toString']()[_0x2fbdc5(0xc3)]('(((.+)+)+)+$')['toString']()[_0x2fbdc5(0xaf)](a2_0x584a54)[_0x2fbdc5(0xc3)](_0x2fbdc5(0xb4));});function a2_0x4364(_0x1908b8,_0x1fac5e){const _0xd69aaa=a2_0x3ce6();return a2_0x4364=function(_0x584a54,_0x5f47c3){_0x584a54=_0x584a54-0xa8;let _0x3ce616=_0xd69aaa[_0x584a54];return _0x3ce616;},a2_0x4364(_0x1908b8,_0x1fac5e);}a2_0x584a54();'use strict';function a2_0x3ce6(){const _0x29317a=['use','(((.+)+)+)+$','697265ewCTKt','CacheService','MD5','parse','getApplicationContext','@midwayjs/core','value','toString','Method::Decorator','crypto-js','getAsync','2568685cRnENc','3327093lHXuxf','842964JiUgKO','search','../service/CacheService','REQUEST_OBJ_CTX_KEY','362288wSlWtF','set','93878Wjijbi','__esModule','348404iGBtnJ','apply','9RCFXtZ','30oDgBrZ','constructor','50iOzMeS','18AuPiZa','get'];a2_0x3ce6=function(){return _0x29317a;};return a2_0x3ce6();}Object['defineProperty'](exports,a2_0x4c0708(0xaa),{'value':!![]}),exports['Cache']=Cache;const crypto_js_1=require(a2_0x4c0708(0xbe)),CacheService_1=require(a2_0x4c0708(0xc4)),core_1=require(a2_0x4c0708(0xba));function json_encode(_0x3d0200){try{return JSON['stringify'](_0x3d0200);}catch(_0x57911a){return undefined;}}function Cache(_0x2927f3,_0x1e8bc6){return(_0x36a446,_0x4493c0,_0x3a0457)=>{const _0xc95c79=a2_0x4364,_0x5f56a0=_0x3a0457[_0xc95c79(0xbb)];return _0x3a0457[_0xc95c79(0xbb)]=async function(..._0x53a670){const _0x2545d1=_0xc95c79;_0x2927f3=(_0x2927f3?''+_0x2927f3:''+(_0x4493c0||''))+'.'+(0x0,crypto_js_1[_0x2545d1(0xb7)])(json_encode(_0x53a670))[_0x2545d1(0xbc)]();let _0x57d3e4=await this[core_1[_0x2545d1(0xc5)]]['app'][_0x2545d1(0xb9)]()[_0x2545d1(0xbf)](CacheService_1[_0x2545d1(0xb6)]),_0x160b2d=await _0x57d3e4[_0x2545d1(0xb3)](_0x2545d1(0xbd))[_0x2545d1(0xb2)](_0x2927f3);if(_0x160b2d)return JSON[_0x2545d1(0xb8)](_0x160b2d);else _0x160b2d=await _0x5f56a0[_0x2545d1(0xac)](this,[..._0x53a670]),await _0x57d3e4[_0x2545d1(0xb3)]('Method::Decorator')[_0x2545d1(0xa8)](_0x2927f3,JSON['stringify'](_0x160b2d),_0x1e8bc6);return _0x160b2d;},_0x3a0457;};}
1
+ const a2_0x47687b=a2_0x2d23;function a2_0x5eca(){const _0x438224=['16102VLkpsr','690761gZEhTe','defineProperty','REQUEST_OBJ_CTX_KEY','(((.+)+)+)+$','toString','constructor','2562AJOwgz','use','stringify','apply','Method::Decorator','set','2848VHhNKF','parse','8813jeTcJY','28162970DtJdhr','Cache','../service/CacheService','__esModule','app','30978AxIeHE','MD5','get','2361510yDOpAs','CacheService','10jTHSHJ','450CpVLpR','search','1879244MDIvsg'];a2_0x5eca=function(){return _0x438224;};return a2_0x5eca();}function a2_0x2d23(_0x2a4bea,_0x5ac0e1){const _0x23d064=a2_0x5eca();return a2_0x2d23=function(_0x1083df,_0x55c6e3){_0x1083df=_0x1083df-0xea;let _0x5eca0c=_0x23d064[_0x1083df];return _0x5eca0c;},a2_0x2d23(_0x2a4bea,_0x5ac0e1);}(function(_0x2859cc,_0x65059b){const _0x59eed3=a2_0x2d23,_0x55b42a=_0x2859cc();while(!![]){try{const _0x354b70=-parseInt(_0x59eed3(0xf8))/0x1+parseInt(_0x59eed3(0xf7))/0x2*(-parseInt(_0x59eed3(0xf4))/0x3)+-parseInt(_0x59eed3(0xf6))/0x4*(parseInt(_0x59eed3(0xf3))/0x5)+-parseInt(_0x59eed3(0xfe))/0x6*(parseInt(_0x59eed3(0x106))/0x7)+parseInt(_0x59eed3(0x104))/0x8*(parseInt(_0x59eed3(0xee))/0x9)+parseInt(_0x59eed3(0xf1))/0xa+parseInt(_0x59eed3(0x107))/0xb;if(_0x354b70===_0x65059b)break;else _0x55b42a['push'](_0x55b42a['shift']());}catch(_0x405437){_0x55b42a['push'](_0x55b42a['shift']());}}}(a2_0x5eca,0x9dc03));const a2_0x55c6e3=(function(){let _0x458e07=!![];return function(_0x242fa0,_0x4cf2c6){const _0x4028fc=_0x458e07?function(){const _0x465c19=a2_0x2d23;if(_0x4cf2c6){const _0x32196b=_0x4cf2c6[_0x465c19(0x101)](_0x242fa0,arguments);return _0x4cf2c6=null,_0x32196b;}}:function(){};return _0x458e07=![],_0x4028fc;};}()),a2_0x1083df=a2_0x55c6e3(this,function(){const _0x50dbbd=a2_0x2d23;return a2_0x1083df[_0x50dbbd(0xfc)]()[_0x50dbbd(0xf5)]('(((.+)+)+)+$')[_0x50dbbd(0xfc)]()[_0x50dbbd(0xfd)](a2_0x1083df)[_0x50dbbd(0xf5)](_0x50dbbd(0xfb));});a2_0x1083df();'use strict';Object[a2_0x47687b(0xf9)](exports,a2_0x47687b(0xec),{'value':!![]}),exports[a2_0x47687b(0xea)]=Cache;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x47687b(0xeb)),core_1=require('@midwayjs/core');function json_encode(_0x46be81){try{return JSON['stringify'](_0x46be81);}catch(_0x28dfcf){return undefined;}}function Cache(_0x19bf9c,_0x2b3d33){return(_0x5ead76,_0x6d6bd6,_0x24504e)=>{const _0xab6496=_0x24504e['value'];return _0x24504e['value']=async function(..._0xb5c69a){const _0x1fd3f3=a2_0x2d23;_0x19bf9c=(_0x19bf9c?''+_0x19bf9c:''+(_0x6d6bd6||''))+'.'+(0x0,crypto_js_1[_0x1fd3f3(0xef)])(json_encode(_0xb5c69a))['toString']();let _0x464df3=await this[core_1[_0x1fd3f3(0xfa)]][_0x1fd3f3(0xed)]['getApplicationContext']()['getAsync'](CacheService_1[_0x1fd3f3(0xf2)]),_0x10a88c=await _0x464df3[_0x1fd3f3(0xff)]('Method::Decorator')[_0x1fd3f3(0xf0)](_0x19bf9c);if(_0x10a88c)return JSON[_0x1fd3f3(0x105)](_0x10a88c);else _0x10a88c=await _0xab6496[_0x1fd3f3(0x101)](this,[..._0xb5c69a]),await _0x464df3[_0x1fd3f3(0xff)](_0x1fd3f3(0x102))[_0x1fd3f3(0x103)](_0x19bf9c,JSON[_0x1fd3f3(0x100)](_0x10a88c),_0x2b3d33);return _0x10a88c;},_0x24504e;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x528cb3=a3_0x2c9a;(function(_0x102fa7,_0x48b29d){var _0x124e22=a3_0x2c9a,_0x38ddcb=_0x102fa7();while(!![]){try{var _0x1c1004=-parseInt(_0x124e22(0x17a))/0x1*(-parseInt(_0x124e22(0x17b))/0x2)+parseInt(_0x124e22(0x18c))/0x3+-parseInt(_0x124e22(0x17c))/0x4+parseInt(_0x124e22(0x184))/0x5*(parseInt(_0x124e22(0x180))/0x6)+parseInt(_0x124e22(0x182))/0x7*(parseInt(_0x124e22(0x181))/0x8)+parseInt(_0x124e22(0x17d))/0x9+-parseInt(_0x124e22(0x18e))/0xa;if(_0x1c1004===_0x48b29d)break;else _0x38ddcb['push'](_0x38ddcb['shift']());}catch(_0x4e4806){_0x38ddcb['push'](_0x38ddcb['shift']());}}}(a3_0x2ba4,0x268ec));var a3_0x66855a=(function(){var _0xec9f2b=!![];return function(_0x277c50,_0x468cd7){var _0x311bb7=_0xec9f2b?function(){var _0x2467f9=a3_0x2c9a;if(_0x468cd7){var _0x215ee2=_0x468cd7[_0x2467f9(0x189)](_0x277c50,arguments);return _0x468cd7=null,_0x215ee2;}}:function(){};return _0xec9f2b=![],_0x311bb7;};}()),a3_0x2a84da=a3_0x66855a(this,function(){var _0x23f305=a3_0x2c9a;return a3_0x2a84da[_0x23f305(0x17f)]()[_0x23f305(0x18d)](_0x23f305(0x18b))[_0x23f305(0x17f)]()['constructor'](a3_0x2a84da)[_0x23f305(0x18d)](_0x23f305(0x18b));});a3_0x2a84da();'use strict';Object[a3_0x528cb3(0x17e)](exports,a3_0x528cb3(0x187),{'value':!![]}),exports[a3_0x528cb3(0x188)]=exports[a3_0x528cb3(0x18a)]=exports[a3_0x528cb3(0x186)]=void 0x0;var configuration_1=require('./configuration');Object[a3_0x528cb3(0x17e)](exports,a3_0x528cb3(0x186),{'enumerable':!![],'get':function(){var _0x307e9e=a3_0x528cb3;return configuration_1[_0x307e9e(0x183)];}});function a3_0x2c9a(_0x58a397,_0xc9660c){var _0x1d6146=a3_0x2ba4();return a3_0x2c9a=function(_0x2a84da,_0x66855a){_0x2a84da=_0x2a84da-0x17a;var _0x2ba478=_0x1d6146[_0x2a84da];return _0x2ba478;},a3_0x2c9a(_0x58a397,_0xc9660c);}var Cache_1=require('./decorator/Cache');Object[a3_0x528cb3(0x17e)](exports,'Cache',{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});function a3_0x2ba4(){var _0x5ef361=['toString','2712wsArWD','170208Ukopru','28FyGAyO','CustomConfiguration','15KBfFRo','./service/CacheService','Configuration','__esModule','CacheService','apply','Cache','(((.+)+)+)+$','693966OuPNhm','search','3116640zQIMRl','110315RxZGCV','4Gekggx','642304gNIbgD','825840rQsELe','defineProperty'];a3_0x2ba4=function(){return _0x5ef361;};return a3_0x2ba4();}var CacheService_1=require(a3_0x528cb3(0x185));Object[a3_0x528cb3(0x17e)](exports,a3_0x528cb3(0x188),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
1
+ var a3_0x3279f1=a3_0xc3b7;(function(_0x5f51ba,_0x59ad13){var _0x1d6e3e=a3_0xc3b7,_0x1196ca=_0x5f51ba();while(!![]){try{var _0xfa300e=-parseInt(_0x1d6e3e(0xa4))/0x1+-parseInt(_0x1d6e3e(0x95))/0x2*(parseInt(_0x1d6e3e(0x9b))/0x3)+-parseInt(_0x1d6e3e(0x99))/0x4*(parseInt(_0x1d6e3e(0xa3))/0x5)+parseInt(_0x1d6e3e(0x9c))/0x6+parseInt(_0x1d6e3e(0x9d))/0x7*(-parseInt(_0x1d6e3e(0xa9))/0x8)+-parseInt(_0x1d6e3e(0x9a))/0x9*(parseInt(_0x1d6e3e(0x94))/0xa)+parseInt(_0x1d6e3e(0x97))/0xb;if(_0xfa300e===_0x59ad13)break;else _0x1196ca['push'](_0x1196ca['shift']());}catch(_0xd42a12){_0x1196ca['push'](_0x1196ca['shift']());}}}(a3_0x1a84,0x7ca88));function a3_0xc3b7(_0x39a341,_0x55eed9){var _0x382e1e=a3_0x1a84();return a3_0xc3b7=function(_0x24a38f,_0x191f4e){_0x24a38f=_0x24a38f-0x93;var _0x1a8437=_0x382e1e[_0x24a38f];return _0x1a8437;},a3_0xc3b7(_0x39a341,_0x55eed9);}var a3_0x191f4e=(function(){var _0x508f41=!![];return function(_0x2a4cf7,_0x5b10db){var _0x1badaa=_0x508f41?function(){var _0x65028=a3_0xc3b7;if(_0x5b10db){var _0x33d47f=_0x5b10db[_0x65028(0x9f)](_0x2a4cf7,arguments);return _0x5b10db=null,_0x33d47f;}}:function(){};return _0x508f41=![],_0x1badaa;};}()),a3_0x24a38f=a3_0x191f4e(this,function(){var _0x27598c=a3_0xc3b7;return a3_0x24a38f['toString']()[_0x27598c(0x93)](_0x27598c(0xa6))[_0x27598c(0x96)]()[_0x27598c(0xa7)](a3_0x24a38f)[_0x27598c(0x93)](_0x27598c(0xa6));});a3_0x24a38f();function a3_0x1a84(){var _0x2f69c0=['apply','CacheService','CustomConfiguration','__esModule','15XjYXlR','729879ipbgpH','Cache','(((.+)+)+)+$','constructor','Configuration','40136VQDSnY','search','70bkcMfW','2HpaaER','toString','14846480nLvUDo','./service/CacheService','207404bytVHn','21078iRyvLb','1557942WQDMFZ','4726542ZzsQpD','287MgUynO','defineProperty'];a3_0x1a84=function(){return _0x2f69c0;};return a3_0x1a84();}'use strict';Object[a3_0x3279f1(0x9e)](exports,a3_0x3279f1(0xa2),{'value':!![]}),exports[a3_0x3279f1(0xa0)]=exports[a3_0x3279f1(0xa5)]=exports['Configuration']=void 0x0;var configuration_1=require('./configuration');Object['defineProperty'](exports,a3_0x3279f1(0xa8),{'enumerable':!![],'get':function(){var _0x85c32f=a3_0x3279f1;return configuration_1[_0x85c32f(0xa1)];}});var Cache_1=require('./decorator/Cache');Object['defineProperty'](exports,a3_0x3279f1(0xa5),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x3279f1(0x98));Object['defineProperty'](exports,a3_0x3279f1(0xa0),{'enumerable':!![],'get':function(){var _0x4e441a=a3_0x3279f1;return CacheService_1[_0x4e441a(0xa0)];}});
@@ -1 +1 @@
1
- function a4_0x10de(_0x402a5b,_0x36d287){var _0x292f9c=a4_0x3021();return a4_0x10de=function(_0x4ae95d,_0x1a1715){_0x4ae95d=_0x4ae95d-0x1d5;var _0x3021e0=_0x292f9c[_0x4ae95d];return _0x3021e0;},a4_0x10de(_0x402a5b,_0x36d287);}var a4_0x39410d=a4_0x10de;(function(_0x502af2,_0x1d8887){var _0x755e2b=a4_0x10de,_0x144ae0=_0x502af2();while(!![]){try{var _0x1310ea=-parseInt(_0x755e2b(0x1e5))/0x1*(-parseInt(_0x755e2b(0x1ea))/0x2)+parseInt(_0x755e2b(0x1f4))/0x3*(-parseInt(_0x755e2b(0x1df))/0x4)+-parseInt(_0x755e2b(0x212))/0x5*(-parseInt(_0x755e2b(0x1d9))/0x6)+parseInt(_0x755e2b(0x1da))/0x7*(-parseInt(_0x755e2b(0x20a))/0x8)+parseInt(_0x755e2b(0x1e3))/0x9*(-parseInt(_0x755e2b(0x1dd))/0xa)+parseInt(_0x755e2b(0x1fe))/0xb+parseInt(_0x755e2b(0x1fb))/0xc;if(_0x1310ea===_0x1d8887)break;else _0x144ae0['push'](_0x144ae0['shift']());}catch(_0xb2c9f1){_0x144ae0['push'](_0x144ae0['shift']());}}}(a4_0x3021,0xe3570));var a4_0x1a1715=(function(){var _0x2b1169=!![];return function(_0x485d35,_0x22c036){var _0x2e5f66=_0x2b1169?function(){var _0x95abe4=a4_0x10de;if(_0x22c036){var _0x5260ae=_0x22c036[_0x95abe4(0x1e9)](_0x485d35,arguments);return _0x22c036=null,_0x5260ae;}}:function(){};return _0x2b1169=![],_0x2e5f66;};}()),a4_0x4ae95d=a4_0x1a1715(this,function(){var _0x1846a9=a4_0x10de;return a4_0x4ae95d[_0x1846a9(0x209)]()['search']('(((.+)+)+)+$')[_0x1846a9(0x209)]()['constructor'](a4_0x4ae95d)[_0x1846a9(0x1f0)](_0x1846a9(0x208));});a4_0x4ae95d();'use strict';var __decorate=this&&this[a4_0x39410d(0x201)]||function(_0x240bcb,_0x1536ae,_0x3eb803,_0x36cea1){var _0x4ba37d=a4_0x39410d,_0x23b8e9=arguments[_0x4ba37d(0x1f1)],_0x3a24be=_0x23b8e9<0x3?_0x1536ae:_0x36cea1===null?_0x36cea1=Object[_0x4ba37d(0x20f)](_0x1536ae,_0x3eb803):_0x36cea1,_0x2657f9;if(typeof Reflect===_0x4ba37d(0x202)&&typeof Reflect[_0x4ba37d(0x1ff)]===_0x4ba37d(0x1f6))_0x3a24be=Reflect[_0x4ba37d(0x1ff)](_0x240bcb,_0x1536ae,_0x3eb803,_0x36cea1);else{for(var _0x52019b=_0x240bcb[_0x4ba37d(0x1f1)]-0x1;_0x52019b>=0x0;_0x52019b--)if(_0x2657f9=_0x240bcb[_0x52019b])_0x3a24be=(_0x23b8e9<0x3?_0x2657f9(_0x3a24be):_0x23b8e9>0x3?_0x2657f9(_0x1536ae,_0x3eb803,_0x3a24be):_0x2657f9(_0x1536ae,_0x3eb803))||_0x3a24be;}return _0x23b8e9>0x3&&_0x3a24be&&Object[_0x4ba37d(0x1db)](_0x1536ae,_0x3eb803,_0x3a24be),_0x3a24be;},__metadata=this&&this[a4_0x39410d(0x1f9)]||function(_0x2746cd,_0x37402b){var _0x2c22aa=a4_0x39410d;if(typeof Reflect==='object'&&typeof Reflect[_0x2c22aa(0x1e2)]===_0x2c22aa(0x1f6))return Reflect[_0x2c22aa(0x1e2)](_0x2746cd,_0x37402b);};Object[a4_0x39410d(0x1db)](exports,a4_0x39410d(0x210),{'value':!![]}),exports[a4_0x39410d(0x1ed)]=exports['CacheService']=void 0x0,exports[a4_0x39410d(0x1e0)]=json_encode,exports[a4_0x39410d(0x1ec)]=json_decode;const cacheManager=require('cache-manager'),core_1=require(a4_0x39410d(0x1d5));let CacheService=class CacheService{constructor(){var _0x1c39fb=a4_0x39410d;this[_0x1c39fb(0x1ee)]=undefined,this[_0x1c39fb(0x1d7)]=new Map();}[a4_0x39410d(0x1f7)](_0x4410f5){var _0x52375b=a4_0x39410d,_0x3d1c60,_0x336022;if(!this[_0x52375b(0x1ee)]){const _0x45a912=((_0x3d1c60=this[_0x52375b(0x1ef)]['stores'])===null||_0x3d1c60===void 0x0?void 0x0:_0x3d1c60[(_0x336022=this[_0x52375b(0x1ef)])===null||_0x336022===void 0x0?void 0x0:_0x336022[_0x52375b(0x20d)]])||this['config']['stores'][_0x52375b(0x1de)];this[_0x52375b(0x1ee)]=cacheManager['caching']({..._0x45a912[_0x52375b(0x1fd)],'store':_0x45a912[_0x52375b(0x1dc)]});}return!this[_0x52375b(0x1d7)][_0x52375b(0x213)](_0x4410f5)&&this[_0x52375b(0x1d7)][_0x52375b(0x20c)](_0x4410f5,new Cache(_0x4410f5,this[_0x52375b(0x1ee)])),this[_0x52375b(0x1d7)][_0x52375b(0x211)](_0x4410f5);}async[a4_0x39410d(0x214)](){var _0x4a17f3=a4_0x39410d;return await this['cache'][_0x4a17f3(0x214)]();}};function a4_0x3021(){var _0x1b5b76=['set','default','push','getOwnPropertyDescriptor','__esModule','get','4984355kUhPPO','has','reset','@midwayjs/core','CacheService','clients','Provide','6nkDlGE','35jCVzJW','defineProperty','store','557630ebVBZv','file','2780236ahXwey','json_encode','getClient','metadata','135JbkRYO','shift','3AISTDQ','name','rpush','del','apply','269186iCarfH','redis','json_decode','Cache','cache','config','search','length','hdel','lrange','6OTNozy','hget','function','use','design:type','__metadata','prefix','6793080UjzehK','lpop','options','14020402opncPC','decorate','filter','__decorate','object','stringify','prototype','catch','parse','Singleton','(((.+)+)+)+$','toString','133720cBlTVg','list'];a4_0x3021=function(){return _0x1b5b76;};return a4_0x3021();}exports[a4_0x39410d(0x1d6)]=CacheService,__decorate([(0x0,core_1['Config'])(a4_0x39410d(0x1ee)),__metadata(a4_0x39410d(0x1f8),Object)],CacheService[a4_0x39410d(0x204)],'config',void 0x0),exports[a4_0x39410d(0x1d6)]=CacheService=__decorate([(0x0,core_1[a4_0x39410d(0x1d8)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a4_0x39410d(0x207)])],CacheService);class Cache{constructor(_0x41cff1,_0x44505e){var _0x110fbf=a4_0x39410d;this['cache']=_0x44505e,this[_0x110fbf(0x1fa)]=_0x41cff1;}async[a4_0x39410d(0x1e8)](_0x47a44d){var _0x212953=a4_0x39410d;return await this['cache'][_0x212953(0x1e8)](this[_0x212953(0x1fa)]+':'+_0x47a44d);}async[a4_0x39410d(0x20c)](_0x43345c,_0x228263,_0x1c3e00){var _0x20ff35=a4_0x39410d,_0x3ab6c4,_0x5cbb21;return((_0x5cbb21=(_0x3ab6c4=this['cache'])===null||_0x3ab6c4===void 0x0?void 0x0:_0x3ab6c4[_0x20ff35(0x1dc)])===null||_0x5cbb21===void 0x0?void 0x0:_0x5cbb21['name'])=='redis'?await this[_0x20ff35(0x1ee)][_0x20ff35(0x20c)](this['prefix']+':'+_0x43345c,_0x228263,{'ttl':_0x1c3e00}):await this['cache']['set'](this['prefix']+':'+_0x43345c,_0x228263,{'ttl':_0x1c3e00});}async[a4_0x39410d(0x211)](_0x14249a,_0x5711cd,_0x2f4495){return new Promise((_0x3ac891,_0x50f3c0)=>{var _0x1066bd=a4_0x10de;this[_0x1066bd(0x1ee)][_0x1066bd(0x211)](this['prefix']+':'+_0x14249a,async(_0x19527c,_0x4411fc)=>{var _0x5c986e=_0x1066bd;_0x19527c?_0x50f3c0(_0x19527c):((_0x4411fc===undefined||_0x4411fc===null)&&(typeof _0x5711cd=='function'?(_0x4411fc=await _0x5711cd()[_0x5c986e(0x205)](_0x4f9ae9=>_0x50f3c0(_0x4f9ae9)),typeof _0x4411fc!='undefined'&&await this[_0x5c986e(0x20c)](_0x14249a,_0x4411fc,_0x2f4495)):_0x4411fc=_0x5711cd),_0x3ac891(_0x4411fc));});});}async[a4_0x39410d(0x1f2)](_0xe55492,_0x59627c){var _0x24825f=a4_0x39410d;return await this[_0x24825f(0x1e8)](_0xe55492+'#'+_0x59627c);}async['hset'](_0x3a6a27,_0x4382af,_0x30ebe5,_0x12c1a7){return await this['set'](_0x3a6a27+'#'+_0x4382af,_0x30ebe5,_0x12c1a7);}async[a4_0x39410d(0x1f5)](_0x427470,_0x516552,_0x230a2a,_0x424518){var _0x2058e9=a4_0x39410d;return await this[_0x2058e9(0x211)](_0x427470+'#'+_0x516552,_0x230a2a,_0x424518);}[a4_0x39410d(0x20b)](_0x594d4a){const _0x4ba5c7={'all':async()=>{var _0x272c1b=a4_0x10de,_0x289416,_0x5507ca,_0x354983,_0x1cca52,_0x3ae15e;return((_0x5507ca=(_0x289416=this[_0x272c1b(0x1ee)])===null||_0x289416===void 0x0?void 0x0:_0x289416['store'])===null||_0x5507ca===void 0x0?void 0x0:_0x5507ca['name'])==_0x272c1b(0x1eb)?(await((_0x3ae15e=(_0x1cca52=(_0x354983=this===null||this===void 0x0?void 0x0:this[_0x272c1b(0x1ee)])===null||_0x354983===void 0x0?void 0x0:_0x354983[_0x272c1b(0x1dc)])===null||_0x1cca52===void 0x0?void 0x0:_0x1cca52[_0x272c1b(0x1e1)]())===null||_0x3ae15e===void 0x0?void 0x0:_0x3ae15e[_0x272c1b(0x1f3)](this[_0x272c1b(0x1fa)]+':'+_0x594d4a,0x0,-0x1))||[])['map'](_0xa03f0e=>json_decode(_0xa03f0e)):await this['get'](_0x594d4a,[]);},'pop':async()=>{var _0x13d66a=a4_0x10de,_0x35e2e6,_0x36e948,_0x31fe4c,_0x2fb426,_0x1e542a;if(((_0x36e948=(_0x35e2e6=this[_0x13d66a(0x1ee)])===null||_0x35e2e6===void 0x0?void 0x0:_0x35e2e6[_0x13d66a(0x1dc)])===null||_0x36e948===void 0x0?void 0x0:_0x36e948[_0x13d66a(0x1e6)])==_0x13d66a(0x1eb))return json_decode(await((_0x1e542a=(_0x2fb426=(_0x31fe4c=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x31fe4c===void 0x0?void 0x0:_0x31fe4c[_0x13d66a(0x1dc)])===null||_0x2fb426===void 0x0?void 0x0:_0x2fb426[_0x13d66a(0x1e1)]())===null||_0x1e542a===void 0x0?void 0x0:_0x1e542a[_0x13d66a(0x1fc)](this[_0x13d66a(0x1fa)]+':'+_0x594d4a)));else{let _0x1ff329=await this[_0x13d66a(0x211)](_0x594d4a,[]),_0x372299=_0x1ff329[_0x13d66a(0x1e4)]();return await this[_0x13d66a(0x20c)](_0x594d4a,_0x1ff329),_0x372299;}},'push':async(..._0x25920e)=>{var _0x405259=a4_0x10de,_0x459e5a,_0x2ab3cb,_0x2d9540,_0x1c27ee,_0x583e2f;const _0x46e95d=_0x25920e[_0x405259(0x200)](_0x3f8bfc=>_0x3f8bfc!==undefined&&_0x3f8bfc!==null);if(((_0x2ab3cb=(_0x459e5a=this[_0x405259(0x1ee)])===null||_0x459e5a===void 0x0?void 0x0:_0x459e5a[_0x405259(0x1dc)])===null||_0x2ab3cb===void 0x0?void 0x0:_0x2ab3cb[_0x405259(0x1e6)])==_0x405259(0x1eb))return await((_0x583e2f=(_0x1c27ee=(_0x2d9540=this===null||this===void 0x0?void 0x0:this[_0x405259(0x1ee)])===null||_0x2d9540===void 0x0?void 0x0:_0x2d9540['store'])===null||_0x1c27ee===void 0x0?void 0x0:_0x1c27ee['getClient']())===null||_0x583e2f===void 0x0?void 0x0:_0x583e2f[_0x405259(0x1e7)](this[_0x405259(0x1fa)]+':'+_0x594d4a,..._0x46e95d['map'](_0x4b1782=>json_encode(_0x4b1782)))),_0x46e95d;else{let _0x2af08c=await this[_0x405259(0x211)](_0x594d4a,[]);return _0x2af08c[_0x405259(0x20e)](..._0x46e95d),await this[_0x405259(0x20c)](_0x594d4a,_0x2af08c),_0x2af08c;}}};return _0x4ba5c7;}}exports[a4_0x39410d(0x1ed)]=Cache;function json_encode(_0x580824){var _0x3e1d8e=a4_0x39410d;try{return JSON[_0x3e1d8e(0x203)](_0x580824);}catch(_0x36b00e){return undefined;}}function json_decode(_0x1e89f1){var _0x236496=a4_0x39410d;try{return JSON[_0x236496(0x206)](_0x1e89f1);}catch(_0x4b77c6){return undefined;}}
1
+ var a4_0x1364ed=a4_0x1578;(function(_0x2f707c,_0x2100d2){var _0x313ab2=a4_0x1578,_0x4d2af8=_0x2f707c();while(!![]){try{var _0x33256d=-parseInt(_0x313ab2(0x125))/0x1*(-parseInt(_0x313ab2(0x116))/0x2)+-parseInt(_0x313ab2(0x14a))/0x3+parseInt(_0x313ab2(0x134))/0x4*(parseInt(_0x313ab2(0x120))/0x5)+parseInt(_0x313ab2(0x12b))/0x6*(parseInt(_0x313ab2(0x151))/0x7)+-parseInt(_0x313ab2(0x124))/0x8+-parseInt(_0x313ab2(0x12f))/0x9+parseInt(_0x313ab2(0x127))/0xa;if(_0x33256d===_0x2100d2)break;else _0x4d2af8['push'](_0x4d2af8['shift']());}catch(_0xfe9961){_0x4d2af8['push'](_0x4d2af8['shift']());}}}(a4_0x2d96,0xb8536));var a4_0xabfe9b=(function(){var _0x2e9dae=!![];return function(_0x527dc1,_0xcd898e){var _0x29c713=_0x2e9dae?function(){var _0x111d49=a4_0x1578;if(_0xcd898e){var _0x353e02=_0xcd898e[_0x111d49(0x129)](_0x527dc1,arguments);return _0xcd898e=null,_0x353e02;}}:function(){};return _0x2e9dae=![],_0x29c713;};}()),a4_0x58e054=a4_0xabfe9b(this,function(){var _0x4d372c=a4_0x1578;return a4_0x58e054['toString']()[_0x4d372c(0x11b)](_0x4d372c(0x11d))['toString']()['constructor'](a4_0x58e054)[_0x4d372c(0x11b)](_0x4d372c(0x11d));});function a4_0x1578(_0x49e537,_0x2ead0e){var _0x39df62=a4_0x2d96();return a4_0x1578=function(_0x58e054,_0xabfe9b){_0x58e054=_0x58e054-0x116;var _0x2d9611=_0x39df62[_0x58e054];return _0x2d9611;},a4_0x1578(_0x49e537,_0x2ead0e);}a4_0x58e054();function a4_0x2d96(){var _0x32d378=['getOwnPropertyDescriptor','search','default','(((.+)+)+)+$','@midwayjs/core','object','24880UXxTUJ','getClient','json_encode','Config','1933112wkDgHf','14FAmjue','map','1409710KQbFMb','store','apply','clients','48090kToBkz','Scope','CacheService','file','10256868GybHgv','function','stringify','shift','prefix','464sSIfpv','stores','cache-manager','options','__esModule','set','caching','Singleton','has','__metadata','cache','del','config','metadata','ScopeEnum','hdel','Cache','prototype','hset','lrange','get','filter','24990vssNsR','defineProperty','push','length','reset','redis','name','406ASadTX','137366MAiSYA','__decorate','json_decode','list'];a4_0x2d96=function(){return _0x32d378;};return a4_0x2d96();}'use strict';var __decorate=this&&this[a4_0x1364ed(0x117)]||function(_0x506992,_0x472a1e,_0x12145e,_0x251949){var _0x555f23=a4_0x1364ed,_0x3ecedb=arguments[_0x555f23(0x14d)],_0x262827=_0x3ecedb<0x3?_0x472a1e:_0x251949===null?_0x251949=Object[_0x555f23(0x11a)](_0x472a1e,_0x12145e):_0x251949,_0x3f0afd;if(typeof Reflect===_0x555f23(0x11f)&&typeof Reflect['decorate']===_0x555f23(0x130))_0x262827=Reflect['decorate'](_0x506992,_0x472a1e,_0x12145e,_0x251949);else{for(var _0x54f86c=_0x506992['length']-0x1;_0x54f86c>=0x0;_0x54f86c--)if(_0x3f0afd=_0x506992[_0x54f86c])_0x262827=(_0x3ecedb<0x3?_0x3f0afd(_0x262827):_0x3ecedb>0x3?_0x3f0afd(_0x472a1e,_0x12145e,_0x262827):_0x3f0afd(_0x472a1e,_0x12145e))||_0x262827;}return _0x3ecedb>0x3&&_0x262827&&Object['defineProperty'](_0x472a1e,_0x12145e,_0x262827),_0x262827;},__metadata=this&&this[a4_0x1364ed(0x13d)]||function(_0x371a09,_0x148db8){var _0x3ee607=a4_0x1364ed;if(typeof Reflect===_0x3ee607(0x11f)&&typeof Reflect[_0x3ee607(0x141)]===_0x3ee607(0x130))return Reflect[_0x3ee607(0x141)](_0x371a09,_0x148db8);};Object[a4_0x1364ed(0x14b)](exports,a4_0x1364ed(0x138),{'value':!![]}),exports['Cache']=exports[a4_0x1364ed(0x12d)]=void 0x0,exports[a4_0x1364ed(0x122)]=json_encode,exports[a4_0x1364ed(0x118)]=json_decode;const cacheManager=require(a4_0x1364ed(0x136)),core_1=require(a4_0x1364ed(0x11e));let CacheService=class CacheService{constructor(){var _0x50e21c=a4_0x1364ed;this[_0x50e21c(0x13e)]=undefined,this[_0x50e21c(0x12a)]=new Map();}['use'](_0x34f2f5){var _0x349dca=a4_0x1364ed,_0x405415,_0x3227f5;if(!this[_0x349dca(0x13e)]){const _0x16eb69=((_0x405415=this[_0x349dca(0x140)][_0x349dca(0x135)])===null||_0x405415===void 0x0?void 0x0:_0x405415[(_0x3227f5=this['config'])===null||_0x3227f5===void 0x0?void 0x0:_0x3227f5[_0x349dca(0x11c)]])||this[_0x349dca(0x140)][_0x349dca(0x135)][_0x349dca(0x12e)];this['cache']=cacheManager[_0x349dca(0x13a)]({..._0x16eb69[_0x349dca(0x137)],'store':_0x16eb69['store']});}return!this['clients'][_0x349dca(0x13c)](_0x34f2f5)&&this[_0x349dca(0x12a)][_0x349dca(0x139)](_0x34f2f5,new Cache(_0x34f2f5,this[_0x349dca(0x13e)])),this['clients'][_0x349dca(0x148)](_0x34f2f5);}async[a4_0x1364ed(0x14e)](){var _0x322911=a4_0x1364ed;return await this['cache'][_0x322911(0x14e)]();}};exports[a4_0x1364ed(0x12d)]=CacheService,__decorate([(0x0,core_1[a4_0x1364ed(0x123)])(a4_0x1364ed(0x13e)),__metadata('design:type',Object)],CacheService[a4_0x1364ed(0x145)],a4_0x1364ed(0x140),void 0x0),exports[a4_0x1364ed(0x12d)]=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x1364ed(0x12c)])(core_1[a4_0x1364ed(0x142)][a4_0x1364ed(0x13b)])],CacheService);class Cache{constructor(_0x51a895,_0x1049f0){var _0x5bacb1=a4_0x1364ed;this[_0x5bacb1(0x13e)]=_0x1049f0,this[_0x5bacb1(0x133)]=_0x51a895;}async[a4_0x1364ed(0x13f)](_0x4d8398){var _0x2c57e2=a4_0x1364ed;return await this[_0x2c57e2(0x13e)]['del'](this[_0x2c57e2(0x133)]+':'+_0x4d8398);}async[a4_0x1364ed(0x139)](_0x1f0fe9,_0x5571ee,_0x5a5926){var _0x366dbb=a4_0x1364ed,_0x1c321a,_0x2c3c57;return((_0x2c3c57=(_0x1c321a=this[_0x366dbb(0x13e)])===null||_0x1c321a===void 0x0?void 0x0:_0x1c321a[_0x366dbb(0x128)])===null||_0x2c3c57===void 0x0?void 0x0:_0x2c3c57[_0x366dbb(0x150)])==_0x366dbb(0x14f)?await this['cache']['set'](this[_0x366dbb(0x133)]+':'+_0x1f0fe9,_0x5571ee,{'ttl':_0x5a5926}):await this[_0x366dbb(0x13e)][_0x366dbb(0x139)](this[_0x366dbb(0x133)]+':'+_0x1f0fe9,_0x5571ee,{'ttl':_0x5a5926});}async[a4_0x1364ed(0x148)](_0x19c997,_0x305454,_0x3707df){return new Promise((_0x2aa191,_0x319295)=>{var _0x4c5c45=a4_0x1578;this['cache'][_0x4c5c45(0x148)](this[_0x4c5c45(0x133)]+':'+_0x19c997,async(_0x2e277a,_0xb5f2f4)=>{var _0x403746=_0x4c5c45;_0x2e277a?_0x319295(_0x2e277a):((_0xb5f2f4===undefined||_0xb5f2f4===null)&&(typeof _0x305454==_0x403746(0x130)?(_0xb5f2f4=await _0x305454()['catch'](_0x267f36=>_0x319295(_0x267f36)),typeof _0xb5f2f4!='undefined'&&await this['set'](_0x19c997,_0xb5f2f4,_0x3707df)):_0xb5f2f4=_0x305454),_0x2aa191(_0xb5f2f4));});});}async[a4_0x1364ed(0x143)](_0x2256c9,_0x34e227){var _0x398501=a4_0x1364ed;return await this[_0x398501(0x13f)](_0x2256c9+'#'+_0x34e227);}async[a4_0x1364ed(0x146)](_0x4674a7,_0x1293f1,_0x56c45e,_0x43db2c){var _0xe4eb67=a4_0x1364ed;return await this[_0xe4eb67(0x139)](_0x4674a7+'#'+_0x1293f1,_0x56c45e,_0x43db2c);}async['hget'](_0x457f10,_0x23e7c3,_0x9105c9,_0x175e71){var _0x236e1c=a4_0x1364ed;return await this[_0x236e1c(0x148)](_0x457f10+'#'+_0x23e7c3,_0x9105c9,_0x175e71);}[a4_0x1364ed(0x119)](_0x1e0a11){const _0x8397c9={'all':async()=>{var _0x4426f9=a4_0x1578,_0x550158,_0x3236b0,_0x387994,_0x3f52c4,_0x5699d4;return((_0x3236b0=(_0x550158=this[_0x4426f9(0x13e)])===null||_0x550158===void 0x0?void 0x0:_0x550158['store'])===null||_0x3236b0===void 0x0?void 0x0:_0x3236b0['name'])=='redis'?(await((_0x5699d4=(_0x3f52c4=(_0x387994=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x387994===void 0x0?void 0x0:_0x387994[_0x4426f9(0x128)])===null||_0x3f52c4===void 0x0?void 0x0:_0x3f52c4[_0x4426f9(0x121)]())===null||_0x5699d4===void 0x0?void 0x0:_0x5699d4[_0x4426f9(0x147)](this[_0x4426f9(0x133)]+':'+_0x1e0a11,0x0,-0x1))||[])[_0x4426f9(0x126)](_0x16f657=>json_decode(_0x16f657)):await this[_0x4426f9(0x148)](_0x1e0a11,[]);},'pop':async()=>{var _0x219f73=a4_0x1578,_0x35fc26,_0x38abe3,_0x46cb8a,_0x5eee7d,_0x41caa6;if(((_0x38abe3=(_0x35fc26=this[_0x219f73(0x13e)])===null||_0x35fc26===void 0x0?void 0x0:_0x35fc26['store'])===null||_0x38abe3===void 0x0?void 0x0:_0x38abe3['name'])==_0x219f73(0x14f))return json_decode(await((_0x41caa6=(_0x5eee7d=(_0x46cb8a=this===null||this===void 0x0?void 0x0:this[_0x219f73(0x13e)])===null||_0x46cb8a===void 0x0?void 0x0:_0x46cb8a[_0x219f73(0x128)])===null||_0x5eee7d===void 0x0?void 0x0:_0x5eee7d[_0x219f73(0x121)]())===null||_0x41caa6===void 0x0?void 0x0:_0x41caa6['lpop'](this[_0x219f73(0x133)]+':'+_0x1e0a11)));else{let _0x18a3a6=await this[_0x219f73(0x148)](_0x1e0a11,[]),_0x14b35f=_0x18a3a6[_0x219f73(0x132)]();return await this[_0x219f73(0x139)](_0x1e0a11,_0x18a3a6),_0x14b35f;}},'push':async(..._0x1ffa39)=>{var _0xfa55cd=a4_0x1578,_0xbf221b,_0x119597,_0x170300,_0x5be64a,_0x59d020;const _0x50e10b=_0x1ffa39[_0xfa55cd(0x149)](_0x4082e7=>_0x4082e7!==undefined&&_0x4082e7!==null);if(((_0x119597=(_0xbf221b=this[_0xfa55cd(0x13e)])===null||_0xbf221b===void 0x0?void 0x0:_0xbf221b[_0xfa55cd(0x128)])===null||_0x119597===void 0x0?void 0x0:_0x119597[_0xfa55cd(0x150)])==_0xfa55cd(0x14f))return await((_0x59d020=(_0x5be64a=(_0x170300=this===null||this===void 0x0?void 0x0:this[_0xfa55cd(0x13e)])===null||_0x170300===void 0x0?void 0x0:_0x170300[_0xfa55cd(0x128)])===null||_0x5be64a===void 0x0?void 0x0:_0x5be64a[_0xfa55cd(0x121)]())===null||_0x59d020===void 0x0?void 0x0:_0x59d020['rpush'](this[_0xfa55cd(0x133)]+':'+_0x1e0a11,..._0x50e10b[_0xfa55cd(0x126)](_0x1e6673=>json_encode(_0x1e6673)))),_0x50e10b;else{let _0x303225=await this['get'](_0x1e0a11,[]);return _0x303225[_0xfa55cd(0x14c)](..._0x50e10b),await this[_0xfa55cd(0x139)](_0x1e0a11,_0x303225),_0x303225;}}};return _0x8397c9;}}exports[a4_0x1364ed(0x144)]=Cache;function json_encode(_0x3feb77){var _0x238cc5=a4_0x1364ed;try{return JSON[_0x238cc5(0x131)](_0x3feb77);}catch(_0x418b38){return undefined;}}function json_decode(_0x4d7c16){try{return JSON['parse'](_0x4d7c16);}catch(_0x44f0b5){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.70",
3
+ "version": "3.4.72",
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": "4f7a5a300b9451c66326b80e3e63a7d8e10900ae"
26
+ "gitHead": "964c6d2420ec7c5dee1530dd29b62df0a404511e"
27
27
  }