@anncic-api/cache 1.4.9 → 1.4.10

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_0x35744e=a0_0x4d90;(function(_0x23be49,_0x597112){const _0x25e54e=a0_0x4d90,_0x42a53b=_0x23be49();while(!![]){try{const _0xd34304=parseInt(_0x25e54e(0x103))/0x1+-parseInt(_0x25e54e(0x101))/0x2*(-parseInt(_0x25e54e(0x100))/0x3)+parseInt(_0x25e54e(0xf8))/0x4*(-parseInt(_0x25e54e(0x106))/0x5)+-parseInt(_0x25e54e(0xfa))/0x6+-parseInt(_0x25e54e(0xf7))/0x7*(-parseInt(_0x25e54e(0xf9))/0x8)+parseInt(_0x25e54e(0xff))/0x9+parseInt(_0x25e54e(0xfd))/0xa*(-parseInt(_0x25e54e(0xfe))/0xb);if(_0xd34304===_0x597112)break;else _0x42a53b['push'](_0x42a53b['shift']());}catch(_0x37e838){_0x42a53b['push'](_0x42a53b['shift']());}}}(a0_0x4b31,0x69d53));function a0_0x4d90(_0x103ba0,_0x5c2c67){const _0x4b3182=a0_0x4b31();return a0_0x4d90=function(_0x4d9013,_0x59051c){_0x4d9013=_0x4d9013-0xf7;let _0x6c587b=_0x4b3182[_0x4d9013];return _0x6c587b;},a0_0x4d90(_0x103ba0,_0x5c2c67);}function a0_0x4b31(){const _0xaa0cb9=['4194747EVQjAp','19347aAunQd','154qjxhXV','127.0.0.1','525691vxzHgr','appDir','/runtime/.cache','2945dVzahr','name','cache-manager-ioredis','cache-manager-fs-hash','35xxIodD','132McazDl','1284104aeAHPF','995970NLJEQh','__esModule','default','1519990qxksyZ','121zFhkZO'];a0_0x4b31=function(){return _0xaa0cb9;};return a0_0x4b31();}Object['defineProperty'](exports,a0_0x35744e(0xfb),{'value':!![]});const fsStore=require(a0_0x35744e(0x109)),redisStore=require(a0_0x35744e(0x108));exports[a0_0x35744e(0xfc)]=_0x1b5e85=>{const _0x17a88f=a0_0x35744e;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x1b5e85[_0x17a88f(0x104)]+_0x17a88f(0x105)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x17a88f(0x102),'password':'','ttl':0x1e13380,'keyPrefix':_0x1b5e85[_0x17a88f(0x107)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0x2e517c=a0_0xb40e;(function(_0x59a2b2,_0x18975f){const _0x379bd1=a0_0xb40e,_0x25a1c6=_0x59a2b2();while(!![]){try{const _0x9f416a=parseInt(_0x379bd1(0x154))/0x1+-parseInt(_0x379bd1(0x153))/0x2*(-parseInt(_0x379bd1(0x152))/0x3)+parseInt(_0x379bd1(0x15b))/0x4*(parseInt(_0x379bd1(0x14f))/0x5)+parseInt(_0x379bd1(0x157))/0x6+parseInt(_0x379bd1(0x150))/0x7+-parseInt(_0x379bd1(0x156))/0x8*(parseInt(_0x379bd1(0x155))/0x9)+-parseInt(_0x379bd1(0x158))/0xa;if(_0x9f416a===_0x18975f)break;else _0x25a1c6['push'](_0x25a1c6['shift']());}catch(_0x1cf56a){_0x25a1c6['push'](_0x25a1c6['shift']());}}}(a0_0x2940,0xad07b));Object['defineProperty'](exports,'__esModule',{'value':!![]});function a0_0x2940(){const _0x2cd4f5=['1477847GXiFGo','127.0.0.1','1529124nwecQU','2PsuwpQ','702300sWrjzR','396909kobOPV','136iBxUJp','1315110IkLEol','15880790CmtCLv','/runtime/.cache','default','5616852kOItTg','cache-manager-fs-hash','appDir','5wUmEHD'];a0_0x2940=function(){return _0x2cd4f5;};return a0_0x2940();}function a0_0xb40e(_0x3bffcd,_0xc1c3e5){const _0x29406e=a0_0x2940();return a0_0xb40e=function(_0xb40ec,_0x2311d1){_0xb40ec=_0xb40ec-0x14d;let _0x166d31=_0x29406e[_0xb40ec];return _0x166d31;},a0_0xb40e(_0x3bffcd,_0xc1c3e5);}const fsStore=require(a0_0x2e517c(0x14d)),redisStore=require('cache-manager-ioredis');exports[a0_0x2e517c(0x15a)]=_0x4cc977=>{const _0x14dfc9=a0_0x2e517c;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x4cc977[_0x14dfc9(0x14e)]+_0x14dfc9(0x159)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x14dfc9(0x151),'password':'','ttl':0x1e13380,'keyPrefix':_0x4cc977['name']+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';var a1_0x572650=a1_0x1352;(function(_0x8e0e1,_0x5ba80e){var _0x290a10=a1_0x1352,_0x5add90=_0x8e0e1();while(!![]){try{var _0x4b4083=-parseInt(_0x290a10(0xa6))/0x1*(parseInt(_0x290a10(0x9e))/0x2)+-parseInt(_0x290a10(0xa4))/0x3+parseInt(_0x290a10(0x91))/0x4+-parseInt(_0x290a10(0xa0))/0x5*(parseInt(_0x290a10(0x90))/0x6)+parseInt(_0x290a10(0x9b))/0x7*(parseInt(_0x290a10(0xa5))/0x8)+parseInt(_0x290a10(0x96))/0x9*(-parseInt(_0x290a10(0x98))/0xa)+parseInt(_0x290a10(0x94))/0xb*(parseInt(_0x290a10(0x93))/0xc);if(_0x4b4083===_0x5ba80e)break;else _0x5add90['push'](_0x5add90['shift']());}catch(_0x22be4e){_0x5add90['push'](_0x5add90['shift']());}}}(a1_0x12b6,0x7b3ab));var __decorate=this&&this[a1_0x572650(0x9a)]||function(_0x3a2798,_0x3446b5,_0x4851f9,_0x3b56c6){var _0x125de7=a1_0x572650,_0x396c6e=arguments[_0x125de7(0xa3)],_0x1b4124=_0x396c6e<0x3?_0x3446b5:_0x3b56c6===null?_0x3b56c6=Object[_0x125de7(0x97)](_0x3446b5,_0x4851f9):_0x3b56c6,_0x14dcef;if(typeof Reflect===_0x125de7(0x9d)&&typeof Reflect[_0x125de7(0x9f)]===_0x125de7(0x95))_0x1b4124=Reflect[_0x125de7(0x9f)](_0x3a2798,_0x3446b5,_0x4851f9,_0x3b56c6);else{for(var _0x1f9f9e=_0x3a2798['length']-0x1;_0x1f9f9e>=0x0;_0x1f9f9e--)if(_0x14dcef=_0x3a2798[_0x1f9f9e])_0x1b4124=(_0x396c6e<0x3?_0x14dcef(_0x1b4124):_0x396c6e>0x3?_0x14dcef(_0x3446b5,_0x4851f9,_0x1b4124):_0x14dcef(_0x3446b5,_0x4851f9))||_0x1b4124;}return _0x396c6e>0x3&&_0x1b4124&&Object[_0x125de7(0xa2)](_0x3446b5,_0x4851f9,_0x1b4124),_0x1b4124;};Object[a1_0x572650(0xa2)](exports,a1_0x572650(0xa1),{'value':!![]}),exports[a1_0x572650(0x99)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x572650(0x9c));function a1_0x1352(_0x51f49e,_0x2fda23){var _0x12b6b2=a1_0x12b6();return a1_0x1352=function(_0x135209,_0x43e067){_0x135209=_0x135209-0x90;var _0x1b3982=_0x12b6b2[_0x135209];return _0x1b3982;},a1_0x1352(_0x51f49e,_0x2fda23);}let CustomConfiguration=class CustomConfiguration{};function a1_0x12b6(){var _0x32d708=['740245gElIAW','function','196902AgUynK','getOwnPropertyDescriptor','220jhZDoY','CustomConfiguration','__decorate','5846645bLeReB','./config/config.default','object','44qcSsEB','decorate','9100FzwtVT','__esModule','defineProperty','length','376875NVtzcZ','8tIZclH','34519PmHCbk','204RlyXOy','1699204jyhepV','Configuration','120sLSbRd'];a1_0x12b6=function(){return _0x32d708;};return a1_0x12b6();}CustomConfiguration=__decorate([(0x0,core_1[a1_0x572650(0x92)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
1
+ 'use strict';function a1_0x2155(_0x132cd7,_0x43f4ed){var _0x12b040=a1_0x12b0();return a1_0x2155=function(_0x21555e,_0x12f49d){_0x21555e=_0x21555e-0xf2;var _0xa7723b=_0x12b040[_0x21555e];return _0xa7723b;},a1_0x2155(_0x132cd7,_0x43f4ed);}var a1_0xf9fe12=a1_0x2155;(function(_0x14b9da,_0x26401a){var _0x10a93d=a1_0x2155,_0x5b9205=_0x14b9da();while(!![]){try{var _0x2a012c=parseInt(_0x10a93d(0x101))/0x1+-parseInt(_0x10a93d(0xf4))/0x2*(parseInt(_0x10a93d(0xf7))/0x3)+parseInt(_0x10a93d(0xf6))/0x4+-parseInt(_0x10a93d(0xf3))/0x5+parseInt(_0x10a93d(0x100))/0x6+parseInt(_0x10a93d(0xf8))/0x7+parseInt(_0x10a93d(0xf9))/0x8*(-parseInt(_0x10a93d(0xfe))/0x9);if(_0x2a012c===_0x26401a)break;else _0x5b9205['push'](_0x5b9205['shift']());}catch(_0x28298f){_0x5b9205['push'](_0x5b9205['shift']());}}}(a1_0x12b0,0x6b4cb));function a1_0x12b0(){var _0x35afd1=['./config/config.default','object','CustomConfiguration','2060901ltaAKk','defineProperty','3167592rZJErM','435411mLIMKw','__decorate','__esModule','getOwnPropertyDescriptor','3304040dktdgO','28526rVVmiN','length','3356200rVGYNZ','6LyeVRY','3299695xEdhsP','40ouwENR','decorate'];a1_0x12b0=function(){return _0x35afd1;};return a1_0x12b0();}var __decorate=this&&this[a1_0xf9fe12(0x102)]||function(_0x26f605,_0x530102,_0x4c8ae1,_0x4cacfd){var _0x337a77=a1_0xf9fe12,_0x3ea71c=arguments[_0x337a77(0xf5)],_0x1cd216=_0x3ea71c<0x3?_0x530102:_0x4cacfd===null?_0x4cacfd=Object[_0x337a77(0xf2)](_0x530102,_0x4c8ae1):_0x4cacfd,_0x5f59bd;if(typeof Reflect===_0x337a77(0xfc)&&typeof Reflect['decorate']==='function')_0x1cd216=Reflect[_0x337a77(0xfa)](_0x26f605,_0x530102,_0x4c8ae1,_0x4cacfd);else{for(var _0x5928d2=_0x26f605[_0x337a77(0xf5)]-0x1;_0x5928d2>=0x0;_0x5928d2--)if(_0x5f59bd=_0x26f605[_0x5928d2])_0x1cd216=(_0x3ea71c<0x3?_0x5f59bd(_0x1cd216):_0x3ea71c>0x3?_0x5f59bd(_0x530102,_0x4c8ae1,_0x1cd216):_0x5f59bd(_0x530102,_0x4c8ae1))||_0x1cd216;}return _0x3ea71c>0x3&&_0x1cd216&&Object[_0x337a77(0xff)](_0x530102,_0x4c8ae1,_0x1cd216),_0x1cd216;};Object[a1_0xf9fe12(0xff)](exports,a1_0xf9fe12(0x103),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0xf9fe12(0xfb));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0xf9fe12(0xfd)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0x43150f=a2_0x11b0;function a2_0x228f(){const _0x903eaf=['getApplicationContext','MD5','Method::Decorator','use','4354506xsaoVK','210906GZoFIv','apply','5119640UYGvhK','2wTlRXY','3198460vHDvCL','defineProperty','stringify','value','CacheService','../service/CacheService','582857oFYEoS','getAsync','app','1332348NjvDXt','@midwayjs/core','3ytcEoL','REQUEST_OBJ_CTX_KEY','crypto-js','get','__esModule','Cache','77BaZHVE','4730990LZvmgn'];a2_0x228f=function(){return _0x903eaf;};return a2_0x228f();}(function(_0x1e5a95,_0x31729f){const _0x2fbd6f=a2_0x11b0,_0x5a5dc8=_0x1e5a95();while(!![]){try{const _0x2429e8=parseInt(_0x2fbd6f(0xa4))/0x1*(parseInt(_0x2fbd6f(0x9d))/0x2)+-parseInt(_0x2fbd6f(0xa9))/0x3*(parseInt(_0x2fbd6f(0xa7))/0x4)+parseInt(_0x2fbd6f(0x9e))/0x5+parseInt(_0x2fbd6f(0x9a))/0x6*(parseInt(_0x2fbd6f(0xaf))/0x7)+-parseInt(_0x2fbd6f(0x9c))/0x8+-parseInt(_0x2fbd6f(0x99))/0x9+parseInt(_0x2fbd6f(0xb0))/0xa;if(_0x2429e8===_0x31729f)break;else _0x5a5dc8['push'](_0x5a5dc8['shift']());}catch(_0x15910f){_0x5a5dc8['push'](_0x5a5dc8['shift']());}}}(a2_0x228f,0x98b19));Object[a2_0x43150f(0x9f)](exports,a2_0x43150f(0xad),{'value':!![]}),exports[a2_0x43150f(0xae)]=void 0x0;function a2_0x11b0(_0x1b8cd5,_0x12bd81){const _0x228f55=a2_0x228f();return a2_0x11b0=function(_0x11b0df,_0x557b58){_0x11b0df=_0x11b0df-0x99;let _0x26e27a=_0x228f55[_0x11b0df];return _0x26e27a;},a2_0x11b0(_0x1b8cd5,_0x12bd81);}const crypto_js_1=require(a2_0x43150f(0xab)),CacheService_1=require(a2_0x43150f(0xa3)),core_1=require(a2_0x43150f(0xa8));function Cache(_0x2612c6,_0x4c3145){return(_0x47c867,_0x180b3b,_0x38b22c)=>{const _0x17cac3=a2_0x11b0,_0x2919bf=_0x38b22c[_0x17cac3(0xa1)];return _0x38b22c['value']=async function(..._0x4b7ac6){const _0x4d3287=_0x17cac3;!_0x2612c6&&(_0x2612c6=(0x0,crypto_js_1[_0x4d3287(0xb2)])(JSON[_0x4d3287(0xa0)](_0x4b7ac6))['toString']());let _0x36e04f=await this[core_1[_0x4d3287(0xaa)]][_0x4d3287(0xa6)][_0x4d3287(0xb1)]()[_0x4d3287(0xa5)](CacheService_1[_0x4d3287(0xa2)]),_0x2b7bcc=await _0x36e04f[_0x4d3287(0xb4)](_0x4d3287(0xb3))[_0x4d3287(0xac)](_0x2612c6);if(_0x2b7bcc)return JSON['parse'](_0x2b7bcc);else _0x2b7bcc=await _0x2919bf[_0x4d3287(0x9b)](this,[..._0x4b7ac6]),await _0x36e04f[_0x4d3287(0xb4)](_0x4d3287(0xb3))['set'](_0x2612c6,JSON['stringify'](_0x2b7bcc),_0x4c3145);return _0x2b7bcc;},_0x38b22c;};}exports[a2_0x43150f(0xae)]=Cache;
1
+ 'use strict';const a2_0xc5dfc0=a2_0x44f3;function a2_0x44f3(_0x1bbcfc,_0x10241f){const _0x246f4e=a2_0x246f();return a2_0x44f3=function(_0x44f310,_0x1a0fe6){_0x44f310=_0x44f310-0xda;let _0x1598e5=_0x246f4e[_0x44f310];return _0x1598e5;},a2_0x44f3(_0x1bbcfc,_0x10241f);}(function(_0x3e2cbb,_0x1fcc60){const _0x47003b=a2_0x44f3,_0x4716fe=_0x3e2cbb();while(!![]){try{const _0x17db1c=parseInt(_0x47003b(0xdd))/0x1*(parseInt(_0x47003b(0xda))/0x2)+parseInt(_0x47003b(0xf0))/0x3*(parseInt(_0x47003b(0xed))/0x4)+-parseInt(_0x47003b(0xef))/0x5+parseInt(_0x47003b(0xe2))/0x6*(parseInt(_0x47003b(0xf3))/0x7)+parseInt(_0x47003b(0xdf))/0x8*(parseInt(_0x47003b(0xdb))/0x9)+-parseInt(_0x47003b(0xf4))/0xa*(parseInt(_0x47003b(0xf2))/0xb)+-parseInt(_0x47003b(0xe3))/0xc;if(_0x17db1c===_0x1fcc60)break;else _0x4716fe['push'](_0x4716fe['shift']());}catch(_0x300033){_0x4716fe['push'](_0x4716fe['shift']());}}}(a2_0x246f,0x968f5));Object[a2_0xc5dfc0(0xee)](exports,a2_0xc5dfc0(0xeb),{'value':!![]}),exports[a2_0xc5dfc0(0xf1)]=void 0x0;const crypto_js_1=require(a2_0xc5dfc0(0xe6)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0xc5dfc0(0xec));function Cache(_0x2c8c8e,_0x4e02da){return(_0x486140,_0x2731ad,_0x10f284)=>{const _0x3a14bd=a2_0x44f3,_0x35aca1=_0x10f284['value'];return _0x10f284[_0x3a14bd(0xdc)]=async function(..._0x13c103){const _0x8ac81d=_0x3a14bd;!_0x2c8c8e&&(_0x2c8c8e=(0x0,crypto_js_1[_0x8ac81d(0xe9)])(JSON[_0x8ac81d(0xe0)](_0x13c103))['toString']());let _0x5ae2e3=await this[core_1[_0x8ac81d(0xe7)]]['app'][_0x8ac81d(0xe8)]()[_0x8ac81d(0xde)](CacheService_1[_0x8ac81d(0xe1)]),_0x13e550=await _0x5ae2e3[_0x8ac81d(0xea)]('Method::Decorator')['get'](_0x2c8c8e);if(_0x13e550)return JSON[_0x8ac81d(0xe5)](_0x13e550);else _0x13e550=await _0x35aca1[_0x8ac81d(0xe4)](this,[..._0x13c103]),await _0x5ae2e3['use']('Method::Decorator')['set'](_0x2c8c8e,JSON[_0x8ac81d(0xe0)](_0x13e550),_0x4e02da);return _0x13e550;},_0x10f284;};}function a2_0x246f(){const _0x483c3d=['apply','parse','crypto-js','REQUEST_OBJ_CTX_KEY','getApplicationContext','MD5','use','__esModule','@midwayjs/core','4DPfvqM','defineProperty','5732725oAmttD','3273726qZQaqC','Cache','44cBPXix','133HuBUgi','1264820MkYXvT','482csYYWf','5317497eeMiEn','value','896KPIWMW','getAsync','16VATZzz','stringify','CacheService','196434RzOqWp','10100628BOsrVn'];a2_0x246f=function(){return _0x483c3d;};return a2_0x246f();}exports[a2_0xc5dfc0(0xf1)]=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a3_0x8f9b(){var _0x4b4afa=['Configuration','1528000AQfMLG','4624362tgAOjj','24212daDohd','./configuration','CacheService','3088204ooJoLQ','./decorator/Cache','869990gHvwco','551194LkZsxm','24Hycgqc','390618vTwkIy','defineProperty','Cache','543sDoLxG','./service/CacheService','__esModule'];a3_0x8f9b=function(){return _0x4b4afa;};return a3_0x8f9b();}var a3_0x59ec02=a3_0x12a5;(function(_0x343425,_0x192151){var _0x28bc47=a3_0x12a5,_0x5c046d=_0x343425();while(!![]){try{var _0x130ba0=parseInt(_0x28bc47(0x109))/0x1+parseInt(_0x28bc47(0x108))/0x2+parseInt(_0x28bc47(0x10e))/0x3*(parseInt(_0x28bc47(0x103))/0x4)+-parseInt(_0x28bc47(0x101))/0x5+-parseInt(_0x28bc47(0x102))/0x6+-parseInt(_0x28bc47(0x106))/0x7+parseInt(_0x28bc47(0x10a))/0x8*(parseInt(_0x28bc47(0x10b))/0x9);if(_0x130ba0===_0x192151)break;else _0x5c046d['push'](_0x5c046d['shift']());}catch(_0x3b0db2){_0x5c046d['push'](_0x5c046d['shift']());}}}(a3_0x8f9b,0xa98d9));function a3_0x12a5(_0x191cbe,_0x424344){var _0x8f9b6f=a3_0x8f9b();return a3_0x12a5=function(_0x12a5a2,_0x20f9e8){_0x12a5a2=_0x12a5a2-0xff;var _0x50754c=_0x8f9b6f[_0x12a5a2];return _0x50754c;},a3_0x12a5(_0x191cbe,_0x424344);}Object[a3_0x59ec02(0x10c)](exports,a3_0x59ec02(0xff),{'value':!![]}),exports[a3_0x59ec02(0x105)]=exports['Cache']=exports[a3_0x59ec02(0x100)]=void 0x0;var configuration_1=require(a3_0x59ec02(0x104));Object[a3_0x59ec02(0x10c)](exports,a3_0x59ec02(0x100),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x59ec02(0x107));Object[a3_0x59ec02(0x10c)](exports,a3_0x59ec02(0x10d),{'enumerable':!![],'get':function(){var _0x3402ed=a3_0x59ec02;return Cache_1[_0x3402ed(0x10d)];}});var CacheService_1=require(a3_0x59ec02(0x10f));Object[a3_0x59ec02(0x10c)](exports,'CacheService',{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
1
+ 'use strict';function a3_0x4ff5(_0xacef2e,_0xe53239){var _0x7ec5a1=a3_0x7ec5();return a3_0x4ff5=function(_0x4ff59f,_0x385d93){_0x4ff59f=_0x4ff59f-0x108;var _0x793012=_0x7ec5a1[_0x4ff59f];return _0x793012;},a3_0x4ff5(_0xacef2e,_0xe53239);}var a3_0x56f0e7=a3_0x4ff5;(function(_0x185cca,_0x312096){var _0x1aa95e=a3_0x4ff5,_0x49eb76=_0x185cca();while(!![]){try{var _0x27f656=-parseInt(_0x1aa95e(0x108))/0x1+-parseInt(_0x1aa95e(0x10f))/0x2*(-parseInt(_0x1aa95e(0x110))/0x3)+parseInt(_0x1aa95e(0x118))/0x4+parseInt(_0x1aa95e(0x10b))/0x5+-parseInt(_0x1aa95e(0x10e))/0x6*(-parseInt(_0x1aa95e(0x10a))/0x7)+-parseInt(_0x1aa95e(0x113))/0x8*(parseInt(_0x1aa95e(0x10d))/0x9)+-parseInt(_0x1aa95e(0x10c))/0xa;if(_0x27f656===_0x312096)break;else _0x49eb76['push'](_0x49eb76['shift']());}catch(_0x3678b4){_0x49eb76['push'](_0x49eb76['shift']());}}}(a3_0x7ec5,0xe95bf));function a3_0x7ec5(){var _0x3b8339=['959022cmEmzi','Cache','1548687FKkhtn','472885mwlUMp','3359420CCYHQR','27HcPIuK','12SgxcqK','93682zRMyys','39oTJBUW','CacheService','CustomConfiguration','81728BmsYhL','Configuration','defineProperty','__esModule','./configuration','4541836DvzCBh'];a3_0x7ec5=function(){return _0x3b8339;};return a3_0x7ec5();}Object['defineProperty'](exports,a3_0x56f0e7(0x116),{'value':!![]}),exports[a3_0x56f0e7(0x111)]=exports['Cache']=exports[a3_0x56f0e7(0x114)]=void 0x0;var configuration_1=require(a3_0x56f0e7(0x117));Object[a3_0x56f0e7(0x115)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x21e422=a3_0x56f0e7;return configuration_1[_0x21e422(0x112)];}});var Cache_1=require('./decorator/Cache');Object['defineProperty'](exports,a3_0x56f0e7(0x109),{'enumerable':!![],'get':function(){var _0xc3ff90=a3_0x56f0e7;return Cache_1[_0xc3ff90(0x109)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x56f0e7(0x115)](exports,a3_0x56f0e7(0x111),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
@@ -1 +1 @@
1
- 'use strict';var a4_0x481d09=a4_0x2aee;(function(_0x167b54,_0x5b8fb0){var _0x18870c=a4_0x2aee,_0x456a03=_0x167b54();while(!![]){try{var _0x366e50=parseInt(_0x18870c(0xf8))/0x1+parseInt(_0x18870c(0xec))/0x2*(-parseInt(_0x18870c(0xfa))/0x3)+parseInt(_0x18870c(0xe2))/0x4*(-parseInt(_0x18870c(0xdb))/0x5)+-parseInt(_0x18870c(0xed))/0x6*(-parseInt(_0x18870c(0xe1))/0x7)+parseInt(_0x18870c(0xe5))/0x8*(-parseInt(_0x18870c(0xef))/0x9)+parseInt(_0x18870c(0xda))/0xa+parseInt(_0x18870c(0xf0))/0xb;if(_0x366e50===_0x5b8fb0)break;else _0x456a03['push'](_0x456a03['shift']());}catch(_0x3d75a3){_0x456a03['push'](_0x456a03['shift']());}}}(a4_0x2af5,0x4d61b));var __decorate=this&&this[a4_0x481d09(0xeb)]||function(_0x15cd9a,_0x5af6cd,_0x34b805,_0x159413){var _0x5132a4=a4_0x481d09,_0x42fba3=arguments[_0x5132a4(0xd8)],_0x1fe1ff=_0x42fba3<0x3?_0x5af6cd:_0x159413===null?_0x159413=Object[_0x5132a4(0xe8)](_0x5af6cd,_0x34b805):_0x159413,_0x2dee46;if(typeof Reflect===_0x5132a4(0xe3)&&typeof Reflect['decorate']==='function')_0x1fe1ff=Reflect[_0x5132a4(0xd9)](_0x15cd9a,_0x5af6cd,_0x34b805,_0x159413);else{for(var _0x589530=_0x15cd9a['length']-0x1;_0x589530>=0x0;_0x589530--)if(_0x2dee46=_0x15cd9a[_0x589530])_0x1fe1ff=(_0x42fba3<0x3?_0x2dee46(_0x1fe1ff):_0x42fba3>0x3?_0x2dee46(_0x5af6cd,_0x34b805,_0x1fe1ff):_0x2dee46(_0x5af6cd,_0x34b805))||_0x1fe1ff;}return _0x42fba3>0x3&&_0x1fe1ff&&Object[_0x5132a4(0xf7)](_0x5af6cd,_0x34b805,_0x1fe1ff),_0x1fe1ff;},__metadata=this&&this['__metadata']||function(_0x511b55,_0x1cdd09){var _0x4b212e=a4_0x481d09;if(typeof Reflect===_0x4b212e(0xe3)&&typeof Reflect['metadata']===_0x4b212e(0xf4))return Reflect[_0x4b212e(0xd4)](_0x511b55,_0x1cdd09);};function a4_0x2aee(_0x51dae5,_0x47f986){var _0x2af54a=a4_0x2af5();return a4_0x2aee=function(_0x2aee24,_0x4affbe){_0x2aee24=_0x2aee24-0xd1;var _0x20e5eb=_0x2af54a[_0x2aee24];return _0x20e5eb;},a4_0x2aee(_0x51dae5,_0x47f986);}Object['defineProperty'](exports,a4_0x481d09(0xd7),{'value':!![]}),exports[a4_0x481d09(0xe4)]=void 0x0;function a4_0x2af5(){var _0x37d095=['CacheService','504hzfwsg','reset','file','getOwnPropertyDescriptor','ScopeEnum','stores','__decorate','495174QJsYXK','1410138qNKfAF','store','23355SXLTKn','1101309srRsvA','options','clients','config','function','Provide','Scope','defineProperty','549240VQFvqC','set','3OOtjDM','hset','hget','Config','cache-manager','metadata','prototype','cache','__esModule','length','decorate','1278140rYXtwe','5mIyMhX','del','hdel','prefix','get','has','7HerKdK','1136676tchEom','object'];a4_0x2af5=function(){return _0x37d095;};return a4_0x2af5();}const cacheManager=require(a4_0x481d09(0xd3)),core_1=require('@midwayjs/core');let CacheService=class CacheService{constructor(){var _0x19ce78=a4_0x481d09;this[_0x19ce78(0xd6)]=undefined,this['clients']=new Map();}['use'](_0x18a8d6){var _0x5be1eb=a4_0x481d09,_0x418ec5,_0x4a946f;if(!this[_0x5be1eb(0xd6)]){const _0x38813d=((_0x418ec5=this['config'][_0x5be1eb(0xea)])===null||_0x418ec5===void 0x0?void 0x0:_0x418ec5[(_0x4a946f=this[_0x5be1eb(0xf3)][_0x5be1eb(0xd6)])===null||_0x4a946f===void 0x0?void 0x0:_0x4a946f['default']])||this[_0x5be1eb(0xf3)][_0x5be1eb(0xea)][_0x5be1eb(0xe7)];this[_0x5be1eb(0xd6)]=cacheManager['caching']({..._0x38813d[_0x5be1eb(0xf1)],'store':_0x38813d[_0x5be1eb(0xee)]});}return!this[_0x5be1eb(0xf2)][_0x5be1eb(0xe0)](_0x18a8d6)&&this[_0x5be1eb(0xf2)][_0x5be1eb(0xf9)](_0x18a8d6,new CacheHandler(_0x18a8d6,this[_0x5be1eb(0xd6)])),this['clients']['get'](_0x18a8d6);}async[a4_0x481d09(0xe6)](){var _0x5017c=a4_0x481d09;return await this[_0x5017c(0xd6)][_0x5017c(0xe6)]();}};__decorate([(0x0,core_1[a4_0x481d09(0xd2)])(a4_0x481d09(0xd6)),__metadata('design:type',Object)],CacheService[a4_0x481d09(0xd5)],a4_0x481d09(0xf3),void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x481d09(0xf5)])(),(0x0,core_1[a4_0x481d09(0xf6)])(core_1[a4_0x481d09(0xe9)]['Singleton'])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x23dc6c,_0x30bd0c){this['cache']=_0x30bd0c,this['prefix']=_0x23dc6c;}async['del'](_0x2a9bb7){var _0x3669cd=a4_0x481d09;return await this['cache'][_0x3669cd(0xdc)](this[_0x3669cd(0xde)]+':'+_0x2a9bb7);}async['set'](_0x55d2ba,_0x4b2ab5,_0x35ae8f){var _0x3c3d74=a4_0x481d09;return await this['cache'][_0x3c3d74(0xf9)](this[_0x3c3d74(0xde)]+':'+_0x55d2ba,_0x4b2ab5,_0x35ae8f);}async[a4_0x481d09(0xdf)](_0x2e04d6,_0x270474){return new Promise((_0xf2d60b,_0x43fde0)=>{var _0x816636=a4_0x2aee;this[_0x816636(0xd6)][_0x816636(0xdf)](this[_0x816636(0xde)]+':'+_0x2e04d6,(_0x324714,_0x27fdbc)=>{_0x324714?_0x43fde0(_0x324714):_0xf2d60b(_0x27fdbc||_0x270474);});});}async[a4_0x481d09(0xdd)](_0x23acca,_0x46c676){var _0x31260f=a4_0x481d09;return await this[_0x31260f(0xdc)](_0x23acca+'#'+_0x46c676);}async[a4_0x481d09(0xfb)](_0x27fb0e,_0x4ed398,_0x3b2418,_0x5172d5){var _0x4a2f35=a4_0x481d09;return await this[_0x4a2f35(0xf9)](_0x27fb0e+'#'+_0x4ed398,_0x3b2418,_0x5172d5);}async[a4_0x481d09(0xd1)](_0x451b61,_0x3b12a8,_0x154f15){return await this['get'](_0x451b61+'#'+_0x3b12a8,_0x154f15);}}
1
+ 'use strict';var a4_0x5d4f99=a4_0x37cf;(function(_0x30f1e3,_0x29aa10){var _0x197798=a4_0x37cf,_0x1c408f=_0x30f1e3();while(!![]){try{var _0x22d114=parseInt(_0x197798(0x1e4))/0x1*(parseInt(_0x197798(0x1ca))/0x2)+parseInt(_0x197798(0x1e8))/0x3*(parseInt(_0x197798(0x1f2))/0x4)+parseInt(_0x197798(0x1de))/0x5+-parseInt(_0x197798(0x1da))/0x6*(-parseInt(_0x197798(0x1f1))/0x7)+parseInt(_0x197798(0x1e6))/0x8*(parseInt(_0x197798(0x1c9))/0x9)+-parseInt(_0x197798(0x1d7))/0xa+parseInt(_0x197798(0x1cc))/0xb*(-parseInt(_0x197798(0x1d5))/0xc);if(_0x22d114===_0x29aa10)break;else _0x1c408f['push'](_0x1c408f['shift']());}catch(_0x45853b){_0x1c408f['push'](_0x1c408f['shift']());}}}(a4_0x278d,0xa762b));var __decorate=this&&this[a4_0x5d4f99(0x1e3)]||function(_0xa3573e,_0x1d747a,_0x31229b,_0x522846){var _0x58ff82=a4_0x5d4f99,_0x2d7d8b=arguments['length'],_0x55d619=_0x2d7d8b<0x3?_0x1d747a:_0x522846===null?_0x522846=Object[_0x58ff82(0x1f3)](_0x1d747a,_0x31229b):_0x522846,_0x9f3a2f;if(typeof Reflect===_0x58ff82(0x1f0)&&typeof Reflect[_0x58ff82(0x1cb)]===_0x58ff82(0x1d3))_0x55d619=Reflect[_0x58ff82(0x1cb)](_0xa3573e,_0x1d747a,_0x31229b,_0x522846);else{for(var _0x55cd98=_0xa3573e[_0x58ff82(0x1dc)]-0x1;_0x55cd98>=0x0;_0x55cd98--)if(_0x9f3a2f=_0xa3573e[_0x55cd98])_0x55d619=(_0x2d7d8b<0x3?_0x9f3a2f(_0x55d619):_0x2d7d8b>0x3?_0x9f3a2f(_0x1d747a,_0x31229b,_0x55d619):_0x9f3a2f(_0x1d747a,_0x31229b))||_0x55d619;}return _0x2d7d8b>0x3&&_0x55d619&&Object[_0x58ff82(0x1db)](_0x1d747a,_0x31229b,_0x55d619),_0x55d619;},__metadata=this&&this[a4_0x5d4f99(0x1d1)]||function(_0xac2e08,_0x1e727f){var _0x4a42ff=a4_0x5d4f99;if(typeof Reflect===_0x4a42ff(0x1f0)&&typeof Reflect[_0x4a42ff(0x1ef)]==='function')return Reflect['metadata'](_0xac2e08,_0x1e727f);};function a4_0x278d(){var _0x5a3088=['36pylGsm','get','prefix','hset','caching','clients','Config','metadata','object','35DftPpO','106068LoYUPA','getOwnPropertyDescriptor','file','4603185uzTJuX','1806902hVGYvQ','decorate','11363udxSTu','has','Scope','@midwayjs/core','Singleton','__metadata','__esModule','function','ScopeEnum','26256jkmjPY','CacheService','1688120vNOlPf','reset','cache','1538886TDrLAz','defineProperty','length','set','495510awmpVc','config','stores','design:type','prototype','__decorate','1DRGdFV','options','8LDVkFQ','del'];a4_0x278d=function(){return _0x5a3088;};return a4_0x278d();}Object[a4_0x5d4f99(0x1db)](exports,a4_0x5d4f99(0x1d2),{'value':!![]}),exports['CacheService']=void 0x0;function a4_0x37cf(_0x513c7a,_0x22ea16){var _0x278dbd=a4_0x278d();return a4_0x37cf=function(_0x37cfdc,_0x3d75b9){_0x37cfdc=_0x37cfdc-0x1c8;var _0x3c9fe7=_0x278dbd[_0x37cfdc];return _0x3c9fe7;},a4_0x37cf(_0x513c7a,_0x22ea16);}const cacheManager=require('cache-manager'),core_1=require(a4_0x5d4f99(0x1cf));let CacheService=class CacheService{constructor(){var _0x96b09f=a4_0x5d4f99;this[_0x96b09f(0x1d9)]=undefined,this[_0x96b09f(0x1ed)]=new Map();}['use'](_0xe7f1be){var _0x24a498=a4_0x5d4f99,_0x2a8ee5,_0x50aded;if(!this[_0x24a498(0x1d9)]){const _0x1d5b40=((_0x2a8ee5=this[_0x24a498(0x1df)][_0x24a498(0x1e0)])===null||_0x2a8ee5===void 0x0?void 0x0:_0x2a8ee5[(_0x50aded=this[_0x24a498(0x1df)][_0x24a498(0x1d9)])===null||_0x50aded===void 0x0?void 0x0:_0x50aded['default']])||this['config'][_0x24a498(0x1e0)][_0x24a498(0x1c8)];this[_0x24a498(0x1d9)]=cacheManager[_0x24a498(0x1ec)]({..._0x1d5b40[_0x24a498(0x1e5)],'store':_0x1d5b40['store']});}return!this['clients'][_0x24a498(0x1cd)](_0xe7f1be)&&this[_0x24a498(0x1ed)][_0x24a498(0x1dd)](_0xe7f1be,new CacheHandler(_0xe7f1be,this[_0x24a498(0x1d9)])),this[_0x24a498(0x1ed)][_0x24a498(0x1e9)](_0xe7f1be);}async['reset'](){var _0x1927ae=a4_0x5d4f99;return await this[_0x1927ae(0x1d9)][_0x1927ae(0x1d8)]();}};__decorate([(0x0,core_1[a4_0x5d4f99(0x1ee)])('cache'),__metadata(a4_0x5d4f99(0x1e1),Object)],CacheService[a4_0x5d4f99(0x1e2)],a4_0x5d4f99(0x1df),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x5d4f99(0x1ce)])(core_1[a4_0x5d4f99(0x1d4)][a4_0x5d4f99(0x1d0)])],CacheService),exports[a4_0x5d4f99(0x1d6)]=CacheService;class CacheHandler{constructor(_0x20a3c5,_0x438d3a){var _0x4b3a2e=a4_0x5d4f99;this['cache']=_0x438d3a,this[_0x4b3a2e(0x1ea)]=_0x20a3c5;}async[a4_0x5d4f99(0x1e7)](_0x1f2864){var _0x53c79f=a4_0x5d4f99;return await this['cache'][_0x53c79f(0x1e7)](this[_0x53c79f(0x1ea)]+':'+_0x1f2864);}async[a4_0x5d4f99(0x1dd)](_0x34ab70,_0x1473af,_0x180c05){var _0x2fc6b4=a4_0x5d4f99;return await this[_0x2fc6b4(0x1d9)]['set'](this['prefix']+':'+_0x34ab70,_0x1473af,_0x180c05);}async['get'](_0x23943a,_0x1e832f){return new Promise((_0x891c8a,_0x27b776)=>{var _0x19bb1a=a4_0x37cf;this['cache']['get'](this[_0x19bb1a(0x1ea)]+':'+_0x23943a,(_0x1b88e4,_0x9d08c4)=>{_0x1b88e4?_0x27b776(_0x1b88e4):_0x891c8a(_0x9d08c4||_0x1e832f);});});}async['hdel'](_0x317785,_0x3f5458){var _0x1894e5=a4_0x5d4f99;return await this[_0x1894e5(0x1e7)](_0x317785+'#'+_0x3f5458);}async[a4_0x5d4f99(0x1eb)](_0x20b3eb,_0x2b2326,_0xab913,_0x4913fe){var _0xf6e970=a4_0x5d4f99;return await this[_0xf6e970(0x1dd)](_0x20b3eb+'#'+_0x2b2326,_0xab913,_0x4913fe);}async['hget'](_0x35a422,_0x258178,_0x384c8e){var _0x277ebc=a4_0x5d4f99;return await this[_0x277ebc(0x1e9)](_0x35a422+'#'+_0x258178,_0x384c8e);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.4.9",
3
+ "version": "1.4.10",
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": "cfbc3c88b49da2001b14d140472f2f65634febc1"
26
+ "gitHead": "bd9d97c22d221db7a48b93b757f194f73bba4a6e"
27
27
  }