@anncic-api/cache 3.4.55 → 3.4.57

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_0x20f071=a0_0x8aea;(function(_0x1d1073,_0xe1fb51){const _0x9b6fa5=a0_0x8aea,_0x3f24d7=_0x1d1073();while(!![]){try{const _0x4b2491=-parseInt(_0x9b6fa5(0x1a2))/0x1+-parseInt(_0x9b6fa5(0x1a8))/0x2*(-parseInt(_0x9b6fa5(0x19b))/0x3)+-parseInt(_0x9b6fa5(0x1a4))/0x4*(-parseInt(_0x9b6fa5(0x1aa))/0x5)+-parseInt(_0x9b6fa5(0x1ab))/0x6*(parseInt(_0x9b6fa5(0x1ac))/0x7)+parseInt(_0x9b6fa5(0x1a3))/0x8+parseInt(_0x9b6fa5(0x1b3))/0x9*(parseInt(_0x9b6fa5(0x1a6))/0xa)+-parseInt(_0x9b6fa5(0x1a5))/0xb*(parseInt(_0x9b6fa5(0x1a7))/0xc);if(_0x4b2491===_0xe1fb51)break;else _0x3f24d7['push'](_0x3f24d7['shift']());}catch(_0x2a3d7e){_0x3f24d7['push'](_0x3f24d7['shift']());}}}(a0_0x2982,0x2bea3));const a0_0x1d2ed2=(function(){let _0x7c4632=!![];return function(_0x28ae32,_0x5b32bc){const _0x29b069=_0x7c4632?function(){if(_0x5b32bc){const _0x4fda0c=_0x5b32bc['apply'](_0x28ae32,arguments);return _0x5b32bc=null,_0x4fda0c;}}:function(){};return _0x7c4632=![],_0x29b069;};}()),a0_0x19242e=a0_0x1d2ed2(this,function(){const _0x393fee=a0_0x8aea;return a0_0x19242e[_0x393fee(0x19e)]()['search'](_0x393fee(0x1a9))['toString']()['constructor'](a0_0x19242e)[_0x393fee(0x19f)](_0x393fee(0x1a9));});function a0_0x8aea(_0x5c42d9,_0x315d62){const _0x59b3fb=a0_0x2982();return a0_0x8aea=function(_0x19242e,_0x1d2ed2){_0x19242e=_0x19242e-0x19b;let _0x2982eb=_0x59b3fb[_0x19242e];return _0x2982eb;},a0_0x8aea(_0x5c42d9,_0x315d62);}function a0_0x2982(){const _0x3b956b=['127.0.0.1','memory','711jkjBRy','18NMJNJT','/runtime/.cache','__esModule','toString','search','cache-manager-ioredis','defineProperty','150473LmffBJ','912856miCcnM','36308ZcHtZp','5096014vhpwCd','20690zmusdK','12JWkZWL','90086ZrsvoQ','(((.+)+)+)+$','180QMwzMw','242898RYsOcw','14rAghVA','env','cache-manager-fs-hash','name','default'];a0_0x2982=function(){return _0x3b956b;};return a0_0x2982();}a0_0x19242e();'use strict';Object[a0_0x20f071(0x1a1)](exports,a0_0x20f071(0x19d),{'value':!![]});const fsStore=require(a0_0x20f071(0x1ae)),redisStore=require(a0_0x20f071(0x1a0));exports[a0_0x20f071(0x1b0)]=_0x200486=>{const _0x376cd8=a0_0x20f071;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x200486['appDir']+_0x376cd8(0x19c)+((_0x200486===null||_0x200486===void 0x0?void 0x0:_0x200486[_0x376cd8(0x1ad)])?'-'+_0x200486[_0x376cd8(0x1ad)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x376cd8(0x1b1),'password':'','keyPrefix':_0x200486[_0x376cd8(0x1af)]+':'+((_0x200486===null||_0x200486===void 0x0?void 0x0:_0x200486[_0x376cd8(0x1ad)])?_0x200486['env']+':':'')}},'memory':{'store':_0x376cd8(0x1b2),'options':{'max':0x64}}}}};};
1
+ function a0_0x3bd3(){const _0x55ab31=['memory','env','default','208304YpYciy','1950843gIuAEF','cache-manager-fs-hash','4753272ZjyqXQ','search','name','151368aMmIEu','127.0.0.1','3871434yELrZM','10YWiqmy','/runtime/.cache','7Rsefxx','(((.+)+)+)+$','25fexsvR','defineProperty','186484wXenIB','toString','4217481VZLbCu','cache-manager-ioredis'];a0_0x3bd3=function(){return _0x55ab31;};return a0_0x3bd3();}const a0_0x55240b=a0_0xc015;(function(_0x133ccc,_0x40d751){const _0x24c497=a0_0xc015,_0x1b65f5=_0x133ccc();while(!![]){try{const _0x12908b=-parseInt(_0x24c497(0x19b))/0x1+parseInt(_0x24c497(0x1a1))/0x2+parseInt(_0x24c497(0x19c))/0x3+-parseInt(_0x24c497(0x1aa))/0x4*(-parseInt(_0x24c497(0x1a8))/0x5)+-parseInt(_0x24c497(0x1a3))/0x6*(-parseInt(_0x24c497(0x1a6))/0x7)+-parseInt(_0x24c497(0x19e))/0x8+-parseInt(_0x24c497(0x1ac))/0x9*(parseInt(_0x24c497(0x1a4))/0xa);if(_0x12908b===_0x40d751)break;else _0x1b65f5['push'](_0x1b65f5['shift']());}catch(_0x48d048){_0x1b65f5['push'](_0x1b65f5['shift']());}}}(a0_0x3bd3,0x515b5));const a0_0x2ce726=(function(){let _0x1c3110=!![];return function(_0x5efa32,_0x51580c){const _0x29c804=_0x1c3110?function(){if(_0x51580c){const _0x2271c6=_0x51580c['apply'](_0x5efa32,arguments);return _0x51580c=null,_0x2271c6;}}:function(){};return _0x1c3110=![],_0x29c804;};}()),a0_0x549b7f=a0_0x2ce726(this,function(){const _0x4f3ce1=a0_0xc015;return a0_0x549b7f[_0x4f3ce1(0x1ab)]()[_0x4f3ce1(0x19f)](_0x4f3ce1(0x1a7))['toString']()['constructor'](a0_0x549b7f)[_0x4f3ce1(0x19f)](_0x4f3ce1(0x1a7));});function a0_0xc015(_0x1b11d0,_0x5e6ec7){const _0x205515=a0_0x3bd3();return a0_0xc015=function(_0x549b7f,_0x2ce726){_0x549b7f=_0x549b7f-0x198;let _0x3bd308=_0x205515[_0x549b7f];return _0x3bd308;},a0_0xc015(_0x1b11d0,_0x5e6ec7);}a0_0x549b7f();'use strict';Object[a0_0x55240b(0x1a9)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x55240b(0x19d)),redisStore=require(a0_0x55240b(0x1ad));exports[a0_0x55240b(0x19a)]=_0x2d53f1=>{const _0x1e19f5=a0_0x55240b;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x2d53f1['appDir']+_0x1e19f5(0x1a5)+((_0x2d53f1===null||_0x2d53f1===void 0x0?void 0x0:_0x2d53f1[_0x1e19f5(0x199)])?'-'+_0x2d53f1[_0x1e19f5(0x199)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x1e19f5(0x1a2),'password':'','keyPrefix':_0x2d53f1[_0x1e19f5(0x1a0)]+':'+((_0x2d53f1===null||_0x2d53f1===void 0x0?void 0x0:_0x2d53f1[_0x1e19f5(0x199)])?_0x2d53f1[_0x1e19f5(0x199)]+':':'')}},'memory':{'store':_0x1e19f5(0x198),'options':{'max':0x64}}}}};};
@@ -1 +1 @@
1
- var a1_0x281a17=a1_0x283c;(function(_0x408179,_0x46f269){var _0x70f6db=a1_0x283c,_0x26ac16=_0x408179();while(!![]){try{var _0x22eaeb=-parseInt(_0x70f6db(0x130))/0x1*(parseInt(_0x70f6db(0x131))/0x2)+-parseInt(_0x70f6db(0x12a))/0x3+-parseInt(_0x70f6db(0x12f))/0x4*(-parseInt(_0x70f6db(0x125))/0x5)+-parseInt(_0x70f6db(0x139))/0x6+-parseInt(_0x70f6db(0x121))/0x7+parseInt(_0x70f6db(0x12b))/0x8*(parseInt(_0x70f6db(0x138))/0x9)+parseInt(_0x70f6db(0x120))/0xa;if(_0x22eaeb===_0x46f269)break;else _0x26ac16['push'](_0x26ac16['shift']());}catch(_0x170861){_0x26ac16['push'](_0x26ac16['shift']());}}}(a1_0x5d6b,0xace5a));var a1_0x3f040b=(function(){var _0x24575e=!![];return function(_0x2ae37c,_0x35b751){var _0x2de1ec=_0x24575e?function(){var _0x8cf6bc=a1_0x283c;if(_0x35b751){var _0x3c7d0a=_0x35b751[_0x8cf6bc(0x136)](_0x2ae37c,arguments);return _0x35b751=null,_0x3c7d0a;}}:function(){};return _0x24575e=![],_0x2de1ec;};}()),a1_0x3e67d7=a1_0x3f040b(this,function(){var _0x3bc8f0=a1_0x283c;return a1_0x3e67d7[_0x3bc8f0(0x134)]()['search'](_0x3bc8f0(0x12d))[_0x3bc8f0(0x134)]()[_0x3bc8f0(0x123)](a1_0x3e67d7)['search'](_0x3bc8f0(0x12d));});a1_0x3e67d7();'use strict';var __decorate=this&&this[a1_0x281a17(0x128)]||function(_0x36b455,_0x339b6d,_0x4498ef,_0x1c9878){var _0x53da73=a1_0x281a17,_0x3a4109=arguments[_0x53da73(0x127)],_0x2ec649=_0x3a4109<0x3?_0x339b6d:_0x1c9878===null?_0x1c9878=Object[_0x53da73(0x122)](_0x339b6d,_0x4498ef):_0x1c9878,_0x45209b;if(typeof Reflect===_0x53da73(0x129)&&typeof Reflect[_0x53da73(0x124)]==='function')_0x2ec649=Reflect[_0x53da73(0x124)](_0x36b455,_0x339b6d,_0x4498ef,_0x1c9878);else{for(var _0x26181e=_0x36b455[_0x53da73(0x127)]-0x1;_0x26181e>=0x0;_0x26181e--)if(_0x45209b=_0x36b455[_0x26181e])_0x2ec649=(_0x3a4109<0x3?_0x45209b(_0x2ec649):_0x3a4109>0x3?_0x45209b(_0x339b6d,_0x4498ef,_0x2ec649):_0x45209b(_0x339b6d,_0x4498ef))||_0x2ec649;}return _0x3a4109>0x3&&_0x2ec649&&Object[_0x53da73(0x12e)](_0x339b6d,_0x4498ef,_0x2ec649),_0x2ec649;};function a1_0x283c(_0x57af2c,_0x2717a1){var _0x26be97=a1_0x5d6b();return a1_0x283c=function(_0x3e67d7,_0x3f040b){_0x3e67d7=_0x3e67d7-0x120;var _0x5d6b3f=_0x26be97[_0x3e67d7];return _0x5d6b3f;},a1_0x283c(_0x57af2c,_0x2717a1);}Object[a1_0x281a17(0x12e)](exports,a1_0x281a17(0x133),{'value':!![]}),exports[a1_0x281a17(0x135)]=void 0x0;const core_1=require(a1_0x281a17(0x132)),ConfigDefault=require(a1_0x281a17(0x12c));let CustomConfiguration=class CustomConfiguration{};function a1_0x5d6b(){var _0x2715e0=['4ePXzno','@midwayjs/core','__esModule','toString','CustomConfiguration','apply','anncic-api:cache','3465etlpge','1399374JpOxMD','19068060KonDde','9851205rtmPPy','getOwnPropertyDescriptor','constructor','decorate','895AIjoYC','Configuration','length','__decorate','object','1131204VxTFVo','8936YnSmfo','./config/config.default','(((.+)+)+)+$','defineProperty','22604FgDhOa','311291rkDrzI'];a1_0x5d6b=function(){return _0x2715e0;};return a1_0x5d6b();}exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x281a17(0x135)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x281a17(0x126)])({'conflictCheck':![],'namespace':a1_0x281a17(0x137),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x527d03=a1_0x2a99;function a1_0x58ff(){var _0x328e45=['(((.+)+)+)+$','2jZeDEY','196188avQBoF','constructor','1178904hutsfN','1263507wdUnCy','1686730VoRTvl','7146glhHyh','869EFDvvB','defineProperty','length','decorate','toString','97930AvHivM','459401lbjxkz','410eMpiyl','Configuration','27eQPQCG','object','search','anncic-api:cache','CustomConfiguration','152IaDqWw'];a1_0x58ff=function(){return _0x328e45;};return a1_0x58ff();}(function(_0x534ba9,_0x2197bf){var _0x5deeb6=a1_0x2a99,_0x10462e=_0x534ba9();while(!![]){try{var _0x3945e3=parseInt(_0x5deeb6(0x9f))/0x1*(parseInt(_0x5deeb6(0x92))/0x2)+-parseInt(_0x5deeb6(0x96))/0x3+-parseInt(_0x5deeb6(0x95))/0x4+parseInt(_0x5deeb6(0xa0))/0x5*(parseInt(_0x5deeb6(0x98))/0x6)+-parseInt(_0x5deeb6(0x9e))/0x7*(parseInt(_0x5deeb6(0x90))/0x8)+-parseInt(_0x5deeb6(0xa2))/0x9*(parseInt(_0x5deeb6(0x97))/0xa)+-parseInt(_0x5deeb6(0x99))/0xb*(-parseInt(_0x5deeb6(0x93))/0xc);if(_0x3945e3===_0x2197bf)break;else _0x10462e['push'](_0x10462e['shift']());}catch(_0x3f143f){_0x10462e['push'](_0x10462e['shift']());}}}(a1_0x58ff,0x581ce));var a1_0x2912f8=(function(){var _0x3d37e1=!![];return function(_0x3bc1d7,_0x47766d){var _0x383e7f=_0x3d37e1?function(){if(_0x47766d){var _0x21e6ef=_0x47766d['apply'](_0x3bc1d7,arguments);return _0x47766d=null,_0x21e6ef;}}:function(){};return _0x3d37e1=![],_0x383e7f;};}()),a1_0x54d36d=a1_0x2912f8(this,function(){var _0x86be2f=a1_0x2a99;return a1_0x54d36d[_0x86be2f(0x9d)]()[_0x86be2f(0xa4)](_0x86be2f(0x91))[_0x86be2f(0x9d)]()[_0x86be2f(0x94)](a1_0x54d36d)[_0x86be2f(0xa4)](_0x86be2f(0x91));});a1_0x54d36d();'use strict';var __decorate=this&&this['__decorate']||function(_0x1f2b10,_0x4cc687,_0x3c6e9e,_0x36496f){var _0x149298=a1_0x2a99,_0x317ffe=arguments[_0x149298(0x9b)],_0x3eb7d7=_0x317ffe<0x3?_0x4cc687:_0x36496f===null?_0x36496f=Object['getOwnPropertyDescriptor'](_0x4cc687,_0x3c6e9e):_0x36496f,_0x3ae07a;if(typeof Reflect===_0x149298(0xa3)&&typeof Reflect[_0x149298(0x9c)]==='function')_0x3eb7d7=Reflect[_0x149298(0x9c)](_0x1f2b10,_0x4cc687,_0x3c6e9e,_0x36496f);else{for(var _0x28bab6=_0x1f2b10[_0x149298(0x9b)]-0x1;_0x28bab6>=0x0;_0x28bab6--)if(_0x3ae07a=_0x1f2b10[_0x28bab6])_0x3eb7d7=(_0x317ffe<0x3?_0x3ae07a(_0x3eb7d7):_0x317ffe>0x3?_0x3ae07a(_0x4cc687,_0x3c6e9e,_0x3eb7d7):_0x3ae07a(_0x4cc687,_0x3c6e9e))||_0x3eb7d7;}return _0x317ffe>0x3&&_0x3eb7d7&&Object[_0x149298(0x9a)](_0x4cc687,_0x3c6e9e,_0x3eb7d7),_0x3eb7d7;};Object[a1_0x527d03(0x9a)](exports,'__esModule',{'value':!![]}),exports[a1_0x527d03(0x8f)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require('./config/config.default');function a1_0x2a99(_0x5d209d,_0x5325dd){var _0x2299df=a1_0x58ff();return a1_0x2a99=function(_0x54d36d,_0x2912f8){_0x54d36d=_0x54d36d-0x8e;var _0x58fff7=_0x2299df[_0x54d36d];return _0x58fff7;},a1_0x2a99(_0x5d209d,_0x5325dd);}let CustomConfiguration=class CustomConfiguration{};exports[a1_0x527d03(0x8f)]=CustomConfiguration,exports[a1_0x527d03(0x8f)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x527d03(0xa1)])({'conflictCheck':![],'namespace':a1_0x527d03(0x8e),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x50f98c=a2_0xd72f;function a2_0x2ece(){const _0x214bae=['3397900qSoFJA','CacheService','6GLvqim','get','value','__esModule','app','32HLyADr','2516110eTgWPy','REQUEST_OBJ_CTX_KEY','53739NdUFRP','160435sDpltj','search','(((.+)+)+)+$','getAsync','crypto-js','set','19014bObRXd','1064jRtctq','toString','getApplicationContext','parse','apply','use','stringify','903olPUdQ','89161nOecoR','26820HxDuOU','Method::Decorator','Cache'];a2_0x2ece=function(){return _0x214bae;};return a2_0x2ece();}(function(_0xb05301,_0x107f57){const _0x4aaa90=a2_0xd72f,_0xf1c366=_0xb05301();while(!![]){try{const _0x28a7db=parseInt(_0x4aaa90(0x18d))/0x1*(-parseInt(_0x4aaa90(0x193))/0x2)+-parseInt(_0x4aaa90(0x19b))/0x3+-parseInt(_0x4aaa90(0x198))/0x4*(parseInt(_0x4aaa90(0x19c))/0x5)+-parseInt(_0x4aaa90(0x184))/0x6*(-parseInt(_0x4aaa90(0x18c))/0x7)+-parseInt(_0x4aaa90(0x185))/0x8*(-parseInt(_0x4aaa90(0x18e))/0x9)+parseInt(_0x4aaa90(0x199))/0xa+-parseInt(_0x4aaa90(0x191))/0xb;if(_0x28a7db===_0x107f57)break;else _0xf1c366['push'](_0xf1c366['shift']());}catch(_0x21c6c9){_0xf1c366['push'](_0xf1c366['shift']());}}}(a2_0x2ece,0x323c0));const a2_0xa4e5c0=(function(){let _0x5ba241=!![];return function(_0x23de6d,_0x495f24){const _0x573e27=_0x5ba241?function(){const _0x3d63d3=a2_0xd72f;if(_0x495f24){const _0x225af4=_0x495f24[_0x3d63d3(0x189)](_0x23de6d,arguments);return _0x495f24=null,_0x225af4;}}:function(){};return _0x5ba241=![],_0x573e27;};}()),a2_0x4221c5=a2_0xa4e5c0(this,function(){const _0x325ba1=a2_0xd72f;return a2_0x4221c5['toString']()[_0x325ba1(0x19d)](_0x325ba1(0x180))['toString']()['constructor'](a2_0x4221c5)[_0x325ba1(0x19d)]('(((.+)+)+)+$');});a2_0x4221c5();'use strict';Object['defineProperty'](exports,a2_0x50f98c(0x196),{'value':!![]}),exports[a2_0x50f98c(0x190)]=Cache;const crypto_js_1=require(a2_0x50f98c(0x182)),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function json_encode(_0x3fda26){try{return JSON['stringify'](_0x3fda26);}catch(_0x35a1f7){return undefined;}}function a2_0xd72f(_0x2880c2,_0x3bc65a){const _0x28c108=a2_0x2ece();return a2_0xd72f=function(_0x4221c5,_0xa4e5c0){_0x4221c5=_0x4221c5-0x180;let _0x2ece81=_0x28c108[_0x4221c5];return _0x2ece81;},a2_0xd72f(_0x2880c2,_0x3bc65a);}function Cache(_0xb83c33,_0x18399e){return(_0x674ede,_0x4504d1,_0x297c4d)=>{const _0xaf29a6=a2_0xd72f,_0x5b5c4c=_0x297c4d[_0xaf29a6(0x195)];return _0x297c4d[_0xaf29a6(0x195)]=async function(..._0x2ec430){const _0x31cd44=_0xaf29a6;_0xb83c33=(_0xb83c33?''+_0xb83c33:''+(_0x4504d1||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x2ec430))[_0x31cd44(0x186)]();let _0x4eb330=await this[core_1[_0x31cd44(0x19a)]][_0x31cd44(0x197)][_0x31cd44(0x187)]()[_0x31cd44(0x181)](CacheService_1[_0x31cd44(0x192)]),_0x4ebc3f=await _0x4eb330[_0x31cd44(0x18a)](_0x31cd44(0x18f))[_0x31cd44(0x194)](_0xb83c33);if(_0x4ebc3f)return JSON[_0x31cd44(0x188)](_0x4ebc3f);else _0x4ebc3f=await _0x5b5c4c[_0x31cd44(0x189)](this,[..._0x2ec430]),await _0x4eb330[_0x31cd44(0x18a)](_0x31cd44(0x18f))[_0x31cd44(0x183)](_0xb83c33,JSON[_0x31cd44(0x18b)](_0x4ebc3f),_0x18399e);return _0x4ebc3f;},_0x297c4d;};}
1
+ const a2_0xdbf426=a2_0x215c;(function(_0x508f4c,_0xe84865){const _0x48f048=a2_0x215c,_0xf412ed=_0x508f4c();while(!![]){try{const _0x15d7f6=parseInt(_0x48f048(0x208))/0x1*(-parseInt(_0x48f048(0x204))/0x2)+parseInt(_0x48f048(0x201))/0x3+-parseInt(_0x48f048(0x1f9))/0x4*(parseInt(_0x48f048(0x202))/0x5)+parseInt(_0x48f048(0x20b))/0x6*(parseInt(_0x48f048(0x1f3))/0x7)+-parseInt(_0x48f048(0x1f0))/0x8*(parseInt(_0x48f048(0x1f7))/0x9)+parseInt(_0x48f048(0x1fe))/0xa*(parseInt(_0x48f048(0x1fd))/0xb)+parseInt(_0x48f048(0x1f5))/0xc;if(_0x15d7f6===_0xe84865)break;else _0xf412ed['push'](_0xf412ed['shift']());}catch(_0x272076){_0xf412ed['push'](_0xf412ed['shift']());}}}(a2_0x3790,0x9e9a4));const a2_0x1c06ea=(function(){let _0x571688=!![];return function(_0x458166,_0x13358c){const _0x31bc74=_0x571688?function(){const _0x58f272=a2_0x215c;if(_0x13358c){const _0x15d59a=_0x13358c[_0x58f272(0x20d)](_0x458166,arguments);return _0x13358c=null,_0x15d59a;}}:function(){};return _0x571688=![],_0x31bc74;};}()),a2_0x4c6293=a2_0x1c06ea(this,function(){const _0x166f9e=a2_0x215c;return a2_0x4c6293[_0x166f9e(0x1fc)]()['search'](_0x166f9e(0x1ee))[_0x166f9e(0x1fc)]()[_0x166f9e(0x20a)](a2_0x4c6293)['search']('(((.+)+)+)+$');});a2_0x4c6293();'use strict';Object[a2_0xdbf426(0x1ef)](exports,a2_0xdbf426(0x1f2),{'value':!![]}),exports[a2_0xdbf426(0x1f4)]=Cache;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0xdbf426(0x1f8)),core_1=require(a2_0xdbf426(0x205));function a2_0x215c(_0x4a8133,_0x52c293){const _0x43b88e=a2_0x3790();return a2_0x215c=function(_0x4c6293,_0x1c06ea){_0x4c6293=_0x4c6293-0x1ee;let _0x37901e=_0x43b88e[_0x4c6293];return _0x37901e;},a2_0x215c(_0x4a8133,_0x52c293);}function a2_0x3790(){const _0x3be478=['3288fNprrM','REQUEST_OBJ_CTX_KEY','__esModule','7FVxkeu','Cache','9692796ZShopp','getApplicationContext','3501bNCgzs','../service/CacheService','4086128pfjtVS','CacheService','value','toString','1073193FcPNZO','110JLrpoC','getAsync','Method::Decorator','1257819OEJCtM','5KmzgmC','set','2fegxTz','@midwayjs/core','parse','stringify','967255huWYDF','use','constructor','2988618mhExjt','app','apply','(((.+)+)+)+$','defineProperty'];a2_0x3790=function(){return _0x3be478;};return a2_0x3790();}function json_encode(_0x146ecd){const _0x429348=a2_0xdbf426;try{return JSON[_0x429348(0x207)](_0x146ecd);}catch(_0x31e715){return undefined;}}function Cache(_0x660fce,_0x3d92a9){return(_0x364722,_0x5c7de4,_0xf397e4)=>{const _0x413473=a2_0x215c,_0x4848d5=_0xf397e4['value'];return _0xf397e4[_0x413473(0x1fb)]=async function(..._0x6894db){const _0x561c6e=_0x413473;_0x660fce=(_0x660fce?''+_0x660fce:''+(_0x5c7de4||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x6894db))[_0x561c6e(0x1fc)]();let _0x3d6ae0=await this[core_1[_0x561c6e(0x1f1)]][_0x561c6e(0x20c)][_0x561c6e(0x1f6)]()[_0x561c6e(0x1ff)](CacheService_1[_0x561c6e(0x1fa)]),_0x291d6b=await _0x3d6ae0[_0x561c6e(0x209)]('Method::Decorator')['get'](_0x660fce);if(_0x291d6b)return JSON[_0x561c6e(0x206)](_0x291d6b);else _0x291d6b=await _0x4848d5[_0x561c6e(0x20d)](this,[..._0x6894db]),await _0x3d6ae0[_0x561c6e(0x209)](_0x561c6e(0x200))[_0x561c6e(0x203)](_0x660fce,JSON[_0x561c6e(0x207)](_0x291d6b),_0x3d92a9);return _0x291d6b;},_0xf397e4;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x239cae=a3_0x38b3;(function(_0x588e2d,_0x4d2f86){var _0x56ccf1=a3_0x38b3,_0x3c6458=_0x588e2d();while(!![]){try{var _0x1d8725=-parseInt(_0x56ccf1(0x1db))/0x1*(-parseInt(_0x56ccf1(0x1cd))/0x2)+-parseInt(_0x56ccf1(0x1d2))/0x3*(parseInt(_0x56ccf1(0x1e1))/0x4)+parseInt(_0x56ccf1(0x1dc))/0x5*(-parseInt(_0x56ccf1(0x1da))/0x6)+-parseInt(_0x56ccf1(0x1cb))/0x7+-parseInt(_0x56ccf1(0x1d7))/0x8+parseInt(_0x56ccf1(0x1ca))/0x9*(-parseInt(_0x56ccf1(0x1de))/0xa)+parseInt(_0x56ccf1(0x1d3))/0xb*(parseInt(_0x56ccf1(0x1dd))/0xc);if(_0x1d8725===_0x4d2f86)break;else _0x3c6458['push'](_0x3c6458['shift']());}catch(_0x1941d2){_0x3c6458['push'](_0x3c6458['shift']());}}}(a3_0x5a21,0x8cc4c));var a3_0x361fe8=(function(){var _0x1a53bc=!![];return function(_0x416b33,_0x247058){var _0x7e37c=_0x1a53bc?function(){var _0x2bb7ef=a3_0x38b3;if(_0x247058){var _0xf1956e=_0x247058[_0x2bb7ef(0x1e0)](_0x416b33,arguments);return _0x247058=null,_0xf1956e;}}:function(){};return _0x1a53bc=![],_0x7e37c;};}()),a3_0x2801f2=a3_0x361fe8(this,function(){var _0x376934=a3_0x38b3;return a3_0x2801f2[_0x376934(0x1d6)]()['search'](_0x376934(0x1df))[_0x376934(0x1d6)]()['constructor'](a3_0x2801f2)[_0x376934(0x1d9)](_0x376934(0x1df));});a3_0x2801f2();'use strict';Object[a3_0x239cae(0x1ce)](exports,'__esModule',{'value':!![]}),exports[a3_0x239cae(0x1d5)]=exports[a3_0x239cae(0x1d0)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x239cae(0x1cc));Object[a3_0x239cae(0x1ce)](exports,a3_0x239cae(0x1d1),{'enumerable':!![],'get':function(){var _0x3f05bd=a3_0x239cae;return configuration_1[_0x3f05bd(0x1cf)];}});function a3_0x38b3(_0xd3cd61,_0x130ef4){var _0x5546e0=a3_0x5a21();return a3_0x38b3=function(_0x2801f2,_0x361fe8){_0x2801f2=_0x2801f2-0x1ca;var _0x5a219a=_0x5546e0[_0x2801f2];return _0x5a219a;},a3_0x38b3(_0xd3cd61,_0x130ef4);}function a3_0x5a21(){var _0x498811=['defineProperty','CustomConfiguration','Cache','Configuration','2100FEkSKm','4081957YoPlhh','./service/CacheService','CacheService','toString','8463856msvGOR','./decorator/Cache','search','6jhIlCZ','722311mFbpyb','5403955RtDIlI','132zkAwcd','10LeLeYE','(((.+)+)+)+$','apply','888DEVKAX','9630126FmxHjB','6044451kHRpeM','./configuration','2EPcSPD'];a3_0x5a21=function(){return _0x498811;};return a3_0x5a21();}var Cache_1=require(a3_0x239cae(0x1d8));Object[a3_0x239cae(0x1ce)](exports,a3_0x239cae(0x1d0),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x239cae(0x1d4));Object[a3_0x239cae(0x1ce)](exports,'CacheService',{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
1
+ var a3_0x18e9ba=a3_0x2811;function a3_0x11f5(){var _0x590e72=['search','2454728WEdRLU','1065984oiGSUT','constructor','Configuration','480kARzwL','toString','CustomConfiguration','apply','2252070oDEtim','__esModule','defineProperty','(((.+)+)+)+$','5uwrYgh','18670VINadc','1252321wIQsUG','3svCrdp','CacheService','371502EJDouK','82674GKXlYZ','./decorator/Cache','Cache'];a3_0x11f5=function(){return _0x590e72;};return a3_0x11f5();}(function(_0xc9efe0,_0x588ea0){var _0x544007=a3_0x2811,_0x3f1deb=_0xc9efe0();while(!![]){try{var _0x16f307=parseInt(_0x544007(0xf9))/0x1+-parseInt(_0x544007(0xed))/0x2+parseInt(_0x544007(0xfb))/0x3*(parseInt(_0x544007(0xec))/0x4)+parseInt(_0x544007(0xf8))/0x5*(parseInt(_0x544007(0xe7))/0x6)+-parseInt(_0x544007(0xfa))/0x7+parseInt(_0x544007(0xf0))/0x8*(parseInt(_0x544007(0xe8))/0x9)+-parseInt(_0x544007(0xf4))/0xa;if(_0x16f307===_0x588ea0)break;else _0x3f1deb['push'](_0x3f1deb['shift']());}catch(_0x3df426){_0x3f1deb['push'](_0x3f1deb['shift']());}}}(a3_0x11f5,0x4b467));function a3_0x2811(_0x10d92e,_0x5929a8){var _0x5b054f=a3_0x11f5();return a3_0x2811=function(_0x5ea952,_0x28e7fa){_0x5ea952=_0x5ea952-0xe7;var _0x11f572=_0x5b054f[_0x5ea952];return _0x11f572;},a3_0x2811(_0x10d92e,_0x5929a8);}var a3_0x28e7fa=(function(){var _0x5692ad=!![];return function(_0x437bcf,_0x298e37){var _0x33a53b=_0x5692ad?function(){var _0x38254e=a3_0x2811;if(_0x298e37){var _0x380ad7=_0x298e37[_0x38254e(0xf3)](_0x437bcf,arguments);return _0x298e37=null,_0x380ad7;}}:function(){};return _0x5692ad=![],_0x33a53b;};}()),a3_0x5ea952=a3_0x28e7fa(this,function(){var _0x4f896c=a3_0x2811;return a3_0x5ea952[_0x4f896c(0xf1)]()['search'](_0x4f896c(0xf7))[_0x4f896c(0xf1)]()[_0x4f896c(0xee)](a3_0x5ea952)[_0x4f896c(0xeb)]('(((.+)+)+)+$');});a3_0x5ea952();'use strict';Object[a3_0x18e9ba(0xf6)](exports,a3_0x18e9ba(0xf5),{'value':!![]}),exports['CacheService']=exports[a3_0x18e9ba(0xea)]=exports[a3_0x18e9ba(0xef)]=void 0x0;var configuration_1=require('./configuration');Object['defineProperty'](exports,a3_0x18e9ba(0xef),{'enumerable':!![],'get':function(){var _0x4b5ab1=a3_0x18e9ba;return configuration_1[_0x4b5ab1(0xf2)];}});var Cache_1=require(a3_0x18e9ba(0xe9));Object[a3_0x18e9ba(0xf6)](exports,a3_0x18e9ba(0xea),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require('./service/CacheService');Object[a3_0x18e9ba(0xf6)](exports,a3_0x18e9ba(0xfc),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
@@ -18,4 +18,11 @@ export declare class Cache {
18
18
  hset<T>(key: string, field: string, value: T, ttl?: number): Promise<T>;
19
19
  hget<T>(key: string, field: string, defaultval?: T): Promise<T>;
20
20
  hget<T>(key: string, field: string, defaultval?: () => Promise<T>, ttl?: number): Promise<T>;
21
+ list(key: string): {
22
+ all: () => Promise<any>;
23
+ pop: () => Promise<any>;
24
+ push: (...value: any[]) => Promise<any[]>;
25
+ };
21
26
  }
27
+ export declare function json_encode(value: any): string;
28
+ export declare function json_decode(value: string): any;
@@ -1 +1 @@
1
- var a4_0x5868a3=a4_0x4862;(function(_0x52d9f6,_0xc65fb2){var _0x376e15=a4_0x4862,_0x4ce2a6=_0x52d9f6();while(!![]){try{var _0x165195=parseInt(_0x376e15(0xc6))/0x1*(-parseInt(_0x376e15(0xaf))/0x2)+parseInt(_0x376e15(0xba))/0x3+parseInt(_0x376e15(0xb6))/0x4*(-parseInt(_0x376e15(0xa5))/0x5)+-parseInt(_0x376e15(0xc7))/0x6*(parseInt(_0x376e15(0xaa))/0x7)+parseInt(_0x376e15(0xbe))/0x8*(-parseInt(_0x376e15(0xc2))/0x9)+parseInt(_0x376e15(0xc8))/0xa*(parseInt(_0x376e15(0xd0))/0xb)+parseInt(_0x376e15(0xcb))/0xc*(parseInt(_0x376e15(0xb4))/0xd);if(_0x165195===_0xc65fb2)break;else _0x4ce2a6['push'](_0x4ce2a6['shift']());}catch(_0x53b816){_0x4ce2a6['push'](_0x4ce2a6['shift']());}}}(a4_0x447c,0x5c996));var a4_0x2a5919=(function(){var _0x238fa3=!![];return function(_0x1eb654,_0x2701cd){var _0x2d06c3=_0x238fa3?function(){if(_0x2701cd){var _0xfe5354=_0x2701cd['apply'](_0x1eb654,arguments);return _0x2701cd=null,_0xfe5354;}}:function(){};return _0x238fa3=![],_0x2d06c3;};}()),a4_0x439898=a4_0x2a5919(this,function(){var _0x12f289=a4_0x4862;return a4_0x439898[_0x12f289(0xca)]()[_0x12f289(0xac)](_0x12f289(0xa1))[_0x12f289(0xca)]()[_0x12f289(0xad)](a4_0x439898)[_0x12f289(0xac)](_0x12f289(0xa1));});a4_0x439898();'use strict';var __decorate=this&&this[a4_0x5868a3(0xa8)]||function(_0x3e52f4,_0x73df9b,_0x5b603c,_0x42553b){var _0x1c0539=a4_0x5868a3,_0x4c887c=arguments[_0x1c0539(0xb0)],_0x20e307=_0x4c887c<0x3?_0x73df9b:_0x42553b===null?_0x42553b=Object['getOwnPropertyDescriptor'](_0x73df9b,_0x5b603c):_0x42553b,_0x3dbd1f;if(typeof Reflect===_0x1c0539(0xb9)&&typeof Reflect[_0x1c0539(0xbf)]===_0x1c0539(0xc4))_0x20e307=Reflect[_0x1c0539(0xbf)](_0x3e52f4,_0x73df9b,_0x5b603c,_0x42553b);else{for(var _0x4da51d=_0x3e52f4['length']-0x1;_0x4da51d>=0x0;_0x4da51d--)if(_0x3dbd1f=_0x3e52f4[_0x4da51d])_0x20e307=(_0x4c887c<0x3?_0x3dbd1f(_0x20e307):_0x4c887c>0x3?_0x3dbd1f(_0x73df9b,_0x5b603c,_0x20e307):_0x3dbd1f(_0x73df9b,_0x5b603c))||_0x20e307;}return _0x4c887c>0x3&&_0x20e307&&Object['defineProperty'](_0x73df9b,_0x5b603c,_0x20e307),_0x20e307;},__metadata=this&&this[a4_0x5868a3(0xd2)]||function(_0x5bec3f,_0x2821c0){var _0x4f33be=a4_0x5868a3;if(typeof Reflect==='object'&&typeof Reflect[_0x4f33be(0xb3)]===_0x4f33be(0xc4))return Reflect['metadata'](_0x5bec3f,_0x2821c0);};Object[a4_0x5868a3(0xa3)](exports,a4_0x5868a3(0xd1),{'value':!![]}),exports['Cache']=exports['CacheService']=void 0x0;function a4_0x4862(_0x5bfa8c,_0x47bd3f){var _0x105023=a4_0x447c();return a4_0x4862=function(_0x439898,_0x2a5919){_0x439898=_0x439898-0x9e;var _0x447cc0=_0x105023[_0x439898];return _0x447cc0;},a4_0x4862(_0x5bfa8c,_0x47bd3f);}const cacheManager=require(a4_0x5868a3(0xa9)),core_1=require('@midwayjs/core');function a4_0x447c(){var _0x4ba689=['design:type','cache','CacheService','name','176TByMlW','__esModule','__metadata','clients','default','hget','(((.+)+)+)+$','options','defineProperty','prefix','5ZWwkpW','set','Singleton','__decorate','cache-manager','56049YBmQHZ','Provide','search','constructor','del','4tyImKe','length','prototype','hdel','metadata','11786021LYDTfc','redis','2823824oxghWa','stores','Cache','object','580164rpOCgD','reset','caching','undefined','2910448giOvsh','decorate','config','has','9XnxcpO','store','function','hset','42379ByBvvQ','480gXkUUU','104840ZCVvUT','get','toString','24eWbrGp'];a4_0x447c=function(){return _0x4ba689;};return a4_0x447c();}let CacheService=class CacheService{constructor(){var _0x1f01a1=a4_0x5868a3;this[_0x1f01a1(0xcd)]=undefined,this[_0x1f01a1(0x9e)]=new Map();}['use'](_0x542bc0){var _0x36f62b=a4_0x5868a3,_0x32ab78,_0x42b924;if(!this[_0x36f62b(0xcd)]){const _0x2514fb=((_0x32ab78=this[_0x36f62b(0xc0)][_0x36f62b(0xb7)])===null||_0x32ab78===void 0x0?void 0x0:_0x32ab78[(_0x42b924=this['config'])===null||_0x42b924===void 0x0?void 0x0:_0x42b924[_0x36f62b(0x9f)]])||this['config'][_0x36f62b(0xb7)]['file'];this[_0x36f62b(0xcd)]=cacheManager[_0x36f62b(0xbc)]({..._0x2514fb[_0x36f62b(0xa2)],'store':_0x2514fb[_0x36f62b(0xc3)]});}return!this['clients'][_0x36f62b(0xc1)](_0x542bc0)&&this['clients'][_0x36f62b(0xa6)](_0x542bc0,new Cache(_0x542bc0,this['cache'])),this[_0x36f62b(0x9e)]['get'](_0x542bc0);}async['reset'](){var _0x3ca046=a4_0x5868a3;return await this['cache'][_0x3ca046(0xbb)]();}};exports[a4_0x5868a3(0xce)]=CacheService,__decorate([(0x0,core_1['Config'])('cache'),__metadata(a4_0x5868a3(0xcc),Object)],CacheService[a4_0x5868a3(0xb1)],a4_0x5868a3(0xc0),void 0x0),exports['CacheService']=CacheService=__decorate([(0x0,core_1[a4_0x5868a3(0xab)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a4_0x5868a3(0xa7)])],CacheService);class Cache{constructor(_0xd89d8a,_0x126b2a){var _0x2e19ca=a4_0x5868a3;this[_0x2e19ca(0xcd)]=_0x126b2a,this[_0x2e19ca(0xa4)]=_0xd89d8a;}async[a4_0x5868a3(0xae)](_0x1880ef){var _0x98c38a=a4_0x5868a3;return await this[_0x98c38a(0xcd)][_0x98c38a(0xae)](this['prefix']+':'+_0x1880ef);}async[a4_0x5868a3(0xa6)](_0x89a0c1,_0x2d65e6,_0x1b77f8){var _0x4e1f50=a4_0x5868a3,_0x279a93,_0x201e17;return((_0x201e17=(_0x279a93=this[_0x4e1f50(0xcd)])===null||_0x279a93===void 0x0?void 0x0:_0x279a93['store'])===null||_0x201e17===void 0x0?void 0x0:_0x201e17[_0x4e1f50(0xcf)])==_0x4e1f50(0xb5)?await this[_0x4e1f50(0xcd)][_0x4e1f50(0xa6)](this[_0x4e1f50(0xa4)]+':'+_0x89a0c1,_0x2d65e6,{'ttl':_0x1b77f8}):await this['cache'][_0x4e1f50(0xa6)](this[_0x4e1f50(0xa4)]+':'+_0x89a0c1,_0x2d65e6,{'ttl':_0x1b77f8});}async[a4_0x5868a3(0xc9)](_0x48811d,_0x286b29,_0x375019){return new Promise((_0x16d2dd,_0xe8ebe0)=>{var _0x2a7183=a4_0x4862;this[_0x2a7183(0xcd)][_0x2a7183(0xc9)](this['prefix']+':'+_0x48811d,async(_0x5025c7,_0xbd1347)=>{var _0x193046=_0x2a7183;_0x5025c7?_0xe8ebe0(_0x5025c7):((_0xbd1347===undefined||_0xbd1347===null)&&(typeof _0x286b29==_0x193046(0xc4)?(_0xbd1347=await _0x286b29(),typeof _0xbd1347!=_0x193046(0xbd)&&await this['set'](_0x48811d,_0xbd1347,_0x375019)):_0xbd1347=_0x286b29),_0x16d2dd(_0xbd1347));});});}async[a4_0x5868a3(0xb2)](_0x1c75ad,_0xbcccb4){return await this['del'](_0x1c75ad+'#'+_0xbcccb4);}async[a4_0x5868a3(0xc5)](_0x1af1de,_0xdc8e11,_0x144f14,_0x108442){return await this['set'](_0x1af1de+'#'+_0xdc8e11,_0x144f14,_0x108442);}async[a4_0x5868a3(0xa0)](_0x1b3635,_0x3cd302,_0x43cd44,_0x41ef23){var _0xb6876c=a4_0x5868a3;return await this[_0xb6876c(0xc9)](_0x1b3635+'#'+_0x3cd302,_0x43cd44,_0x41ef23);}}exports[a4_0x5868a3(0xb8)]=Cache;
1
+ var a4_0x3d8d23=a4_0x17a6;(function(_0x577cda,_0x1575da){var _0x4c1058=a4_0x17a6,_0x5c0381=_0x577cda();while(!![]){try{var _0x2cd3cb=-parseInt(_0x4c1058(0x129))/0x1+parseInt(_0x4c1058(0x125))/0x2*(-parseInt(_0x4c1058(0x117))/0x3)+parseInt(_0x4c1058(0x149))/0x4*(-parseInt(_0x4c1058(0x11a))/0x5)+parseInt(_0x4c1058(0x146))/0x6*(-parseInt(_0x4c1058(0x135))/0x7)+-parseInt(_0x4c1058(0x133))/0x8*(-parseInt(_0x4c1058(0x128))/0x9)+parseInt(_0x4c1058(0x111))/0xa+parseInt(_0x4c1058(0x139))/0xb;if(_0x2cd3cb===_0x1575da)break;else _0x5c0381['push'](_0x5c0381['shift']());}catch(_0xd831ea){_0x5c0381['push'](_0x5c0381['shift']());}}}(a4_0x2185,0x3ed0b));var a4_0x24363d=(function(){var _0x11ce76=!![];return function(_0x148f09,_0x19b4fb){var _0x28d424=_0x11ce76?function(){var _0x3a274d=a4_0x17a6;if(_0x19b4fb){var _0x3c13de=_0x19b4fb[_0x3a274d(0x13c)](_0x148f09,arguments);return _0x19b4fb=null,_0x3c13de;}}:function(){};return _0x11ce76=![],_0x28d424;};}()),a4_0x2fe2cd=a4_0x24363d(this,function(){var _0x5ba4a6=a4_0x17a6;return a4_0x2fe2cd[_0x5ba4a6(0x12a)]()['search'](_0x5ba4a6(0x12e))['toString']()[_0x5ba4a6(0x110)](a4_0x2fe2cd)[_0x5ba4a6(0x118)](_0x5ba4a6(0x12e));});a4_0x2fe2cd();function a4_0x2185(){var _0x51a058=['__esModule','has','8LImxWZ','prefix','json_decode','caching','hdel','set','name','function','__metadata','get','constructor','1028760RvqJoG','getClient','stringify','__decorate','undefined','cache-manager','309cfZdvn','search','lrange','725515AtjTvP','filter','file','cache','Config','metadata','rpush','clients','del','map','defineProperty','9230yeabHi','Scope','redis','79128uTZqWb','440713UkhKJY','toString','parse','hget','stores','(((.+)+)+)+$','Provide','store','ScopeEnum','config','240kJPJQk','prototype','14JYViJy','CacheService','Cache','length','12851201RSoxDy','object','hset','apply','getOwnPropertyDescriptor','reset','design:type','@midwayjs/core','options','Singleton','catch','shift','lpop','214116hSyhQb'];a4_0x2185=function(){return _0x51a058;};return a4_0x2185();}'use strict';var __decorate=this&&this[a4_0x3d8d23(0x114)]||function(_0x307f73,_0x4b9247,_0x81b529,_0x4370fa){var _0x3f3ec1=a4_0x3d8d23,_0x253f54=arguments[_0x3f3ec1(0x138)],_0x4b81de=_0x253f54<0x3?_0x4b9247:_0x4370fa===null?_0x4370fa=Object[_0x3f3ec1(0x13d)](_0x4b9247,_0x81b529):_0x4370fa,_0x31db18;if(typeof Reflect===_0x3f3ec1(0x13a)&&typeof Reflect['decorate']===_0x3f3ec1(0x10d))_0x4b81de=Reflect['decorate'](_0x307f73,_0x4b9247,_0x81b529,_0x4370fa);else{for(var _0x3b03d3=_0x307f73[_0x3f3ec1(0x138)]-0x1;_0x3b03d3>=0x0;_0x3b03d3--)if(_0x31db18=_0x307f73[_0x3b03d3])_0x4b81de=(_0x253f54<0x3?_0x31db18(_0x4b81de):_0x253f54>0x3?_0x31db18(_0x4b9247,_0x81b529,_0x4b81de):_0x31db18(_0x4b9247,_0x81b529))||_0x4b81de;}return _0x253f54>0x3&&_0x4b81de&&Object[_0x3f3ec1(0x124)](_0x4b9247,_0x81b529,_0x4b81de),_0x4b81de;},__metadata=this&&this[a4_0x3d8d23(0x10e)]||function(_0x51dff7,_0xaaec10){var _0x57bb8b=a4_0x3d8d23;if(typeof Reflect===_0x57bb8b(0x13a)&&typeof Reflect[_0x57bb8b(0x11f)]==='function')return Reflect[_0x57bb8b(0x11f)](_0x51dff7,_0xaaec10);};Object[a4_0x3d8d23(0x124)](exports,a4_0x3d8d23(0x147),{'value':!![]}),exports[a4_0x3d8d23(0x137)]=exports[a4_0x3d8d23(0x136)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x3d8d23(0x108)]=json_decode;const cacheManager=require(a4_0x3d8d23(0x116)),core_1=require(a4_0x3d8d23(0x140));let CacheService=class CacheService{constructor(){var _0x271591=a4_0x3d8d23;this[_0x271591(0x11d)]=undefined,this[_0x271591(0x121)]=new Map();}['use'](_0x11cd68){var _0x3dd9be=a4_0x3d8d23,_0x2ec19a,_0x5675f8;if(!this[_0x3dd9be(0x11d)]){const _0x156a08=((_0x2ec19a=this[_0x3dd9be(0x132)][_0x3dd9be(0x12d)])===null||_0x2ec19a===void 0x0?void 0x0:_0x2ec19a[(_0x5675f8=this['config'])===null||_0x5675f8===void 0x0?void 0x0:_0x5675f8['default']])||this[_0x3dd9be(0x132)][_0x3dd9be(0x12d)][_0x3dd9be(0x11c)];this[_0x3dd9be(0x11d)]=cacheManager[_0x3dd9be(0x109)]({..._0x156a08[_0x3dd9be(0x141)],'store':_0x156a08[_0x3dd9be(0x130)]});}return!this['clients'][_0x3dd9be(0x148)](_0x11cd68)&&this[_0x3dd9be(0x121)][_0x3dd9be(0x10b)](_0x11cd68,new Cache(_0x11cd68,this[_0x3dd9be(0x11d)])),this[_0x3dd9be(0x121)][_0x3dd9be(0x10f)](_0x11cd68);}async[a4_0x3d8d23(0x13e)](){var _0x54fa1e=a4_0x3d8d23;return await this[_0x54fa1e(0x11d)][_0x54fa1e(0x13e)]();}};exports[a4_0x3d8d23(0x136)]=CacheService,__decorate([(0x0,core_1[a4_0x3d8d23(0x11e)])('cache'),__metadata(a4_0x3d8d23(0x13f),Object)],CacheService[a4_0x3d8d23(0x134)],a4_0x3d8d23(0x132),void 0x0),exports[a4_0x3d8d23(0x136)]=CacheService=__decorate([(0x0,core_1[a4_0x3d8d23(0x12f)])(),(0x0,core_1[a4_0x3d8d23(0x126)])(core_1[a4_0x3d8d23(0x131)][a4_0x3d8d23(0x142)])],CacheService);class Cache{constructor(_0x47b5d5,_0x1a19e4){var _0x425be7=a4_0x3d8d23;this[_0x425be7(0x11d)]=_0x1a19e4,this['prefix']=_0x47b5d5;}async[a4_0x3d8d23(0x122)](_0x2831f4){var _0x522a63=a4_0x3d8d23;return await this[_0x522a63(0x11d)][_0x522a63(0x122)](this['prefix']+':'+_0x2831f4);}async[a4_0x3d8d23(0x10b)](_0x2a539d,_0x36a5dc,_0x3abeb6){var _0x59e2b6=a4_0x3d8d23,_0x464cbe,_0x5bde90;return((_0x5bde90=(_0x464cbe=this[_0x59e2b6(0x11d)])===null||_0x464cbe===void 0x0?void 0x0:_0x464cbe['store'])===null||_0x5bde90===void 0x0?void 0x0:_0x5bde90[_0x59e2b6(0x10c)])==_0x59e2b6(0x127)?await this['cache'][_0x59e2b6(0x10b)](this[_0x59e2b6(0x107)]+':'+_0x2a539d,_0x36a5dc,{'ttl':_0x3abeb6}):await this[_0x59e2b6(0x11d)][_0x59e2b6(0x10b)](this[_0x59e2b6(0x107)]+':'+_0x2a539d,_0x36a5dc,{'ttl':_0x3abeb6});}async['get'](_0x377300,_0x1a7bb9,_0x2a86a3){return new Promise((_0x5926ca,_0x5c51cf)=>{var _0x28c946=a4_0x17a6;this['cache'][_0x28c946(0x10f)](this[_0x28c946(0x107)]+':'+_0x377300,async(_0x110595,_0x28da09)=>{var _0x173215=_0x28c946;_0x110595?_0x5c51cf(_0x110595):((_0x28da09===undefined||_0x28da09===null)&&(typeof _0x1a7bb9==_0x173215(0x10d)?(_0x28da09=await _0x1a7bb9()[_0x173215(0x143)](_0x412640=>_0x5c51cf(_0x412640)),typeof _0x28da09!=_0x173215(0x115)&&await this['set'](_0x377300,_0x28da09,_0x2a86a3)):_0x28da09=_0x1a7bb9),_0x5926ca(_0x28da09));});});}async[a4_0x3d8d23(0x10a)](_0x5615a8,_0x230173){return await this['del'](_0x5615a8+'#'+_0x230173);}async[a4_0x3d8d23(0x13b)](_0x36e5bb,_0x9b0ab7,_0x149af2,_0x232e52){return await this['set'](_0x36e5bb+'#'+_0x9b0ab7,_0x149af2,_0x232e52);}async[a4_0x3d8d23(0x12c)](_0x410f06,_0x227d5a,_0x1e8a3d,_0x2cd3e2){var _0x268bea=a4_0x3d8d23;return await this[_0x268bea(0x10f)](_0x410f06+'#'+_0x227d5a,_0x1e8a3d,_0x2cd3e2);}['list'](_0x209446){const _0x52c801={'all':async()=>{var _0x160d14=a4_0x17a6,_0x4a3b67,_0x2092d6,_0x529d2d,_0x524932,_0x48a2e1;return((_0x2092d6=(_0x4a3b67=this[_0x160d14(0x11d)])===null||_0x4a3b67===void 0x0?void 0x0:_0x4a3b67['store'])===null||_0x2092d6===void 0x0?void 0x0:_0x2092d6['name'])==_0x160d14(0x127)?(await((_0x48a2e1=(_0x524932=(_0x529d2d=this===null||this===void 0x0?void 0x0:this[_0x160d14(0x11d)])===null||_0x529d2d===void 0x0?void 0x0:_0x529d2d[_0x160d14(0x130)])===null||_0x524932===void 0x0?void 0x0:_0x524932[_0x160d14(0x112)]())===null||_0x48a2e1===void 0x0?void 0x0:_0x48a2e1[_0x160d14(0x119)](this[_0x160d14(0x107)]+':'+_0x209446,0x0,-0x1))||[])[_0x160d14(0x123)](_0x233d91=>json_decode(_0x233d91)):await this[_0x160d14(0x10f)](_0x209446,[]);},'pop':async()=>{var _0x4ff9c2=a4_0x17a6,_0x477e1d,_0x2de08c,_0x349059,_0x2a86f9,_0x4ca8a6;if(((_0x2de08c=(_0x477e1d=this[_0x4ff9c2(0x11d)])===null||_0x477e1d===void 0x0?void 0x0:_0x477e1d[_0x4ff9c2(0x130)])===null||_0x2de08c===void 0x0?void 0x0:_0x2de08c['name'])==_0x4ff9c2(0x127))return json_decode(await((_0x4ca8a6=(_0x2a86f9=(_0x349059=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x349059===void 0x0?void 0x0:_0x349059['store'])===null||_0x2a86f9===void 0x0?void 0x0:_0x2a86f9[_0x4ff9c2(0x112)]())===null||_0x4ca8a6===void 0x0?void 0x0:_0x4ca8a6[_0x4ff9c2(0x145)](this['prefix']+':'+_0x209446)));else{let _0x466cd1=await this[_0x4ff9c2(0x10f)](_0x209446,[]),_0x4d7d53=_0x466cd1[_0x4ff9c2(0x144)]();return await this[_0x4ff9c2(0x10b)](_0x209446,_0x466cd1),_0x4d7d53;}},'push':async(..._0x32668d)=>{var _0x46c6f8=a4_0x17a6,_0xbf57d7,_0x276886,_0x5f30f7,_0xbffdb9,_0x1baba3;const _0x369ba8=_0x32668d[_0x46c6f8(0x11b)](_0x3a229e=>_0x3a229e!==undefined&&_0x3a229e!==null);if(((_0x276886=(_0xbf57d7=this[_0x46c6f8(0x11d)])===null||_0xbf57d7===void 0x0?void 0x0:_0xbf57d7['store'])===null||_0x276886===void 0x0?void 0x0:_0x276886[_0x46c6f8(0x10c)])=='redis')return await((_0x1baba3=(_0xbffdb9=(_0x5f30f7=this===null||this===void 0x0?void 0x0:this[_0x46c6f8(0x11d)])===null||_0x5f30f7===void 0x0?void 0x0:_0x5f30f7[_0x46c6f8(0x130)])===null||_0xbffdb9===void 0x0?void 0x0:_0xbffdb9[_0x46c6f8(0x112)]())===null||_0x1baba3===void 0x0?void 0x0:_0x1baba3[_0x46c6f8(0x120)](this['prefix']+':'+_0x209446,..._0x369ba8['map'](_0x29a4ef=>json_encode(_0x29a4ef)))),_0x369ba8;else{let _0x2b38a4=await this[_0x46c6f8(0x10f)](_0x209446,[]);return _0x2b38a4['push'](..._0x369ba8),await this[_0x46c6f8(0x10b)](_0x209446,_0x2b38a4),_0x2b38a4;}}};return _0x52c801;}}function a4_0x17a6(_0x65a927,_0xe9d61b){var _0x4824b1=a4_0x2185();return a4_0x17a6=function(_0x2fe2cd,_0x24363d){_0x2fe2cd=_0x2fe2cd-0x107;var _0x218579=_0x4824b1[_0x2fe2cd];return _0x218579;},a4_0x17a6(_0x65a927,_0xe9d61b);}exports['Cache']=Cache;function json_encode(_0x42b67a){var _0x409cbd=a4_0x3d8d23;try{return JSON[_0x409cbd(0x113)](_0x42b67a);}catch(_0x56d2b7){return undefined;}}function json_decode(_0x584b63){var _0x19f984=a4_0x3d8d23;try{return JSON[_0x19f984(0x12b)](_0x584b63);}catch(_0x4c5035){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.55",
3
+ "version": "3.4.57",
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": "b2423470fe8628ab9a41d4579d59132162a95f15"
26
+ "gitHead": "9e3f71eebcca632b4006739aa2c643137f71a0fc"
27
27
  }