@anncic-api/cache 3.0.4 → 3.0.6

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
- 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
+ const a0_0x3a6647=a0_0x6ec0;(function(_0xa0e990,_0x294c63){const _0x5e666f=a0_0x6ec0,_0x3b9253=_0xa0e990();while(!![]){try{const _0x59a7ce=-parseInt(_0x5e666f(0x9a))/0x1*(-parseInt(_0x5e666f(0x93))/0x2)+-parseInt(_0x5e666f(0x8f))/0x3+parseInt(_0x5e666f(0x8c))/0x4*(parseInt(_0x5e666f(0x9b))/0x5)+parseInt(_0x5e666f(0x88))/0x6+parseInt(_0x5e666f(0x98))/0x7+parseInt(_0x5e666f(0x92))/0x8+-parseInt(_0x5e666f(0x8a))/0x9*(parseInt(_0x5e666f(0x95))/0xa);if(_0x59a7ce===_0x294c63)break;else _0x3b9253['push'](_0x3b9253['shift']());}catch(_0x2897cd){_0x3b9253['push'](_0x3b9253['shift']());}}}(a0_0x450f,0xd0684));const a0_0x12b8cc=(function(){let _0x127f80=!![];return function(_0x478d1e,_0x1a633a){const _0xbc2e50=_0x127f80?function(){if(_0x1a633a){const _0x7b2d1c=_0x1a633a['apply'](_0x478d1e,arguments);return _0x1a633a=null,_0x7b2d1c;}}:function(){};return _0x127f80=![],_0xbc2e50;};}()),a0_0x24ab58=a0_0x12b8cc(this,function(){const _0x3d58b0=a0_0x6ec0;return a0_0x24ab58[_0x3d58b0(0x97)]()['search'](_0x3d58b0(0x89))[_0x3d58b0(0x97)]()[_0x3d58b0(0x90)](a0_0x24ab58)[_0x3d58b0(0x9c)](_0x3d58b0(0x89));});a0_0x24ab58();'use strict';function a0_0x450f(){const _0xcfe9e0=['constructor','cache-manager-ioredis','12125232hWShHf','360TcEoLs','appDir','10sCWsuz','file','toString','7295610QhPnZg','cache-manager-fs-hash','8962npgnia','5PGutBC','search','3745770XOMrcs','(((.+)+)+)+$','41678802RxsvRg','memory','4300888ZzMYWJ','__esModule','127.0.0.1','1157841rmmJSy'];a0_0x450f=function(){return _0xcfe9e0;};return a0_0x450f();}Object['defineProperty'](exports,a0_0x3a6647(0x8d),{'value':!![]});const fsStore=require(a0_0x3a6647(0x99)),redisStore=require(a0_0x3a6647(0x91));function a0_0x6ec0(_0x3dca5c,_0x24ee32){const _0x38f363=a0_0x450f();return a0_0x6ec0=function(_0x24ab58,_0x12b8cc){_0x24ab58=_0x24ab58-0x88;let _0x450fff=_0x38f363[_0x24ab58];return _0x450fff;},a0_0x6ec0(_0x3dca5c,_0x24ee32);}exports['default']=_0x6bf664=>{const _0x30c1de=a0_0x3a6647;return{'cache':{'default':_0x30c1de(0x96),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x6bf664[_0x30c1de(0x94)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x30c1de(0x8e),'password':'','ttl':0x1e13380,'keyPrefix':_0x6bf664['name']+':'}},'memory':{'store':_0x30c1de(0x8b),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
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
+ function a1_0x34d3(_0xdf1eae,_0x29009c){var _0x17ec1b=a1_0x2ed5();return a1_0x34d3=function(_0x1e4207,_0x50ac5d){_0x1e4207=_0x1e4207-0x134;var _0x2ed587=_0x17ec1b[_0x1e4207];return _0x2ed587;},a1_0x34d3(_0xdf1eae,_0x29009c);}var a1_0x31ab59=a1_0x34d3;(function(_0x5670ab,_0xc4dec5){var _0x3b62bd=a1_0x34d3,_0x34b6c1=_0x5670ab();while(!![]){try{var _0x22e3e9=-parseInt(_0x3b62bd(0x13a))/0x1+-parseInt(_0x3b62bd(0x140))/0x2+parseInt(_0x3b62bd(0x147))/0x3*(-parseInt(_0x3b62bd(0x13b))/0x4)+-parseInt(_0x3b62bd(0x144))/0x5+-parseInt(_0x3b62bd(0x141))/0x6+-parseInt(_0x3b62bd(0x142))/0x7+-parseInt(_0x3b62bd(0x143))/0x8*(-parseInt(_0x3b62bd(0x138))/0x9);if(_0x22e3e9===_0xc4dec5)break;else _0x34b6c1['push'](_0x34b6c1['shift']());}catch(_0xca653c){_0x34b6c1['push'](_0x34b6c1['shift']());}}}(a1_0x2ed5,0x22458));var a1_0x50ac5d=(function(){var _0x3a5d55=!![];return function(_0x3852e9,_0x19f1af){var _0x2f753a=_0x3a5d55?function(){var _0x1976e5=a1_0x34d3;if(_0x19f1af){var _0x536afb=_0x19f1af[_0x1976e5(0x13e)](_0x3852e9,arguments);return _0x19f1af=null,_0x536afb;}}:function(){};return _0x3a5d55=![],_0x2f753a;};}()),a1_0x1e4207=a1_0x50ac5d(this,function(){var _0x27ff20=a1_0x34d3;return a1_0x1e4207[_0x27ff20(0x148)]()[_0x27ff20(0x13d)]('(((.+)+)+)+$')[_0x27ff20(0x148)]()[_0x27ff20(0x136)](a1_0x1e4207)['search']('(((.+)+)+)+$');});a1_0x1e4207();'use strict';function a1_0x2ed5(){var _0x1c9ffe=['function','153768SzuAly','135948XdzRvR','214291nKhgPl','8pIxzxW','110065bwsNLd','defineProperty','Configuration','3FlCxYu','toString','length','__decorate','anncic-api:cache','decorate','object','constructor','CustomConfiguration','5112054QjHqLR','__esModule','38199YWRuxP','949052TPwOZA','getOwnPropertyDescriptor','search','apply'];a1_0x2ed5=function(){return _0x1c9ffe;};return a1_0x2ed5();}var __decorate=this&&this[a1_0x31ab59(0x14a)]||function(_0x493d06,_0x5ce1e5,_0x49a33c,_0x3bd4fc){var _0x760b19=a1_0x31ab59,_0x3d42e3=arguments['length'],_0x18813a=_0x3d42e3<0x3?_0x5ce1e5:_0x3bd4fc===null?_0x3bd4fc=Object[_0x760b19(0x13c)](_0x5ce1e5,_0x49a33c):_0x3bd4fc,_0x2a6c63;if(typeof Reflect===_0x760b19(0x135)&&typeof Reflect[_0x760b19(0x134)]===_0x760b19(0x13f))_0x18813a=Reflect['decorate'](_0x493d06,_0x5ce1e5,_0x49a33c,_0x3bd4fc);else{for(var _0x10f748=_0x493d06[_0x760b19(0x149)]-0x1;_0x10f748>=0x0;_0x10f748--)if(_0x2a6c63=_0x493d06[_0x10f748])_0x18813a=(_0x3d42e3<0x3?_0x2a6c63(_0x18813a):_0x3d42e3>0x3?_0x2a6c63(_0x5ce1e5,_0x49a33c,_0x18813a):_0x2a6c63(_0x5ce1e5,_0x49a33c))||_0x18813a;}return _0x3d42e3>0x3&&_0x18813a&&Object[_0x760b19(0x145)](_0x5ce1e5,_0x49a33c,_0x18813a),_0x18813a;};Object[a1_0x31ab59(0x145)](exports,a1_0x31ab59(0x139),{'value':!![]}),exports[a1_0x31ab59(0x137)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x31ab59(0x146)])({'conflictCheck':![],'namespace':a1_0x31ab59(0x14b),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x31ab59(0x137)]=CustomConfiguration;
@@ -1 +1 @@
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;
1
+ function a2_0x315d(_0x565ee6,_0x2996c8){const _0x467716=a2_0xf72a();return a2_0x315d=function(_0xac25e5,_0x7b21f9){_0xac25e5=_0xac25e5-0x1ee;let _0xf72afd=_0x467716[_0xac25e5];return _0xf72afd;},a2_0x315d(_0x565ee6,_0x2996c8);}function a2_0xf72a(){const _0x83d93=['1575EFOXFX','../service/CacheService','Method::Decorator','crypto-js','3732KblkBp','__esModule','3689yxXuJO','search','toString','get','apply','defineProperty','Cache','45512SDfLvl','501374EdOxUH','108wbUTya','140327tvsfdl','210472XqrREn','getApplicationContext','117TAGJBv','use','parse','3832zpJluO','15zpluHp','MD5','(((.+)+)+)+$','REQUEST_OBJ_CTX_KEY','71740yBIDmv','set'];a2_0xf72a=function(){return _0x83d93;};return a2_0xf72a();}const a2_0x546d06=a2_0x315d;(function(_0x2bd70d,_0x4c2597){const _0x18d8b9=a2_0x315d,_0x1b7333=_0x2bd70d();while(!![]){try{const _0x183d60=-parseInt(_0x18d8b9(0x1f4))/0x1+parseInt(_0x18d8b9(0x1f5))/0x2+-parseInt(_0x18d8b9(0x1fe))/0x3*(parseInt(_0x18d8b9(0x1f8))/0x4)+-parseInt(_0x18d8b9(0x204))/0x5*(-parseInt(_0x18d8b9(0x208))/0x6)+-parseInt(_0x18d8b9(0x20a))/0x7*(-parseInt(_0x18d8b9(0x1fd))/0x8)+parseInt(_0x18d8b9(0x1fa))/0x9*(-parseInt(_0x18d8b9(0x202))/0xa)+-parseInt(_0x18d8b9(0x1f7))/0xb*(parseInt(_0x18d8b9(0x1f6))/0xc);if(_0x183d60===_0x4c2597)break;else _0x1b7333['push'](_0x1b7333['shift']());}catch(_0x3d285f){_0x1b7333['push'](_0x1b7333['shift']());}}}(a2_0xf72a,0x2c865));const a2_0x7b21f9=(function(){let _0xbdaee9=!![];return function(_0x5b4df4,_0x228bec){const _0x2d2b03=_0xbdaee9?function(){const _0x52bc8e=a2_0x315d;if(_0x228bec){const _0x4df15f=_0x228bec[_0x52bc8e(0x1f1)](_0x5b4df4,arguments);return _0x228bec=null,_0x4df15f;}}:function(){};return _0xbdaee9=![],_0x2d2b03;};}()),a2_0xac25e5=a2_0x7b21f9(this,function(){const _0x14fbe5=a2_0x315d;return a2_0xac25e5[_0x14fbe5(0x1ef)]()[_0x14fbe5(0x1ee)](_0x14fbe5(0x200))[_0x14fbe5(0x1ef)]()['constructor'](a2_0xac25e5)[_0x14fbe5(0x1ee)](_0x14fbe5(0x200));});a2_0xac25e5();'use strict';Object[a2_0x546d06(0x1f2)](exports,a2_0x546d06(0x209),{'value':!![]}),exports[a2_0x546d06(0x1f3)]=void 0x0;const crypto_js_1=require(a2_0x546d06(0x207)),CacheService_1=require(a2_0x546d06(0x205)),core_1=require('@midwayjs/core');function Cache(_0x309d26,_0x9785d2){return(_0x116d1e,_0x94a24b,_0x1875dd)=>{const _0x3f97c2=_0x1875dd['value'];return _0x1875dd['value']=async function(..._0xf3a461){const _0x563c4b=a2_0x315d;!_0x309d26&&(_0x309d26=(0x0,crypto_js_1[_0x563c4b(0x1ff)])(JSON['stringify'](_0xf3a461))[_0x563c4b(0x1ef)]());let _0x221788=await this[core_1[_0x563c4b(0x201)]]['app'][_0x563c4b(0x1f9)]()['getAsync'](CacheService_1['CacheService']),_0x5dc595=await _0x221788[_0x563c4b(0x1fb)](_0x563c4b(0x206))[_0x563c4b(0x1f0)](_0x309d26);if(_0x5dc595)return JSON[_0x563c4b(0x1fc)](_0x5dc595);else _0x5dc595=await _0x3f97c2[_0x563c4b(0x1f1)](this,[..._0xf3a461]),await _0x221788[_0x563c4b(0x1fb)]('Method::Decorator')[_0x563c4b(0x203)](_0x309d26,JSON['stringify'](_0x5dc595),_0x9785d2);return _0x5dc595;},_0x1875dd;};}exports[a2_0x546d06(0x1f3)]=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
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
+ var a3_0x518955=a3_0x60b2;(function(_0x3e89b3,_0x497675){var _0x4a34c4=a3_0x60b2,_0x5bb36c=_0x3e89b3();while(!![]){try{var _0x4372a7=parseInt(_0x4a34c4(0x19c))/0x1+parseInt(_0x4a34c4(0x195))/0x2+parseInt(_0x4a34c4(0x18d))/0x3*(-parseInt(_0x4a34c4(0x198))/0x4)+parseInt(_0x4a34c4(0x194))/0x5+-parseInt(_0x4a34c4(0x18f))/0x6+parseInt(_0x4a34c4(0x199))/0x7+parseInt(_0x4a34c4(0x197))/0x8*(-parseInt(_0x4a34c4(0x188))/0x9);if(_0x4372a7===_0x497675)break;else _0x5bb36c['push'](_0x5bb36c['shift']());}catch(_0xb6ee90){_0x5bb36c['push'](_0x5bb36c['shift']());}}}(a3_0x1341,0x35986));var a3_0x167bae=(function(){var _0x4fee20=!![];return function(_0x1d8c5f,_0x918470){var _0x3b6edf=_0x4fee20?function(){var _0x2e42bc=a3_0x60b2;if(_0x918470){var _0x37ffb9=_0x918470[_0x2e42bc(0x19a)](_0x1d8c5f,arguments);return _0x918470=null,_0x37ffb9;}}:function(){};return _0x4fee20=![],_0x3b6edf;};}()),a3_0x3315d6=a3_0x167bae(this,function(){var _0x1b69ba=a3_0x60b2;return a3_0x3315d6[_0x1b69ba(0x190)]()[_0x1b69ba(0x19b)](_0x1b69ba(0x196))['toString']()[_0x1b69ba(0x193)](a3_0x3315d6)['search'](_0x1b69ba(0x196));});function a3_0x1341(){var _0x1c92ed=['search','275070XLKIWu','2716803hGSFaC','CustomConfiguration','Configuration','CacheService','./decorator/Cache','2889AAyYFd','defineProperty','8118zztFYk','toString','Cache','__esModule','constructor','1638900EnRvwl','460812DefGZD','(((.+)+)+)+$','16whRZfe','508MhAmBe','795606SZSeoc','apply'];a3_0x1341=function(){return _0x1c92ed;};return a3_0x1341();}a3_0x3315d6();'use strict';Object[a3_0x518955(0x18e)](exports,a3_0x518955(0x192),{'value':!![]}),exports[a3_0x518955(0x18b)]=exports[a3_0x518955(0x191)]=exports[a3_0x518955(0x18a)]=void 0x0;var configuration_1=require('./configuration');Object[a3_0x518955(0x18e)](exports,a3_0x518955(0x18a),{'enumerable':!![],'get':function(){var _0x5d6c60=a3_0x518955;return configuration_1[_0x5d6c60(0x189)];}});var Cache_1=require(a3_0x518955(0x18c));function a3_0x60b2(_0x47e306,_0x2d5e1a){var _0x22bc6f=a3_0x1341();return a3_0x60b2=function(_0x3315d6,_0x167bae){_0x3315d6=_0x3315d6-0x188;var _0x1341d6=_0x22bc6f[_0x3315d6];return _0x1341d6;},a3_0x60b2(_0x47e306,_0x2d5e1a);}Object[a3_0x518955(0x18e)](exports,a3_0x518955(0x191),{'enumerable':!![],'get':function(){var _0x52ce68=a3_0x518955;return Cache_1[_0x52ce68(0x191)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x518955(0x18e)](exports,a3_0x518955(0x18b),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
@@ -1 +1 @@
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);}}
1
+ var a4_0x508e6b=a4_0x47c7;(function(_0x2972b5,_0x56f208){var _0x2add3c=a4_0x47c7,_0x367b08=_0x2972b5();while(!![]){try{var _0x1613aa=-parseInt(_0x2add3c(0x18b))/0x1*(-parseInt(_0x2add3c(0x1a7))/0x2)+-parseInt(_0x2add3c(0x184))/0x3+-parseInt(_0x2add3c(0x198))/0x4+-parseInt(_0x2add3c(0x199))/0x5*(parseInt(_0x2add3c(0x187))/0x6)+-parseInt(_0x2add3c(0x19c))/0x7*(parseInt(_0x2add3c(0x192))/0x8)+parseInt(_0x2add3c(0x189))/0x9*(-parseInt(_0x2add3c(0x196))/0xa)+-parseInt(_0x2add3c(0x18f))/0xb*(-parseInt(_0x2add3c(0x19d))/0xc);if(_0x1613aa===_0x56f208)break;else _0x367b08['push'](_0x367b08['shift']());}catch(_0x2694d2){_0x367b08['push'](_0x367b08['shift']());}}}(a4_0x2e51,0x88554));var a4_0x134ad2=(function(){var _0x438253=!![];return function(_0x291bcb,_0x117631){var _0x5b272b=_0x438253?function(){if(_0x117631){var _0x399846=_0x117631['apply'](_0x291bcb,arguments);return _0x117631=null,_0x399846;}}:function(){};return _0x438253=![],_0x5b272b;};}()),a4_0x16a362=a4_0x134ad2(this,function(){var _0x3bf3aa=a4_0x47c7;return a4_0x16a362[_0x3bf3aa(0x19b)]()[_0x3bf3aa(0x1a8)](_0x3bf3aa(0x1a1))['toString']()[_0x3bf3aa(0x18d)](a4_0x16a362)[_0x3bf3aa(0x1a8)](_0x3bf3aa(0x1a1));});a4_0x16a362();'use strict';var __decorate=this&&this[a4_0x508e6b(0x193)]||function(_0x7dc9c8,_0x46c835,_0xad6158,_0x1bbfd1){var _0x571fb8=a4_0x508e6b,_0x46f566=arguments[_0x571fb8(0x180)],_0x1e03e8=_0x46f566<0x3?_0x46c835:_0x1bbfd1===null?_0x1bbfd1=Object[_0x571fb8(0x181)](_0x46c835,_0xad6158):_0x1bbfd1,_0x455ea4;if(typeof Reflect===_0x571fb8(0x18c)&&typeof Reflect['decorate']===_0x571fb8(0x194))_0x1e03e8=Reflect[_0x571fb8(0x17d)](_0x7dc9c8,_0x46c835,_0xad6158,_0x1bbfd1);else{for(var _0x4e3661=_0x7dc9c8[_0x571fb8(0x180)]-0x1;_0x4e3661>=0x0;_0x4e3661--)if(_0x455ea4=_0x7dc9c8[_0x4e3661])_0x1e03e8=(_0x46f566<0x3?_0x455ea4(_0x1e03e8):_0x46f566>0x3?_0x455ea4(_0x46c835,_0xad6158,_0x1e03e8):_0x455ea4(_0x46c835,_0xad6158))||_0x1e03e8;}return _0x46f566>0x3&&_0x1e03e8&&Object['defineProperty'](_0x46c835,_0xad6158,_0x1e03e8),_0x1e03e8;},__metadata=this&&this[a4_0x508e6b(0x19a)]||function(_0x4cd298,_0x481930){var _0x5af92a=a4_0x508e6b;if(typeof Reflect==='object'&&typeof Reflect[_0x5af92a(0x183)]===_0x5af92a(0x194))return Reflect[_0x5af92a(0x183)](_0x4cd298,_0x481930);};Object['defineProperty'](exports,a4_0x508e6b(0x1a4),{'value':!![]}),exports[a4_0x508e6b(0x186)]=void 0x0;const cacheManager=require('cache-manager'),core_1=require('@midwayjs/core');let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}[a4_0x508e6b(0x1a0)](_0x2585d2){var _0x33a64c=a4_0x508e6b,_0x13c4f0,_0xcbcf1a;if(!this[_0x33a64c(0x19e)]){const _0x404ae9=((_0x13c4f0=this[_0x33a64c(0x188)][_0x33a64c(0x18a)])===null||_0x13c4f0===void 0x0?void 0x0:_0x13c4f0[(_0xcbcf1a=this[_0x33a64c(0x188)][_0x33a64c(0x19e)])===null||_0xcbcf1a===void 0x0?void 0x0:_0xcbcf1a[_0x33a64c(0x17c)]])||this['config'][_0x33a64c(0x18a)][_0x33a64c(0x185)];this[_0x33a64c(0x19e)]=cacheManager[_0x33a64c(0x18e)]({..._0x404ae9['options'],'store':_0x404ae9['store']});}return!this[_0x33a64c(0x1a2)]['has'](_0x2585d2)&&this['clients'][_0x33a64c(0x195)](_0x2585d2,new CacheHandler(_0x2585d2,this[_0x33a64c(0x19e)])),this['clients'][_0x33a64c(0x1a5)](_0x2585d2);}async['reset'](){return await this['cache']['reset']();}};__decorate([(0x0,core_1[a4_0x508e6b(0x17f)])('cache'),__metadata(a4_0x508e6b(0x17e),Object)],CacheService[a4_0x508e6b(0x19f)],a4_0x508e6b(0x188),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1['Scope'])(core_1[a4_0x508e6b(0x191)]['Singleton'])],CacheService),exports[a4_0x508e6b(0x186)]=CacheService;function a4_0x2e51(){var _0x13672d=['caching','11owMAFF','prefix','ScopeEnum','8547240onQXgM','__decorate','function','set','123130jJXAWL','del','985572VXugJJ','5232620EFVKdl','__metadata','toString','7hAMBLd','44524452CuUyCS','cache','prototype','use','(((.+)+)+)+$','clients','hget','__esModule','get','hset','178yrireV','search','default','decorate','design:type','Config','length','getOwnPropertyDescriptor','hdel','metadata','2047407UxouQu','file','CacheService','6PCvnqs','config','369mwTFLM','stores','4457Myzmqh','object','constructor'];a4_0x2e51=function(){return _0x13672d;};return a4_0x2e51();}function a4_0x47c7(_0x1bfbd7,_0x2fbd4d){var _0x16db06=a4_0x2e51();return a4_0x47c7=function(_0x16a362,_0x134ad2){_0x16a362=_0x16a362-0x17c;var _0x2e5116=_0x16db06[_0x16a362];return _0x2e5116;},a4_0x47c7(_0x1bfbd7,_0x2fbd4d);}class CacheHandler{constructor(_0x2177b2,_0xdc629d){var _0x478d1a=a4_0x508e6b;this[_0x478d1a(0x19e)]=_0xdc629d,this['prefix']=_0x2177b2;}async[a4_0x508e6b(0x197)](_0xd901f3){var _0x16ba49=a4_0x508e6b;return await this[_0x16ba49(0x19e)][_0x16ba49(0x197)](this[_0x16ba49(0x190)]+':'+_0xd901f3);}async[a4_0x508e6b(0x195)](_0x12fbc8,_0x3568a4,_0x221161){var _0x5165b6=a4_0x508e6b;return await this['cache']['set'](this[_0x5165b6(0x190)]+':'+_0x12fbc8,_0x3568a4,_0x221161);}async['get'](_0x583574,_0x51698f){return new Promise((_0x2dc5c1,_0x1ca952)=>{var _0x48c317=a4_0x47c7;this[_0x48c317(0x19e)][_0x48c317(0x1a5)](this[_0x48c317(0x190)]+':'+_0x583574,(_0x5de1f0,_0x1af962)=>{_0x5de1f0?_0x1ca952(_0x5de1f0):_0x2dc5c1(_0x1af962||_0x51698f);});});}async[a4_0x508e6b(0x182)](_0x27907c,_0x28a808){var _0x4bc4c7=a4_0x508e6b;return await this[_0x4bc4c7(0x197)](_0x27907c+'#'+_0x28a808);}async[a4_0x508e6b(0x1a6)](_0x27a5b8,_0x205ae8,_0xc5d743,_0x5346d7){var _0x55a49b=a4_0x508e6b;return await this[_0x55a49b(0x195)](_0x27a5b8+'#'+_0x205ae8,_0xc5d743,_0x5346d7);}async[a4_0x508e6b(0x1a3)](_0x4cea64,_0xdff908,_0x2fa4db){return await this['get'](_0x4cea64+'#'+_0xdff908,_0x2fa4db);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
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": "01631600216047011e684cbd2aff81845e637d94"
26
+ "gitHead": "b177adf0be082eae9fe0f4d1665f669ea44f9b60"
27
27
  }