@anncic-api/cache 3.0.2 → 3.0.4

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_0x321fb9=a0_0x3d95;(function(_0xbdd4e4,_0x18a61f){const _0x4c1ae0=a0_0x3d95,_0x555ed5=_0xbdd4e4();while(!![]){try{const _0x1e3988=-parseInt(_0x4c1ae0(0x19e))/0x1*(-parseInt(_0x4c1ae0(0x194))/0x2)+-parseInt(_0x4c1ae0(0x1a6))/0x3*(parseInt(_0x4c1ae0(0x193))/0x4)+parseInt(_0x4c1ae0(0x1a7))/0x5+-parseInt(_0x4c1ae0(0x1a0))/0x6+-parseInt(_0x4c1ae0(0x1a9))/0x7*(-parseInt(_0x4c1ae0(0x195))/0x8)+-parseInt(_0x4c1ae0(0x1a1))/0x9+parseInt(_0x4c1ae0(0x19a))/0xa*(parseInt(_0x4c1ae0(0x199))/0xb);if(_0x1e3988===_0x18a61f)break;else _0x555ed5['push'](_0x555ed5['shift']());}catch(_0x214d2b){_0x555ed5['push'](_0x555ed5['shift']());}}}(a0_0x6771,0x64025));const a0_0x17ec62=(function(){let _0x2f0f2a=!![];return function(_0x4dd0b0,_0x3a8d64){const _0x599c07=_0x2f0f2a?function(){const _0x3a21d5=a0_0x3d95;if(_0x3a8d64){const _0x137f6b=_0x3a8d64[_0x3a21d5(0x19d)](_0x4dd0b0,arguments);return _0x3a8d64=null,_0x137f6b;}}:function(){};return _0x2f0f2a=![],_0x599c07;};}()),a0_0x10d28f=a0_0x17ec62(this,function(){const _0x43145b=a0_0x3d95;return a0_0x10d28f['toString']()[_0x43145b(0x19c)]('(((.+)+)+)+$')['toString']()[_0x43145b(0x1a8)](a0_0x10d28f)[_0x43145b(0x19c)](_0x43145b(0x1a2));});a0_0x10d28f();'use strict';Object['defineProperty'](exports,a0_0x321fb9(0x1a4),{'value':!![]});const fsStore=require(a0_0x321fb9(0x19b)),redisStore=require(a0_0x321fb9(0x196));function a0_0x6771(){const _0x15e60e=['constructor','276815QTJGfS','4XsPKry','6jXyUSD','8rZVJEH','cache-manager-ioredis','appDir','memory','905443zsxTlz','150WGrtHt','cache-manager-fs-hash','search','apply','134129eZInkn','/runtime/.cache','1974516JxIRTK','6702012FwCFXd','(((.+)+)+)+$','default','__esModule','name','1029276ppoCYm','749280PBCmsU'];a0_0x6771=function(){return _0x15e60e;};return a0_0x6771();}function a0_0x3d95(_0x2764c1,_0x2c4ec1){const _0x324fed=a0_0x6771();return a0_0x3d95=function(_0x10d28f,_0x17ec62){_0x10d28f=_0x10d28f-0x193;let _0x677189=_0x324fed[_0x10d28f];return _0x677189;},a0_0x3d95(_0x2764c1,_0x2c4ec1);}exports[a0_0x321fb9(0x1a3)]=_0x96cf20=>{const _0x40d607=a0_0x321fb9;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x96cf20[_0x40d607(0x197)]+_0x40d607(0x19f)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0x96cf20[_0x40d607(0x1a5)]+':'}},'memory':{'store':_0x40d607(0x198),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ function a0_0x4367(_0x73df40,_0x432586){const _0x21fc28=a0_0x1e28();return a0_0x4367=function(_0x7c38c1,_0x437019){_0x7c38c1=_0x7c38c1-0x192;let _0x1e28f6=_0x21fc28[_0x7c38c1];return _0x1e28f6;},a0_0x4367(_0x73df40,_0x432586);}const a0_0x2002fd=a0_0x4367;function a0_0x1e28(){const _0x199b2b=['apply','/runtime/.cache','1841330VlnIiR','20498885tePVgo','3292816XHSrRH','toString','10IuNQSo','8108JfOWWu','search','127.0.0.1','6soJkVX','4632642mRlwMP','memory','140281JhjvTf','constructor','(((.+)+)+)+$','defineProperty','8UmQbeF','536727mqcihU','9FvPPgB','__esModule','name','appDir'];a0_0x1e28=function(){return _0x199b2b;};return a0_0x1e28();}(function(_0x5527d4,_0x294fda){const _0x4b6e25=a0_0x4367,_0x399d7d=_0x5527d4();while(!![]){try{const _0x100c83=parseInt(_0x4b6e25(0x1a8))/0x1+-parseInt(_0x4b6e25(0x195))/0x2*(parseInt(_0x4b6e25(0x196))/0x3)+parseInt(_0x4b6e25(0x1a2))/0x4*(-parseInt(_0x4b6e25(0x1a1))/0x5)+-parseInt(_0x4b6e25(0x1a5))/0x6*(parseInt(_0x4b6e25(0x1a6))/0x7)+-parseInt(_0x4b6e25(0x19f))/0x8+-parseInt(_0x4b6e25(0x197))/0x9*(-parseInt(_0x4b6e25(0x19d))/0xa)+parseInt(_0x4b6e25(0x19e))/0xb;if(_0x100c83===_0x294fda)break;else _0x399d7d['push'](_0x399d7d['shift']());}catch(_0x45133f){_0x399d7d['push'](_0x399d7d['shift']());}}}(a0_0x1e28,0x60663));const a0_0x437019=(function(){let _0x44cf26=!![];return function(_0x5cec28,_0x14cc4d){const _0x15cc39=_0x44cf26?function(){const _0x2b775a=a0_0x4367;if(_0x14cc4d){const _0x4afbad=_0x14cc4d[_0x2b775a(0x19b)](_0x5cec28,arguments);return _0x14cc4d=null,_0x4afbad;}}:function(){};return _0x44cf26=![],_0x15cc39;};}()),a0_0x7c38c1=a0_0x437019(this,function(){const _0x37c4b7=a0_0x4367;return a0_0x7c38c1[_0x37c4b7(0x1a0)]()[_0x37c4b7(0x1a3)](_0x37c4b7(0x193))[_0x37c4b7(0x1a0)]()[_0x37c4b7(0x192)](a0_0x7c38c1)[_0x37c4b7(0x1a3)](_0x37c4b7(0x193));});a0_0x7c38c1();'use strict';Object[a0_0x2002fd(0x194)](exports,a0_0x2002fd(0x198),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require('cache-manager-ioredis');exports['default']=_0xab056c=>{const _0x3d6723=a0_0x2002fd;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0xab056c[_0x3d6723(0x19a)]+_0x3d6723(0x19c)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x3d6723(0x1a4),'password':'','ttl':0x1e13380,'keyPrefix':_0xab056c[_0x3d6723(0x199)]+':'}},'memory':{'store':_0x3d6723(0x1a7),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- var a1_0x7242bc=a1_0xd2e2;(function(_0x52ef27,_0x2fa54f){var _0x4def5f=a1_0xd2e2,_0x21db30=_0x52ef27();while(!![]){try{var _0x54195b=parseInt(_0x4def5f(0x106))/0x1*(parseInt(_0x4def5f(0x108))/0x2)+parseInt(_0x4def5f(0x10b))/0x3+-parseInt(_0x4def5f(0x101))/0x4+-parseInt(_0x4def5f(0xf8))/0x5+parseInt(_0x4def5f(0xf6))/0x6*(parseInt(_0x4def5f(0xf2))/0x7)+parseInt(_0x4def5f(0xfd))/0x8*(parseInt(_0x4def5f(0x102))/0x9)+-parseInt(_0x4def5f(0xf3))/0xa;if(_0x54195b===_0x2fa54f)break;else _0x21db30['push'](_0x21db30['shift']());}catch(_0x2ccb3d){_0x21db30['push'](_0x21db30['shift']());}}}(a1_0x43c2,0x41eb7));var a1_0x856ec7=(function(){var _0xa8fc8c=!![];return function(_0x1f18e8,_0x23cb0b){var _0x29b3f7=_0xa8fc8c?function(){if(_0x23cb0b){var _0x44262f=_0x23cb0b['apply'](_0x1f18e8,arguments);return _0x23cb0b=null,_0x44262f;}}:function(){};return _0xa8fc8c=![],_0x29b3f7;};}()),a1_0x1075c4=a1_0x856ec7(this,function(){var _0x12f3e5=a1_0xd2e2;return a1_0x1075c4[_0x12f3e5(0xf5)]()[_0x12f3e5(0x100)](_0x12f3e5(0x10c))[_0x12f3e5(0xf5)]()[_0x12f3e5(0xfb)](a1_0x1075c4)[_0x12f3e5(0x100)](_0x12f3e5(0x10c));});a1_0x1075c4();'use strict';var __decorate=this&&this[a1_0x7242bc(0x107)]||function(_0x44c8be,_0x34754e,_0x3779e1,_0x3f3d67){var _0x52987f=a1_0x7242bc,_0x97bea5=arguments[_0x52987f(0xf4)],_0x45d913=_0x97bea5<0x3?_0x34754e:_0x3f3d67===null?_0x3f3d67=Object[_0x52987f(0xff)](_0x34754e,_0x3779e1):_0x3f3d67,_0x3db071;if(typeof Reflect===_0x52987f(0x103)&&typeof Reflect[_0x52987f(0x109)]===_0x52987f(0xfe))_0x45d913=Reflect[_0x52987f(0x109)](_0x44c8be,_0x34754e,_0x3779e1,_0x3f3d67);else{for(var _0x42cacb=_0x44c8be[_0x52987f(0xf4)]-0x1;_0x42cacb>=0x0;_0x42cacb--)if(_0x3db071=_0x44c8be[_0x42cacb])_0x45d913=(_0x97bea5<0x3?_0x3db071(_0x45d913):_0x97bea5>0x3?_0x3db071(_0x34754e,_0x3779e1,_0x45d913):_0x3db071(_0x34754e,_0x3779e1))||_0x45d913;}return _0x97bea5>0x3&&_0x45d913&&Object[_0x52987f(0x10a)](_0x34754e,_0x3779e1,_0x45d913),_0x45d913;};Object['defineProperty'](exports,a1_0x7242bc(0x104),{'value':!![]}),exports[a1_0x7242bc(0xfc)]=void 0x0;function a1_0xd2e2(_0x318a29,_0x2378f2){var _0xf9cd2d=a1_0x43c2();return a1_0xd2e2=function(_0x1075c4,_0x856ec7){_0x1075c4=_0x1075c4-0xf2;var _0x43c22f=_0xf9cd2d[_0x1075c4];return _0x43c22f;},a1_0xd2e2(_0x318a29,_0x2378f2);}const core_1=require(a1_0x7242bc(0xf9)),ConfigDefault=require(a1_0x7242bc(0xf7));function a1_0x43c2(){var _0x1fccdf=['504864sxLpxx','decorate','defineProperty','478122NHjTiK','(((.+)+)+)+$','3003QyRJEG','4031690Lfojzh','length','toString','246DEFUtS','./config/config.default','2005560ahspNt','@midwayjs/core','Configuration','constructor','CustomConfiguration','1624buYLUc','function','getOwnPropertyDescriptor','search','183264LpbHHr','19431sjBcKq','object','__esModule','anncic-api:cache','2gCraia','__decorate'];a1_0x43c2=function(){return _0x1fccdf;};return a1_0x43c2();}let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x7242bc(0xfa)])({'conflictCheck':![],'namespace':a1_0x7242bc(0x105),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x7242bc(0xfc)]=CustomConfiguration;
1
+ var a1_0x52c6c8=a1_0x1a2e;(function(_0x58a2b2,_0x3ea9c5){var _0x38f8de=a1_0x1a2e,_0x3eee98=_0x58a2b2();while(!![]){try{var _0x3000a6=-parseInt(_0x38f8de(0xa5))/0x1+-parseInt(_0x38f8de(0xa8))/0x2*(parseInt(_0x38f8de(0x94))/0x3)+parseInt(_0x38f8de(0x9d))/0x4*(-parseInt(_0x38f8de(0xa0))/0x5)+-parseInt(_0x38f8de(0x97))/0x6*(-parseInt(_0x38f8de(0xa6))/0x7)+parseInt(_0x38f8de(0x95))/0x8+parseInt(_0x38f8de(0xaa))/0x9*(parseInt(_0x38f8de(0xac))/0xa)+-parseInt(_0x38f8de(0xa3))/0xb;if(_0x3000a6===_0x3ea9c5)break;else _0x3eee98['push'](_0x3eee98['shift']());}catch(_0x179242){_0x3eee98['push'](_0x3eee98['shift']());}}}(a1_0x39d6,0x8ca7b));var a1_0x43c609=(function(){var _0x3c5291=!![];return function(_0x2025d8,_0x3e84ef){var _0x6d6e9b=_0x3c5291?function(){var _0x166135=a1_0x1a2e;if(_0x3e84ef){var _0xf13ebf=_0x3e84ef[_0x166135(0xa2)](_0x2025d8,arguments);return _0x3e84ef=null,_0xf13ebf;}}:function(){};return _0x3c5291=![],_0x6d6e9b;};}()),a1_0x307966=a1_0x43c609(this,function(){var _0x4a2af6=a1_0x1a2e;return a1_0x307966[_0x4a2af6(0xa9)]()[_0x4a2af6(0xab)](_0x4a2af6(0x96))['toString']()[_0x4a2af6(0xae)](a1_0x307966)['search'](_0x4a2af6(0x96));});a1_0x307966();function a1_0x39d6(){var _0x9a189d=['defineProperty','anncic-api:cache','__esModule','./config/config.default','getOwnPropertyDescriptor','676LiPSzT','CustomConfiguration','length','205TsxnGr','@midwayjs/core','apply','2573362CByJrV','Configuration','240777kIKXiu','21BPVCrQ','__decorate','78obsMcN','toString','9eNRQFC','search','6508730biQcAj','function','constructor','decorate','object','68346sfjDdB','1215400vrhAJl','(((.+)+)+)+$','2286942OVUmmy'];a1_0x39d6=function(){return _0x9a189d;};return a1_0x39d6();}'use strict';var __decorate=this&&this[a1_0x52c6c8(0xa7)]||function(_0xca630,_0x1e945d,_0x87e779,_0x17c1ba){var _0x22a445=a1_0x52c6c8,_0x3b80a8=arguments[_0x22a445(0x9f)],_0x4945e0=_0x3b80a8<0x3?_0x1e945d:_0x17c1ba===null?_0x17c1ba=Object[_0x22a445(0x9c)](_0x1e945d,_0x87e779):_0x17c1ba,_0x16812c;if(typeof Reflect===_0x22a445(0x93)&&typeof Reflect['decorate']===_0x22a445(0xad))_0x4945e0=Reflect[_0x22a445(0x92)](_0xca630,_0x1e945d,_0x87e779,_0x17c1ba);else{for(var _0x6ed029=_0xca630['length']-0x1;_0x6ed029>=0x0;_0x6ed029--)if(_0x16812c=_0xca630[_0x6ed029])_0x4945e0=(_0x3b80a8<0x3?_0x16812c(_0x4945e0):_0x3b80a8>0x3?_0x16812c(_0x1e945d,_0x87e779,_0x4945e0):_0x16812c(_0x1e945d,_0x87e779))||_0x4945e0;}return _0x3b80a8>0x3&&_0x4945e0&&Object['defineProperty'](_0x1e945d,_0x87e779,_0x4945e0),_0x4945e0;};Object[a1_0x52c6c8(0x98)](exports,a1_0x52c6c8(0x9a),{'value':!![]}),exports[a1_0x52c6c8(0x9e)]=void 0x0;const core_1=require(a1_0x52c6c8(0xa1)),ConfigDefault=require(a1_0x52c6c8(0x9b));let CustomConfiguration=class CustomConfiguration{};function a1_0x1a2e(_0x34c37b,_0x362d1d){var _0x25e85f=a1_0x39d6();return a1_0x1a2e=function(_0x307966,_0x43c609){_0x307966=_0x307966-0x92;var _0x39d611=_0x25e85f[_0x307966];return _0x39d611;},a1_0x1a2e(_0x34c37b,_0x362d1d);}CustomConfiguration=__decorate([(0x0,core_1[a1_0x52c6c8(0xa4)])({'conflictCheck':![],'namespace':a1_0x52c6c8(0x99),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x52c6c8(0x9e)]=CustomConfiguration;
@@ -1 +1 @@
1
- const a2_0x3fab14=a2_0x48aa;(function(_0x555266,_0x3c63c9){const _0x22fc47=a2_0x48aa,_0xbcc2a4=_0x555266();while(!![]){try{const _0x346878=-parseInt(_0x22fc47(0x167))/0x1+-parseInt(_0x22fc47(0x160))/0x2+-parseInt(_0x22fc47(0x166))/0x3+-parseInt(_0x22fc47(0x15a))/0x4*(-parseInt(_0x22fc47(0x15b))/0x5)+-parseInt(_0x22fc47(0x164))/0x6+-parseInt(_0x22fc47(0x155))/0x7+-parseInt(_0x22fc47(0x152))/0x8*(-parseInt(_0x22fc47(0x14f))/0x9);if(_0x346878===_0x3c63c9)break;else _0xbcc2a4['push'](_0xbcc2a4['shift']());}catch(_0x29851a){_0xbcc2a4['push'](_0xbcc2a4['shift']());}}}(a2_0x3f34,0xbd4e9));const a2_0x5d0cbb=(function(){let _0x1859d7=!![];return function(_0x4df1d5,_0x40cf49){const _0x1ecab9=_0x1859d7?function(){const _0x37326b=a2_0x48aa;if(_0x40cf49){const _0x428fa4=_0x40cf49[_0x37326b(0x159)](_0x4df1d5,arguments);return _0x40cf49=null,_0x428fa4;}}:function(){};return _0x1859d7=![],_0x1ecab9;};}()),a2_0x12d056=a2_0x5d0cbb(this,function(){const _0x2e4e63=a2_0x48aa;return a2_0x12d056[_0x2e4e63(0x157)]()[_0x2e4e63(0x150)](_0x2e4e63(0x162))[_0x2e4e63(0x157)]()['constructor'](a2_0x12d056)[_0x2e4e63(0x150)]('(((.+)+)+)+$');});a2_0x12d056();'use strict';Object['defineProperty'](exports,a2_0x3fab14(0x15c),{'value':!![]}),exports[a2_0x3fab14(0x15f)]=void 0x0;function a2_0x48aa(_0x2afe88,_0x4ad08e){const _0xf68eaf=a2_0x3f34();return a2_0x48aa=function(_0x12d056,_0x5d0cbb){_0x12d056=_0x12d056-0x14a;let _0x3f3401=_0xf68eaf[_0x12d056];return _0x3f3401;},a2_0x48aa(_0x2afe88,_0x4ad08e);}const crypto_js_1=require(a2_0x3fab14(0x158)),CacheService_1=require(a2_0x3fab14(0x14a)),core_1=require(a2_0x3fab14(0x14d));function a2_0x3f34(){const _0x239453=['stringify','CacheService','Cache','365020mcUUIa','use','(((.+)+)+)+$','set','7032582yBRbgZ','value','2432547iYOBKU','76045lphuOQ','../service/CacheService','getApplicationContext','Method::Decorator','@midwayjs/core','getAsync','6145335RvsWAG','search','REQUEST_OBJ_CTX_KEY','32YWlQAc','app','get','2326030dxFIuy','parse','toString','crypto-js','apply','1235864SujTnJ','10FxXbAP','__esModule'];a2_0x3f34=function(){return _0x239453;};return a2_0x3f34();}function Cache(_0x274710,_0x1b8465){return(_0x59f015,_0x5e6212,_0x3ea489)=>{const _0x35db10=a2_0x48aa,_0x2427c7=_0x3ea489[_0x35db10(0x165)];return _0x3ea489[_0x35db10(0x165)]=async function(..._0x19978c){const _0x53ac17=_0x35db10;!_0x274710&&(_0x274710=(0x0,crypto_js_1['MD5'])(JSON[_0x53ac17(0x15d)](_0x19978c))['toString']());let _0x413566=await this[core_1[_0x53ac17(0x151)]][_0x53ac17(0x153)][_0x53ac17(0x14b)]()[_0x53ac17(0x14e)](CacheService_1[_0x53ac17(0x15e)]),_0x13af01=await _0x413566['use'](_0x53ac17(0x14c))[_0x53ac17(0x154)](_0x274710);if(_0x13af01)return JSON[_0x53ac17(0x156)](_0x13af01);else _0x13af01=await _0x2427c7[_0x53ac17(0x159)](this,[..._0x19978c]),await _0x413566[_0x53ac17(0x161)](_0x53ac17(0x14c))[_0x53ac17(0x163)](_0x274710,JSON['stringify'](_0x13af01),_0x1b8465);return _0x13af01;},_0x3ea489;};}exports[a2_0x3fab14(0x15f)]=Cache;
1
+ function a2_0x1a1f(_0x1ec989,_0x55e82f){const _0x1a6dd8=a2_0x1927();return a2_0x1a1f=function(_0x1c8d4b,_0x4144db){_0x1c8d4b=_0x1c8d4b-0x112;let _0x192738=_0x1a6dd8[_0x1c8d4b];return _0x192738;},a2_0x1a1f(_0x1ec989,_0x55e82f);}const a2_0x303bbd=a2_0x1a1f;(function(_0x4df155,_0x483c19){const _0x3dca65=a2_0x1a1f,_0x2af5b2=_0x4df155();while(!![]){try{const _0x52eb53=parseInt(_0x3dca65(0x113))/0x1*(-parseInt(_0x3dca65(0x124))/0x2)+-parseInt(_0x3dca65(0x11f))/0x3*(-parseInt(_0x3dca65(0x12d))/0x4)+-parseInt(_0x3dca65(0x12b))/0x5+-parseInt(_0x3dca65(0x11b))/0x6+parseInt(_0x3dca65(0x118))/0x7+-parseInt(_0x3dca65(0x125))/0x8+parseInt(_0x3dca65(0x127))/0x9*(parseInt(_0x3dca65(0x114))/0xa);if(_0x52eb53===_0x483c19)break;else _0x2af5b2['push'](_0x2af5b2['shift']());}catch(_0x536bbd){_0x2af5b2['push'](_0x2af5b2['shift']());}}}(a2_0x1927,0xc0453));const a2_0x4144db=(function(){let _0x3c0f60=!![];return function(_0x29c0cd,_0x147fa3){const _0x4938c0=_0x3c0f60?function(){if(_0x147fa3){const _0x5d8a77=_0x147fa3['apply'](_0x29c0cd,arguments);return _0x147fa3=null,_0x5d8a77;}}:function(){};return _0x3c0f60=![],_0x4938c0;};}()),a2_0x1c8d4b=a2_0x4144db(this,function(){const _0x57825a=a2_0x1a1f;return a2_0x1c8d4b[_0x57825a(0x11c)]()[_0x57825a(0x120)](_0x57825a(0x115))[_0x57825a(0x11c)]()[_0x57825a(0x11a)](a2_0x1c8d4b)['search'](_0x57825a(0x115));});a2_0x1c8d4b();'use strict';Object[a2_0x303bbd(0x128)](exports,a2_0x303bbd(0x11e),{'value':!![]}),exports[a2_0x303bbd(0x116)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function a2_0x1927(){const _0x47ba35=['114lRhnRG','search','parse','value','Method::Decorator','118498JxbAkE','2024816YMDtMd','use','9976401rVdheY','defineProperty','set','MD5','6812015LOamnh','get','52944ELZAio','getAsync','CacheService','11oQbWDw','10jKZKAz','(((.+)+)+)+$','Cache','stringify','10648568FplKyx','apply','constructor','467388iAusnY','toString','REQUEST_OBJ_CTX_KEY','__esModule'];a2_0x1927=function(){return _0x47ba35;};return a2_0x1927();}function Cache(_0x568d94,_0x480a97){return(_0x2ca984,_0x8beb6b,_0x402f95)=>{const _0x3f7262=a2_0x1a1f,_0x52b414=_0x402f95[_0x3f7262(0x122)];return _0x402f95['value']=async function(..._0x67e86a){const _0xb094ce=_0x3f7262;!_0x568d94&&(_0x568d94=(0x0,crypto_js_1[_0xb094ce(0x12a)])(JSON[_0xb094ce(0x117)](_0x67e86a))[_0xb094ce(0x11c)]());let _0x33d8d8=await this[core_1[_0xb094ce(0x11d)]]['app']['getApplicationContext']()[_0xb094ce(0x12e)](CacheService_1[_0xb094ce(0x112)]),_0x10c9ee=await _0x33d8d8[_0xb094ce(0x126)]('Method::Decorator')[_0xb094ce(0x12c)](_0x568d94);if(_0x10c9ee)return JSON[_0xb094ce(0x121)](_0x10c9ee);else _0x10c9ee=await _0x52b414[_0xb094ce(0x119)](this,[..._0x67e86a]),await _0x33d8d8[_0xb094ce(0x126)](_0xb094ce(0x123))[_0xb094ce(0x129)](_0x568d94,JSON['stringify'](_0x10c9ee),_0x480a97);return _0x10c9ee;},_0x402f95;};}exports[a2_0x303bbd(0x116)]=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var a3_0x27d6d5=a3_0x2ab3;(function(_0x278e76,_0x577b58){var _0x29e7ab=a3_0x2ab3,_0x3cb637=_0x278e76();while(!![]){try{var _0x1a96f6=-parseInt(_0x29e7ab(0x1b8))/0x1+-parseInt(_0x29e7ab(0x1ab))/0x2+-parseInt(_0x29e7ab(0x1b6))/0x3+-parseInt(_0x29e7ab(0x1ac))/0x4+parseInt(_0x29e7ab(0x1b4))/0x5+parseInt(_0x29e7ab(0x1b1))/0x6+parseInt(_0x29e7ab(0x1bb))/0x7;if(_0x1a96f6===_0x577b58)break;else _0x3cb637['push'](_0x3cb637['shift']());}catch(_0x156292){_0x3cb637['push'](_0x3cb637['shift']());}}}(a3_0x1bdb,0xef814));var a3_0xfad06f=(function(){var _0x4881fd=!![];return function(_0x418bf7,_0x4866db){var _0x2160e2=_0x4881fd?function(){var _0x29aae8=a3_0x2ab3;if(_0x4866db){var _0x377f83=_0x4866db[_0x29aae8(0x1b9)](_0x418bf7,arguments);return _0x4866db=null,_0x377f83;}}:function(){};return _0x4881fd=![],_0x2160e2;};}()),a3_0xa5adc1=a3_0xfad06f(this,function(){var _0x23148d=a3_0x2ab3;return a3_0xa5adc1[_0x23148d(0x1b0)]()['search'](_0x23148d(0x1ae))['toString']()[_0x23148d(0x1b7)](a3_0xa5adc1)[_0x23148d(0x1b2)](_0x23148d(0x1ae));});a3_0xa5adc1();'use strict';Object['defineProperty'](exports,a3_0x27d6d5(0x1bd),{'value':!![]}),exports[a3_0x27d6d5(0x1af)]=exports[a3_0x27d6d5(0x1ad)]=exports[a3_0x27d6d5(0x1bc)]=void 0x0;var configuration_1=require(a3_0x27d6d5(0x1b5));Object[a3_0x27d6d5(0x1ba)](exports,a3_0x27d6d5(0x1bc),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});function a3_0x1bdb(){var _0x331146=['2814720HrpPpW','./configuration','4919262WchFGc','constructor','380225HhndBu','apply','defineProperty','18261306UqbvCb','Configuration','__esModule','1095200AJINuc','4287020CNjdQe','Cache','(((.+)+)+)+$','CacheService','toString','8691864biikXF','search','./decorator/Cache'];a3_0x1bdb=function(){return _0x331146;};return a3_0x1bdb();}var Cache_1=require(a3_0x27d6d5(0x1b3));function a3_0x2ab3(_0x195f46,_0x5cb3d1){var _0x266058=a3_0x1bdb();return a3_0x2ab3=function(_0xa5adc1,_0xfad06f){_0xa5adc1=_0xa5adc1-0x1ab;var _0x1bdb1b=_0x266058[_0xa5adc1];return _0x1bdb1b;},a3_0x2ab3(_0x195f46,_0x5cb3d1);}Object[a3_0x27d6d5(0x1ba)](exports,a3_0x27d6d5(0x1ad),{'enumerable':!![],'get':function(){var _0x52af33=a3_0x27d6d5;return Cache_1[_0x52af33(0x1ad)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x27d6d5(0x1ba)](exports,a3_0x27d6d5(0x1af),{'enumerable':!![],'get':function(){var _0xf5e960=a3_0x27d6d5;return CacheService_1[_0xf5e960(0x1af)];}});
1
+ var a3_0x276f12=a3_0x39d8;(function(_0x5d5cfa,_0x8cafcf){var _0x1139e9=a3_0x39d8,_0x40eb98=_0x5d5cfa();while(!![]){try{var _0x10a45c=parseInt(_0x1139e9(0x167))/0x1*(-parseInt(_0x1139e9(0x15b))/0x2)+-parseInt(_0x1139e9(0x166))/0x3*(parseInt(_0x1139e9(0x16a))/0x4)+parseInt(_0x1139e9(0x169))/0x5*(-parseInt(_0x1139e9(0x163))/0x6)+-parseInt(_0x1139e9(0x16b))/0x7*(parseInt(_0x1139e9(0x156))/0x8)+parseInt(_0x1139e9(0x164))/0x9+-parseInt(_0x1139e9(0x157))/0xa+parseInt(_0x1139e9(0x15f))/0xb*(parseInt(_0x1139e9(0x162))/0xc);if(_0x10a45c===_0x8cafcf)break;else _0x40eb98['push'](_0x40eb98['shift']());}catch(_0x9b7d8c){_0x40eb98['push'](_0x40eb98['shift']());}}}(a3_0x42a3,0xa1dfa));var a3_0x21f53a=(function(){var _0x27f924=!![];return function(_0xbe98,_0x401a55){var _0x38f2bc=_0x27f924?function(){if(_0x401a55){var _0x4c5310=_0x401a55['apply'](_0xbe98,arguments);return _0x401a55=null,_0x4c5310;}}:function(){};return _0x27f924=![],_0x38f2bc;};}()),a3_0x31c0fe=a3_0x21f53a(this,function(){var _0x2924b4=a3_0x39d8;return a3_0x31c0fe[_0x2924b4(0x161)]()[_0x2924b4(0x15c)](_0x2924b4(0x168))['toString']()[_0x2924b4(0x160)](a3_0x31c0fe)[_0x2924b4(0x15c)]('(((.+)+)+)+$');});a3_0x31c0fe();'use strict';Object[a3_0x276f12(0x15a)](exports,'__esModule',{'value':!![]}),exports[a3_0x276f12(0x15d)]=exports['Cache']=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x276f12(0x158));Object[a3_0x276f12(0x15a)](exports,a3_0x276f12(0x165),{'enumerable':!![],'get':function(){var _0x24e4dd=a3_0x276f12;return configuration_1[_0x24e4dd(0x159)];}});function a3_0x42a3(){var _0x34edd3=['./configuration','CustomConfiguration','defineProperty','1404484YuXUvi','search','CacheService','Cache','473pLEqrw','constructor','toString','994164NDZCLo','17406ohfKRV','4971303mqgxpH','Configuration','57iiKhab','1YXsUDr','(((.+)+)+)+$','1495jehQwb','122084GYLQGS','7KUrCcn','./decorator/Cache','3419128fciLFu','8748230ZmliYQ'];a3_0x42a3=function(){return _0x34edd3;};return a3_0x42a3();}function a3_0x39d8(_0xb1b530,_0x4667cd){var _0xb159b=a3_0x42a3();return a3_0x39d8=function(_0x31c0fe,_0x21f53a){_0x31c0fe=_0x31c0fe-0x155;var _0x42a38c=_0xb159b[_0x31c0fe];return _0x42a38c;},a3_0x39d8(_0xb1b530,_0x4667cd);}var Cache_1=require(a3_0x276f12(0x155));Object['defineProperty'](exports,a3_0x276f12(0x15e),{'enumerable':!![],'get':function(){var _0x137093=a3_0x276f12;return Cache_1[_0x137093(0x15e)];}});var CacheService_1=require('./service/CacheService');Object['defineProperty'](exports,a3_0x276f12(0x15d),{'enumerable':!![],'get':function(){var _0x18558c=a3_0x276f12;return CacheService_1[_0x18558c(0x15d)];}});
@@ -1 +1 @@
1
- var a4_0x2f6fcb=a4_0x34b8;(function(_0x37bbec,_0x964e12){var _0x7184ee=a4_0x34b8,_0x44c026=_0x37bbec();while(!![]){try{var _0x51f7e0=-parseInt(_0x7184ee(0xa9))/0x1*(parseInt(_0x7184ee(0xba))/0x2)+parseInt(_0x7184ee(0xa1))/0x3+parseInt(_0x7184ee(0xa4))/0x4*(parseInt(_0x7184ee(0x96))/0x5)+-parseInt(_0x7184ee(0xa8))/0x6+-parseInt(_0x7184ee(0xb8))/0x7*(-parseInt(_0x7184ee(0xb7))/0x8)+parseInt(_0x7184ee(0xa3))/0x9*(-parseInt(_0x7184ee(0xbb))/0xa)+-parseInt(_0x7184ee(0x98))/0xb*(-parseInt(_0x7184ee(0xab))/0xc);if(_0x51f7e0===_0x964e12)break;else _0x44c026['push'](_0x44c026['shift']());}catch(_0x17fdcc){_0x44c026['push'](_0x44c026['shift']());}}}(a4_0x1c24,0xbe99a));var a4_0x28b370=(function(){var _0x57bba0=!![];return function(_0x350dcd,_0x1281a4){var _0x828e06=_0x57bba0?function(){if(_0x1281a4){var _0x311836=_0x1281a4['apply'](_0x350dcd,arguments);return _0x1281a4=null,_0x311836;}}:function(){};return _0x57bba0=![],_0x828e06;};}()),a4_0x1dfc9d=a4_0x28b370(this,function(){var _0x330d56=a4_0x34b8;return a4_0x1dfc9d[_0x330d56(0xa5)]()[_0x330d56(0x9f)](_0x330d56(0xbd))[_0x330d56(0xa5)]()[_0x330d56(0xa7)](a4_0x1dfc9d)['search']('(((.+)+)+)+$');});a4_0x1dfc9d();'use strict';var __decorate=this&&this['__decorate']||function(_0x25bc9f,_0x259f5b,_0x858d69,_0x575c57){var _0x2acd65=a4_0x34b8,_0xb4400b=arguments[_0x2acd65(0x95)],_0x44addf=_0xb4400b<0x3?_0x259f5b:_0x575c57===null?_0x575c57=Object[_0x2acd65(0x97)](_0x259f5b,_0x858d69):_0x575c57,_0x175095;if(typeof Reflect===_0x2acd65(0x9b)&&typeof Reflect['decorate']==='function')_0x44addf=Reflect[_0x2acd65(0xc0)](_0x25bc9f,_0x259f5b,_0x858d69,_0x575c57);else{for(var _0x4cba67=_0x25bc9f[_0x2acd65(0x95)]-0x1;_0x4cba67>=0x0;_0x4cba67--)if(_0x175095=_0x25bc9f[_0x4cba67])_0x44addf=(_0xb4400b<0x3?_0x175095(_0x44addf):_0xb4400b>0x3?_0x175095(_0x259f5b,_0x858d69,_0x44addf):_0x175095(_0x259f5b,_0x858d69))||_0x44addf;}return _0xb4400b>0x3&&_0x44addf&&Object[_0x2acd65(0xb5)](_0x259f5b,_0x858d69,_0x44addf),_0x44addf;},__metadata=this&&this['__metadata']||function(_0x1f1ae0,_0x1929bc){var _0x5380ef=a4_0x34b8;if(typeof Reflect===_0x5380ef(0x9b)&&typeof Reflect[_0x5380ef(0xae)]===_0x5380ef(0xad))return Reflect[_0x5380ef(0xae)](_0x1f1ae0,_0x1929bc);};Object['defineProperty'](exports,a4_0x2f6fcb(0xb2),{'value':!![]}),exports['CacheService']=void 0x0;function a4_0x1c24(){var _0xe087ac=['del','function','metadata','reset','Singleton','options','__esModule','cache-manager','design:type','defineProperty','file','32sPQZJI','1358602UGRxic','config','2zofTRJ','1144790ROHKkX','has','(((.+)+)+)+$','@midwayjs/core','stores','decorate','store','prototype','cache','hget','Provide','length','3314280zOHaus','getOwnPropertyDescriptor','2827627ttRFZg','caching','use','object','set','prefix','CacheService','search','clients','3107784vWumuc','hdel','63njbLnC','8NMtjPN','toString','Config','constructor','8605314KsYPhe','1406999yfNgQm','get','60xuhpRw'];a4_0x1c24=function(){return _0xe087ac;};return a4_0x1c24();}const cacheManager=require(a4_0x2f6fcb(0xb3)),core_1=require(a4_0x2f6fcb(0xbe));function a4_0x34b8(_0x15ed1c,_0x13f118){var _0x4521b9=a4_0x1c24();return a4_0x34b8=function(_0x1dfc9d,_0x28b370){_0x1dfc9d=_0x1dfc9d-0x90;var _0x1c2479=_0x4521b9[_0x1dfc9d];return _0x1c2479;},a4_0x34b8(_0x15ed1c,_0x13f118);}let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}[a4_0x2f6fcb(0x9a)](_0x12c121){var _0x3c600e=a4_0x2f6fcb,_0x391501,_0x341b5d;if(!this['cache']){const _0x17c994=((_0x391501=this[_0x3c600e(0xb9)][_0x3c600e(0xbf)])===null||_0x391501===void 0x0?void 0x0:_0x391501[(_0x341b5d=this[_0x3c600e(0xb9)][_0x3c600e(0x92)])===null||_0x341b5d===void 0x0?void 0x0:_0x341b5d['default']])||this[_0x3c600e(0xb9)][_0x3c600e(0xbf)][_0x3c600e(0xb6)];this[_0x3c600e(0x92)]=cacheManager[_0x3c600e(0x99)]({..._0x17c994[_0x3c600e(0xb1)],'store':_0x17c994[_0x3c600e(0x90)]});}return!this[_0x3c600e(0xa0)][_0x3c600e(0xbc)](_0x12c121)&&this[_0x3c600e(0xa0)][_0x3c600e(0x9c)](_0x12c121,new CacheHandler(_0x12c121,this['cache'])),this[_0x3c600e(0xa0)][_0x3c600e(0xaa)](_0x12c121);}async[a4_0x2f6fcb(0xaf)](){var _0x3d1a47=a4_0x2f6fcb;return await this[_0x3d1a47(0x92)][_0x3d1a47(0xaf)]();}};__decorate([(0x0,core_1[a4_0x2f6fcb(0xa6)])('cache'),__metadata(a4_0x2f6fcb(0xb4),Object)],CacheService[a4_0x2f6fcb(0x91)],'config',void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x2f6fcb(0x94)])(),(0x0,core_1['Scope'])(core_1['ScopeEnum'][a4_0x2f6fcb(0xb0)])],CacheService),exports[a4_0x2f6fcb(0x9e)]=CacheService;class CacheHandler{constructor(_0xdddd6f,_0x2a9d44){var _0x2b3fac=a4_0x2f6fcb;this['cache']=_0x2a9d44,this[_0x2b3fac(0x9d)]=_0xdddd6f;}async[a4_0x2f6fcb(0xac)](_0x3bd93d){var _0x14e009=a4_0x2f6fcb;return await this[_0x14e009(0x92)]['del'](this[_0x14e009(0x9d)]+':'+_0x3bd93d);}async[a4_0x2f6fcb(0x9c)](_0x474770,_0x57d26c,_0x282ead){var _0x54d6e0=a4_0x2f6fcb;return await this['cache']['set'](this[_0x54d6e0(0x9d)]+':'+_0x474770,_0x57d26c,_0x282ead);}async[a4_0x2f6fcb(0xaa)](_0x4760ef,_0x9e13da){return new Promise((_0x9c6a3c,_0x91ed72)=>{var _0x55645a=a4_0x34b8;this[_0x55645a(0x92)]['get'](this['prefix']+':'+_0x4760ef,(_0x4bfb00,_0x4998a5)=>{_0x4bfb00?_0x91ed72(_0x4bfb00):_0x9c6a3c(_0x4998a5||_0x9e13da);});});}async[a4_0x2f6fcb(0xa2)](_0x5c9baa,_0x1bdee1){return await this['del'](_0x5c9baa+'#'+_0x1bdee1);}async['hset'](_0x1db7ee,_0x373aeb,_0xb3fdcf,_0x497ce0){return await this['set'](_0x1db7ee+'#'+_0x373aeb,_0xb3fdcf,_0x497ce0);}async[a4_0x2f6fcb(0x93)](_0x144549,_0x3c2610,_0x43ca6e){return await this['get'](_0x144549+'#'+_0x3c2610,_0x43ca6e);}}
1
+ function a4_0x3b1a(_0x2ce7ca,_0x24e33e){var _0x48a822=a4_0x55e0();return a4_0x3b1a=function(_0x20e2dc,_0x254f27){_0x20e2dc=_0x20e2dc-0x9a;var _0x55e00f=_0x48a822[_0x20e2dc];return _0x55e00f;},a4_0x3b1a(_0x2ce7ca,_0x24e33e);}var a4_0xef08b0=a4_0x3b1a;(function(_0x14d769,_0x5ed43e){var _0x58924e=a4_0x3b1a,_0x2ede86=_0x14d769();while(!![]){try{var _0x3c744d=-parseInt(_0x58924e(0xbc))/0x1*(parseInt(_0x58924e(0xc5))/0x2)+-parseInt(_0x58924e(0xad))/0x3+parseInt(_0x58924e(0xb8))/0x4+parseInt(_0x58924e(0xbb))/0x5+-parseInt(_0x58924e(0xac))/0x6+-parseInt(_0x58924e(0xa4))/0x7*(-parseInt(_0x58924e(0xa8))/0x8)+parseInt(_0x58924e(0xb6))/0x9;if(_0x3c744d===_0x5ed43e)break;else _0x2ede86['push'](_0x2ede86['shift']());}catch(_0x1a4140){_0x2ede86['push'](_0x2ede86['shift']());}}}(a4_0x55e0,0x7bb4f));var a4_0x254f27=(function(){var _0x387e7e=!![];return function(_0xb008c9,_0x2b29c3){var _0x4fdfd9=_0x387e7e?function(){var _0x40815b=a4_0x3b1a;if(_0x2b29c3){var _0x3fe913=_0x2b29c3[_0x40815b(0xb5)](_0xb008c9,arguments);return _0x2b29c3=null,_0x3fe913;}}:function(){};return _0x387e7e=![],_0x4fdfd9;};}()),a4_0x20e2dc=a4_0x254f27(this,function(){var _0x50cefd=a4_0x3b1a;return a4_0x20e2dc[_0x50cefd(0xc1)]()['search'](_0x50cefd(0xc3))[_0x50cefd(0xc1)]()['constructor'](a4_0x20e2dc)[_0x50cefd(0xb7)](_0x50cefd(0xc3));});a4_0x20e2dc();'use strict';var __decorate=this&&this[a4_0xef08b0(0x9c)]||function(_0x3e95d4,_0x4c32f6,_0x49c9e3,_0xa4fbff){var _0x44cb7e=a4_0xef08b0,_0x2e9c5f=arguments['length'],_0x49b3fc=_0x2e9c5f<0x3?_0x4c32f6:_0xa4fbff===null?_0xa4fbff=Object[_0x44cb7e(0xaf)](_0x4c32f6,_0x49c9e3):_0xa4fbff,_0x18064d;if(typeof Reflect===_0x44cb7e(0xa6)&&typeof Reflect[_0x44cb7e(0xa1)]===_0x44cb7e(0xb2))_0x49b3fc=Reflect[_0x44cb7e(0xa1)](_0x3e95d4,_0x4c32f6,_0x49c9e3,_0xa4fbff);else{for(var _0x31042f=_0x3e95d4[_0x44cb7e(0xba)]-0x1;_0x31042f>=0x0;_0x31042f--)if(_0x18064d=_0x3e95d4[_0x31042f])_0x49b3fc=(_0x2e9c5f<0x3?_0x18064d(_0x49b3fc):_0x2e9c5f>0x3?_0x18064d(_0x4c32f6,_0x49c9e3,_0x49b3fc):_0x18064d(_0x4c32f6,_0x49c9e3))||_0x49b3fc;}return _0x2e9c5f>0x3&&_0x49b3fc&&Object[_0x44cb7e(0xc0)](_0x4c32f6,_0x49c9e3,_0x49b3fc),_0x49b3fc;},__metadata=this&&this[a4_0xef08b0(0xa3)]||function(_0x558db1,_0xa961){var _0x196652=a4_0xef08b0;if(typeof Reflect===_0x196652(0xa6)&&typeof Reflect[_0x196652(0xa7)]===_0x196652(0xb2))return Reflect[_0x196652(0xa7)](_0x558db1,_0xa961);};Object[a4_0xef08b0(0xc0)](exports,a4_0xef08b0(0xb1),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require(a4_0xef08b0(0xb0)),core_1=require(a4_0xef08b0(0xbf));function a4_0x55e0(){var _0xd796a7=['reset','(((.+)+)+)+$','prefix','2aawSAF','Provide','store','__decorate','Scope','use','CacheService','design:type','decorate','default','__metadata','198429txLNCF','Singleton','object','metadata','24PCipYt','get','Config','has','563400sfKKrd','16146cmdGXu','cache','getOwnPropertyDescriptor','cache-manager','__esModule','function','del','clients','apply','377757SSnLnZ','search','368956lgFHZm','set','length','3791330lRCjBb','371534uCwzRD','stores','config','@midwayjs/core','defineProperty','toString'];a4_0x55e0=function(){return _0xd796a7;};return a4_0x55e0();}let CacheService=class CacheService{constructor(){var _0x234013=a4_0xef08b0;this[_0x234013(0xae)]=undefined,this[_0x234013(0xb4)]=new Map();}[a4_0xef08b0(0x9e)](_0x54740b){var _0x11fcbc=a4_0xef08b0,_0x155db4,_0x408f4e;if(!this[_0x11fcbc(0xae)]){const _0x431ee1=((_0x155db4=this[_0x11fcbc(0xbe)][_0x11fcbc(0xbd)])===null||_0x155db4===void 0x0?void 0x0:_0x155db4[(_0x408f4e=this[_0x11fcbc(0xbe)][_0x11fcbc(0xae)])===null||_0x408f4e===void 0x0?void 0x0:_0x408f4e[_0x11fcbc(0xa2)]])||this['config'][_0x11fcbc(0xbd)]['file'];this['cache']=cacheManager['caching']({..._0x431ee1['options'],'store':_0x431ee1[_0x11fcbc(0x9b)]});}return!this[_0x11fcbc(0xb4)][_0x11fcbc(0xab)](_0x54740b)&&this[_0x11fcbc(0xb4)][_0x11fcbc(0xb9)](_0x54740b,new CacheHandler(_0x54740b,this[_0x11fcbc(0xae)])),this['clients'][_0x11fcbc(0xa9)](_0x54740b);}async[a4_0xef08b0(0xc2)](){var _0x123f90=a4_0xef08b0;return await this[_0x123f90(0xae)][_0x123f90(0xc2)]();}};__decorate([(0x0,core_1[a4_0xef08b0(0xaa)])(a4_0xef08b0(0xae)),__metadata(a4_0xef08b0(0xa0),Object)],CacheService['prototype'],'config',void 0x0),CacheService=__decorate([(0x0,core_1[a4_0xef08b0(0x9a)])(),(0x0,core_1[a4_0xef08b0(0x9d)])(core_1['ScopeEnum'][a4_0xef08b0(0xa5)])],CacheService),exports[a4_0xef08b0(0x9f)]=CacheService;class CacheHandler{constructor(_0x29d0bf,_0x1915e9){var _0x439ea1=a4_0xef08b0;this[_0x439ea1(0xae)]=_0x1915e9,this[_0x439ea1(0xc4)]=_0x29d0bf;}async[a4_0xef08b0(0xb3)](_0x457030){var _0x42bf02=a4_0xef08b0;return await this['cache'][_0x42bf02(0xb3)](this[_0x42bf02(0xc4)]+':'+_0x457030);}async[a4_0xef08b0(0xb9)](_0x1ef857,_0x47ca27,_0x41209a){var _0x13379f=a4_0xef08b0;return await this['cache'][_0x13379f(0xb9)](this[_0x13379f(0xc4)]+':'+_0x1ef857,_0x47ca27,_0x41209a);}async[a4_0xef08b0(0xa9)](_0x394fca,_0x51d69c){return new Promise((_0x695346,_0x3f3d9f)=>{var _0x4dfa26=a4_0x3b1a;this[_0x4dfa26(0xae)][_0x4dfa26(0xa9)](this[_0x4dfa26(0xc4)]+':'+_0x394fca,(_0x4e2812,_0x7f5252)=>{_0x4e2812?_0x3f3d9f(_0x4e2812):_0x695346(_0x7f5252||_0x51d69c);});});}async['hdel'](_0xb7a66a,_0x187c1c){var _0x20c5ff=a4_0xef08b0;return await this[_0x20c5ff(0xb3)](_0xb7a66a+'#'+_0x187c1c);}async['hset'](_0xac1c9d,_0x102002,_0x11e4af,_0x41d65d){return await this['set'](_0xac1c9d+'#'+_0x102002,_0x11e4af,_0x41d65d);}async['hget'](_0x52adaa,_0x4e54a6,_0xebed65){var _0x4607ab=a4_0xef08b0;return await this[_0x4607ab(0xa9)](_0x52adaa+'#'+_0x4e54a6,_0xebed65);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -23,5 +23,5 @@
23
23
  "javascript-obfuscator": "^4.0.0",
24
24
  "typescript": "^4.7.4"
25
25
  },
26
- "gitHead": "0b61905449e99fa08d7f245f00f86d4be90a7f12"
26
+ "gitHead": "01631600216047011e684cbd2aff81845e637d94"
27
27
  }