@anncic-api/cache 1.1.0 → 1.1.1

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_0x30b36d=a0_0x2377;function a0_0x2377(_0x3db92a,_0x3578ab){const _0x3d506a=a0_0x3d50();return a0_0x2377=function(_0x23773e,_0x3a8fcf){_0x23773e=_0x23773e-0x14a;let _0x37404b=_0x3d506a[_0x23773e];return _0x37404b;},a0_0x2377(_0x3db92a,_0x3578ab);}(function(_0x584494,_0x3e090e){const _0x1fff51=a0_0x2377,_0x52ed74=_0x584494();while(!![]){try{const _0xb7db94=-parseInt(_0x1fff51(0x159))/0x1*(parseInt(_0x1fff51(0x15e))/0x2)+parseInt(_0x1fff51(0x14f))/0x3*(-parseInt(_0x1fff51(0x15f))/0x4)+parseInt(_0x1fff51(0x154))/0x5*(-parseInt(_0x1fff51(0x153))/0x6)+parseInt(_0x1fff51(0x14e))/0x7+-parseInt(_0x1fff51(0x158))/0x8*(parseInt(_0x1fff51(0x14a))/0x9)+-parseInt(_0x1fff51(0x14c))/0xa+-parseInt(_0x1fff51(0x151))/0xb*(-parseInt(_0x1fff51(0x156))/0xc);if(_0xb7db94===_0x3e090e)break;else _0x52ed74['push'](_0x52ed74['shift']());}catch(_0x2f59b4){_0x52ed74['push'](_0x52ed74['shift']());}}}(a0_0x3d50,0xadf7a));function a0_0x3d50(){const _0x5bbfda=['file','11625880gUWWmt','/runtime/.cache','8144780oJPxwo','759tmPGkX','__esModule','11xoyyLT','defineProperty','142434LIhydI','190TRRJNO','memory','42717684AsWyXK','127.0.0.1','454192NROtXb','286415WjtRNI','appDir','cache-manager-fs-hash','cache-manager-ioredis','name','2MmSiVe','12776OWpWpO','135adlzPn'];a0_0x3d50=function(){return _0x5bbfda;};return a0_0x3d50();}Object[a0_0x30b36d(0x152)](exports,a0_0x30b36d(0x150),{'value':!![]});const fsStore=require(a0_0x30b36d(0x15b)),redisStore=require(a0_0x30b36d(0x15c));exports['default']=_0x3d35fd=>{const _0x5defad=a0_0x30b36d;return{'cache':{'default':_0x5defad(0x14b),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x3d35fd[_0x5defad(0x15a)]+_0x5defad(0x14d)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x5defad(0x157),'password':'','ttl':0x1e13380,'keyPrefix':_0x3d35fd[_0x5defad(0x15d)]+':'}},'memory':{'store':_0x5defad(0x155),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0x3fb15e=a0_0x4a5d;(function(_0xd92b64,_0x324973){const _0x3f8406=a0_0x4a5d,_0x4e720f=_0xd92b64();while(!![]){try{const _0x2f41bf=-parseInt(_0x3f8406(0xe4))/0x1*(parseInt(_0x3f8406(0xda))/0x2)+parseInt(_0x3f8406(0xd6))/0x3+parseInt(_0x3f8406(0xe2))/0x4+parseInt(_0x3f8406(0xd9))/0x5+parseInt(_0x3f8406(0xdf))/0x6+parseInt(_0x3f8406(0xd5))/0x7+parseInt(_0x3f8406(0xe1))/0x8*(-parseInt(_0x3f8406(0xd7))/0x9);if(_0x2f41bf===_0x324973)break;else _0x4e720f['push'](_0x4e720f['shift']());}catch(_0x26c9bb){_0x4e720f['push'](_0x4e720f['shift']());}}}(a0_0x56d2,0xef101));function a0_0x4a5d(_0x449d2a,_0x1a8925){const _0x56d283=a0_0x56d2();return a0_0x4a5d=function(_0x4a5da8,_0x219781){_0x4a5da8=_0x4a5da8-0xd5;let _0x45451c=_0x56d283[_0x4a5da8];return _0x45451c;},a0_0x4a5d(_0x449d2a,_0x1a8925);}function a0_0x56d2(){const _0x495d2d=['461457akFPKV','appDir','889085CvfzxC','10lasfoM','127.0.0.1','defineProperty','__esModule','default','4640856BltHbl','file','168bgzwHT','1888688IelKRR','cache-manager-fs-hash','348748tXIYDV','/runtime/.cache','7909048orhtAX','3739035RENOgD'];a0_0x56d2=function(){return _0x495d2d;};return a0_0x56d2();}Object[a0_0x3fb15e(0xdc)](exports,a0_0x3fb15e(0xdd),{'value':!![]});const fsStore=require(a0_0x3fb15e(0xe3)),redisStore=require('cache-manager-ioredis');exports[a0_0x3fb15e(0xde)]=_0xd42bf7=>{const _0x30f2fd=a0_0x3fb15e;return{'cache':{'default':_0x30f2fd(0xe0),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0xd42bf7[_0x30f2fd(0xd8)]+_0x30f2fd(0xe5)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x30f2fd(0xdb),'password':'','ttl':0x1e13380,'keyPrefix':_0xd42bf7['name']+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';var a1_0x23a4a6=a1_0x33ca;(function(_0x5e1fa9,_0x3ea804){var _0x46e3ca=a1_0x33ca,_0xca2058=_0x5e1fa9();while(!![]){try{var _0x355bb9=parseInt(_0x46e3ca(0xa0))/0x1*(-parseInt(_0x46e3ca(0xab))/0x2)+-parseInt(_0x46e3ca(0x9e))/0x3*(-parseInt(_0x46e3ca(0x9a))/0x4)+-parseInt(_0x46e3ca(0xa8))/0x5*(parseInt(_0x46e3ca(0xa1))/0x6)+-parseInt(_0x46e3ca(0x9d))/0x7+-parseInt(_0x46e3ca(0x9c))/0x8*(-parseInt(_0x46e3ca(0xac))/0x9)+parseInt(_0x46e3ca(0xa7))/0xa*(parseInt(_0x46e3ca(0x9f))/0xb)+-parseInt(_0x46e3ca(0x9b))/0xc;if(_0x355bb9===_0x3ea804)break;else _0xca2058['push'](_0xca2058['shift']());}catch(_0x290a17){_0xca2058['push'](_0xca2058['shift']());}}}(a1_0x2fb7,0x3cd2d));var __decorate=this&&this[a1_0x23a4a6(0xa9)]||function(_0x2ae960,_0x35b55e,_0x1c16d9,_0x519acd){var _0x165445=a1_0x23a4a6,_0x3a71f5=arguments[_0x165445(0x97)],_0x247932=_0x3a71f5<0x3?_0x35b55e:_0x519acd===null?_0x519acd=Object[_0x165445(0xa6)](_0x35b55e,_0x1c16d9):_0x519acd,_0x44beed;if(typeof Reflect===_0x165445(0xa4)&&typeof Reflect[_0x165445(0xaa)]===_0x165445(0x98))_0x247932=Reflect['decorate'](_0x2ae960,_0x35b55e,_0x1c16d9,_0x519acd);else{for(var _0x15ff25=_0x2ae960[_0x165445(0x97)]-0x1;_0x15ff25>=0x0;_0x15ff25--)if(_0x44beed=_0x2ae960[_0x15ff25])_0x247932=(_0x3a71f5<0x3?_0x44beed(_0x247932):_0x3a71f5>0x3?_0x44beed(_0x35b55e,_0x1c16d9,_0x247932):_0x44beed(_0x35b55e,_0x1c16d9))||_0x247932;}return _0x3a71f5>0x3&&_0x247932&&Object[_0x165445(0xa2)](_0x35b55e,_0x1c16d9,_0x247932),_0x247932;};Object[a1_0x23a4a6(0xa2)](exports,a1_0x23a4a6(0xa5),{'value':!![]}),exports[a1_0x23a4a6(0xa3)]=void 0x0;function a1_0x33ca(_0x289c03,_0x540ac9){var _0x2fb758=a1_0x2fb7();return a1_0x33ca=function(_0x33ca53,_0x594327){_0x33ca53=_0x33ca53-0x96;var _0x3336c3=_0x2fb758[_0x33ca53];return _0x3336c3;},a1_0x33ca(_0x289c03,_0x540ac9);}const decorator_1=require(a1_0x23a4a6(0x96)),ConfigDefault=require(a1_0x23a4a6(0x99));function a1_0x2fb7(){var _0x1ac397=['decorate','537154kWQVzz','9dydDmY','@midwayjs/decorator','length','function','./config/config.default','8AfzSKy','2402892yLAKhe','3698568GegejY','186858bnhVIX','168342XIFBwx','143sJfrIp','1hHhcHK','354OAeIgu','defineProperty','CustomConfiguration','object','__esModule','getOwnPropertyDescriptor','300990ukSPBB','18745GpieNQ','__decorate'];a1_0x2fb7=function(){return _0x1ac397;};return a1_0x2fb7();}let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x23a4a6(0xa3)]=CustomConfiguration;
1
+ 'use strict';var a1_0x5406db=a1_0x5593;(function(_0x5d7a17,_0x305f7c){var _0x2352b4=a1_0x5593,_0x1c0f87=_0x5d7a17();while(!![]){try{var _0x69f614=parseInt(_0x2352b4(0xfe))/0x1+-parseInt(_0x2352b4(0xf4))/0x2*(parseInt(_0x2352b4(0xf9))/0x3)+parseInt(_0x2352b4(0x102))/0x4+-parseInt(_0x2352b4(0xfa))/0x5*(-parseInt(_0x2352b4(0xf1))/0x6)+parseInt(_0x2352b4(0x100))/0x7*(parseInt(_0x2352b4(0xfb))/0x8)+-parseInt(_0x2352b4(0xf2))/0x9*(-parseInt(_0x2352b4(0xf3))/0xa)+-parseInt(_0x2352b4(0x101))/0xb;if(_0x69f614===_0x305f7c)break;else _0x1c0f87['push'](_0x1c0f87['shift']());}catch(_0x402a4c){_0x1c0f87['push'](_0x1c0f87['shift']());}}}(a1_0x56d5,0x522fb));var __decorate=this&&this[a1_0x5406db(0xf7)]||function(_0xdeef2d,_0x3c8071,_0x166350,_0x1727df){var _0x3f060e=a1_0x5406db,_0x14f8cf=arguments[_0x3f060e(0xfc)],_0x2198c7=_0x14f8cf<0x3?_0x3c8071:_0x1727df===null?_0x1727df=Object[_0x3f060e(0xf6)](_0x3c8071,_0x166350):_0x1727df,_0x3618c1;if(typeof Reflect===_0x3f060e(0xef)&&typeof Reflect[_0x3f060e(0xf5)]===_0x3f060e(0x103))_0x2198c7=Reflect['decorate'](_0xdeef2d,_0x3c8071,_0x166350,_0x1727df);else{for(var _0x493187=_0xdeef2d[_0x3f060e(0xfc)]-0x1;_0x493187>=0x0;_0x493187--)if(_0x3618c1=_0xdeef2d[_0x493187])_0x2198c7=(_0x14f8cf<0x3?_0x3618c1(_0x2198c7):_0x14f8cf>0x3?_0x3618c1(_0x3c8071,_0x166350,_0x2198c7):_0x3618c1(_0x3c8071,_0x166350))||_0x2198c7;}return _0x14f8cf>0x3&&_0x2198c7&&Object[_0x3f060e(0xed)](_0x3c8071,_0x166350,_0x2198c7),_0x2198c7;};function a1_0x5593(_0xea18ec,_0xba3b97){var _0x56d56e=a1_0x56d5();return a1_0x5593=function(_0x55931e,_0x4a78f5){_0x55931e=_0x55931e-0xed;var _0x1d9e29=_0x56d56e[_0x55931e];return _0x1d9e29;},a1_0x5593(_0xea18ec,_0xba3b97);}Object[a1_0x5406db(0xed)](exports,a1_0x5406db(0xf8),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require('@midwayjs/decorator'),ConfigDefault=require(a1_0x5406db(0xff));function a1_0x56d5(){var _0x22a280=['38KbIphA','decorate','getOwnPropertyDescriptor','__decorate','__esModule','79671wNOAOU','20ctVCPv','6168kDJzyK','length','Configuration','527598anMnuw','./config/config.default','5761FwGxMO','11428835GwMVRC','4628pPlNLI','function','defineProperty','CustomConfiguration','object','anncic-api:cache','266142NBducL','30537mLVZXz','1590cirNCB'];a1_0x56d5=function(){return _0x22a280;};return a1_0x56d5();}let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x5406db(0xfd)])({'conflictCheck':![],'namespace':a1_0x5406db(0xf0),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x5406db(0xee)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';function a2_0x3c85(_0x2cdff1,_0x1a9d82){const _0x1a05cd=a2_0x1a05();return a2_0x3c85=function(_0x3c8529,_0x430943){_0x3c8529=_0x3c8529-0xc8;let _0x2ae453=_0x1a05cd[_0x3c8529];return _0x2ae453;},a2_0x3c85(_0x2cdff1,_0x1a9d82);}const a2_0x86004b=a2_0x3c85;(function(_0x179771,_0x20af43){const _0x3fee56=a2_0x3c85,_0x2e6780=_0x179771();while(!![]){try{const _0x390d0c=parseInt(_0x3fee56(0xd0))/0x1+parseInt(_0x3fee56(0xd5))/0x2+-parseInt(_0x3fee56(0xce))/0x3*(-parseInt(_0x3fee56(0xe4))/0x4)+parseInt(_0x3fee56(0xdf))/0x5+parseInt(_0x3fee56(0xdd))/0x6*(parseInt(_0x3fee56(0xd2))/0x7)+-parseInt(_0x3fee56(0xd7))/0x8*(parseInt(_0x3fee56(0xcd))/0x9)+-parseInt(_0x3fee56(0xe6))/0xa;if(_0x390d0c===_0x20af43)break;else _0x2e6780['push'](_0x2e6780['shift']());}catch(_0xa4155b){_0x2e6780['push'](_0x2e6780['shift']());}}}(a2_0x1a05,0x94c7a));Object[a2_0x86004b(0xd4)](exports,a2_0x86004b(0xe3),{'value':!![]}),exports[a2_0x86004b(0xda)]=void 0x0;function a2_0x1a05(){const _0x1a8fb3=['__esModule','12KqyMXV','app','4442630tWChnQ','get','CacheService','MethodDecorator','set','@midwayjs/core','333TANdFy','39507vGoDmy','REQUEST_OBJ_CTX_KEY','224022MUGtKn','stringify','21QIBdmz','use','defineProperty','2390572LyPLhK','toString','181432SOEqoK','parse','crypto-js','Cache','apply','value','223086auGUGB','getApplicationContext','1612150HwTuKh','MD5','getAsync','../service/CacheService'];a2_0x1a05=function(){return _0x1a8fb3;};return a2_0x1a05();}const crypto_js_1=require(a2_0x86004b(0xd9)),CacheService_1=require(a2_0x86004b(0xe2)),core_1=require(a2_0x86004b(0xcc));function Cache(_0x56bade,_0x4c50cd){return(_0x4ba2fd,_0x1822e1,_0x160806)=>{const _0x3bce79=a2_0x3c85,_0x2299c4=_0x160806[_0x3bce79(0xdc)];return _0x160806['value']=async function(..._0x537f92){const _0x5b7de1=_0x3bce79;!_0x56bade&&(_0x56bade=(0x0,crypto_js_1[_0x5b7de1(0xe0)])(JSON[_0x5b7de1(0xd1)](_0x537f92))[_0x5b7de1(0xd6)]());let _0x3adcde=await this[core_1[_0x5b7de1(0xcf)]][_0x5b7de1(0xe5)][_0x5b7de1(0xde)]()[_0x5b7de1(0xe1)](CacheService_1[_0x5b7de1(0xc9)]),_0x2cb6f6=await _0x3adcde[_0x5b7de1(0xd3)](_0x5b7de1(0xca))[_0x5b7de1(0xc8)](_0x56bade);if(_0x2cb6f6)return JSON[_0x5b7de1(0xd8)](_0x2cb6f6);else _0x2cb6f6=await _0x2299c4[_0x5b7de1(0xdb)](this,[..._0x537f92]),await _0x3adcde[_0x5b7de1(0xd3)](_0x5b7de1(0xca))[_0x5b7de1(0xcb)](_0x56bade,JSON[_0x5b7de1(0xd1)](_0x2cb6f6),_0x4c50cd);return _0x2cb6f6;},_0x160806;};}exports[a2_0x86004b(0xda)]=Cache;
1
+ 'use strict';const a2_0x2f2086=a2_0x3b0a;(function(_0x28c519,_0x222d0c){const _0x869968=a2_0x3b0a,_0x104989=_0x28c519();while(!![]){try{const _0x23c9f4=parseInt(_0x869968(0x85))/0x1*(parseInt(_0x869968(0x7a))/0x2)+parseInt(_0x869968(0x72))/0x3+parseInt(_0x869968(0x73))/0x4*(parseInt(_0x869968(0x7d))/0x5)+parseInt(_0x869968(0x7f))/0x6*(-parseInt(_0x869968(0x7b))/0x7)+parseInt(_0x869968(0x6a))/0x8*(parseInt(_0x869968(0x6f))/0x9)+-parseInt(_0x869968(0x81))/0xa+-parseInt(_0x869968(0x82))/0xb*(-parseInt(_0x869968(0x86))/0xc);if(_0x23c9f4===_0x222d0c)break;else _0x104989['push'](_0x104989['shift']());}catch(_0x24f09b){_0x104989['push'](_0x104989['shift']());}}}(a2_0x164b,0x6fcd6));Object[a2_0x2f2086(0x78)](exports,a2_0x2f2086(0x6d),{'value':!![]}),exports[a2_0x2f2086(0x7c)]=void 0x0;function a2_0x3b0a(_0x2b0eb2,_0x381dab){const _0x164b93=a2_0x164b();return a2_0x3b0a=function(_0x3b0abe,_0x59f32c){_0x3b0abe=_0x3b0abe-0x6a;let _0x1b64c4=_0x164b93[_0x3b0abe];return _0x1b64c4;},a2_0x3b0a(_0x2b0eb2,_0x381dab);}const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x2f2086(0x6c)),core_1=require(a2_0x2f2086(0x75));function Cache(_0x305b44,_0x22b293){return(_0xc23c8,_0x35336c,_0x5be932)=>{const _0x312efb=a2_0x3b0a,_0x27cebc=_0x5be932[_0x312efb(0x83)];return _0x5be932[_0x312efb(0x83)]=async function(..._0x181ce1){const _0x1b45de=_0x312efb;!_0x305b44&&(_0x305b44=(0x0,crypto_js_1[_0x1b45de(0x88)])(JSON[_0x1b45de(0x71)](_0x181ce1))[_0x1b45de(0x77)]());let _0x2b08c2=await this[core_1[_0x1b45de(0x79)]][_0x1b45de(0x87)][_0x1b45de(0x76)]()[_0x1b45de(0x6e)](CacheService_1[_0x1b45de(0x74)]),_0x28fc44=await _0x2b08c2[_0x1b45de(0x89)](_0x1b45de(0x70))[_0x1b45de(0x7e)](_0x305b44);if(_0x28fc44)return JSON[_0x1b45de(0x6b)](_0x28fc44);else _0x28fc44=await _0x27cebc[_0x1b45de(0x80)](this,[..._0x181ce1]),await _0x2b08c2[_0x1b45de(0x89)](_0x1b45de(0x70))[_0x1b45de(0x84)](_0x305b44,JSON[_0x1b45de(0x71)](_0x28fc44),_0x22b293);return _0x28fc44;},_0x5be932;};}exports['Cache']=Cache;function a2_0x164b(){const _0x59e5c5=['getApplicationContext','toString','defineProperty','REQUEST_OBJ_CTX_KEY','58ELWepA','3721809wdwKbN','Cache','25HSDKMf','get','6oQzjSg','apply','4567800wGFlJF','11cGfCBo','value','set','10181FovnTx','638868YebxYS','app','MD5','use','3336ALzIVj','parse','../service/CacheService','__esModule','getAsync','7515keLjvR','MethodDecorator','stringify','1900683PwAuUy','92932TsNusC','CacheService','@midwayjs/core'];a2_0x164b=function(){return _0x59e5c5;};return a2_0x164b();}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0x5452c0=a3_0x5f07;(function(_0x342c26,_0x36f13d){var _0x98b088=a3_0x5f07,_0x4ba025=_0x342c26();while(!![]){try{var _0x87dfdf=-parseInt(_0x98b088(0x126))/0x1*(parseInt(_0x98b088(0x125))/0x2)+parseInt(_0x98b088(0x120))/0x3+parseInt(_0x98b088(0x128))/0x4*(parseInt(_0x98b088(0x121))/0x5)+-parseInt(_0x98b088(0x124))/0x6+-parseInt(_0x98b088(0x11d))/0x7*(-parseInt(_0x98b088(0x123))/0x8)+parseInt(_0x98b088(0x11b))/0x9+-parseInt(_0x98b088(0x127))/0xa;if(_0x87dfdf===_0x36f13d)break;else _0x4ba025['push'](_0x4ba025['shift']());}catch(_0x1df698){_0x4ba025['push'](_0x4ba025['shift']());}}}(a3_0x41e9,0x9de3e));Object['defineProperty'](exports,a3_0x5452c0(0x11e),{'value':!![]}),exports[a3_0x5452c0(0x122)]=exports[a3_0x5452c0(0x11f)]=exports[a3_0x5452c0(0x12a)]=void 0x0;function a3_0x5f07(_0x57f98c,_0x7453d1){var _0x41e975=a3_0x41e9();return a3_0x5f07=function(_0x5f07cb,_0x5b3d84){_0x5f07cb=_0x5f07cb-0x11b;var _0x55675f=_0x41e975[_0x5f07cb];return _0x55675f;},a3_0x5f07(_0x57f98c,_0x7453d1);}var configuration_1=require('./configuration');function a3_0x41e9(){var _0x1b0946=['Configuration','./decorator/Cache','CustomConfiguration','10955916hZKOab','./service/CacheService','7PTSByq','__esModule','Cache','2397432jKiCaS','40KxBvob','CacheService','4208024XWHtQd','853392BqkAka','880708AlASxi','2gwAKlk','16470850zkeIyC','387136IIJgke','defineProperty'];a3_0x41e9=function(){return _0x1b0946;};return a3_0x41e9();}Object[a3_0x5452c0(0x129)](exports,a3_0x5452c0(0x12a),{'enumerable':!![],'get':function(){var _0x531f29=a3_0x5452c0;return configuration_1[_0x531f29(0x12c)];}});var Cache_1=require(a3_0x5452c0(0x12b));Object[a3_0x5452c0(0x129)](exports,'Cache',{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x5452c0(0x11c));Object['defineProperty'](exports,a3_0x5452c0(0x122),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
1
+ 'use strict';function a3_0x34fb(_0x5d6e4e,_0x52aba9){var _0x50c88c=a3_0x50c8();return a3_0x34fb=function(_0x34fbc1,_0x230a23){_0x34fbc1=_0x34fbc1-0x94;var _0x4e67ff=_0x50c88c[_0x34fbc1];return _0x4e67ff;},a3_0x34fb(_0x5d6e4e,_0x52aba9);}var a3_0x42ae6f=a3_0x34fb;(function(_0x4ea0f8,_0x1fa86c){var _0x2b6ea8=a3_0x34fb,_0x3bb32a=_0x4ea0f8();while(!![]){try{var _0x174117=-parseInt(_0x2b6ea8(0x96))/0x1*(-parseInt(_0x2b6ea8(0x94))/0x2)+parseInt(_0x2b6ea8(0xa5))/0x3+parseInt(_0x2b6ea8(0x9b))/0x4*(parseInt(_0x2b6ea8(0xa6))/0x5)+-parseInt(_0x2b6ea8(0x9a))/0x6+-parseInt(_0x2b6ea8(0xa0))/0x7*(parseInt(_0x2b6ea8(0x9e))/0x8)+-parseInt(_0x2b6ea8(0xa3))/0x9*(parseInt(_0x2b6ea8(0x9f))/0xa)+-parseInt(_0x2b6ea8(0x95))/0xb*(-parseInt(_0x2b6ea8(0xa1))/0xc);if(_0x174117===_0x1fa86c)break;else _0x3bb32a['push'](_0x3bb32a['shift']());}catch(_0x2f9fd5){_0x3bb32a['push'](_0x3bb32a['shift']());}}}(a3_0x50c8,0x41cd5));Object[a3_0x42ae6f(0x9d)](exports,a3_0x42ae6f(0x99),{'value':!![]}),exports[a3_0x42ae6f(0xa4)]=exports[a3_0x42ae6f(0x97)]=exports[a3_0x42ae6f(0x98)]=void 0x0;var configuration_1=require('./configuration');Object['defineProperty'](exports,a3_0x42ae6f(0x98),{'enumerable':!![],'get':function(){var _0x152310=a3_0x42ae6f;return configuration_1[_0x152310(0x9c)];}});function a3_0x50c8(){var _0x459771=['2ngxRoO','3091oIuAwA','205531bbXmjy','Cache','Configuration','__esModule','1435122CLyGeE','82292urPApB','CustomConfiguration','defineProperty','3664152uNWDEB','970dJznzY','7bojNif','21828yKUASW','./service/CacheService','31491DfgGZF','CacheService','1459797FdkZTS','25YXXXnF'];a3_0x50c8=function(){return _0x459771;};return a3_0x50c8();}var Cache_1=require('./decorator/Cache');Object['defineProperty'](exports,a3_0x42ae6f(0x97),{'enumerable':!![],'get':function(){var _0xc74290=a3_0x42ae6f;return Cache_1[_0xc74290(0x97)];}});var CacheService_1=require(a3_0x42ae6f(0xa2));Object[a3_0x42ae6f(0x9d)](exports,a3_0x42ae6f(0xa4),{'enumerable':!![],'get':function(){var _0x376e75=a3_0x42ae6f;return CacheService_1[_0x376e75(0xa4)];}});
@@ -1 +1 @@
1
- 'use strict';function a4_0x3c10(_0x28ab17,_0x5b00b7){var _0x20e551=a4_0x20e5();return a4_0x3c10=function(_0x3c10aa,_0xc62284){_0x3c10aa=_0x3c10aa-0xdf;var _0x3f6768=_0x20e551[_0x3c10aa];return _0x3f6768;},a4_0x3c10(_0x28ab17,_0x5b00b7);}var a4_0x1d8ced=a4_0x3c10;(function(_0x54bce7,_0x11ddbc){var _0x3970c5=a4_0x3c10,_0x1180d5=_0x54bce7();while(!![]){try{var _0x430cec=parseInt(_0x3970c5(0xe2))/0x1*(-parseInt(_0x3970c5(0xea))/0x2)+parseInt(_0x3970c5(0xe4))/0x3*(-parseInt(_0x3970c5(0x102))/0x4)+parseInt(_0x3970c5(0xf1))/0x5*(parseInt(_0x3970c5(0xfa))/0x6)+-parseInt(_0x3970c5(0xef))/0x7+parseInt(_0x3970c5(0xf7))/0x8+parseInt(_0x3970c5(0xfe))/0x9+-parseInt(_0x3970c5(0x10a))/0xa*(-parseInt(_0x3970c5(0xfb))/0xb);if(_0x430cec===_0x11ddbc)break;else _0x1180d5['push'](_0x1180d5['shift']());}catch(_0x24e680){_0x1180d5['push'](_0x1180d5['shift']());}}}(a4_0x20e5,0x81fa3));var __decorate=this&&this['__decorate']||function(_0x142a04,_0x28a4de,_0x430738,_0x796c74){var _0x762a3d=a4_0x3c10,_0x435023=arguments['length'],_0x4615c3=_0x435023<0x3?_0x28a4de:_0x796c74===null?_0x796c74=Object['getOwnPropertyDescriptor'](_0x28a4de,_0x430738):_0x796c74,_0x14f59b;if(typeof Reflect===_0x762a3d(0xff)&&typeof Reflect[_0x762a3d(0xe7)]===_0x762a3d(0x107))_0x4615c3=Reflect[_0x762a3d(0xe7)](_0x142a04,_0x28a4de,_0x430738,_0x796c74);else{for(var _0x311ace=_0x142a04[_0x762a3d(0xe6)]-0x1;_0x311ace>=0x0;_0x311ace--)if(_0x14f59b=_0x142a04[_0x311ace])_0x4615c3=(_0x435023<0x3?_0x14f59b(_0x4615c3):_0x435023>0x3?_0x14f59b(_0x28a4de,_0x430738,_0x4615c3):_0x14f59b(_0x28a4de,_0x430738))||_0x4615c3;}return _0x435023>0x3&&_0x4615c3&&Object[_0x762a3d(0xf9)](_0x28a4de,_0x430738,_0x4615c3),_0x4615c3;},__metadata=this&&this[a4_0x1d8ced(0x105)]||function(_0x1aff53,_0x2043ef){var _0x31b523=a4_0x1d8ced;if(typeof Reflect===_0x31b523(0xff)&&typeof Reflect[_0x31b523(0xeb)]===_0x31b523(0x107))return Reflect['metadata'](_0x1aff53,_0x2043ef);};function a4_0x20e5(){var _0x373a81=['535jCkvtR','prefix','hset','reset','set','design:type','3645160CPqarD','options','defineProperty','21138JANiyY','68717gsdJGL','ScopeEnum','config','4388499JHStOI','object','store','stores','3669036lznyyK','del','cache','__metadata','caching','function','file','Config','860vLEkuH','use','Scope','get','1KNQZFT','Provide','3dHzvAD','hdel','length','decorate','clients','__esModule','810518ktjauR','metadata','has','prototype','default','17878rWbiOY','cache-manager'];a4_0x20e5=function(){return _0x373a81;};return a4_0x20e5();}Object[a4_0x1d8ced(0xf9)](exports,a4_0x1d8ced(0xe9),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require(a4_0x1d8ced(0xf0)),decorator_1=require('@midwayjs/decorator');let CacheService=class CacheService{constructor(){var _0x2bd96d=a4_0x1d8ced;this[_0x2bd96d(0x104)]=undefined,this['clients']=new Map();}[a4_0x1d8ced(0xdf)](_0x3c5bce){var _0x175d3a=a4_0x1d8ced,_0x5a67b5,_0x581ecd;if(!this[_0x175d3a(0x104)]){const _0x3518bc=((_0x5a67b5=this[_0x175d3a(0xfd)][_0x175d3a(0x101)])===null||_0x5a67b5===void 0x0?void 0x0:_0x5a67b5[(_0x581ecd=this[_0x175d3a(0xfd)][_0x175d3a(0x104)])===null||_0x581ecd===void 0x0?void 0x0:_0x581ecd[_0x175d3a(0xee)]])||this[_0x175d3a(0xfd)]['stores'][_0x175d3a(0x108)];this[_0x175d3a(0x104)]=cacheManager[_0x175d3a(0x106)]({..._0x3518bc[_0x175d3a(0xf8)],'store':_0x3518bc[_0x175d3a(0x100)]});}return!this[_0x175d3a(0xe8)][_0x175d3a(0xec)](_0x3c5bce)&&this[_0x175d3a(0xe8)][_0x175d3a(0xf5)](_0x3c5bce,new CacheHandler(_0x3c5bce,this[_0x175d3a(0x104)])),this[_0x175d3a(0xe8)][_0x175d3a(0xe1)](_0x3c5bce);}async['reset'](){var _0x19364d=a4_0x1d8ced;return await this[_0x19364d(0x104)][_0x19364d(0xf4)]();}};__decorate([(0x0,decorator_1[a4_0x1d8ced(0x109)])(a4_0x1d8ced(0x104)),__metadata(a4_0x1d8ced(0xf6),Object)],CacheService[a4_0x1d8ced(0xed)],a4_0x1d8ced(0xfd),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x1d8ced(0xe3)])(),(0x0,decorator_1[a4_0x1d8ced(0xe0)])(decorator_1[a4_0x1d8ced(0xfc)]['Singleton'])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x3fba4f,_0x216cd1){var _0x3c1a31=a4_0x1d8ced;this[_0x3c1a31(0x104)]=_0x216cd1,this[_0x3c1a31(0xf2)]=_0x3fba4f;}async[a4_0x1d8ced(0x103)](_0x460fcc){var _0x28f55c=a4_0x1d8ced;return await this[_0x28f55c(0x104)]['del'](this[_0x28f55c(0xf2)]+':'+_0x460fcc);}async[a4_0x1d8ced(0xf5)](_0x516796,_0x57abe1,_0x568ed2){var _0x59fde4=a4_0x1d8ced;return await this[_0x59fde4(0x104)][_0x59fde4(0xf5)](this[_0x59fde4(0xf2)]+':'+_0x516796,_0x57abe1,_0x568ed2);}async['get'](_0x5c959a,_0x2bf5ef){return new Promise((_0x11dc87,_0x16dfbf)=>{var _0x4e4b55=a4_0x3c10;this[_0x4e4b55(0x104)]['get'](this[_0x4e4b55(0xf2)]+':'+_0x5c959a,(_0x4b4b52,_0x7bb4d0)=>{_0x4b4b52?_0x16dfbf(_0x4b4b52):_0x11dc87(_0x7bb4d0||_0x2bf5ef);});});}async[a4_0x1d8ced(0xe5)](_0x6a840b,_0x58ee37){var _0xed1f6a=a4_0x1d8ced;return await this[_0xed1f6a(0x103)](_0x6a840b+'-'+_0x58ee37);}async[a4_0x1d8ced(0xf3)](_0x42b9bb,_0x23c171,_0x929099,_0xa937c1){var _0x2f18c2=a4_0x1d8ced;return await this[_0x2f18c2(0xf5)](_0x42b9bb+'-'+_0x23c171,_0x929099,_0xa937c1);}async['hget'](_0x385570,_0x44b8c7,_0x21d885){return await this['get'](_0x385570+'-'+_0x44b8c7,_0x21d885);}}
1
+ 'use strict';var a4_0x29b996=a4_0x4079;function a4_0x4079(_0x1b1653,_0x2d3d10){var _0x178f9d=a4_0x178f();return a4_0x4079=function(_0x40790f,_0x2be250){_0x40790f=_0x40790f-0xd3;var _0x2bcd74=_0x178f9d[_0x40790f];return _0x2bcd74;},a4_0x4079(_0x1b1653,_0x2d3d10);}(function(_0x3bcdea,_0x29d6d9){var _0x3927d0=a4_0x4079,_0x193da8=_0x3bcdea();while(!![]){try{var _0x5e1773=parseInt(_0x3927d0(0xff))/0x1+parseInt(_0x3927d0(0xeb))/0x2*(-parseInt(_0x3927d0(0xf8))/0x3)+parseInt(_0x3927d0(0xf5))/0x4+parseInt(_0x3927d0(0xef))/0x5*(-parseInt(_0x3927d0(0xfe))/0x6)+parseInt(_0x3927d0(0xec))/0x7*(-parseInt(_0x3927d0(0xea))/0x8)+-parseInt(_0x3927d0(0xdf))/0x9*(-parseInt(_0x3927d0(0xf4))/0xa)+parseInt(_0x3927d0(0xf0))/0xb*(parseInt(_0x3927d0(0xde))/0xc);if(_0x5e1773===_0x29d6d9)break;else _0x193da8['push'](_0x193da8['shift']());}catch(_0x2437fb){_0x193da8['push'](_0x193da8['shift']());}}}(a4_0x178f,0xae897));function a4_0x178f(){var _0x483f20=['cache-manager','default','file','__metadata','1080OgIjUu','881006xSDZdQ','prefix','caching','options','cache','ScopeEnum','hget','Provide','del','hdel','length','set','36xNvLgK','25884OJKWqo','get','metadata','function','design:type','decorate','CacheService','use','defineProperty','Config','store','8jNkfHH','8mwHzwc','7872361FLNIUX','Scope','stores','2160LWxMDW','3175293uSDiMl','has','object','prototype','40umENXr','3586780dclHJp','getOwnPropertyDescriptor','config','553431ddSqHl','clients'];a4_0x178f=function(){return _0x483f20;};return a4_0x178f();}var __decorate=this&&this['__decorate']||function(_0x230c12,_0x5bd1b8,_0x1c1b65,_0x5a4293){var _0x593a1c=a4_0x4079,_0x27e408=arguments[_0x593a1c(0xdc)],_0x591706=_0x27e408<0x3?_0x5bd1b8:_0x5a4293===null?_0x5a4293=Object[_0x593a1c(0xf6)](_0x5bd1b8,_0x1c1b65):_0x5a4293,_0x597e07;if(typeof Reflect===_0x593a1c(0xf2)&&typeof Reflect['decorate']===_0x593a1c(0xe2))_0x591706=Reflect[_0x593a1c(0xe4)](_0x230c12,_0x5bd1b8,_0x1c1b65,_0x5a4293);else{for(var _0x3aae4f=_0x230c12[_0x593a1c(0xdc)]-0x1;_0x3aae4f>=0x0;_0x3aae4f--)if(_0x597e07=_0x230c12[_0x3aae4f])_0x591706=(_0x27e408<0x3?_0x597e07(_0x591706):_0x27e408>0x3?_0x597e07(_0x5bd1b8,_0x1c1b65,_0x591706):_0x597e07(_0x5bd1b8,_0x1c1b65))||_0x591706;}return _0x27e408>0x3&&_0x591706&&Object['defineProperty'](_0x5bd1b8,_0x1c1b65,_0x591706),_0x591706;},__metadata=this&&this[a4_0x29b996(0xfd)]||function(_0x219b79,_0x7d43d){var _0x5255fc=a4_0x29b996;if(typeof Reflect==='object'&&typeof Reflect[_0x5255fc(0xe1)]==='function')return Reflect[_0x5255fc(0xe1)](_0x219b79,_0x7d43d);};Object[a4_0x29b996(0xe7)](exports,'__esModule',{'value':!![]}),exports[a4_0x29b996(0xe5)]=void 0x0;const cacheManager=require(a4_0x29b996(0xfa)),decorator_1=require('@midwayjs/decorator');let CacheService=class CacheService{constructor(){var _0x5ce928=a4_0x29b996;this[_0x5ce928(0xd6)]=undefined,this[_0x5ce928(0xf9)]=new Map();}[a4_0x29b996(0xe6)](_0x323c69){var _0x38d769=a4_0x29b996,_0x55c27d,_0x37fa5c;if(!this[_0x38d769(0xd6)]){const _0xbeedc9=((_0x55c27d=this[_0x38d769(0xf7)][_0x38d769(0xee)])===null||_0x55c27d===void 0x0?void 0x0:_0x55c27d[(_0x37fa5c=this[_0x38d769(0xf7)]['cache'])===null||_0x37fa5c===void 0x0?void 0x0:_0x37fa5c[_0x38d769(0xfb)]])||this[_0x38d769(0xf7)]['stores'][_0x38d769(0xfc)];this[_0x38d769(0xd6)]=cacheManager[_0x38d769(0xd4)]({..._0xbeedc9[_0x38d769(0xd5)],'store':_0xbeedc9[_0x38d769(0xe9)]});}return!this[_0x38d769(0xf9)][_0x38d769(0xf1)](_0x323c69)&&this[_0x38d769(0xf9)][_0x38d769(0xdd)](_0x323c69,new CacheHandler(_0x323c69,this['cache'])),this[_0x38d769(0xf9)]['get'](_0x323c69);}async['reset'](){return await this['cache']['reset']();}};__decorate([(0x0,decorator_1[a4_0x29b996(0xe8)])(a4_0x29b996(0xd6)),__metadata(a4_0x29b996(0xe3),Object)],CacheService[a4_0x29b996(0xf3)],a4_0x29b996(0xf7),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x29b996(0xd9)])(),(0x0,decorator_1[a4_0x29b996(0xed)])(decorator_1[a4_0x29b996(0xd7)]['Singleton'])],CacheService),exports[a4_0x29b996(0xe5)]=CacheService;class CacheHandler{constructor(_0x287ca2,_0x2bd038){var _0x6786bb=a4_0x29b996;this[_0x6786bb(0xd6)]=_0x2bd038,this[_0x6786bb(0xd3)]=_0x287ca2;}async[a4_0x29b996(0xda)](_0xcb1d8e){var _0x4ee038=a4_0x29b996;return await this['cache'][_0x4ee038(0xda)](this['prefix']+':'+_0xcb1d8e);}async[a4_0x29b996(0xdd)](_0x7a5f8a,_0x42a103,_0x50effd){var _0x1e2e8b=a4_0x29b996;return await this['cache'][_0x1e2e8b(0xdd)](this[_0x1e2e8b(0xd3)]+':'+_0x7a5f8a,_0x42a103,_0x50effd);}async[a4_0x29b996(0xe0)](_0x5ba53f,_0x32f598){return new Promise((_0x19d5a3,_0x3a7ca5)=>{var _0x420493=a4_0x4079;this['cache'][_0x420493(0xe0)](this[_0x420493(0xd3)]+':'+_0x5ba53f,(_0x46bb36,_0x97fe7a)=>{_0x46bb36?_0x3a7ca5(_0x46bb36):_0x19d5a3(_0x97fe7a||_0x32f598);});});}async[a4_0x29b996(0xdb)](_0x4fc0fc,_0x3895d8){var _0x23f5e8=a4_0x29b996;return await this[_0x23f5e8(0xda)](_0x4fc0fc+'-'+_0x3895d8);}async['hset'](_0x55f02c,_0x250671,_0x5a1e99,_0x3bcf33){return await this['set'](_0x55f02c+'-'+_0x250671,_0x5a1e99,_0x3bcf33);}async[a4_0x29b996(0xd8)](_0x1d1c5a,_0x5e6a5f,_0x4c836e){var _0x265a1e=a4_0x29b996;return await this[_0x265a1e(0xe0)](_0x1d1c5a+'-'+_0x5e6a5f,_0x4c836e);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
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": "1ff379ce4e785376983b20bd452defb97c4a3fa9"
26
+ "gitHead": "07b18cdff0ae955e2924e978cc477726c7c51046"
27
27
  }