@anncic-api/cache 1.1.4 → 1.1.7

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_0x3c9c7c=a0_0x55ae;(function(_0x170111,_0x79e3ae){const _0x76c22b=a0_0x55ae,_0x2c9dfd=_0x170111();while(!![]){try{const _0x41b92e=-parseInt(_0x76c22b(0xb8))/0x1+parseInt(_0x76c22b(0xac))/0x2+parseInt(_0x76c22b(0xa7))/0x3*(parseInt(_0x76c22b(0xa9))/0x4)+-parseInt(_0x76c22b(0xab))/0x5+parseInt(_0x76c22b(0xb2))/0x6*(parseInt(_0x76c22b(0xaf))/0x7)+parseInt(_0x76c22b(0xad))/0x8*(parseInt(_0x76c22b(0xb6))/0x9)+-parseInt(_0x76c22b(0xb4))/0xa;if(_0x41b92e===_0x79e3ae)break;else _0x2c9dfd['push'](_0x2c9dfd['shift']());}catch(_0x375654){_0x2c9dfd['push'](_0x2c9dfd['shift']());}}}(a0_0x3406,0xd4e66));function a0_0x55ae(_0x5be2df,_0x4797e9){const _0x3406f6=a0_0x3406();return a0_0x55ae=function(_0x55aecc,_0x40eca7){_0x55aecc=_0x55aecc-0xa7;let _0x2b2472=_0x3406f6[_0x55aecc];return _0x2b2472;},a0_0x55ae(_0x5be2df,_0x4797e9);}Object[a0_0x3c9c7c(0xb0)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x3c9c7c(0xb3)),redisStore=require(a0_0x3c9c7c(0xb1));exports[a0_0x3c9c7c(0xae)]=_0x34872d=>{const _0x250398=a0_0x3c9c7c;return{'cache':{'default':_0x250398(0xb7),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x34872d[_0x250398(0xb5)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x250398(0xaa),'password':'','ttl':0x1e13380,'keyPrefix':_0x34872d['name']+':'}},'memory':{'store':_0x250398(0xa8),'options':{'max':0x64,'ttl':0x1e13380}}}}};};function a0_0x3406(){const _0x5cf942=['1420508bbmDYp','127.0.0.1','2100620XaGbAf','804862LzltDL','1357728TEOgHv','default','8293117bumNOn','defineProperty','cache-manager-ioredis','6JnkgCr','cache-manager-fs-hash','27206500YboxOu','appDir','63tJbVwX','file','182870gKZGEM','12KHXpCX','memory'];a0_0x3406=function(){return _0x5cf942;};return a0_0x3406();}
1
+ 'use strict';const a0_0xf6f38a=a0_0x1382;function a0_0x1382(_0x5b8af1,_0x4979fd){const _0x4ed55e=a0_0x4ed5();return a0_0x1382=function(_0x1382d0,_0x2efbc5){_0x1382d0=_0x1382d0-0xa3;let _0xa01c53=_0x4ed55e[_0x1382d0];return _0xa01c53;},a0_0x1382(_0x5b8af1,_0x4979fd);}(function(_0x3f843e,_0x4853c8){const _0x3a6af9=a0_0x1382,_0x85686b=_0x3f843e();while(!![]){try{const _0x188e8d=-parseInt(_0x3a6af9(0xaf))/0x1+parseInt(_0x3a6af9(0xae))/0x2+parseInt(_0x3a6af9(0xad))/0x3*(-parseInt(_0x3a6af9(0xa8))/0x4)+parseInt(_0x3a6af9(0xb2))/0x5*(-parseInt(_0x3a6af9(0xa7))/0x6)+-parseInt(_0x3a6af9(0xa5))/0x7+parseInt(_0x3a6af9(0xab))/0x8*(-parseInt(_0x3a6af9(0xa9))/0x9)+parseInt(_0x3a6af9(0xa6))/0xa;if(_0x188e8d===_0x4853c8)break;else _0x85686b['push'](_0x85686b['shift']());}catch(_0x4e6ae4){_0x85686b['push'](_0x85686b['shift']());}}}(a0_0x4ed5,0x8093b));function a0_0x4ed5(){const _0x3859cf=['/runtime/.cache','name','6059046AprVin','12635780mSOdAi','6pLNNwe','8fIClwZ','1234764WUYJqB','cache-manager-ioredis','8OMgvVg','default','841479tnQkur','1955904spAOAK','53330bFoBtB','file','cache-manager-fs-hash','488945jCIkUV'];a0_0x4ed5=function(){return _0x3859cf;};return a0_0x4ed5();}Object['defineProperty'](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0xf6f38a(0xb1)),redisStore=require(a0_0xf6f38a(0xaa));exports[a0_0xf6f38a(0xac)]=_0x2cc513=>{const _0x31486f=a0_0xf6f38a;return{'cache':{'default':_0x31486f(0xb0),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x2cc513['appDir']+_0x31486f(0xa3)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0x2cc513[_0x31486f(0xa4)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';var a1_0x4b862a=a1_0x470b;(function(_0x1d4121,_0x1870a4){var _0x446cdc=a1_0x470b,_0x543f4d=_0x1d4121();while(!![]){try{var _0xb25b52=parseInt(_0x446cdc(0x17b))/0x1+-parseInt(_0x446cdc(0x170))/0x2+parseInt(_0x446cdc(0x17d))/0x3*(-parseInt(_0x446cdc(0x17a))/0x4)+-parseInt(_0x446cdc(0x180))/0x5*(parseInt(_0x446cdc(0x179))/0x6)+-parseInt(_0x446cdc(0x174))/0x7+-parseInt(_0x446cdc(0x171))/0x8+parseInt(_0x446cdc(0x181))/0x9;if(_0xb25b52===_0x1870a4)break;else _0x543f4d['push'](_0x543f4d['shift']());}catch(_0x2d4b1b){_0x543f4d['push'](_0x543f4d['shift']());}}}(a1_0x56f5,0x737fc));function a1_0x470b(_0x974cf3,_0x32f223){var _0x56f54d=a1_0x56f5();return a1_0x470b=function(_0x470b9e,_0x570fc3){_0x470b9e=_0x470b9e-0x16f;var _0x354f6f=_0x56f54d[_0x470b9e];return _0x354f6f;},a1_0x470b(_0x974cf3,_0x32f223);}var __decorate=this&&this['__decorate']||function(_0x31dc05,_0xd2ed06,_0x5d1755,_0x1e6678){var _0x13c85e=a1_0x470b,_0x4ca554=arguments[_0x13c85e(0x17f)],_0x32084e=_0x4ca554<0x3?_0xd2ed06:_0x1e6678===null?_0x1e6678=Object[_0x13c85e(0x178)](_0xd2ed06,_0x5d1755):_0x1e6678,_0x42cc4a;if(typeof Reflect===_0x13c85e(0x16f)&&typeof Reflect[_0x13c85e(0x17e)]===_0x13c85e(0x177))_0x32084e=Reflect[_0x13c85e(0x17e)](_0x31dc05,_0xd2ed06,_0x5d1755,_0x1e6678);else{for(var _0x25bc5a=_0x31dc05['length']-0x1;_0x25bc5a>=0x0;_0x25bc5a--)if(_0x42cc4a=_0x31dc05[_0x25bc5a])_0x32084e=(_0x4ca554<0x3?_0x42cc4a(_0x32084e):_0x4ca554>0x3?_0x42cc4a(_0xd2ed06,_0x5d1755,_0x32084e):_0x42cc4a(_0xd2ed06,_0x5d1755))||_0x32084e;}return _0x4ca554>0x3&&_0x32084e&&Object[_0x13c85e(0x17c)](_0xd2ed06,_0x5d1755,_0x32084e),_0x32084e;};Object[a1_0x4b862a(0x17c)](exports,a1_0x4b862a(0x173),{'value':!![]}),exports[a1_0x4b862a(0x172)]=void 0x0;const decorator_1=require(a1_0x4b862a(0x175)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};function a1_0x56f5(){var _0x547d38=['22060LVRDjX','545116MGAuoq','defineProperty','51UESmGn','decorate','length','229820VKQwfw','10988514mpwOiz','object','140810AuVEje','6281136xgTCoB','CustomConfiguration','__esModule','1762236UtoTph','@midwayjs/decorator','anncic-api:cache','function','getOwnPropertyDescriptor','12TgDOcx'];a1_0x56f5=function(){return _0x547d38;};return a1_0x56f5();}CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x4b862a(0x176),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
1
+ 'use strict';var a1_0x15aa1c=a1_0x34d0;(function(_0x17a95c,_0x4de061){var _0x4928b8=a1_0x34d0,_0x2dae66=_0x17a95c();while(!![]){try{var _0x4117d6=-parseInt(_0x4928b8(0xf4))/0x1+parseInt(_0x4928b8(0xf9))/0x2+-parseInt(_0x4928b8(0xf6))/0x3+-parseInt(_0x4928b8(0xfd))/0x4+-parseInt(_0x4928b8(0xfc))/0x5*(parseInt(_0x4928b8(0xf5))/0x6)+-parseInt(_0x4928b8(0xfe))/0x7+parseInt(_0x4928b8(0xf3))/0x8*(parseInt(_0x4928b8(0x103))/0x9);if(_0x4117d6===_0x4de061)break;else _0x2dae66['push'](_0x2dae66['shift']());}catch(_0x145820){_0x2dae66['push'](_0x2dae66['shift']());}}}(a1_0x3770,0xdd0e7));var __decorate=this&&this[a1_0x15aa1c(0xf8)]||function(_0x592f30,_0x1c72c5,_0x2b0bb3,_0x36a4f7){var _0x2862d1=a1_0x15aa1c,_0xaea628=arguments[_0x2862d1(0x101)],_0x26bc3e=_0xaea628<0x3?_0x1c72c5:_0x36a4f7===null?_0x36a4f7=Object[_0x2862d1(0xf1)](_0x1c72c5,_0x2b0bb3):_0x36a4f7,_0x51132f;if(typeof Reflect===_0x2862d1(0x100)&&typeof Reflect[_0x2862d1(0xfb)]===_0x2862d1(0xf7))_0x26bc3e=Reflect[_0x2862d1(0xfb)](_0x592f30,_0x1c72c5,_0x2b0bb3,_0x36a4f7);else{for(var _0x3f828d=_0x592f30[_0x2862d1(0x101)]-0x1;_0x3f828d>=0x0;_0x3f828d--)if(_0x51132f=_0x592f30[_0x3f828d])_0x26bc3e=(_0xaea628<0x3?_0x51132f(_0x26bc3e):_0xaea628>0x3?_0x51132f(_0x1c72c5,_0x2b0bb3,_0x26bc3e):_0x51132f(_0x1c72c5,_0x2b0bb3))||_0x26bc3e;}return _0xaea628>0x3&&_0x26bc3e&&Object['defineProperty'](_0x1c72c5,_0x2b0bb3,_0x26bc3e),_0x26bc3e;};function a1_0x3770(){var _0x547d94=['5xYSwvI','341180OfIwTd','8966237fmocqG','anncic-api:cache','object','length','./config/config.default','1341459ZiImnm','__esModule','getOwnPropertyDescriptor','defineProperty','208StloRe','714850huVwFB','1532742WvYjZc','2792364ajzGoC','function','__decorate','594804BqHFIj','CustomConfiguration','decorate'];a1_0x3770=function(){return _0x547d94;};return a1_0x3770();}Object[a1_0x15aa1c(0xf2)](exports,a1_0x15aa1c(0x104),{'value':!![]}),exports[a1_0x15aa1c(0xfa)]=void 0x0;function a1_0x34d0(_0x30f224,_0x319d9d){var _0x377009=a1_0x3770();return a1_0x34d0=function(_0x34d0a7,_0x239752){_0x34d0a7=_0x34d0a7-0xf1;var _0x3a00cc=_0x377009[_0x34d0a7];return _0x3a00cc;},a1_0x34d0(_0x30f224,_0x319d9d);}const decorator_1=require('@midwayjs/decorator'),ConfigDefault=require(a1_0x15aa1c(0x102));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x15aa1c(0xff),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0x3f5652=a2_0x5c15;(function(_0x57ca22,_0x3395cc){const _0x1ece2b=a2_0x5c15,_0x1ace7f=_0x57ca22();while(!![]){try{const _0x402077=-parseInt(_0x1ece2b(0x1a2))/0x1+-parseInt(_0x1ece2b(0x19d))/0x2*(-parseInt(_0x1ece2b(0x1a4))/0x3)+parseInt(_0x1ece2b(0x1b3))/0x4+parseInt(_0x1ece2b(0x1a3))/0x5*(parseInt(_0x1ece2b(0x1ad))/0x6)+-parseInt(_0x1ece2b(0x1a6))/0x7+-parseInt(_0x1ece2b(0x1a8))/0x8*(parseInt(_0x1ece2b(0x1aa))/0x9)+parseInt(_0x1ece2b(0x1a1))/0xa*(-parseInt(_0x1ece2b(0x19e))/0xb);if(_0x402077===_0x3395cc)break;else _0x1ace7f['push'](_0x1ace7f['shift']());}catch(_0x17cb20){_0x1ace7f['push'](_0x1ace7f['shift']());}}}(a2_0x4bc3,0xb961b));function a2_0x4bc3(){const _0x3bec48=['499185YlIrEN','3876129ypUGAV','app','7033355gyiRCL','toString','2120656MmzgLq','use','27lWWjBp','defineProperty','CacheService','90hGrAlb','set','value','../service/CacheService','stringify','MethodDecorator','5899484xCukev','get','apply','getApplicationContext','Cache','2kTHKUp','11YdthVX','__esModule','MD5','8845570ZmltGA','820578YiMckV'];a2_0x4bc3=function(){return _0x3bec48;};return a2_0x4bc3();}function a2_0x5c15(_0x587552,_0x441abf){const _0x4bc30f=a2_0x4bc3();return a2_0x5c15=function(_0x5c153e,_0x47becc){_0x5c153e=_0x5c153e-0x19d;let _0x974bd3=_0x4bc30f[_0x5c153e];return _0x974bd3;},a2_0x5c15(_0x587552,_0x441abf);}Object[a2_0x3f5652(0x1ab)](exports,a2_0x3f5652(0x19f),{'value':!![]}),exports[a2_0x3f5652(0x1b7)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x3f5652(0x1b0)),core_1=require('@midwayjs/core');function Cache(_0x38dd29,_0x590e03){return(_0x320412,_0x1568f0,_0x13aebc)=>{const _0x50f165=a2_0x5c15,_0xa443dc=_0x13aebc[_0x50f165(0x1af)];return _0x13aebc[_0x50f165(0x1af)]=async function(..._0x4f767c){const _0x4239ae=_0x50f165;!_0x38dd29&&(_0x38dd29=(0x0,crypto_js_1[_0x4239ae(0x1a0)])(JSON[_0x4239ae(0x1b1)](_0x4f767c))[_0x4239ae(0x1a7)]());let _0x20e8d=await this[core_1['REQUEST_OBJ_CTX_KEY']][_0x4239ae(0x1a5)][_0x4239ae(0x1b6)]()['getAsync'](CacheService_1[_0x4239ae(0x1ac)]),_0x5cc41e=await _0x20e8d['use']('MethodDecorator')[_0x4239ae(0x1b4)](_0x38dd29);if(_0x5cc41e)return JSON['parse'](_0x5cc41e);else _0x5cc41e=await _0xa443dc[_0x4239ae(0x1b5)](this,[..._0x4f767c]),await _0x20e8d[_0x4239ae(0x1a9)](_0x4239ae(0x1b2))[_0x4239ae(0x1ae)](_0x38dd29,JSON[_0x4239ae(0x1b1)](_0x5cc41e),_0x590e03);return _0x5cc41e;},_0x13aebc;};}exports[a2_0x3f5652(0x1b7)]=Cache;
1
+ 'use strict';const a2_0x19d274=a2_0x393b;(function(_0x812b40,_0x4250e2){const _0xdb1c5b=a2_0x393b,_0x3487d8=_0x812b40();while(!![]){try{const _0x139604=-parseInt(_0xdb1c5b(0x14f))/0x1+-parseInt(_0xdb1c5b(0x14d))/0x2+parseInt(_0xdb1c5b(0x146))/0x3+-parseInt(_0xdb1c5b(0x13e))/0x4*(parseInt(_0xdb1c5b(0x154))/0x5)+parseInt(_0xdb1c5b(0x142))/0x6+-parseInt(_0xdb1c5b(0x151))/0x7*(-parseInt(_0xdb1c5b(0x155))/0x8)+-parseInt(_0xdb1c5b(0x144))/0x9*(-parseInt(_0xdb1c5b(0x14e))/0xa);if(_0x139604===_0x4250e2)break;else _0x3487d8['push'](_0x3487d8['shift']());}catch(_0x2037f6){_0x3487d8['push'](_0x3487d8['shift']());}}}(a2_0x5555,0xc6e4b));function a2_0x393b(_0x21858f,_0x3ca23f){const _0x555503=a2_0x5555();return a2_0x393b=function(_0x393bcf,_0xf26a0f){_0x393bcf=_0x393bcf-0x13b;let _0x19da6d=_0x555503[_0x393bcf];return _0x19da6d;},a2_0x393b(_0x21858f,_0x3ca23f);}Object[a2_0x19d274(0x150)](exports,a2_0x19d274(0x140),{'value':!![]}),exports['Cache']=void 0x0;const crypto_js_1=require(a2_0x19d274(0x152)),CacheService_1=require(a2_0x19d274(0x13d)),core_1=require(a2_0x19d274(0x14a));function Cache(_0x2332a5,_0x131328){return(_0x15c1f9,_0xa6e818,_0x40752d)=>{const _0x4e24a7=a2_0x393b,_0x45d3dc=_0x40752d[_0x4e24a7(0x143)];return _0x40752d[_0x4e24a7(0x143)]=async function(..._0x1ffb3f){const _0x2ffaf2=_0x4e24a7;!_0x2332a5&&(_0x2332a5=(0x0,crypto_js_1[_0x2ffaf2(0x13b)])(JSON[_0x2ffaf2(0x147)](_0x1ffb3f))['toString']());let _0x574456=await this[core_1[_0x2ffaf2(0x148)]][_0x2ffaf2(0x14b)][_0x2ffaf2(0x14c)]()['getAsync'](CacheService_1[_0x2ffaf2(0x149)]),_0x530007=await _0x574456['use']('MethodDecorator')[_0x2ffaf2(0x145)](_0x2332a5);if(_0x530007)return JSON[_0x2ffaf2(0x141)](_0x530007);else _0x530007=await _0x45d3dc[_0x2ffaf2(0x156)](this,[..._0x1ffb3f]),await _0x574456['use'](_0x2ffaf2(0x153))[_0x2ffaf2(0x13f)](_0x2332a5,JSON[_0x2ffaf2(0x147)](_0x530007),_0x131328);return _0x530007;},_0x40752d;};}exports[a2_0x19d274(0x13c)]=Cache;function a2_0x5555(){const _0x33a395=['MD5','Cache','../service/CacheService','80552MmtKOc','set','__esModule','parse','1526898ldUKSU','value','15119586cblkrx','get','2538222NIRmaq','stringify','REQUEST_OBJ_CTX_KEY','CacheService','@midwayjs/core','app','getApplicationContext','1130952wRWuCY','10rbEaxh','737644jQHzdu','defineProperty','781718DQcVIX','crypto-js','MethodDecorator','220BJaGzI','16FGxqrS','apply'];a2_0x5555=function(){return _0x33a395;};return a2_0x5555();}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0x106cbf=a3_0x6feb;(function(_0x44002c,_0x461a60){var _0x1ee1d9=a3_0x6feb,_0x2dedf4=_0x44002c();while(!![]){try{var _0xd20817=-parseInt(_0x1ee1d9(0x8f))/0x1+-parseInt(_0x1ee1d9(0x84))/0x2*(-parseInt(_0x1ee1d9(0x8c))/0x3)+parseInt(_0x1ee1d9(0x87))/0x4*(parseInt(_0x1ee1d9(0x82))/0x5)+parseInt(_0x1ee1d9(0x8d))/0x6+-parseInt(_0x1ee1d9(0x7f))/0x7*(-parseInt(_0x1ee1d9(0x8b))/0x8)+-parseInt(_0x1ee1d9(0x8e))/0x9+-parseInt(_0x1ee1d9(0x80))/0xa;if(_0xd20817===_0x461a60)break;else _0x2dedf4['push'](_0x2dedf4['shift']());}catch(_0x45b6f4){_0x2dedf4['push'](_0x2dedf4['shift']());}}}(a3_0x5451,0xaede6));function a3_0x5451(){var _0xd67692=['CacheService','35VHXLjz','12535430PyRpwf','defineProperty','1190toIqxU','__esModule','348134aEEcqX','Cache','Configuration','7164pkheUD','./configuration','./decorator/Cache','./service/CacheService','1869496KXMUfc','15CSFmBc','6853044nSDNLe','9764955rEauzX','552402opICnq'];a3_0x5451=function(){return _0xd67692;};return a3_0x5451();}Object['defineProperty'](exports,a3_0x106cbf(0x83),{'value':!![]}),exports[a3_0x106cbf(0x7e)]=exports[a3_0x106cbf(0x85)]=exports[a3_0x106cbf(0x86)]=void 0x0;var configuration_1=require(a3_0x106cbf(0x88));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x106cbf(0x89));Object[a3_0x106cbf(0x81)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x1c2720=a3_0x106cbf;return Cache_1[_0x1c2720(0x85)];}});var CacheService_1=require(a3_0x106cbf(0x8a));function a3_0x6feb(_0x3e69ae,_0x4f1aae){var _0x545157=a3_0x5451();return a3_0x6feb=function(_0x6feba3,_0x1acfe3){_0x6feba3=_0x6feba3-0x7e;var _0x41870f=_0x545157[_0x6feba3];return _0x41870f;},a3_0x6feb(_0x3e69ae,_0x4f1aae);}Object['defineProperty'](exports,a3_0x106cbf(0x7e),{'enumerable':!![],'get':function(){var _0x62b574=a3_0x106cbf;return CacheService_1[_0x62b574(0x7e)];}});
1
+ 'use strict';function a3_0x5e89(){var _0x2505ca=['2499387SxTwfm','4ddxfin','4811215EonVLb','defineProperty','281364lVnFyQ','95548bslAEJ','352ApDOzb','./decorator/Cache','Configuration','12mHLRfF','3488NoKLPO','221HiIxBs','CustomConfiguration','./configuration','180LdQhVj','__esModule','228370pNijyI','CacheService','2610307oKiUMo','6lqfiXL'];a3_0x5e89=function(){return _0x2505ca;};return a3_0x5e89();}var a3_0x39adca=a3_0x1fb9;(function(_0x4c2c8c,_0x1bb003){var _0x3d68f9=a3_0x1fb9,_0x1f1058=_0x4c2c8c();while(!![]){try{var _0x195e12=parseInt(_0x3d68f9(0x86))/0x1*(parseInt(_0x3d68f9(0x8a))/0x2)+-parseInt(_0x3d68f9(0x81))/0x3+parseInt(_0x3d68f9(0x82))/0x4*(parseInt(_0x3d68f9(0x83))/0x5)+parseInt(_0x3d68f9(0x80))/0x6*(parseInt(_0x3d68f9(0x7f))/0x7)+parseInt(_0x3d68f9(0x8b))/0x8*(parseInt(_0x3d68f9(0x8f))/0x9)+-parseInt(_0x3d68f9(0x91))/0xa*(parseInt(_0x3d68f9(0x87))/0xb)+parseInt(_0x3d68f9(0x85))/0xc*(parseInt(_0x3d68f9(0x8c))/0xd);if(_0x195e12===_0x1bb003)break;else _0x1f1058['push'](_0x1f1058['shift']());}catch(_0x2907c1){_0x1f1058['push'](_0x1f1058['shift']());}}}(a3_0x5e89,0xb78de));Object[a3_0x39adca(0x84)](exports,a3_0x39adca(0x90),{'value':!![]}),exports['CacheService']=exports['Cache']=exports[a3_0x39adca(0x89)]=void 0x0;var configuration_1=require(a3_0x39adca(0x8e));function a3_0x1fb9(_0x8d76f,_0x4acf27){var _0x5e8997=a3_0x5e89();return a3_0x1fb9=function(_0x1fb955,_0x47188a){_0x1fb955=_0x1fb955-0x7f;var _0x1d475b=_0x5e8997[_0x1fb955];return _0x1d475b;},a3_0x1fb9(_0x8d76f,_0x4acf27);}Object['defineProperty'](exports,a3_0x39adca(0x89),{'enumerable':!![],'get':function(){var _0x5bb23b=a3_0x39adca;return configuration_1[_0x5bb23b(0x8d)];}});var Cache_1=require(a3_0x39adca(0x88));Object[a3_0x39adca(0x84)](exports,'Cache',{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require('./service/CacheService');Object['defineProperty'](exports,a3_0x39adca(0x92),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
@@ -1 +1 @@
1
- 'use strict';var a4_0x55f100=a4_0x5020;function a4_0x57d0(){var _0x227228=['81592OdTHqn','__metadata','669069KahESO','44712bdfVSX','getOwnPropertyDescriptor','get','prefix','object','766zlgGIB','432117fLYYbm','__decorate','file','store','stores','decorate','clients','config','reset','set','function','length','1116YDvobT','10uLniqv','caching','metadata','Provide','639hCELEo','104PtvaPg','hset','__esModule','2064eySnkT','default','1297SatIdZ','ScopeEnum','has','del','hdel','cache-manager','18491YkGcUP','defineProperty','CacheService','cache','155oHbFWL','design:type','2782TiljNv'];a4_0x57d0=function(){return _0x227228;};return a4_0x57d0();}(function(_0x37ecc7,_0x1b5e30){var _0x1552a1=a4_0x5020,_0x9d3b9=_0x37ecc7();while(!![]){try{var _0x1d9a09=-parseInt(_0x1552a1(0xd2))/0x1*(-parseInt(_0x1552a1(0xba))/0x2)+parseInt(_0x1552a1(0xcc))/0x3*(-parseInt(_0x1552a1(0xd0))/0x4)+parseInt(_0x1552a1(0xdc))/0x5*(parseInt(_0x1552a1(0xe2))/0x6)+-parseInt(_0x1552a1(0xbb))/0x7*(-parseInt(_0x1552a1(0xcd))/0x8)+-parseInt(_0x1552a1(0xe1))/0x9*(-parseInt(_0x1552a1(0xc8))/0xa)+-parseInt(_0x1552a1(0xd8))/0xb*(-parseInt(_0x1552a1(0xc7))/0xc)+parseInt(_0x1552a1(0xde))/0xd*(-parseInt(_0x1552a1(0xdf))/0xe);if(_0x1d9a09===_0x1b5e30)break;else _0x9d3b9['push'](_0x9d3b9['shift']());}catch(_0x46ff1c){_0x9d3b9['push'](_0x9d3b9['shift']());}}}(a4_0x57d0,0x62980));function a4_0x5020(_0xecf90,_0x37567b){var _0x57d0a5=a4_0x57d0();return a4_0x5020=function(_0x5020c6,_0x65e04d){_0x5020c6=_0x5020c6-0xb9;var _0x53ee1e=_0x57d0a5[_0x5020c6];return _0x53ee1e;},a4_0x5020(_0xecf90,_0x37567b);}var __decorate=this&&this[a4_0x55f100(0xbc)]||function(_0x5c8ab0,_0x5edc9c,_0xb01a90,_0x4431d7){var _0x30ff46=a4_0x55f100,_0xe3b11e=arguments[_0x30ff46(0xc6)],_0x450ec6=_0xe3b11e<0x3?_0x5edc9c:_0x4431d7===null?_0x4431d7=Object[_0x30ff46(0xe3)](_0x5edc9c,_0xb01a90):_0x4431d7,_0x47ff84;if(typeof Reflect===_0x30ff46(0xb9)&&typeof Reflect[_0x30ff46(0xc0)]==='function')_0x450ec6=Reflect['decorate'](_0x5c8ab0,_0x5edc9c,_0xb01a90,_0x4431d7);else{for(var _0xfe1e0d=_0x5c8ab0[_0x30ff46(0xc6)]-0x1;_0xfe1e0d>=0x0;_0xfe1e0d--)if(_0x47ff84=_0x5c8ab0[_0xfe1e0d])_0x450ec6=(_0xe3b11e<0x3?_0x47ff84(_0x450ec6):_0xe3b11e>0x3?_0x47ff84(_0x5edc9c,_0xb01a90,_0x450ec6):_0x47ff84(_0x5edc9c,_0xb01a90))||_0x450ec6;}return _0xe3b11e>0x3&&_0x450ec6&&Object[_0x30ff46(0xd9)](_0x5edc9c,_0xb01a90,_0x450ec6),_0x450ec6;},__metadata=this&&this[a4_0x55f100(0xe0)]||function(_0x44b61b,_0xcca191){var _0x4c909c=a4_0x55f100;if(typeof Reflect==='object'&&typeof Reflect[_0x4c909c(0xca)]===_0x4c909c(0xc5))return Reflect['metadata'](_0x44b61b,_0xcca191);};Object[a4_0x55f100(0xd9)](exports,a4_0x55f100(0xcf),{'value':!![]}),exports[a4_0x55f100(0xda)]=void 0x0;const cacheManager=require(a4_0x55f100(0xd7)),decorator_1=require('@midwayjs/decorator');let CacheService=class CacheService{constructor(){var _0x11bf82=a4_0x55f100;this[_0x11bf82(0xdb)]=undefined,this['clients']=new Map();}['use'](_0x2328f1){var _0x322e00=a4_0x55f100,_0x45dd24,_0x3cfd2f;if(!this[_0x322e00(0xdb)]){const _0x36e5cc=((_0x45dd24=this[_0x322e00(0xc2)][_0x322e00(0xbf)])===null||_0x45dd24===void 0x0?void 0x0:_0x45dd24[(_0x3cfd2f=this[_0x322e00(0xc2)]['cache'])===null||_0x3cfd2f===void 0x0?void 0x0:_0x3cfd2f[_0x322e00(0xd1)]])||this[_0x322e00(0xc2)][_0x322e00(0xbf)][_0x322e00(0xbd)];this[_0x322e00(0xdb)]=cacheManager[_0x322e00(0xc9)]({..._0x36e5cc['options'],'store':_0x36e5cc[_0x322e00(0xbe)]});}return!this[_0x322e00(0xc1)][_0x322e00(0xd4)](_0x2328f1)&&this['clients'][_0x322e00(0xc4)](_0x2328f1,new CacheHandler(_0x2328f1,this[_0x322e00(0xdb)])),this[_0x322e00(0xc1)][_0x322e00(0xe4)](_0x2328f1);}async[a4_0x55f100(0xc3)](){return await this['cache']['reset']();}};__decorate([(0x0,decorator_1['Config'])('cache'),__metadata(a4_0x55f100(0xdd),Object)],CacheService['prototype'],a4_0x55f100(0xc2),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x55f100(0xcb)])(),(0x0,decorator_1['Scope'])(decorator_1[a4_0x55f100(0xd3)]['Singleton'])],CacheService),exports[a4_0x55f100(0xda)]=CacheService;class CacheHandler{constructor(_0x290376,_0x473664){var _0x109b6f=a4_0x55f100;this[_0x109b6f(0xdb)]=_0x473664,this[_0x109b6f(0xe5)]=_0x290376;}async[a4_0x55f100(0xd5)](_0x1d0298){var _0xc3199e=a4_0x55f100;return await this[_0xc3199e(0xdb)][_0xc3199e(0xd5)](this[_0xc3199e(0xe5)]+':'+_0x1d0298);}async[a4_0x55f100(0xc4)](_0x37e3b0,_0x1a4bb3,_0x594eca){var _0x429129=a4_0x55f100;return await this[_0x429129(0xdb)][_0x429129(0xc4)](this[_0x429129(0xe5)]+':'+_0x37e3b0,_0x1a4bb3,_0x594eca);}async['get'](_0x47b80d,_0x30e165){return new Promise((_0x19b67a,_0x382ace)=>{var _0x355f30=a4_0x5020;this['cache']['get'](this[_0x355f30(0xe5)]+':'+_0x47b80d,(_0xb38655,_0x5d9531)=>{_0xb38655?_0x382ace(_0xb38655):_0x19b67a(_0x5d9531||_0x30e165);});});}async[a4_0x55f100(0xd6)](_0x97e7d0,_0x1219e6){var _0x16d7ae=a4_0x55f100;return await this[_0x16d7ae(0xd5)](_0x97e7d0+'-'+_0x1219e6);}async[a4_0x55f100(0xce)](_0x420ede,_0x101189,_0x3ecf79,_0x257593){return await this['set'](_0x420ede+'-'+_0x101189,_0x3ecf79,_0x257593);}async['hget'](_0x1d38d8,_0x385dbe,_0x10c976){var _0x357869=a4_0x55f100;return await this[_0x357869(0xe4)](_0x1d38d8+'-'+_0x385dbe,_0x10c976);}}
1
+ 'use strict';var a4_0x2c653d=a4_0x4261;(function(_0x24019e,_0x4ec59a){var _0x23b33b=a4_0x4261,_0x2443f6=_0x24019e();while(!![]){try{var _0x2c5dec=parseInt(_0x23b33b(0x8f))/0x1+parseInt(_0x23b33b(0x8e))/0x2+-parseInt(_0x23b33b(0xb1))/0x3*(parseInt(_0x23b33b(0x95))/0x4)+parseInt(_0x23b33b(0xa0))/0x5+-parseInt(_0x23b33b(0xa8))/0x6*(parseInt(_0x23b33b(0xa1))/0x7)+-parseInt(_0x23b33b(0xae))/0x8*(parseInt(_0x23b33b(0xa7))/0x9)+parseInt(_0x23b33b(0x93))/0xa;if(_0x2c5dec===_0x4ec59a)break;else _0x2443f6['push'](_0x2443f6['shift']());}catch(_0x1d66e4){_0x2443f6['push'](_0x2443f6['shift']());}}}(a4_0x483a,0x46eb5));function a4_0x483a(){var _0x19ccec=['234cjlnTO','107628SiyMTf','ScopeEnum','set','hget','Singleton','CacheService','126152uXgYhi','caching','del','600123PvKFNr','config','function','cache-manager','1010498wKSBSA','278934rpNPso','prefix','stores','Config','3118430NqDwwO','has','4duvLWd','default','defineProperty','length','getOwnPropertyDescriptor','file','Provide','decorate','clients','object','get','1802860JeriRj','217DSGwvP','Scope','design:type','__esModule','cache','reset'];a4_0x483a=function(){return _0x19ccec;};return a4_0x483a();}var __decorate=this&&this['__decorate']||function(_0x2d65d6,_0x217e02,_0x54f5f4,_0x27698d){var _0x473dec=a4_0x4261,_0x252371=arguments[_0x473dec(0x98)],_0x486750=_0x252371<0x3?_0x217e02:_0x27698d===null?_0x27698d=Object[_0x473dec(0x99)](_0x217e02,_0x54f5f4):_0x27698d,_0x407f94;if(typeof Reflect===_0x473dec(0x9e)&&typeof Reflect[_0x473dec(0x9c)]==='function')_0x486750=Reflect[_0x473dec(0x9c)](_0x2d65d6,_0x217e02,_0x54f5f4,_0x27698d);else{for(var _0x14d50d=_0x2d65d6[_0x473dec(0x98)]-0x1;_0x14d50d>=0x0;_0x14d50d--)if(_0x407f94=_0x2d65d6[_0x14d50d])_0x486750=(_0x252371<0x3?_0x407f94(_0x486750):_0x252371>0x3?_0x407f94(_0x217e02,_0x54f5f4,_0x486750):_0x407f94(_0x217e02,_0x54f5f4))||_0x486750;}return _0x252371>0x3&&_0x486750&&Object[_0x473dec(0x97)](_0x217e02,_0x54f5f4,_0x486750),_0x486750;},__metadata=this&&this['__metadata']||function(_0x4646b9,_0x5edeac){var _0x57c750=a4_0x4261;if(typeof Reflect===_0x57c750(0x9e)&&typeof Reflect['metadata']===_0x57c750(0xb3))return Reflect['metadata'](_0x4646b9,_0x5edeac);};function a4_0x4261(_0x12bbdc,_0x2706ca){var _0x483a48=a4_0x483a();return a4_0x4261=function(_0x426157,_0xd02314){_0x426157=_0x426157-0x8e;var _0x56fb2c=_0x483a48[_0x426157];return _0x56fb2c;},a4_0x4261(_0x12bbdc,_0x2706ca);}Object['defineProperty'](exports,a4_0x2c653d(0xa4),{'value':!![]}),exports[a4_0x2c653d(0xad)]=void 0x0;const cacheManager=require(a4_0x2c653d(0xb4)),decorator_1=require('@midwayjs/decorator');let CacheService=class CacheService{constructor(){var _0x37a9a1=a4_0x2c653d;this[_0x37a9a1(0xa5)]=undefined,this[_0x37a9a1(0x9d)]=new Map();}['use'](_0xb444fc){var _0x1eea0c=a4_0x2c653d,_0x288395,_0x1392f4;if(!this[_0x1eea0c(0xa5)]){const _0x492b8a=((_0x288395=this[_0x1eea0c(0xb2)][_0x1eea0c(0x91)])===null||_0x288395===void 0x0?void 0x0:_0x288395[(_0x1392f4=this[_0x1eea0c(0xb2)][_0x1eea0c(0xa5)])===null||_0x1392f4===void 0x0?void 0x0:_0x1392f4[_0x1eea0c(0x96)]])||this['config'][_0x1eea0c(0x91)][_0x1eea0c(0x9a)];this[_0x1eea0c(0xa5)]=cacheManager[_0x1eea0c(0xaf)]({..._0x492b8a['options'],'store':_0x492b8a['store']});}return!this['clients'][_0x1eea0c(0x94)](_0xb444fc)&&this[_0x1eea0c(0x9d)][_0x1eea0c(0xaa)](_0xb444fc,new CacheHandler(_0xb444fc,this[_0x1eea0c(0xa5)])),this['clients'][_0x1eea0c(0x9f)](_0xb444fc);}async[a4_0x2c653d(0xa6)](){return await this['cache']['reset']();}};__decorate([(0x0,decorator_1[a4_0x2c653d(0x92)])(a4_0x2c653d(0xa5)),__metadata(a4_0x2c653d(0xa3),Object)],CacheService['prototype'],a4_0x2c653d(0xb2),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x2c653d(0x9b)])(),(0x0,decorator_1[a4_0x2c653d(0xa2)])(decorator_1[a4_0x2c653d(0xa9)][a4_0x2c653d(0xac)])],CacheService),exports[a4_0x2c653d(0xad)]=CacheService;class CacheHandler{constructor(_0x4b018a,_0xc69659){var _0x555e26=a4_0x2c653d;this['cache']=_0xc69659,this[_0x555e26(0x90)]=_0x4b018a;}async[a4_0x2c653d(0xb0)](_0x304176){var _0x2e72a5=a4_0x2c653d;return await this[_0x2e72a5(0xa5)]['del'](this[_0x2e72a5(0x90)]+':'+_0x304176);}async[a4_0x2c653d(0xaa)](_0x540162,_0x5d3533,_0x3b20c0){return await this['cache']['set'](this['prefix']+':'+_0x540162,_0x5d3533,_0x3b20c0);}async[a4_0x2c653d(0x9f)](_0x3b1fe7,_0x17ef96){return new Promise((_0xe8b76b,_0x3dc7c4)=>{var _0x284d29=a4_0x4261;this[_0x284d29(0xa5)]['get'](this[_0x284d29(0x90)]+':'+_0x3b1fe7,(_0x21c922,_0x88cff1)=>{_0x21c922?_0x3dc7c4(_0x21c922):_0xe8b76b(_0x88cff1||_0x17ef96);});});}async['hdel'](_0x4f1be7,_0x2d251b){return await this['del'](_0x4f1be7+'-'+_0x2d251b);}async['hset'](_0x2af559,_0x2aea96,_0x34f38b,_0x79db7f){return await this['set'](_0x2af559+'-'+_0x2aea96,_0x34f38b,_0x79db7f);}async[a4_0x2c653d(0xab)](_0x3b9e29,_0x1dcaf7,_0x55a687){var _0x45afba=a4_0x2c653d;return await this[_0x45afba(0x9f)](_0x3b9e29+'-'+_0x1dcaf7,_0x55a687);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.1.4",
3
+ "version": "1.1.7",
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": "c2921554d0bdda25ff1004d2fefcad8a48c683bf"
26
+ "gitHead": "589d64d0ada153a22757a44b6f114a90c4bc0b10"
27
27
  }