@anncic-api/cache 1.1.22 → 1.1.24

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
- 'use strict';const a0_0x22d2b7=a0_0x5d07;(function(_0x5e265b,_0x447266){const _0x581dfd=a0_0x5d07,_0x453ad1=_0x5e265b();while(!![]){try{const _0x47159e=-parseInt(_0x581dfd(0x185))/0x1+parseInt(_0x581dfd(0x18f))/0x2*(parseInt(_0x581dfd(0x189))/0x3)+parseInt(_0x581dfd(0x190))/0x4+-parseInt(_0x581dfd(0x192))/0x5+parseInt(_0x581dfd(0x18b))/0x6+parseInt(_0x581dfd(0x184))/0x7+-parseInt(_0x581dfd(0x18c))/0x8*(-parseInt(_0x581dfd(0x18d))/0x9);if(_0x47159e===_0x447266)break;else _0x453ad1['push'](_0x453ad1['shift']());}catch(_0x152326){_0x453ad1['push'](_0x453ad1['shift']());}}}(a0_0x38df,0xf41d9));function a0_0x38df(){const _0xb72aed=['11892034iQtNGQ','1872198WVTQWB','file','__esModule','cache-manager-ioredis','1300566dnszqk','cache-manager-fs-hash','2637342XbXZeD','24mkBgqq','621999qbJGeG','name','6cVVLyb','1771508tOpplH','127.0.0.1','6085500yIwYeC','default'];a0_0x38df=function(){return _0xb72aed;};return a0_0x38df();}Object['defineProperty'](exports,a0_0x22d2b7(0x187),{'value':!![]});const fsStore=require(a0_0x22d2b7(0x18a)),redisStore=require(a0_0x22d2b7(0x188));function a0_0x5d07(_0x5566c5,_0x3e170e){const _0x38df11=a0_0x38df();return a0_0x5d07=function(_0x5d0734,_0x5b8731){_0x5d0734=_0x5d0734-0x184;let _0x4a3499=_0x38df11[_0x5d0734];return _0x4a3499;},a0_0x5d07(_0x5566c5,_0x3e170e);}exports[a0_0x22d2b7(0x193)]=_0x4193c5=>{const _0x59d5ee=a0_0x22d2b7;return{'cache':{'default':_0x59d5ee(0x186),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x4193c5['appDir']+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x59d5ee(0x191),'password':'','ttl':0x1e13380,'keyPrefix':_0x4193c5[_0x59d5ee(0x18e)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0x3a1c12=a0_0x2134;(function(_0x1ae0a4,_0x385222){const _0x44bc13=a0_0x2134,_0x9ff460=_0x1ae0a4();while(!![]){try{const _0x461842=-parseInt(_0x44bc13(0x1fc))/0x1*(parseInt(_0x44bc13(0x1f7))/0x2)+-parseInt(_0x44bc13(0x1ef))/0x3*(parseInt(_0x44bc13(0x1eb))/0x4)+parseInt(_0x44bc13(0x1ed))/0x5*(parseInt(_0x44bc13(0x1f2))/0x6)+-parseInt(_0x44bc13(0x1fd))/0x7*(parseInt(_0x44bc13(0x1f0))/0x8)+parseInt(_0x44bc13(0x1e9))/0x9*(parseInt(_0x44bc13(0x1f6))/0xa)+parseInt(_0x44bc13(0x1f8))/0xb*(-parseInt(_0x44bc13(0x1ec))/0xc)+parseInt(_0x44bc13(0x1f4))/0xd*(parseInt(_0x44bc13(0x1e8))/0xe);if(_0x461842===_0x385222)break;else _0x9ff460['push'](_0x9ff460['shift']());}catch(_0x2cd08){_0x9ff460['push'](_0x9ff460['shift']());}}}(a0_0x2eea,0xa026d));function a0_0x2eea(){const _0xc94e9d=['cache-manager-ioredis','337350KRKxiD','22OgiJZw','2239435bOjpPr','cache-manager-fs-hash','appDir','defineProperty','3607CUEgxF','2523346pXydpT','__esModule','127.0.0.1','10171924wOcEjl','270EvgNnD','memory','2716772BFKgbk','72zKWQAi','5xAGUBS','name','3CuIHgb','8BBbEUa','/runtime/.cache','2949942lsAPZG','file','26IYUdZr'];a0_0x2eea=function(){return _0xc94e9d;};return a0_0x2eea();}function a0_0x2134(_0x295566,_0xd766ed){const _0x2eea27=a0_0x2eea();return a0_0x2134=function(_0x2134c4,_0x8859a6){_0x2134c4=_0x2134c4-0x1e8;let _0xb484d2=_0x2eea27[_0x2134c4];return _0xb484d2;},a0_0x2134(_0x295566,_0xd766ed);}Object[a0_0x3a1c12(0x1fb)](exports,a0_0x3a1c12(0x1fe),{'value':!![]});const fsStore=require(a0_0x3a1c12(0x1f9)),redisStore=require(a0_0x3a1c12(0x1f5));exports['default']=_0x5efe82=>{const _0x3bd830=a0_0x3a1c12;return{'cache':{'default':_0x3bd830(0x1f3),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x5efe82[_0x3bd830(0x1fa)]+_0x3bd830(0x1f1)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x3bd830(0x1ff),'password':'','ttl':0x1e13380,'keyPrefix':_0x5efe82[_0x3bd830(0x1ee)]+':'}},'memory':{'store':_0x3bd830(0x1ea),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';var a1_0x224e3=a1_0x331d;(function(_0x609903,_0x691484){var _0x29edd2=a1_0x331d,_0x15018c=_0x609903();while(!![]){try{var _0x482b6e=parseInt(_0x29edd2(0x16d))/0x1+-parseInt(_0x29edd2(0x162))/0x2*(-parseInt(_0x29edd2(0x15e))/0x3)+parseInt(_0x29edd2(0x161))/0x4+parseInt(_0x29edd2(0x15f))/0x5*(parseInt(_0x29edd2(0x168))/0x6)+-parseInt(_0x29edd2(0x163))/0x7+-parseInt(_0x29edd2(0x16c))/0x8*(parseInt(_0x29edd2(0x165))/0x9)+parseInt(_0x29edd2(0x160))/0xa*(parseInt(_0x29edd2(0x167))/0xb);if(_0x482b6e===_0x691484)break;else _0x15018c['push'](_0x15018c['shift']());}catch(_0x10bf4d){_0x15018c['push'](_0x15018c['shift']());}}}(a1_0x35da,0xb0d8c));function a1_0x35da(){var _0x4c66eb=['defineProperty','142109pDoorD','399822zZwiGJ','Configuration','function','anncic-api:cache','160HqSIrd','240378HfcwAr','./config/config.default','@midwayjs/decorator','3837HjYdQA','85OYhGuD','630chkspm','4010680uyNkYx','310oxBVyf','9979725RDoUbW','decorate','557091zbKBXJ'];a1_0x35da=function(){return _0x4c66eb;};return a1_0x35da();}var __decorate=this&&this['__decorate']||function(_0x2dcc67,_0x4ebd46,_0x3dfe01,_0x2f3db1){var _0x45824d=a1_0x331d,_0x4b553e=arguments['length'],_0x34a12c=_0x4b553e<0x3?_0x4ebd46:_0x2f3db1===null?_0x2f3db1=Object['getOwnPropertyDescriptor'](_0x4ebd46,_0x3dfe01):_0x2f3db1,_0x2e5dd2;if(typeof Reflect==='object'&&typeof Reflect[_0x45824d(0x164)]===_0x45824d(0x16a))_0x34a12c=Reflect[_0x45824d(0x164)](_0x2dcc67,_0x4ebd46,_0x3dfe01,_0x2f3db1);else{for(var _0x1ca747=_0x2dcc67['length']-0x1;_0x1ca747>=0x0;_0x1ca747--)if(_0x2e5dd2=_0x2dcc67[_0x1ca747])_0x34a12c=(_0x4b553e<0x3?_0x2e5dd2(_0x34a12c):_0x4b553e>0x3?_0x2e5dd2(_0x4ebd46,_0x3dfe01,_0x34a12c):_0x2e5dd2(_0x4ebd46,_0x3dfe01))||_0x34a12c;}return _0x4b553e>0x3&&_0x34a12c&&Object['defineProperty'](_0x4ebd46,_0x3dfe01,_0x34a12c),_0x34a12c;};Object[a1_0x224e3(0x166)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x331d(_0x3a456c,_0x16ce52){var _0x35da67=a1_0x35da();return a1_0x331d=function(_0x331dfc,_0x9e88ff){_0x331dfc=_0x331dfc-0x15d;var _0x5edf6f=_0x35da67[_0x331dfc];return _0x5edf6f;},a1_0x331d(_0x3a456c,_0x16ce52);}const decorator_1=require(a1_0x224e3(0x15d)),ConfigDefault=require(a1_0x224e3(0x16e));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x224e3(0x169)])({'conflictCheck':![],'namespace':a1_0x224e3(0x16b),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
1
+ 'use strict';function a1_0x56aa(_0x3d8c74,_0x1b3804){var _0x3aec98=a1_0x3aec();return a1_0x56aa=function(_0x56aa1f,_0x5f2ea8){_0x56aa1f=_0x56aa1f-0xf1;var _0x303348=_0x3aec98[_0x56aa1f];return _0x303348;},a1_0x56aa(_0x3d8c74,_0x1b3804);}var a1_0x32a235=a1_0x56aa;(function(_0x23abb5,_0x308ce1){var _0x49d22b=a1_0x56aa,_0x4cb03b=_0x23abb5();while(!![]){try{var _0x134b24=parseInt(_0x49d22b(0xff))/0x1+parseInt(_0x49d22b(0xfc))/0x2*(-parseInt(_0x49d22b(0xfa))/0x3)+-parseInt(_0x49d22b(0xf4))/0x4+-parseInt(_0x49d22b(0xfe))/0x5*(-parseInt(_0x49d22b(0xf8))/0x6)+-parseInt(_0x49d22b(0xf3))/0x7+-parseInt(_0x49d22b(0x103))/0x8+parseInt(_0x49d22b(0xf9))/0x9*(parseInt(_0x49d22b(0x106))/0xa);if(_0x134b24===_0x308ce1)break;else _0x4cb03b['push'](_0x4cb03b['shift']());}catch(_0x312cb7){_0x4cb03b['push'](_0x4cb03b['shift']());}}}(a1_0x3aec,0x9ca4f));function a1_0x3aec(){var _0xf31a0c=['anncic-api:cache','2IwUoDI','Configuration','87445EokhCN','705680UnfThR','@midwayjs/decorator','decorate','./config/config.default','1225896odKaob','getOwnPropertyDescriptor','defineProperty','11930azsLfB','length','object','2315705dELpjk','4084432JiHhZi','__decorate','CustomConfiguration','function','180BOIiDg','15678DrJnTR','3485343qjHRSX'];a1_0x3aec=function(){return _0xf31a0c;};return a1_0x3aec();}var __decorate=this&&this[a1_0x32a235(0xf5)]||function(_0x576b01,_0x4bc873,_0x2d6df0,_0x44baa3){var _0x33cef5=a1_0x32a235,_0x2c2ff7=arguments[_0x33cef5(0xf1)],_0x39c77a=_0x2c2ff7<0x3?_0x4bc873:_0x44baa3===null?_0x44baa3=Object[_0x33cef5(0x104)](_0x4bc873,_0x2d6df0):_0x44baa3,_0x23ae90;if(typeof Reflect===_0x33cef5(0xf2)&&typeof Reflect[_0x33cef5(0x101)]===_0x33cef5(0xf7))_0x39c77a=Reflect[_0x33cef5(0x101)](_0x576b01,_0x4bc873,_0x2d6df0,_0x44baa3);else{for(var _0x39f546=_0x576b01[_0x33cef5(0xf1)]-0x1;_0x39f546>=0x0;_0x39f546--)if(_0x23ae90=_0x576b01[_0x39f546])_0x39c77a=(_0x2c2ff7<0x3?_0x23ae90(_0x39c77a):_0x2c2ff7>0x3?_0x23ae90(_0x4bc873,_0x2d6df0,_0x39c77a):_0x23ae90(_0x4bc873,_0x2d6df0))||_0x39c77a;}return _0x2c2ff7>0x3&&_0x39c77a&&Object[_0x33cef5(0x105)](_0x4bc873,_0x2d6df0,_0x39c77a),_0x39c77a;};Object[a1_0x32a235(0x105)](exports,'__esModule',{'value':!![]}),exports[a1_0x32a235(0xf6)]=void 0x0;const decorator_1=require(a1_0x32a235(0x100)),ConfigDefault=require(a1_0x32a235(0x102));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x32a235(0xfd)])({'conflictCheck':![],'namespace':a1_0x32a235(0xfb),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x32a235(0xf6)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0xc0b658=a2_0x49c8;(function(_0x266b50,_0x34c6f2){const _0x314569=a2_0x49c8,_0x13e91a=_0x266b50();while(!![]){try{const _0x3916e8=-parseInt(_0x314569(0x1d5))/0x1*(parseInt(_0x314569(0x1cd))/0x2)+parseInt(_0x314569(0x1c9))/0x3*(-parseInt(_0x314569(0x1d3))/0x4)+-parseInt(_0x314569(0x1c6))/0x5*(-parseInt(_0x314569(0x1d1))/0x6)+parseInt(_0x314569(0x1db))/0x7*(parseInt(_0x314569(0x1d9))/0x8)+parseInt(_0x314569(0x1dd))/0x9+-parseInt(_0x314569(0x1d8))/0xa*(parseInt(_0x314569(0x1c2))/0xb)+-parseInt(_0x314569(0x1de))/0xc*(-parseInt(_0x314569(0x1c7))/0xd);if(_0x3916e8===_0x34c6f2)break;else _0x13e91a['push'](_0x13e91a['shift']());}catch(_0x1eef7c){_0x13e91a['push'](_0x13e91a['shift']());}}}(a2_0x5671,0x6398d));function a2_0x49c8(_0x27419d,_0xb31610){const _0x5671eb=a2_0x5671();return a2_0x49c8=function(_0x49c8a2,_0x506d57){_0x49c8a2=_0x49c8a2-0x1c1;let _0x3b9461=_0x5671eb[_0x49c8a2];return _0x3b9461;},a2_0x49c8(_0x27419d,_0xb31610);}function a2_0x5671(){const _0x848b9b=['756NICfdB','getApplicationContext','parse','1353TnAUWG','@midwayjs/core','crypto-js','defineProperty','173155eAYvgD','133159vZnCpK','MethodDecorator','1137lCbqHW','REQUEST_OBJ_CTX_KEY','use','../service/CacheService','474TvuIlm','stringify','MD5','get','18nwMykB','toString','6236zeDpzk','value','871ljFBLY','CacheService','app','14930oGqYZT','8RPkmlv','apply','2430526nrWqhM','Cache','2632104ZdsbBj'];a2_0x5671=function(){return _0x848b9b;};return a2_0x5671();}Object[a2_0xc0b658(0x1c5)](exports,'__esModule',{'value':!![]}),exports[a2_0xc0b658(0x1dc)]=void 0x0;const crypto_js_1=require(a2_0xc0b658(0x1c4)),CacheService_1=require(a2_0xc0b658(0x1cc)),core_1=require(a2_0xc0b658(0x1c3));function Cache(_0x37e22d,_0x585e07){return(_0x39e5df,_0x59eca1,_0x5e8282)=>{const _0x47fcf9=a2_0x49c8,_0x51e5ec=_0x5e8282[_0x47fcf9(0x1d4)];return _0x5e8282[_0x47fcf9(0x1d4)]=async function(..._0x26adc1){const _0x571a14=_0x47fcf9;!_0x37e22d&&(_0x37e22d=(0x0,crypto_js_1[_0x571a14(0x1cf)])(JSON[_0x571a14(0x1ce)](_0x26adc1))[_0x571a14(0x1d2)]());let _0x28529f=await this[core_1[_0x571a14(0x1ca)]][_0x571a14(0x1d7)][_0x571a14(0x1df)]()['getAsync'](CacheService_1[_0x571a14(0x1d6)]),_0x8ea632=await _0x28529f['use'](_0x571a14(0x1c8))[_0x571a14(0x1d0)](_0x37e22d);if(_0x8ea632)return JSON[_0x571a14(0x1c1)](_0x8ea632);else _0x8ea632=await _0x51e5ec[_0x571a14(0x1da)](this,[..._0x26adc1]),await _0x28529f[_0x571a14(0x1cb)](_0x571a14(0x1c8))['set'](_0x37e22d,JSON[_0x571a14(0x1ce)](_0x8ea632),_0x585e07);return _0x8ea632;},_0x5e8282;};}exports[a2_0xc0b658(0x1dc)]=Cache;
1
+ 'use strict';const a2_0x2449d5=a2_0x2a19;(function(_0x38f548,_0x156b68){const _0x47c379=a2_0x2a19,_0x17684c=_0x38f548();while(!![]){try{const _0xf2c6e9=parseInt(_0x47c379(0x202))/0x1+-parseInt(_0x47c379(0x1f5))/0x2*(parseInt(_0x47c379(0x207))/0x3)+-parseInt(_0x47c379(0x200))/0x4*(-parseInt(_0x47c379(0x1f8))/0x5)+parseInt(_0x47c379(0x1fa))/0x6+parseInt(_0x47c379(0x201))/0x7*(-parseInt(_0x47c379(0x1f6))/0x8)+-parseInt(_0x47c379(0x205))/0x9+parseInt(_0x47c379(0x1fb))/0xa*(-parseInt(_0x47c379(0x204))/0xb);if(_0xf2c6e9===_0x156b68)break;else _0x17684c['push'](_0x17684c['shift']());}catch(_0xdd5e70){_0x17684c['push'](_0x17684c['shift']());}}}(a2_0x9df2,0x18e87));function a2_0x9df2(){const _0x1bcbf4=['apply','773346ZQOUme','20uAJsky','stringify','value','use','set','575188dtveVX','14eSblBs','163093tYIJiG','Cache','188837aaEaBl','1376505SARbAf','MD5','303993CfMFbE','crypto-js','REQUEST_OBJ_CTX_KEY','__esModule','CacheService','MethodDecorator','2QdouNR','180592hmakJS','get','5vajlGX'];a2_0x9df2=function(){return _0x1bcbf4;};return a2_0x9df2();}function a2_0x2a19(_0x1ae695,_0x1a781){const _0x9df2e6=a2_0x9df2();return a2_0x2a19=function(_0x2a1960,_0x5829ab){_0x2a1960=_0x2a1960-0x1f3;let _0x711688=_0x9df2e6[_0x2a1960];return _0x711688;},a2_0x2a19(_0x1ae695,_0x1a781);}Object['defineProperty'](exports,a2_0x2449d5(0x20a),{'value':!![]}),exports[a2_0x2449d5(0x203)]=void 0x0;const crypto_js_1=require(a2_0x2449d5(0x208)),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function Cache(_0x5896d1,_0x57cb4b){return(_0x3c8c99,_0x4b0ed1,_0x2080c2)=>{const _0x657bb7=a2_0x2a19,_0xcb349b=_0x2080c2['value'];return _0x2080c2[_0x657bb7(0x1fd)]=async function(..._0x2141f7){const _0x5f34f9=_0x657bb7;!_0x5896d1&&(_0x5896d1=(0x0,crypto_js_1[_0x5f34f9(0x206)])(JSON[_0x5f34f9(0x1fc)](_0x2141f7))['toString']());let _0x148737=await this[core_1[_0x5f34f9(0x209)]]['app']['getApplicationContext']()['getAsync'](CacheService_1[_0x5f34f9(0x1f3)]),_0x1a08dd=await _0x148737[_0x5f34f9(0x1fe)]('MethodDecorator')[_0x5f34f9(0x1f7)](_0x5896d1);if(_0x1a08dd)return JSON['parse'](_0x1a08dd);else _0x1a08dd=await _0xcb349b[_0x5f34f9(0x1f9)](this,[..._0x2141f7]),await _0x148737[_0x5f34f9(0x1fe)](_0x5f34f9(0x1f4))[_0x5f34f9(0x1ff)](_0x5896d1,JSON['stringify'](_0x1a08dd),_0x57cb4b);return _0x1a08dd;},_0x2080c2;};}exports[a2_0x2449d5(0x203)]=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0x2cf9eb=a3_0xd7c3;(function(_0x1b3008,_0x36501e){var _0x543a28=a3_0xd7c3,_0x517da8=_0x1b3008();while(!![]){try{var _0x326de9=parseInt(_0x543a28(0x13f))/0x1*(parseInt(_0x543a28(0x14a))/0x2)+parseInt(_0x543a28(0x14c))/0x3+-parseInt(_0x543a28(0x14b))/0x4*(-parseInt(_0x543a28(0x142))/0x5)+parseInt(_0x543a28(0x13d))/0x6+parseInt(_0x543a28(0x148))/0x7+parseInt(_0x543a28(0x13c))/0x8*(parseInt(_0x543a28(0x147))/0x9)+-parseInt(_0x543a28(0x146))/0xa;if(_0x326de9===_0x36501e)break;else _0x517da8['push'](_0x517da8['shift']());}catch(_0x51f9a8){_0x517da8['push'](_0x517da8['shift']());}}}(a3_0x1dcf,0xed6ca));function a3_0xd7c3(_0x5695de,_0x58616b){var _0x1dcf31=a3_0x1dcf();return a3_0xd7c3=function(_0xd7c3fe,_0x7b9169){_0xd7c3fe=_0xd7c3fe-0x13b;var _0x44bc41=_0x1dcf31[_0xd7c3fe];return _0x44bc41;},a3_0xd7c3(_0x5695de,_0x58616b);}Object[a3_0x2cf9eb(0x144)](exports,'__esModule',{'value':!![]}),exports[a3_0x2cf9eb(0x149)]=exports['Cache']=exports[a3_0x2cf9eb(0x13b)]=void 0x0;function a3_0x1dcf(){var _0xa45187=['CustomConfiguration','1jhZmTN','./decorator/Cache','./service/CacheService','35sjpNMQ','./configuration','defineProperty','Cache','30784040fEmBRt','54vkBPQU','8808051SFqoIZ','CacheService','3412246jLpOEm','345364qkluwX','1731aqNKGX','Configuration','160536MozkLD','2166672hCbBJJ'];a3_0x1dcf=function(){return _0xa45187;};return a3_0x1dcf();}var configuration_1=require(a3_0x2cf9eb(0x143));Object[a3_0x2cf9eb(0x144)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x48fb37=a3_0x2cf9eb;return configuration_1[_0x48fb37(0x13e)];}});var Cache_1=require(a3_0x2cf9eb(0x140));Object[a3_0x2cf9eb(0x144)](exports,a3_0x2cf9eb(0x145),{'enumerable':!![],'get':function(){var _0x589800=a3_0x2cf9eb;return Cache_1[_0x589800(0x145)];}});var CacheService_1=require(a3_0x2cf9eb(0x141));Object[a3_0x2cf9eb(0x144)](exports,a3_0x2cf9eb(0x149),{'enumerable':!![],'get':function(){var _0x51d2f=a3_0x2cf9eb;return CacheService_1[_0x51d2f(0x149)];}});
1
+ 'use strict';var a3_0x437c93=a3_0x4c6d;(function(_0x5def5,_0x10b437){var _0x54878c=a3_0x4c6d,_0x235d50=_0x5def5();while(!![]){try{var _0x157934=parseInt(_0x54878c(0x1e3))/0x1+parseInt(_0x54878c(0x1dc))/0x2*(-parseInt(_0x54878c(0x1e9))/0x3)+parseInt(_0x54878c(0x1df))/0x4+-parseInt(_0x54878c(0x1e5))/0x5*(parseInt(_0x54878c(0x1e2))/0x6)+parseInt(_0x54878c(0x1da))/0x7+parseInt(_0x54878c(0x1e6))/0x8*(parseInt(_0x54878c(0x1e0))/0x9)+-parseInt(_0x54878c(0x1e4))/0xa;if(_0x157934===_0x10b437)break;else _0x235d50['push'](_0x235d50['shift']());}catch(_0x459ba0){_0x235d50['push'](_0x235d50['shift']());}}}(a3_0x2e50,0xafaa1));function a3_0x2e50(){var _0x588d11=['13393690lJnvHy','50yVfxLk','8073552qzxmiH','./decorator/Cache','CacheService','435DsgiQZ','./service/CacheService','4319924mEMOXR','Configuration','15262SpzPvU','Cache','defineProperty','4860196RPQboG','9rGQqQM','CustomConfiguration','358404ZCGLyA','921350MiAXuG'];a3_0x2e50=function(){return _0x588d11;};return a3_0x2e50();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x437c93(0x1e8)]=exports[a3_0x437c93(0x1dd)]=exports[a3_0x437c93(0x1db)]=void 0x0;var configuration_1=require('./configuration');function a3_0x4c6d(_0x484b3f,_0x30821b){var _0x2e5028=a3_0x2e50();return a3_0x4c6d=function(_0x4c6d64,_0x2fbd9e){_0x4c6d64=_0x4c6d64-0x1da;var _0x395dae=_0x2e5028[_0x4c6d64];return _0x395dae;},a3_0x4c6d(_0x484b3f,_0x30821b);}Object[a3_0x437c93(0x1de)](exports,a3_0x437c93(0x1db),{'enumerable':!![],'get':function(){var _0x5a836f=a3_0x437c93;return configuration_1[_0x5a836f(0x1e1)];}});var Cache_1=require(a3_0x437c93(0x1e7));Object[a3_0x437c93(0x1de)](exports,a3_0x437c93(0x1dd),{'enumerable':!![],'get':function(){var _0x49e9a4=a3_0x437c93;return Cache_1[_0x49e9a4(0x1dd)];}});var CacheService_1=require(a3_0x437c93(0x1ea));Object['defineProperty'](exports,a3_0x437c93(0x1e8),{'enumerable':!![],'get':function(){var _0x406844=a3_0x437c93;return CacheService_1[_0x406844(0x1e8)];}});
@@ -1 +1 @@
1
- 'use strict';var a4_0x405788=a4_0x229b;(function(_0x470413,_0x4019c9){var _0x80eed0=a4_0x229b,_0x37d0cf=_0x470413();while(!![]){try{var _0x1ae48d=-parseInt(_0x80eed0(0x1ef))/0x1+parseInt(_0x80eed0(0x203))/0x2+parseInt(_0x80eed0(0x1f2))/0x3*(-parseInt(_0x80eed0(0x1fa))/0x4)+parseInt(_0x80eed0(0x1f3))/0x5*(-parseInt(_0x80eed0(0x1ff))/0x6)+-parseInt(_0x80eed0(0x1ee))/0x7+parseInt(_0x80eed0(0x1f6))/0x8+parseInt(_0x80eed0(0x1fe))/0x9;if(_0x1ae48d===_0x4019c9)break;else _0x37d0cf['push'](_0x37d0cf['shift']());}catch(_0x514062){_0x37d0cf['push'](_0x37d0cf['shift']());}}}(a4_0x5d75,0x57271));var __decorate=this&&this['__decorate']||function(_0x4b8b99,_0x2419f6,_0x458bd3,_0x5c3d21){var _0x425390=a4_0x229b,_0x46e83b=arguments['length'],_0x567a6d=_0x46e83b<0x3?_0x2419f6:_0x5c3d21===null?_0x5c3d21=Object['getOwnPropertyDescriptor'](_0x2419f6,_0x458bd3):_0x5c3d21,_0x5493e9;if(typeof Reflect===_0x425390(0x20a)&&typeof Reflect['decorate']===_0x425390(0x200))_0x567a6d=Reflect[_0x425390(0x1f7)](_0x4b8b99,_0x2419f6,_0x458bd3,_0x5c3d21);else{for(var _0x2d8b23=_0x4b8b99[_0x425390(0x205)]-0x1;_0x2d8b23>=0x0;_0x2d8b23--)if(_0x5493e9=_0x4b8b99[_0x2d8b23])_0x567a6d=(_0x46e83b<0x3?_0x5493e9(_0x567a6d):_0x46e83b>0x3?_0x5493e9(_0x2419f6,_0x458bd3,_0x567a6d):_0x5493e9(_0x2419f6,_0x458bd3))||_0x567a6d;}return _0x46e83b>0x3&&_0x567a6d&&Object[_0x425390(0x206)](_0x2419f6,_0x458bd3,_0x567a6d),_0x567a6d;},__metadata=this&&this[a4_0x405788(0x1fd)]||function(_0x1bec2b,_0x7100f4){var _0x2c0464=a4_0x405788;if(typeof Reflect===_0x2c0464(0x20a)&&typeof Reflect['metadata']===_0x2c0464(0x200))return Reflect[_0x2c0464(0x20b)](_0x1bec2b,_0x7100f4);};Object[a4_0x405788(0x206)](exports,a4_0x405788(0x1ed),{'value':!![]}),exports[a4_0x405788(0x201)]=void 0x0;const cacheManager=require(a4_0x405788(0x1fb)),decorator_1=require(a4_0x405788(0x1f1));function a4_0x5d75(){var _0x52049d=['del','prefix','clients','caching','cache','use','file','__esModule','460726tjvsUL','543710KSHzOW','Scope','@midwayjs/decorator','15UiZkLa','237900cyoscS','default','ScopeEnum','1031768cjQExO','decorate','design:type','hget','461752EwdWsg','cache-manager','has','__metadata','9527229qaXZut','18YJSmJg','function','CacheService','config','997766lThTjP','options','length','defineProperty','get','stores','Config','object','metadata','hdel','store','set','hset'];a4_0x5d75=function(){return _0x52049d;};return a4_0x5d75();}let CacheService=class CacheService{constructor(){var _0x5eb4da=a4_0x405788;this[_0x5eb4da(0x1ea)]=undefined,this[_0x5eb4da(0x1e8)]=new Map();}[a4_0x405788(0x1eb)](_0xf77ea1){var _0x1ef730=a4_0x405788,_0x3f08ee,_0x3b41b5;if(!this[_0x1ef730(0x1ea)]){const _0x375de2=((_0x3f08ee=this[_0x1ef730(0x202)]['stores'])===null||_0x3f08ee===void 0x0?void 0x0:_0x3f08ee[(_0x3b41b5=this[_0x1ef730(0x202)][_0x1ef730(0x1ea)])===null||_0x3b41b5===void 0x0?void 0x0:_0x3b41b5[_0x1ef730(0x1f4)]])||this[_0x1ef730(0x202)][_0x1ef730(0x208)][_0x1ef730(0x1ec)];this[_0x1ef730(0x1ea)]=cacheManager[_0x1ef730(0x1e9)]({..._0x375de2[_0x1ef730(0x204)],'store':_0x375de2[_0x1ef730(0x1e3)]});}return!this['clients'][_0x1ef730(0x1fc)](_0xf77ea1)&&this[_0x1ef730(0x1e8)][_0x1ef730(0x1e4)](_0xf77ea1,new CacheHandler(_0xf77ea1,this['cache'])),this[_0x1ef730(0x1e8)][_0x1ef730(0x207)](_0xf77ea1);}async['reset'](){var _0x49603a=a4_0x405788;return await this[_0x49603a(0x1ea)]['reset']();}};function a4_0x229b(_0x139575,_0x5d3b2e){var _0x5d7535=a4_0x5d75();return a4_0x229b=function(_0x229b9b,_0x2d9540){_0x229b9b=_0x229b9b-0x1e2;var _0x659207=_0x5d7535[_0x229b9b];return _0x659207;},a4_0x229b(_0x139575,_0x5d3b2e);}__decorate([(0x0,decorator_1[a4_0x405788(0x209)])(a4_0x405788(0x1ea)),__metadata(a4_0x405788(0x1f8),Object)],CacheService['prototype'],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x405788(0x1f0)])(decorator_1[a4_0x405788(0x1f5)]['Singleton'])],CacheService),exports[a4_0x405788(0x201)]=CacheService;class CacheHandler{constructor(_0x4f120b,_0x134201){var _0x2ae804=a4_0x405788;this[_0x2ae804(0x1ea)]=_0x134201,this['prefix']=_0x4f120b;}async[a4_0x405788(0x1e6)](_0x55bb96){var _0x18c7d0=a4_0x405788;return await this[_0x18c7d0(0x1ea)][_0x18c7d0(0x1e6)](this[_0x18c7d0(0x1e7)]+':'+_0x55bb96);}async[a4_0x405788(0x1e4)](_0x553ff6,_0x1695b2,_0x675e03){var _0x3f6a94=a4_0x405788;return await this['cache'][_0x3f6a94(0x1e4)](this[_0x3f6a94(0x1e7)]+':'+_0x553ff6,_0x1695b2,_0x675e03);}async[a4_0x405788(0x207)](_0x48cd5d,_0x76cd15){return new Promise((_0xc7ba55,_0x9664b0)=>{var _0xb50f16=a4_0x229b;this['cache'][_0xb50f16(0x207)](this['prefix']+':'+_0x48cd5d,(_0x287249,_0x1992f9)=>{_0x287249?_0x9664b0(_0x287249):_0xc7ba55(_0x1992f9||_0x76cd15);});});}async[a4_0x405788(0x1e2)](_0x4f0982,_0x16a4b0){return await this['del'](_0x4f0982+'-'+_0x16a4b0);}async[a4_0x405788(0x1e5)](_0x132e41,_0x5acb1e,_0x32505b,_0x4edbe7){var _0x542563=a4_0x405788;return await this[_0x542563(0x1e4)](_0x132e41+'-'+_0x5acb1e,_0x32505b,_0x4edbe7);}async[a4_0x405788(0x1f9)](_0x3a0815,_0x98b996,_0x4c2c21){return await this['get'](_0x3a0815+'-'+_0x98b996,_0x4c2c21);}}
1
+ 'use strict';var a4_0x21764e=a4_0x4351;function a4_0x4351(_0x45e7ec,_0x51d849){var _0x45f464=a4_0x45f4();return a4_0x4351=function(_0x435170,_0x381b12){_0x435170=_0x435170-0x170;var _0x3508fe=_0x45f464[_0x435170];return _0x3508fe;},a4_0x4351(_0x45e7ec,_0x51d849);}(function(_0xb54b61,_0xdb2f1a){var _0x31482c=a4_0x4351,_0x8a75fc=_0xb54b61();while(!![]){try{var _0x3c749f=-parseInt(_0x31482c(0x19b))/0x1*(parseInt(_0x31482c(0x183))/0x2)+parseInt(_0x31482c(0x191))/0x3*(-parseInt(_0x31482c(0x198))/0x4)+parseInt(_0x31482c(0x187))/0x5+parseInt(_0x31482c(0x177))/0x6*(parseInt(_0x31482c(0x186))/0x7)+-parseInt(_0x31482c(0x188))/0x8+-parseInt(_0x31482c(0x174))/0x9+-parseInt(_0x31482c(0x175))/0xa*(-parseInt(_0x31482c(0x17a))/0xb);if(_0x3c749f===_0xdb2f1a)break;else _0x8a75fc['push'](_0x8a75fc['shift']());}catch(_0x8c1854){_0x8a75fc['push'](_0x8a75fc['shift']());}}}(a4_0x45f4,0x94feb));var __decorate=this&&this[a4_0x21764e(0x170)]||function(_0x5a8b4b,_0x578642,_0x10a9b4,_0x15294e){var _0x2acad6=a4_0x21764e,_0x3b1f2f=arguments[_0x2acad6(0x184)],_0x35f62b=_0x3b1f2f<0x3?_0x578642:_0x15294e===null?_0x15294e=Object[_0x2acad6(0x17f)](_0x578642,_0x10a9b4):_0x15294e,_0x44a1fc;if(typeof Reflect===_0x2acad6(0x171)&&typeof Reflect[_0x2acad6(0x194)]===_0x2acad6(0x172))_0x35f62b=Reflect['decorate'](_0x5a8b4b,_0x578642,_0x10a9b4,_0x15294e);else{for(var _0x1917de=_0x5a8b4b[_0x2acad6(0x184)]-0x1;_0x1917de>=0x0;_0x1917de--)if(_0x44a1fc=_0x5a8b4b[_0x1917de])_0x35f62b=(_0x3b1f2f<0x3?_0x44a1fc(_0x35f62b):_0x3b1f2f>0x3?_0x44a1fc(_0x578642,_0x10a9b4,_0x35f62b):_0x44a1fc(_0x578642,_0x10a9b4))||_0x35f62b;}return _0x3b1f2f>0x3&&_0x35f62b&&Object['defineProperty'](_0x578642,_0x10a9b4,_0x35f62b),_0x35f62b;},__metadata=this&&this[a4_0x21764e(0x19a)]||function(_0x2679a4,_0x27c5a8){var _0x37715d=a4_0x21764e;if(typeof Reflect==='object'&&typeof Reflect[_0x37715d(0x193)]===_0x37715d(0x172))return Reflect['metadata'](_0x2679a4,_0x27c5a8);};Object[a4_0x21764e(0x176)](exports,a4_0x21764e(0x190),{'value':!![]}),exports['CacheService']=void 0x0;function a4_0x45f4(){var _0x353ef9=['length','use','5183647bdxSVJ','5959975xEpdGx','7811520rVKKKO','design:type','hdel','@midwayjs/decorator','default','set','options','Singleton','__esModule','1761bImgjZ','del','metadata','decorate','store','cache-manager','clients','5596kFuEhC','Scope','__metadata','11jSJuGw','file','__decorate','object','function','prefix','1434348tkHFxf','19870tafHyq','defineProperty','6AtFwzf','ScopeEnum','caching','5071DjKSfI','hset','cache','stores','Provide','getOwnPropertyDescriptor','reset','config','get','51130LKmLjp'];a4_0x45f4=function(){return _0x353ef9;};return a4_0x45f4();}const cacheManager=require(a4_0x21764e(0x196)),decorator_1=require(a4_0x21764e(0x18b));let CacheService=class CacheService{constructor(){var _0x5c5a3b=a4_0x21764e;this[_0x5c5a3b(0x17c)]=undefined,this[_0x5c5a3b(0x197)]=new Map();}[a4_0x21764e(0x185)](_0x583a00){var _0x464d44=a4_0x21764e,_0x52502c,_0x37115c;if(!this['cache']){const _0x23e7cc=((_0x52502c=this[_0x464d44(0x181)][_0x464d44(0x17d)])===null||_0x52502c===void 0x0?void 0x0:_0x52502c[(_0x37115c=this[_0x464d44(0x181)][_0x464d44(0x17c)])===null||_0x37115c===void 0x0?void 0x0:_0x37115c[_0x464d44(0x18c)]])||this[_0x464d44(0x181)][_0x464d44(0x17d)][_0x464d44(0x19c)];this['cache']=cacheManager[_0x464d44(0x179)]({..._0x23e7cc[_0x464d44(0x18e)],'store':_0x23e7cc[_0x464d44(0x195)]});}return!this['clients']['has'](_0x583a00)&&this[_0x464d44(0x197)]['set'](_0x583a00,new CacheHandler(_0x583a00,this[_0x464d44(0x17c)])),this['clients'][_0x464d44(0x182)](_0x583a00);}async[a4_0x21764e(0x180)](){var _0x11d813=a4_0x21764e;return await this[_0x11d813(0x17c)][_0x11d813(0x180)]();}};__decorate([(0x0,decorator_1['Config'])(a4_0x21764e(0x17c)),__metadata(a4_0x21764e(0x189),Object)],CacheService['prototype'],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x21764e(0x17e)])(),(0x0,decorator_1[a4_0x21764e(0x199)])(decorator_1[a4_0x21764e(0x178)][a4_0x21764e(0x18f)])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x4befa4,_0x46ea01){var _0x1e13d7=a4_0x21764e;this[_0x1e13d7(0x17c)]=_0x46ea01,this['prefix']=_0x4befa4;}async[a4_0x21764e(0x192)](_0x54cfe1){var _0x5f23d5=a4_0x21764e;return await this[_0x5f23d5(0x17c)][_0x5f23d5(0x192)](this[_0x5f23d5(0x173)]+':'+_0x54cfe1);}async[a4_0x21764e(0x18d)](_0x1d197a,_0x5c9904,_0x40e39f){var _0x487997=a4_0x21764e;return await this[_0x487997(0x17c)][_0x487997(0x18d)](this[_0x487997(0x173)]+':'+_0x1d197a,_0x5c9904,_0x40e39f);}async[a4_0x21764e(0x182)](_0x2222e3,_0x49cad7){return new Promise((_0x3f2623,_0x107890)=>{var _0x3b398f=a4_0x4351;this[_0x3b398f(0x17c)][_0x3b398f(0x182)](this[_0x3b398f(0x173)]+':'+_0x2222e3,(_0x10bf1a,_0x52c667)=>{_0x10bf1a?_0x107890(_0x10bf1a):_0x3f2623(_0x52c667||_0x49cad7);});});}async[a4_0x21764e(0x18a)](_0x4abec1,_0x52c601){var _0x26b487=a4_0x21764e;return await this[_0x26b487(0x192)](_0x4abec1+'-'+_0x52c601);}async[a4_0x21764e(0x17b)](_0x4caad8,_0xb4b99,_0x4a5d58,_0x4d2244){var _0xdef169=a4_0x21764e;return await this[_0xdef169(0x18d)](_0x4caad8+'-'+_0xb4b99,_0x4a5d58,_0x4d2244);}async['hget'](_0x24f37e,_0x2bd83e,_0x2251cc){var _0x1adca6=a4_0x21764e;return await this[_0x1adca6(0x182)](_0x24f37e+'-'+_0x2bd83e,_0x2251cc);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -23,5 +23,5 @@
23
23
  "javascript-obfuscator": "2.19.0",
24
24
  "typescript": "^4.7.4"
25
25
  },
26
- "gitHead": "31197d6976e8b15c25473d7a6f64a8bc42c8fd0b"
26
+ "gitHead": "c273d494dd497231c4e1b64412879e17d536020e"
27
27
  }