@anncic-api/cache 1.1.35 → 1.1.36

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';function a0_0x4792(){const _0x3d402a=['3786NZzKQo','1274885CunCLw','name','4KqYxfa','4540713SsSJtO','cache-manager-fs-hash','default','3325488nICstb','memory','942MabUCV','cache-manager-ioredis','11820762hwOlXM','__esModule','/runtime/.cache','11333088qkvwxT','3500413sznqky','file'];a0_0x4792=function(){return _0x3d402a;};return a0_0x4792();}const a0_0x3743b7=a0_0x4ea5;(function(_0xcd563a,_0x5492c7){const _0x56ee56=a0_0x4ea5,_0x3aefce=_0xcd563a();while(!![]){try{const _0x3118bc=-parseInt(_0x56ee56(0x115))/0x1*(parseInt(_0x56ee56(0x10d))/0x2)+parseInt(_0x56ee56(0x119))/0x3*(parseInt(_0x56ee56(0x118))/0x4)+-parseInt(_0x56ee56(0x116))/0x5+parseInt(_0x56ee56(0x112))/0x6+parseInt(_0x56ee56(0x113))/0x7+parseInt(_0x56ee56(0x10b))/0x8+-parseInt(_0x56ee56(0x10f))/0x9;if(_0x3118bc===_0x5492c7)break;else _0x3aefce['push'](_0x3aefce['shift']());}catch(_0x1a2552){_0x3aefce['push'](_0x3aefce['shift']());}}}(a0_0x4792,0xebfa3));function a0_0x4ea5(_0xfe334c,_0x151316){const _0x47920c=a0_0x4792();return a0_0x4ea5=function(_0x4ea567,_0x5832b9){_0x4ea567=_0x4ea567-0x10a;let _0x608542=_0x47920c[_0x4ea567];return _0x608542;},a0_0x4ea5(_0xfe334c,_0x151316);}Object['defineProperty'](exports,a0_0x3743b7(0x110),{'value':!![]});const fsStore=require(a0_0x3743b7(0x11a)),redisStore=require(a0_0x3743b7(0x10e));exports[a0_0x3743b7(0x10a)]=_0x35430c=>{const _0x5a36a3=a0_0x3743b7;return{'cache':{'default':_0x5a36a3(0x114),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x35430c['appDir']+_0x5a36a3(0x111)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0x35430c[_0x5a36a3(0x117)]+':'}},'memory':{'store':_0x5a36a3(0x10c),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0x13415d=a0_0x1816;(function(_0x1c6cdd,_0x107b4e){const _0xef4bca=a0_0x1816,_0x398e9a=_0x1c6cdd();while(!![]){try{const _0x244bd0=parseInt(_0xef4bca(0xf1))/0x1+-parseInt(_0xef4bca(0xf9))/0x2+-parseInt(_0xef4bca(0xf0))/0x3+parseInt(_0xef4bca(0xf4))/0x4+parseInt(_0xef4bca(0xfd))/0x5*(-parseInt(_0xef4bca(0xf3))/0x6)+parseInt(_0xef4bca(0xf8))/0x7*(-parseInt(_0xef4bca(0xff))/0x8)+parseInt(_0xef4bca(0x100))/0x9;if(_0x244bd0===_0x107b4e)break;else _0x398e9a['push'](_0x398e9a['shift']());}catch(_0xf1110b){_0x398e9a['push'](_0x398e9a['shift']());}}}(a0_0x19ac,0x8ec93));function a0_0x19ac(){const _0x14bd9a=['__esModule','appDir','cache-manager-ioredis','7XzxXuS','2174048rSlDjm','defineProperty','cache-manager-fs-hash','memory','35nbnTLT','file','86192aFSIdQ','18698508hNPqzG','127.0.0.1','2183460fUfXGc','458123QbecFH','name','212424JmUisM','490248cOIaWF'];a0_0x19ac=function(){return _0x14bd9a;};return a0_0x19ac();}Object[a0_0x13415d(0xfa)](exports,a0_0x13415d(0xf5),{'value':!![]});const fsStore=require(a0_0x13415d(0xfb)),redisStore=require(a0_0x13415d(0xf7));function a0_0x1816(_0x24eb47,_0x334929){const _0x19ac13=a0_0x19ac();return a0_0x1816=function(_0x1816b0,_0xd00af7){_0x1816b0=_0x1816b0-0xef;let _0x4432d0=_0x19ac13[_0x1816b0];return _0x4432d0;},a0_0x1816(_0x24eb47,_0x334929);}exports['default']=_0x1acd15=>{const _0x532ba3=a0_0x13415d;return{'cache':{'default':_0x532ba3(0xfe),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x1acd15[_0x532ba3(0xf6)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x532ba3(0xef),'password':'','ttl':0x1e13380,'keyPrefix':_0x1acd15[_0x532ba3(0xf2)]+':'}},'memory':{'store':_0x532ba3(0xfc),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';function a1_0x9df9(_0x10a21d,_0x1ac599){var _0x147194=a1_0x1471();return a1_0x9df9=function(_0x9df936,_0x5aceb1){_0x9df936=_0x9df936-0x9d;var _0x5b7960=_0x147194[_0x9df936];return _0x5b7960;},a1_0x9df9(_0x10a21d,_0x1ac599);}var a1_0x5291d2=a1_0x9df9;(function(_0x2d4595,_0x2bc1ca){var _0x30421e=a1_0x9df9,_0x11d0cd=_0x2d4595();while(!![]){try{var _0x5223dc=-parseInt(_0x30421e(0xad))/0x1*(-parseInt(_0x30421e(0xac))/0x2)+parseInt(_0x30421e(0xa7))/0x3*(-parseInt(_0x30421e(0xa8))/0x4)+-parseInt(_0x30421e(0xa3))/0x5+-parseInt(_0x30421e(0xa6))/0x6+-parseInt(_0x30421e(0xa5))/0x7+-parseInt(_0x30421e(0xa9))/0x8+parseInt(_0x30421e(0x9d))/0x9;if(_0x5223dc===_0x2bc1ca)break;else _0x11d0cd['push'](_0x11d0cd['shift']());}catch(_0x51fc66){_0x11d0cd['push'](_0x11d0cd['shift']());}}}(a1_0x1471,0xc8d47));var __decorate=this&&this[a1_0x5291d2(0x9e)]||function(_0x27befa,_0x17412a,_0x10214a,_0x88607f){var _0x1f32b5=a1_0x5291d2,_0x416b2c=arguments[_0x1f32b5(0xaf)],_0xe129fc=_0x416b2c<0x3?_0x17412a:_0x88607f===null?_0x88607f=Object[_0x1f32b5(0xaa)](_0x17412a,_0x10214a):_0x88607f,_0x45cd9d;if(typeof Reflect==='object'&&typeof Reflect[_0x1f32b5(0xa4)]===_0x1f32b5(0xab))_0xe129fc=Reflect[_0x1f32b5(0xa4)](_0x27befa,_0x17412a,_0x10214a,_0x88607f);else{for(var _0x48c22c=_0x27befa[_0x1f32b5(0xaf)]-0x1;_0x48c22c>=0x0;_0x48c22c--)if(_0x45cd9d=_0x27befa[_0x48c22c])_0xe129fc=(_0x416b2c<0x3?_0x45cd9d(_0xe129fc):_0x416b2c>0x3?_0x45cd9d(_0x17412a,_0x10214a,_0xe129fc):_0x45cd9d(_0x17412a,_0x10214a))||_0xe129fc;}return _0x416b2c>0x3&&_0xe129fc&&Object[_0x1f32b5(0xa0)](_0x17412a,_0x10214a,_0xe129fc),_0xe129fc;};Object[a1_0x5291d2(0xa0)](exports,a1_0x5291d2(0xa2),{'value':!![]}),exports[a1_0x5291d2(0xae)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};function a1_0x1471(){var _0x4b7803=['925204sJDDjI','8938038DAYaFx','318471vmqmwr','44YxljQL','477616TSfqEA','getOwnPropertyDescriptor','function','2438HpHVVb','470TjqPWs','CustomConfiguration','length','28225944nyzoem','__decorate','anncic-api:cache','defineProperty','Configuration','__esModule','186365TrioTv','decorate'];a1_0x1471=function(){return _0x4b7803;};return a1_0x1471();}CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x5291d2(0xa1)])({'conflictCheck':![],'namespace':a1_0x5291d2(0x9f),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
1
+ 'use strict';var a1_0x343f85=a1_0x1270;(function(_0x48cfa1,_0x5360b1){var _0x2137ac=a1_0x1270,_0x4b9559=_0x48cfa1();while(!![]){try{var _0x3d12b0=parseInt(_0x2137ac(0x19e))/0x1*(parseInt(_0x2137ac(0x195))/0x2)+-parseInt(_0x2137ac(0x18c))/0x3+-parseInt(_0x2137ac(0x191))/0x4+parseInt(_0x2137ac(0x193))/0x5+-parseInt(_0x2137ac(0x18f))/0x6*(parseInt(_0x2137ac(0x198))/0x7)+parseInt(_0x2137ac(0x19d))/0x8+parseInt(_0x2137ac(0x19b))/0x9;if(_0x3d12b0===_0x5360b1)break;else _0x4b9559['push'](_0x4b9559['shift']());}catch(_0x1dc229){_0x4b9559['push'](_0x4b9559['shift']());}}}(a1_0x2c31,0x98ef5));function a1_0x2c31(){var _0x4e4678=['length','defineProperty','54UnGMxP','__decorate','3225388CYmtkW','object','5129465FUIToJ','__esModule','4652NmzueO','decorate','getOwnPropertyDescriptor','926303ugWlNj','@midwayjs/decorator','CustomConfiguration','8247393WojbNc','anncic-api:cache','8905776pXLYMt','152HycBxI','2355945nrtMBz'];a1_0x2c31=function(){return _0x4e4678;};return a1_0x2c31();}var __decorate=this&&this[a1_0x343f85(0x190)]||function(_0x5dc5a0,_0x56f2b4,_0x4fec38,_0x25631e){var _0x8084fb=a1_0x343f85,_0x535a58=arguments[_0x8084fb(0x18d)],_0x43ce79=_0x535a58<0x3?_0x56f2b4:_0x25631e===null?_0x25631e=Object[_0x8084fb(0x197)](_0x56f2b4,_0x4fec38):_0x25631e,_0x1d3b4f;if(typeof Reflect===_0x8084fb(0x192)&&typeof Reflect[_0x8084fb(0x196)]==='function')_0x43ce79=Reflect[_0x8084fb(0x196)](_0x5dc5a0,_0x56f2b4,_0x4fec38,_0x25631e);else{for(var _0x190072=_0x5dc5a0[_0x8084fb(0x18d)]-0x1;_0x190072>=0x0;_0x190072--)if(_0x1d3b4f=_0x5dc5a0[_0x190072])_0x43ce79=(_0x535a58<0x3?_0x1d3b4f(_0x43ce79):_0x535a58>0x3?_0x1d3b4f(_0x56f2b4,_0x4fec38,_0x43ce79):_0x1d3b4f(_0x56f2b4,_0x4fec38))||_0x43ce79;}return _0x535a58>0x3&&_0x43ce79&&Object['defineProperty'](_0x56f2b4,_0x4fec38,_0x43ce79),_0x43ce79;};Object[a1_0x343f85(0x18e)](exports,a1_0x343f85(0x194),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a1_0x343f85(0x199)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};function a1_0x1270(_0x1a5a37,_0x50c7be){var _0x2c315b=a1_0x2c31();return a1_0x1270=function(_0x1270b0,_0x5c5ca9){_0x1270b0=_0x1270b0-0x18c;var _0x478ec3=_0x2c315b[_0x1270b0];return _0x478ec3;},a1_0x1270(_0x1a5a37,_0x50c7be);}CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x343f85(0x19c),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x343f85(0x19a)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0x5d4cd2=a2_0x2b47;function a2_0x2b47(_0x16eee9,_0x2e1f43){const _0x1c3d0a=a2_0x1c3d();return a2_0x2b47=function(_0x2b47d9,_0x26d808){_0x2b47d9=_0x2b47d9-0x139;let _0x2b3b41=_0x1c3d0a[_0x2b47d9];return _0x2b3b41;},a2_0x2b47(_0x16eee9,_0x2e1f43);}(function(_0x435daf,_0x4b762f){const _0x2920be=a2_0x2b47,_0xeaa7da=_0x435daf();while(!![]){try{const _0x31e35b=-parseInt(_0x2920be(0x14a))/0x1+parseInt(_0x2920be(0x139))/0x2+parseInt(_0x2920be(0x13e))/0x3+-parseInt(_0x2920be(0x145))/0x4*(parseInt(_0x2920be(0x13f))/0x5)+parseInt(_0x2920be(0x148))/0x6+-parseInt(_0x2920be(0x153))/0x7+-parseInt(_0x2920be(0x146))/0x8;if(_0x31e35b===_0x4b762f)break;else _0xeaa7da['push'](_0xeaa7da['shift']());}catch(_0x154055){_0xeaa7da['push'](_0xeaa7da['shift']());}}}(a2_0x1c3d,0x5dddf));Object[a2_0x5d4cd2(0x14b)](exports,a2_0x5d4cd2(0x144),{'value':!![]}),exports[a2_0x5d4cd2(0x13a)]=void 0x0;function a2_0x1c3d(){const _0x4b63a7=['MethodDecorator','getApplicationContext','1486950CXgZba','754795MykiLC','value','MD5','crypto-js','CacheService','__esModule','8QSftBx','323008uDkFVB','@midwayjs/core','2080590gJcVbx','set','519786FpXQZH','defineProperty','getAsync','app','REQUEST_OBJ_CTX_KEY','use','../service/CacheService','parse','stringify','1135792ncmCuh','1132800nJQRDO','Cache','toString'];a2_0x1c3d=function(){return _0x4b63a7;};return a2_0x1c3d();}const crypto_js_1=require(a2_0x5d4cd2(0x142)),CacheService_1=require(a2_0x5d4cd2(0x150)),core_1=require(a2_0x5d4cd2(0x147));function Cache(_0x20fc54,_0x53f671){return(_0x268a8c,_0x2cc25e,_0x3d4501)=>{const _0x5775ab=a2_0x2b47,_0x2454b1=_0x3d4501['value'];return _0x3d4501[_0x5775ab(0x140)]=async function(..._0x10e8d2){const _0x13081c=_0x5775ab;!_0x20fc54&&(_0x20fc54=(0x0,crypto_js_1[_0x13081c(0x141)])(JSON['stringify'](_0x10e8d2))[_0x13081c(0x13b)]());let _0x42e10a=await this[core_1[_0x13081c(0x14e)]][_0x13081c(0x14d)][_0x13081c(0x13d)]()[_0x13081c(0x14c)](CacheService_1[_0x13081c(0x143)]),_0x3c5b9a=await _0x42e10a[_0x13081c(0x14f)](_0x13081c(0x13c))['get'](_0x20fc54);if(_0x3c5b9a)return JSON[_0x13081c(0x151)](_0x3c5b9a);else _0x3c5b9a=await _0x2454b1['apply'](this,[..._0x10e8d2]),await _0x42e10a[_0x13081c(0x14f)]('MethodDecorator')[_0x13081c(0x149)](_0x20fc54,JSON[_0x13081c(0x152)](_0x3c5b9a),_0x53f671);return _0x3c5b9a;},_0x3d4501;};}exports[a2_0x5d4cd2(0x13a)]=Cache;
1
+ 'use strict';const a2_0x5257d9=a2_0x958a;(function(_0x420402,_0x1c748e){const _0x5d7cda=a2_0x958a,_0x4ec059=_0x420402();while(!![]){try{const _0x56d242=-parseInt(_0x5d7cda(0x8f))/0x1+-parseInt(_0x5d7cda(0x98))/0x2*(-parseInt(_0x5d7cda(0x95))/0x3)+-parseInt(_0x5d7cda(0x96))/0x4*(-parseInt(_0x5d7cda(0x8d))/0x5)+parseInt(_0x5d7cda(0x94))/0x6*(parseInt(_0x5d7cda(0x9c))/0x7)+-parseInt(_0x5d7cda(0x9d))/0x8*(parseInt(_0x5d7cda(0x9a))/0x9)+-parseInt(_0x5d7cda(0xa5))/0xa+-parseInt(_0x5d7cda(0xa2))/0xb;if(_0x56d242===_0x1c748e)break;else _0x4ec059['push'](_0x4ec059['shift']());}catch(_0x217d1d){_0x4ec059['push'](_0x4ec059['shift']());}}}(a2_0xc161,0x76784));Object[a2_0x5257d9(0xa4)](exports,a2_0x5257d9(0x99),{'value':!![]}),exports[a2_0x5257d9(0xa1)]=void 0x0;function a2_0xc161(){const _0x103694=['109225KTUObm','../service/CacheService','292287ptTpiZ','apply','@midwayjs/core','value','MD5','6gtrLsg','40926nGhiEF','60IbpuqQ','use','96EniFdn','__esModule','621EMwknz','REQUEST_OBJ_CTX_KEY','3898671vYyfMU','20392FGIBEr','CacheService','stringify','toString','Cache','746515XeeWwS','MethodDecorator','defineProperty','5181590rokQJC','getApplicationContext'];a2_0xc161=function(){return _0x103694;};return a2_0xc161();}const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x5257d9(0x8e)),core_1=require(a2_0x5257d9(0x91));function a2_0x958a(_0x20a78d,_0x361913){const _0xc16149=a2_0xc161();return a2_0x958a=function(_0x958aca,_0x131483){_0x958aca=_0x958aca-0x8d;let _0x1787ab=_0xc16149[_0x958aca];return _0x1787ab;},a2_0x958a(_0x20a78d,_0x361913);}function Cache(_0x41911d,_0x28e620){return(_0x37d94a,_0x168471,_0x19111f)=>{const _0x1ce95a=a2_0x958a,_0x13b2cf=_0x19111f[_0x1ce95a(0x92)];return _0x19111f[_0x1ce95a(0x92)]=async function(..._0x3fc8a7){const _0x54fb47=_0x1ce95a;!_0x41911d&&(_0x41911d=(0x0,crypto_js_1[_0x54fb47(0x93)])(JSON['stringify'](_0x3fc8a7))[_0x54fb47(0xa0)]());let _0x534eba=await this[core_1[_0x54fb47(0x9b)]]['app'][_0x54fb47(0xa6)]()['getAsync'](CacheService_1[_0x54fb47(0x9e)]),_0x35259a=await _0x534eba['use']('MethodDecorator')['get'](_0x41911d);if(_0x35259a)return JSON['parse'](_0x35259a);else _0x35259a=await _0x13b2cf[_0x54fb47(0x90)](this,[..._0x3fc8a7]),await _0x534eba[_0x54fb47(0x97)](_0x54fb47(0xa3))['set'](_0x41911d,JSON[_0x54fb47(0x9f)](_0x35259a),_0x28e620);return _0x35259a;},_0x19111f;};}exports['Cache']=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0x124836=a3_0x5b8d;(function(_0x56eca7,_0x797ef0){var _0x28bcdc=a3_0x5b8d,_0x36d664=_0x56eca7();while(!![]){try{var _0x305644=-parseInt(_0x28bcdc(0xf3))/0x1+-parseInt(_0x28bcdc(0xff))/0x2*(parseInt(_0x28bcdc(0xf4))/0x3)+parseInt(_0x28bcdc(0xfe))/0x4*(-parseInt(_0x28bcdc(0xf7))/0x5)+-parseInt(_0x28bcdc(0xf1))/0x6+-parseInt(_0x28bcdc(0xf5))/0x7*(-parseInt(_0x28bcdc(0xfb))/0x8)+-parseInt(_0x28bcdc(0x100))/0x9*(-parseInt(_0x28bcdc(0xf2))/0xa)+parseInt(_0x28bcdc(0xfd))/0xb;if(_0x305644===_0x797ef0)break;else _0x36d664['push'](_0x36d664['shift']());}catch(_0x1acc24){_0x36d664['push'](_0x36d664['shift']());}}}(a3_0x17da,0x8a799));Object[a3_0x124836(0xf0)](exports,'__esModule',{'value':!![]}),exports[a3_0x124836(0xf8)]=exports[a3_0x124836(0xf6)]=exports[a3_0x124836(0xfc)]=void 0x0;var configuration_1=require(a3_0x124836(0xf9));Object[a3_0x124836(0xf0)](exports,a3_0x124836(0xfc),{'enumerable':!![],'get':function(){var _0x529ea8=a3_0x124836;return configuration_1[_0x529ea8(0xef)];}});function a3_0x5b8d(_0x379e84,_0x34a55a){var _0x17dab6=a3_0x17da();return a3_0x5b8d=function(_0x5b8d4e,_0x1c394b){_0x5b8d4e=_0x5b8d4e-0xef;var _0x4d0797=_0x17dab6[_0x5b8d4e];return _0x4d0797;},a3_0x5b8d(_0x379e84,_0x34a55a);}var Cache_1=require('./decorator/Cache');function a3_0x17da(){var _0x57b067=['Cache','255hEqtCj','CacheService','./configuration','./service/CacheService','232VrIqDi','Configuration','15315058CPaznj','10068ujbeom','2058884iCNQeJ','1687158oZqmmH','CustomConfiguration','defineProperty','871404BgwnEm','10GkjYlg','478207rZISwE','3PlAoOG','185549TFmgAc'];a3_0x17da=function(){return _0x57b067;};return a3_0x17da();}Object['defineProperty'](exports,a3_0x124836(0xf6),{'enumerable':!![],'get':function(){var _0x4b2f67=a3_0x124836;return Cache_1[_0x4b2f67(0xf6)];}});var CacheService_1=require(a3_0x124836(0xfa));Object[a3_0x124836(0xf0)](exports,a3_0x124836(0xf8),{'enumerable':!![],'get':function(){var _0x59874f=a3_0x124836;return CacheService_1[_0x59874f(0xf8)];}});
1
+ 'use strict';var a3_0x47b9dc=a3_0x2a32;function a3_0x2a32(_0x34a316,_0x42c658){var _0x2cdfe4=a3_0x2cdf();return a3_0x2a32=function(_0x2a32bf,_0x253f53){_0x2a32bf=_0x2a32bf-0x7c;var _0x1f9ecb=_0x2cdfe4[_0x2a32bf];return _0x1f9ecb;},a3_0x2a32(_0x34a316,_0x42c658);}(function(_0xb69d51,_0x317274){var _0x5934a9=a3_0x2a32,_0x2ab4a9=_0xb69d51();while(!![]){try{var _0x3a2134=parseInt(_0x5934a9(0x82))/0x1*(-parseInt(_0x5934a9(0x89))/0x2)+parseInt(_0x5934a9(0x86))/0x3+parseInt(_0x5934a9(0x8d))/0x4*(-parseInt(_0x5934a9(0x80))/0x5)+parseInt(_0x5934a9(0x7f))/0x6+-parseInt(_0x5934a9(0x7c))/0x7*(parseInt(_0x5934a9(0x7d))/0x8)+parseInt(_0x5934a9(0x8e))/0x9+-parseInt(_0x5934a9(0x8f))/0xa*(parseInt(_0x5934a9(0x85))/0xb);if(_0x3a2134===_0x317274)break;else _0x2ab4a9['push'](_0x2ab4a9['shift']());}catch(_0xc826d1){_0x2ab4a9['push'](_0x2ab4a9['shift']());}}}(a3_0x2cdf,0x77d2d));Object['defineProperty'](exports,a3_0x47b9dc(0x84),{'value':!![]}),exports['CacheService']=exports[a3_0x47b9dc(0x8c)]=exports[a3_0x47b9dc(0x8b)]=void 0x0;var configuration_1=require(a3_0x47b9dc(0x81));Object[a3_0x47b9dc(0x7e)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x247d7a=a3_0x47b9dc;return configuration_1[_0x247d7a(0x87)];}});var Cache_1=require(a3_0x47b9dc(0x88));Object[a3_0x47b9dc(0x7e)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x2efbce=a3_0x47b9dc;return Cache_1[_0x2efbce(0x8c)];}});function a3_0x2cdf(){var _0x4848c6=['./service/CacheService','Configuration','Cache','12mtogDK','8289333cjzEiM','10mNDClA','56INjpZY','65864cIYocm','defineProperty','526458FbMrHf','369345LDLarP','./configuration','81101vKWRWP','CacheService','__esModule','4827383AEHEnA','1111629TyuuSo','CustomConfiguration','./decorator/Cache','4LGcnaN'];a3_0x2cdf=function(){return _0x4848c6;};return a3_0x2cdf();}var CacheService_1=require(a3_0x47b9dc(0x8a));Object[a3_0x47b9dc(0x7e)](exports,a3_0x47b9dc(0x83),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
@@ -1 +1 @@
1
- 'use strict';function a4_0x4c34(){var _0x4f28aa=['45NufjMr','store','file','5618052yKRcYy','35510lWjxKw','2575110TsnaDj','del','set','length','CacheService','config','hset','design:type','Provide','cache-manager','reset','536XcVjUp','404zdrVsu','__metadata','has','defineProperty','hget','metadata','stores','__decorate','get','hdel','15820JpbFoy','Config','ScopeEnum','171LqcZMH','function','clients','Scope','options','getOwnPropertyDescriptor','object','decorate','prefix','431977fsgsjr','Singleton','cache','default','__esModule','28814JpgTPi','@midwayjs/decorator','23905ImrnfH'];a4_0x4c34=function(){return _0x4f28aa;};return a4_0x4c34();}var a4_0x4b9e6a=a4_0x43c7;(function(_0x25cf20,_0x1415c6){var _0x1e87cf=a4_0x43c7,_0x31667f=_0x25cf20();while(!![]){try{var _0x319fd2=-parseInt(_0x1e87cf(0x1c4))/0x1+-parseInt(_0x1e87cf(0x19a))/0x2*(-parseInt(_0x1e87cf(0x19d))/0x3)+parseInt(_0x1e87cf(0x1ae))/0x4*(-parseInt(_0x1e87cf(0x1b8))/0x5)+parseInt(_0x1e87cf(0x1a2))/0x6+-parseInt(_0x1e87cf(0x19c))/0x7*(parseInt(_0x1e87cf(0x1ad))/0x8)+-parseInt(_0x1e87cf(0x1bb))/0x9*(-parseInt(_0x1e87cf(0x1a1))/0xa)+parseInt(_0x1e87cf(0x1a0))/0xb;if(_0x319fd2===_0x1415c6)break;else _0x31667f['push'](_0x31667f['shift']());}catch(_0xe8a235){_0x31667f['push'](_0x31667f['shift']());}}}(a4_0x4c34,0x3b5c9));function a4_0x43c7(_0x3c9e7a,_0x17111b){var _0x4c34f2=a4_0x4c34();return a4_0x43c7=function(_0x43c782,_0x83dd7f){_0x43c782=_0x43c782-0x196;var _0x40694f=_0x4c34f2[_0x43c782];return _0x40694f;},a4_0x43c7(_0x3c9e7a,_0x17111b);}var __decorate=this&&this[a4_0x4b9e6a(0x1b5)]||function(_0x8ab516,_0x23f3f1,_0x1f830d,_0x165cf3){var _0x10c9f3=a4_0x4b9e6a,_0x6a445b=arguments[_0x10c9f3(0x1a5)],_0x34489f=_0x6a445b<0x3?_0x23f3f1:_0x165cf3===null?_0x165cf3=Object[_0x10c9f3(0x1c0)](_0x23f3f1,_0x1f830d):_0x165cf3,_0x4c0515;if(typeof Reflect==='object'&&typeof Reflect[_0x10c9f3(0x1c2)]===_0x10c9f3(0x1bc))_0x34489f=Reflect[_0x10c9f3(0x1c2)](_0x8ab516,_0x23f3f1,_0x1f830d,_0x165cf3);else{for(var _0x53537d=_0x8ab516[_0x10c9f3(0x1a5)]-0x1;_0x53537d>=0x0;_0x53537d--)if(_0x4c0515=_0x8ab516[_0x53537d])_0x34489f=(_0x6a445b<0x3?_0x4c0515(_0x34489f):_0x6a445b>0x3?_0x4c0515(_0x23f3f1,_0x1f830d,_0x34489f):_0x4c0515(_0x23f3f1,_0x1f830d))||_0x34489f;}return _0x6a445b>0x3&&_0x34489f&&Object[_0x10c9f3(0x1b1)](_0x23f3f1,_0x1f830d,_0x34489f),_0x34489f;},__metadata=this&&this[a4_0x4b9e6a(0x1af)]||function(_0xa42ae1,_0x1ba177){var _0x2dbfc7=a4_0x4b9e6a;if(typeof Reflect===_0x2dbfc7(0x1c1)&&typeof Reflect[_0x2dbfc7(0x1b3)]===_0x2dbfc7(0x1bc))return Reflect['metadata'](_0xa42ae1,_0x1ba177);};Object[a4_0x4b9e6a(0x1b1)](exports,a4_0x4b9e6a(0x199),{'value':!![]}),exports[a4_0x4b9e6a(0x1a6)]=void 0x0;const cacheManager=require(a4_0x4b9e6a(0x1ab)),decorator_1=require(a4_0x4b9e6a(0x19b));let CacheService=class CacheService{constructor(){var _0x42d849=a4_0x4b9e6a;this[_0x42d849(0x197)]=undefined,this['clients']=new Map();}['use'](_0x29a69e){var _0x549193=a4_0x4b9e6a,_0x172ace,_0x281feb;if(!this['cache']){const _0x1b12bf=((_0x172ace=this[_0x549193(0x1a7)][_0x549193(0x1b4)])===null||_0x172ace===void 0x0?void 0x0:_0x172ace[(_0x281feb=this[_0x549193(0x1a7)]['cache'])===null||_0x281feb===void 0x0?void 0x0:_0x281feb[_0x549193(0x198)]])||this[_0x549193(0x1a7)]['stores'][_0x549193(0x19f)];this[_0x549193(0x197)]=cacheManager['caching']({..._0x1b12bf[_0x549193(0x1bf)],'store':_0x1b12bf[_0x549193(0x19e)]});}return!this[_0x549193(0x1bd)][_0x549193(0x1b0)](_0x29a69e)&&this[_0x549193(0x1bd)][_0x549193(0x1a4)](_0x29a69e,new CacheHandler(_0x29a69e,this['cache'])),this['clients']['get'](_0x29a69e);}async[a4_0x4b9e6a(0x1ac)](){var _0x4632b7=a4_0x4b9e6a;return await this[_0x4632b7(0x197)][_0x4632b7(0x1ac)]();}};__decorate([(0x0,decorator_1[a4_0x4b9e6a(0x1b9)])('cache'),__metadata(a4_0x4b9e6a(0x1a9),Object)],CacheService['prototype'],a4_0x4b9e6a(0x1a7),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x4b9e6a(0x1aa)])(),(0x0,decorator_1[a4_0x4b9e6a(0x1be)])(decorator_1[a4_0x4b9e6a(0x1ba)][a4_0x4b9e6a(0x196)])],CacheService),exports[a4_0x4b9e6a(0x1a6)]=CacheService;class CacheHandler{constructor(_0x5b9eb0,_0x3d7c7d){var _0x365e98=a4_0x4b9e6a;this[_0x365e98(0x197)]=_0x3d7c7d,this[_0x365e98(0x1c3)]=_0x5b9eb0;}async[a4_0x4b9e6a(0x1a3)](_0x3118f5){var _0x2190a1=a4_0x4b9e6a;return await this[_0x2190a1(0x197)][_0x2190a1(0x1a3)](this[_0x2190a1(0x1c3)]+':'+_0x3118f5);}async[a4_0x4b9e6a(0x1a4)](_0x539040,_0x5b2b9e,_0x248533){var _0x1dc746=a4_0x4b9e6a;return await this['cache'][_0x1dc746(0x1a4)](this[_0x1dc746(0x1c3)]+':'+_0x539040,_0x5b2b9e,_0x248533);}async['get'](_0x179191,_0x3a3d93){return new Promise((_0x305789,_0xc074d7)=>{var _0x5c09f7=a4_0x43c7;this[_0x5c09f7(0x197)][_0x5c09f7(0x1b6)](this[_0x5c09f7(0x1c3)]+':'+_0x179191,(_0x525c01,_0x1d3004)=>{_0x525c01?_0xc074d7(_0x525c01):_0x305789(_0x1d3004||_0x3a3d93);});});}async[a4_0x4b9e6a(0x1b7)](_0x3f8d5b,_0x6ac42d){return await this['del'](_0x3f8d5b+'-'+_0x6ac42d);}async[a4_0x4b9e6a(0x1a8)](_0x3de93c,_0xd4ac6,_0x524078,_0x59dd35){return await this['set'](_0x3de93c+'-'+_0xd4ac6,_0x524078,_0x59dd35);}async[a4_0x4b9e6a(0x1b2)](_0x43b6d0,_0x4bdcc5,_0xed141f){var _0x5c8772=a4_0x4b9e6a;return await this[_0x5c8772(0x1b6)](_0x43b6d0+'-'+_0x4bdcc5,_0xed141f);}}
1
+ 'use strict';var a4_0x322925=a4_0x12cc;(function(_0x15fbd9,_0x47ef0c){var _0x50bb18=a4_0x12cc,_0x2d6496=_0x15fbd9();while(!![]){try{var _0x509bb3=-parseInt(_0x50bb18(0x1ef))/0x1*(parseInt(_0x50bb18(0x1f5))/0x2)+-parseInt(_0x50bb18(0x1f2))/0x3+parseInt(_0x50bb18(0x1d9))/0x4+parseInt(_0x50bb18(0x208))/0x5*(-parseInt(_0x50bb18(0x207))/0x6)+parseInt(_0x50bb18(0x1f8))/0x7*(-parseInt(_0x50bb18(0x1eb))/0x8)+-parseInt(_0x50bb18(0x1ee))/0x9+parseInt(_0x50bb18(0x1fd))/0xa*(parseInt(_0x50bb18(0x1f9))/0xb);if(_0x509bb3===_0x47ef0c)break;else _0x2d6496['push'](_0x2d6496['shift']());}catch(_0x2f4224){_0x2d6496['push'](_0x2d6496['shift']());}}}(a4_0x595d,0xe48cc));var __decorate=this&&this[a4_0x322925(0x1ed)]||function(_0x49abb6,_0x11510a,_0x94014e,_0x56ee8f){var _0x3ec7ac=a4_0x322925,_0x4f2e8c=arguments[_0x3ec7ac(0x1fa)],_0x32d909=_0x4f2e8c<0x3?_0x11510a:_0x56ee8f===null?_0x56ee8f=Object[_0x3ec7ac(0x1e6)](_0x11510a,_0x94014e):_0x56ee8f,_0x1967e9;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3ec7ac(0x1e8))_0x32d909=Reflect[_0x3ec7ac(0x200)](_0x49abb6,_0x11510a,_0x94014e,_0x56ee8f);else{for(var _0xae0b70=_0x49abb6['length']-0x1;_0xae0b70>=0x0;_0xae0b70--)if(_0x1967e9=_0x49abb6[_0xae0b70])_0x32d909=(_0x4f2e8c<0x3?_0x1967e9(_0x32d909):_0x4f2e8c>0x3?_0x1967e9(_0x11510a,_0x94014e,_0x32d909):_0x1967e9(_0x11510a,_0x94014e))||_0x32d909;}return _0x4f2e8c>0x3&&_0x32d909&&Object[_0x3ec7ac(0x1d8)](_0x11510a,_0x94014e,_0x32d909),_0x32d909;},__metadata=this&&this[a4_0x322925(0x202)]||function(_0x5a944e,_0x410492){var _0x1024b6=a4_0x322925;if(typeof Reflect===_0x1024b6(0x1da)&&typeof Reflect[_0x1024b6(0x1df)]===_0x1024b6(0x1e8))return Reflect[_0x1024b6(0x1df)](_0x5a944e,_0x410492);};function a4_0x12cc(_0x3f9006,_0x27b336){var _0x595d4b=a4_0x595d();return a4_0x12cc=function(_0x12cc32,_0x2f7fd2){_0x12cc32=_0x12cc32-0x1d8;var _0x2b4cf6=_0x595d4b[_0x12cc32];return _0x2b4cf6;},a4_0x12cc(_0x3f9006,_0x27b336);}Object[a4_0x322925(0x1d8)](exports,a4_0x322925(0x1de),{'value':!![]}),exports[a4_0x322925(0x1e0)]=void 0x0;function a4_0x595d(){var _0x5ab635=['8192650YSAAIB','defineProperty','6072308bTuwDi','object','caching','hget','design:type','__esModule','metadata','CacheService','config','Provide','del','clients','Config','getOwnPropertyDescriptor','store','function','@midwayjs/decorator','file','8SRrwIw','hdel','__decorate','1916595YiavLS','437015cWALJd','Scope','options','3400743jsZXAJ','has','default','2yifjPq','cache-manager','prefix','10694530gzgEpT','33tJHOCq','length','ScopeEnum','reset','14559780raCuap','Singleton','set','decorate','hset','__metadata','prototype','cache','use','get','6fqyDTJ'];a4_0x595d=function(){return _0x5ab635;};return a4_0x595d();}const cacheManager=require(a4_0x322925(0x1f6)),decorator_1=require(a4_0x322925(0x1e9));let CacheService=class CacheService{constructor(){var _0x58dd64=a4_0x322925;this[_0x58dd64(0x204)]=undefined,this[_0x58dd64(0x1e4)]=new Map();}[a4_0x322925(0x205)](_0x4153c7){var _0x14d3bf=a4_0x322925,_0x3b73e3,_0x48dcb3;if(!this[_0x14d3bf(0x204)]){const _0x1bdb29=((_0x3b73e3=this[_0x14d3bf(0x1e1)]['stores'])===null||_0x3b73e3===void 0x0?void 0x0:_0x3b73e3[(_0x48dcb3=this[_0x14d3bf(0x1e1)]['cache'])===null||_0x48dcb3===void 0x0?void 0x0:_0x48dcb3[_0x14d3bf(0x1f4)]])||this[_0x14d3bf(0x1e1)]['stores'][_0x14d3bf(0x1ea)];this['cache']=cacheManager[_0x14d3bf(0x1db)]({..._0x1bdb29[_0x14d3bf(0x1f1)],'store':_0x1bdb29[_0x14d3bf(0x1e7)]});}return!this[_0x14d3bf(0x1e4)][_0x14d3bf(0x1f3)](_0x4153c7)&&this['clients'][_0x14d3bf(0x1ff)](_0x4153c7,new CacheHandler(_0x4153c7,this[_0x14d3bf(0x204)])),this[_0x14d3bf(0x1e4)][_0x14d3bf(0x206)](_0x4153c7);}async[a4_0x322925(0x1fc)](){var _0x17c015=a4_0x322925;return await this[_0x17c015(0x204)]['reset']();}};__decorate([(0x0,decorator_1[a4_0x322925(0x1e5)])(a4_0x322925(0x204)),__metadata(a4_0x322925(0x1dd),Object)],CacheService[a4_0x322925(0x203)],a4_0x322925(0x1e1),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x322925(0x1e2)])(),(0x0,decorator_1[a4_0x322925(0x1f0)])(decorator_1[a4_0x322925(0x1fb)][a4_0x322925(0x1fe)])],CacheService),exports[a4_0x322925(0x1e0)]=CacheService;class CacheHandler{constructor(_0x4eb192,_0x4704eb){var _0x17cb1e=a4_0x322925;this[_0x17cb1e(0x204)]=_0x4704eb,this[_0x17cb1e(0x1f7)]=_0x4eb192;}async[a4_0x322925(0x1e3)](_0x1b0926){var _0x101bce=a4_0x322925;return await this['cache'][_0x101bce(0x1e3)](this[_0x101bce(0x1f7)]+':'+_0x1b0926);}async[a4_0x322925(0x1ff)](_0x211187,_0x850ff6,_0x477dea){var _0x5007b4=a4_0x322925;return await this[_0x5007b4(0x204)]['set'](this[_0x5007b4(0x1f7)]+':'+_0x211187,_0x850ff6,_0x477dea);}async['get'](_0x19e27f,_0x26f5ac){return new Promise((_0x507cb6,_0x2e6be8)=>{var _0x59c095=a4_0x12cc;this[_0x59c095(0x204)]['get'](this[_0x59c095(0x1f7)]+':'+_0x19e27f,(_0x2c9801,_0x956281)=>{_0x2c9801?_0x2e6be8(_0x2c9801):_0x507cb6(_0x956281||_0x26f5ac);});});}async[a4_0x322925(0x1ec)](_0x3526d8,_0x9ce1a6){return await this['del'](_0x3526d8+'-'+_0x9ce1a6);}async[a4_0x322925(0x201)](_0x3b5b10,_0x5630a8,_0x547c7f,_0xe74743){var _0x434fc5=a4_0x322925;return await this[_0x434fc5(0x1ff)](_0x3b5b10+'-'+_0x5630a8,_0x547c7f,_0xe74743);}async[a4_0x322925(0x1dc)](_0x4c104b,_0x407aa8,_0x4e58fb){var _0x2f72c6=a4_0x322925;return await this[_0x2f72c6(0x206)](_0x4c104b+'-'+_0x407aa8,_0x4e58fb);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.1.35",
3
+ "version": "1.1.36",
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": "be5da25c254e8310bf4c21c9d9e8ac1b7f05b67b"
26
+ "gitHead": "71df28e7e906f5156c7a504ccbcb439fade7ef27"
27
27
  }