@anncic-api/cache 1.4.8 → 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_0x19651b=a0_0x28ff;(function(_0x2c7435,_0x660b16){const _0x5b0c8f=a0_0x28ff,_0x5ca24f=_0x2c7435();while(!![]){try{const _0x51f8d0=-parseInt(_0x5b0c8f(0x7f))/0x1*(-parseInt(_0x5b0c8f(0x72))/0x2)+-parseInt(_0x5b0c8f(0x7c))/0x3*(-parseInt(_0x5b0c8f(0x71))/0x4)+parseInt(_0x5b0c8f(0x7d))/0x5*(parseInt(_0x5b0c8f(0x79))/0x6)+parseInt(_0x5b0c8f(0x78))/0x7*(parseInt(_0x5b0c8f(0x75))/0x8)+parseInt(_0x5b0c8f(0x80))/0x9+-parseInt(_0x5b0c8f(0x73))/0xa+-parseInt(_0x5b0c8f(0x76))/0xb;if(_0x51f8d0===_0x660b16)break;else _0x5ca24f['push'](_0x5ca24f['shift']());}catch(_0x59e70e){_0x5ca24f['push'](_0x5ca24f['shift']());}}}(a0_0x1772,0x48404));Object[a0_0x19651b(0x83)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x19651b(0x7a)),redisStore=require(a0_0x19651b(0x77));function a0_0x28ff(_0x232cd2,_0x40e5a6){const _0x1772ef=a0_0x1772();return a0_0x28ff=function(_0x28ffa3,_0x3b7802){_0x28ffa3=_0x28ffa3-0x71;let _0x1ccd4c=_0x1772ef[_0x28ffa3];return _0x1ccd4c;},a0_0x28ff(_0x232cd2,_0x40e5a6);}exports['default']=_0x54db32=>{const _0x5e803c=a0_0x19651b;return{'cache':{'default':_0x5e803c(0x7e),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x54db32[_0x5e803c(0x74)]+_0x5e803c(0x82)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0x54db32[_0x5e803c(0x81)]+':'}},'memory':{'store':_0x5e803c(0x7b),'options':{'max':0x64,'ttl':0x1e13380}}}}};};function a0_0x1772(){const _0x493686=['1284318thfgBq','name','/runtime/.cache','defineProperty','40isnudE','2RYPkmK','4307090OEFPkD','appDir','8048ajLXRo','7136591ViVArX','cache-manager-ioredis','2506plZubS','2409438nNxcgt','cache-manager-fs-hash','memory','102096mJNRRL','5AVcPPm','file','130687lNePin'];a0_0x1772=function(){return _0x493686;};return a0_0x1772();}
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_0x1d8a1a=a1_0x1a7d;function a1_0x3f02(){var _0x218c85=['8EgWFnr','9221031pwCMSf','CustomConfiguration','function','decorate','length','5413688xxocLE','Configuration','defineProperty','394214gsWUMc','3136685qYBUgU','3nJlJlG','object','getOwnPropertyDescriptor','1RmDTEk','anncic-api:cache','__esModule','1389054EshZpj','@midwayjs/core','13226770bHOHIf','2871956idlLSB'];a1_0x3f02=function(){return _0x218c85;};return a1_0x3f02();}(function(_0x206e2d,_0x4e8f00){var _0x4a2a61=a1_0x1a7d,_0x171875=_0x206e2d();while(!![]){try{var _0x2822ae=parseInt(_0x4a2a61(0xdb))/0x1*(parseInt(_0x4a2a61(0xeb))/0x2)+-parseInt(_0x4a2a61(0xed))/0x3*(-parseInt(_0x4a2a61(0xe1))/0x4)+parseInt(_0x4a2a61(0xec))/0x5+parseInt(_0x4a2a61(0xde))/0x6+-parseInt(_0x4a2a61(0xe8))/0x7+-parseInt(_0x4a2a61(0xe2))/0x8*(-parseInt(_0x4a2a61(0xe3))/0x9)+-parseInt(_0x4a2a61(0xe0))/0xa;if(_0x2822ae===_0x4e8f00)break;else _0x171875['push'](_0x171875['shift']());}catch(_0x5ee922){_0x171875['push'](_0x171875['shift']());}}}(a1_0x3f02,0xab7e8));function a1_0x1a7d(_0x308edd,_0x307dbd){var _0x3f02f1=a1_0x3f02();return a1_0x1a7d=function(_0x1a7d79,_0x3621ca){_0x1a7d79=_0x1a7d79-0xda;var _0x2ac7fe=_0x3f02f1[_0x1a7d79];return _0x2ac7fe;},a1_0x1a7d(_0x308edd,_0x307dbd);}var __decorate=this&&this['__decorate']||function(_0x488462,_0x314f13,_0x4d3df1,_0x8c770e){var _0x405244=a1_0x1a7d,_0x47f399=arguments['length'],_0x5c010f=_0x47f399<0x3?_0x314f13:_0x8c770e===null?_0x8c770e=Object[_0x405244(0xda)](_0x314f13,_0x4d3df1):_0x8c770e,_0x1eaa41;if(typeof Reflect===_0x405244(0xee)&&typeof Reflect[_0x405244(0xe6)]===_0x405244(0xe5))_0x5c010f=Reflect[_0x405244(0xe6)](_0x488462,_0x314f13,_0x4d3df1,_0x8c770e);else{for(var _0xf845de=_0x488462[_0x405244(0xe7)]-0x1;_0xf845de>=0x0;_0xf845de--)if(_0x1eaa41=_0x488462[_0xf845de])_0x5c010f=(_0x47f399<0x3?_0x1eaa41(_0x5c010f):_0x47f399>0x3?_0x1eaa41(_0x314f13,_0x4d3df1,_0x5c010f):_0x1eaa41(_0x314f13,_0x4d3df1))||_0x5c010f;}return _0x47f399>0x3&&_0x5c010f&&Object[_0x405244(0xea)](_0x314f13,_0x4d3df1,_0x5c010f),_0x5c010f;};Object[a1_0x1d8a1a(0xea)](exports,a1_0x1d8a1a(0xdd),{'value':!![]}),exports[a1_0x1d8a1a(0xe4)]=void 0x0;const core_1=require(a1_0x1d8a1a(0xdf)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x1d8a1a(0xe9)])({'conflictCheck':![],'namespace':a1_0x1d8a1a(0xdc),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x1d8a1a(0xe4)]=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_0x2a2192=a2_0x143c;function a2_0xeabb(){const _0x202d7d=['crypto-js','14189440MToUdb','../service/CacheService','8062789MDQzag','5357094LfIxFi','4291008WSKZdI','__esModule','value','stringify','Method::Decorator','890278qNnYGI','98245IUQbFl','getAsync','use','app','8XFFwIE','9cUJzjf','getApplicationContext','Cache','set','get','@midwayjs/core','1344825isVYcF','186YGWJzj'];a2_0xeabb=function(){return _0x202d7d;};return a2_0xeabb();}(function(_0x288604,_0x1a6742){const _0x2ba251=a2_0x143c,_0x3d7aca=_0x288604();while(!![]){try{const _0x34be21=parseInt(_0x2ba251(0x150))/0x1+parseInt(_0x2ba251(0x144))/0x2+-parseInt(_0x2ba251(0x13e))/0x3+-parseInt(_0x2ba251(0x13f))/0x4+-parseInt(_0x2ba251(0x145))/0x5*(parseInt(_0x2ba251(0x151))/0x6)+parseInt(_0x2ba251(0x155))/0x7*(parseInt(_0x2ba251(0x149))/0x8)+-parseInt(_0x2ba251(0x14a))/0x9*(-parseInt(_0x2ba251(0x153))/0xa);if(_0x34be21===_0x1a6742)break;else _0x3d7aca['push'](_0x3d7aca['shift']());}catch(_0x46031c){_0x3d7aca['push'](_0x3d7aca['shift']());}}}(a2_0xeabb,0xda0ee));Object['defineProperty'](exports,a2_0x2a2192(0x140),{'value':!![]}),exports[a2_0x2a2192(0x14c)]=void 0x0;const crypto_js_1=require(a2_0x2a2192(0x152)),CacheService_1=require(a2_0x2a2192(0x154)),core_1=require(a2_0x2a2192(0x14f));function Cache(_0xed5974,_0x2d91d8){return(_0x55dd2d,_0x4ebd61,_0x479aea)=>{const _0x53429d=a2_0x143c,_0x2513c9=_0x479aea[_0x53429d(0x141)];return _0x479aea[_0x53429d(0x141)]=async function(..._0x55aa03){const _0x822c0=_0x53429d;!_0xed5974&&(_0xed5974=(0x0,crypto_js_1['MD5'])(JSON[_0x822c0(0x142)](_0x55aa03))['toString']());let _0x4d44f8=await this[core_1['REQUEST_OBJ_CTX_KEY']][_0x822c0(0x148)][_0x822c0(0x14b)]()[_0x822c0(0x146)](CacheService_1['CacheService']),_0x322e6d=await _0x4d44f8[_0x822c0(0x147)](_0x822c0(0x143))[_0x822c0(0x14e)](_0xed5974);if(_0x322e6d)return JSON['parse'](_0x322e6d);else _0x322e6d=await _0x2513c9['apply'](this,[..._0x55aa03]),await _0x4d44f8[_0x822c0(0x147)](_0x822c0(0x143))[_0x822c0(0x14d)](_0xed5974,JSON[_0x822c0(0x142)](_0x322e6d),_0x2d91d8);return _0x322e6d;},_0x479aea;};}function a2_0x143c(_0x393e3b,_0x3b83fd){const _0xeabbf0=a2_0xeabb();return a2_0x143c=function(_0x143c78,_0x361405){_0x143c78=_0x143c78-0x13e;let _0x387bf3=_0xeabbf0[_0x143c78];return _0x387bf3;},a2_0x143c(_0x393e3b,_0x3b83fd);}exports[a2_0x2a2192(0x14c)]=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';var a3_0x5b0268=a3_0x1407;(function(_0x76e93,_0x57ad9a){var _0x52b1a8=a3_0x1407,_0x3570f8=_0x76e93();while(!![]){try{var _0x145f35=parseInt(_0x52b1a8(0x144))/0x1*(parseInt(_0x52b1a8(0x141))/0x2)+-parseInt(_0x52b1a8(0x13a))/0x3+-parseInt(_0x52b1a8(0x13f))/0x4+-parseInt(_0x52b1a8(0x137))/0x5+parseInt(_0x52b1a8(0x140))/0x6+parseInt(_0x52b1a8(0x143))/0x7*(parseInt(_0x52b1a8(0x142))/0x8)+-parseInt(_0x52b1a8(0x136))/0x9;if(_0x145f35===_0x57ad9a)break;else _0x3570f8['push'](_0x3570f8['shift']());}catch(_0x439b17){_0x3570f8['push'](_0x3570f8['shift']());}}}(a3_0x11ee,0x2a534));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x5b0268(0x139)]=exports[a3_0x5b0268(0x13e)]=exports[a3_0x5b0268(0x138)]=void 0x0;var configuration_1=require(a3_0x5b0268(0x13b));function a3_0x1407(_0x20cca5,_0x1bebfc){var _0x11ee03=a3_0x11ee();return a3_0x1407=function(_0x1407f3,_0x47b122){_0x1407f3=_0x1407f3-0x135;var _0x18f802=_0x11ee03[_0x1407f3];return _0x18f802;},a3_0x1407(_0x20cca5,_0x1bebfc);}function a3_0x11ee(){var _0x19a83e=['Configuration','CacheService','56622WUbdxP','./configuration','./service/CacheService','defineProperty','Cache','657220KjsKTy','1467048gwMtTJ','41742JpStbq','16eXkfMM','1125642BzTckr','4ojZOPJ','./decorator/Cache','1742283GmUbfY','497370UajldL'];a3_0x11ee=function(){return _0x19a83e;};return a3_0x11ee();}Object[a3_0x5b0268(0x13d)](exports,a3_0x5b0268(0x138),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x5b0268(0x135));Object[a3_0x5b0268(0x13d)](exports,a3_0x5b0268(0x13e),{'enumerable':!![],'get':function(){var _0x3d59f6=a3_0x5b0268;return Cache_1[_0x3d59f6(0x13e)];}});var CacheService_1=require(a3_0x5b0268(0x13c));Object[a3_0x5b0268(0x13d)](exports,a3_0x5b0268(0x139),{'enumerable':!![],'get':function(){var _0x5860c5=a3_0x5b0268;return CacheService_1[_0x5860c5(0x139)];}});
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_0x49830b=a4_0x106d;(function(_0x5ad804,_0x22d1ef){var _0x15412a=a4_0x106d,_0x12b4a3=_0x5ad804();while(!![]){try{var _0x53537b=-parseInt(_0x15412a(0xd5))/0x1*(-parseInt(_0x15412a(0xc5))/0x2)+parseInt(_0x15412a(0xb5))/0x3*(-parseInt(_0x15412a(0xda))/0x4)+parseInt(_0x15412a(0xc7))/0x5*(parseInt(_0x15412a(0xb6))/0x6)+-parseInt(_0x15412a(0xb8))/0x7+-parseInt(_0x15412a(0xbc))/0x8+parseInt(_0x15412a(0xc8))/0x9*(parseInt(_0x15412a(0xb7))/0xa)+parseInt(_0x15412a(0xb3))/0xb*(parseInt(_0x15412a(0xc6))/0xc);if(_0x53537b===_0x22d1ef)break;else _0x12b4a3['push'](_0x12b4a3['shift']());}catch(_0x3cfac8){_0x12b4a3['push'](_0x12b4a3['shift']());}}}(a4_0x1ebf,0x22bf8));var __decorate=this&&this[a4_0x49830b(0xdd)]||function(_0x218129,_0x5830d8,_0x32a4d7,_0x1790a7){var _0x5d9cd9=a4_0x49830b,_0x162910=arguments['length'],_0x41bfe2=_0x162910<0x3?_0x5830d8:_0x1790a7===null?_0x1790a7=Object['getOwnPropertyDescriptor'](_0x5830d8,_0x32a4d7):_0x1790a7,_0x4f8a74;if(typeof Reflect===_0x5d9cd9(0xd8)&&typeof Reflect[_0x5d9cd9(0xd9)]==='function')_0x41bfe2=Reflect[_0x5d9cd9(0xd9)](_0x218129,_0x5830d8,_0x32a4d7,_0x1790a7);else{for(var _0x2f49a6=_0x218129[_0x5d9cd9(0xc2)]-0x1;_0x2f49a6>=0x0;_0x2f49a6--)if(_0x4f8a74=_0x218129[_0x2f49a6])_0x41bfe2=(_0x162910<0x3?_0x4f8a74(_0x41bfe2):_0x162910>0x3?_0x4f8a74(_0x5830d8,_0x32a4d7,_0x41bfe2):_0x4f8a74(_0x5830d8,_0x32a4d7))||_0x41bfe2;}return _0x162910>0x3&&_0x41bfe2&&Object[_0x5d9cd9(0xb4)](_0x5830d8,_0x32a4d7,_0x41bfe2),_0x41bfe2;},__metadata=this&&this[a4_0x49830b(0xc4)]||function(_0x45fb06,_0x3fb59d){var _0x2153e2=a4_0x49830b;if(typeof Reflect===_0x2153e2(0xd8)&&typeof Reflect[_0x2153e2(0xd3)]==='function')return Reflect[_0x2153e2(0xd3)](_0x45fb06,_0x3fb59d);};Object[a4_0x49830b(0xb4)](exports,'__esModule',{'value':!![]}),exports[a4_0x49830b(0xd0)]=void 0x0;const cacheManager=require('cache-manager'),core_1=require(a4_0x49830b(0xca));let CacheService=class CacheService{constructor(){var _0x3119f1=a4_0x49830b;this[_0x3119f1(0xd4)]=undefined,this[_0x3119f1(0xbf)]=new Map();}[a4_0x49830b(0xd2)](_0x1466ec){var _0xd50b88=a4_0x49830b,_0x5c24fb,_0x28931b;if(!this[_0xd50b88(0xd4)]){const _0x521fdd=((_0x5c24fb=this[_0xd50b88(0xc1)][_0xd50b88(0xdc)])===null||_0x5c24fb===void 0x0?void 0x0:_0x5c24fb[(_0x28931b=this['config'][_0xd50b88(0xd4)])===null||_0x28931b===void 0x0?void 0x0:_0x28931b[_0xd50b88(0xce)]])||this[_0xd50b88(0xc1)][_0xd50b88(0xdc)][_0xd50b88(0xbb)];this[_0xd50b88(0xd4)]=cacheManager[_0xd50b88(0xcf)]({..._0x521fdd['options'],'store':_0x521fdd['store']});}return!this[_0xd50b88(0xbf)]['has'](_0x1466ec)&&this['clients'][_0xd50b88(0xd7)](_0x1466ec,new CacheHandler(_0x1466ec,this[_0xd50b88(0xd4)])),this['clients'][_0xd50b88(0xc9)](_0x1466ec);}async[a4_0x49830b(0xbe)](){var _0x3fc78a=a4_0x49830b;return await this[_0x3fc78a(0xd4)]['reset']();}};__decorate([(0x0,core_1[a4_0x49830b(0xc0)])(a4_0x49830b(0xd4)),__metadata(a4_0x49830b(0xcb),Object)],CacheService[a4_0x49830b(0xb9)],a4_0x49830b(0xc1),void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x49830b(0xdb)])(),(0x0,core_1[a4_0x49830b(0xcd)])(core_1[a4_0x49830b(0xc3)][a4_0x49830b(0xd6)])],CacheService),exports[a4_0x49830b(0xd0)]=CacheService;function a4_0x106d(_0x170f52,_0x509be9){var _0x1ebfce=a4_0x1ebf();return a4_0x106d=function(_0x106d79,_0x278802){_0x106d79=_0x106d79-0xb3;var _0xf7e24a=_0x1ebfce[_0x106d79];return _0xf7e24a;},a4_0x106d(_0x170f52,_0x509be9);}function a4_0x1ebf(){var _0xdb9b1a=['__metadata','50SFvyET','60XDjIuC','1415Gsxhrx','828MfvIyV','get','@midwayjs/core','design:type','hdel','Scope','default','caching','CacheService','hget','use','metadata','cache','5013OLxEUq','Singleton','set','object','decorate','16JNDhTN','Provide','stores','__decorate','765655LkbKgb','defineProperty','62316JyVtjS','438cNXwob','22730BMschu','1598961cxbCqA','prototype','del','file','1994288XovVgf','prefix','reset','clients','Config','config','length','ScopeEnum'];a4_0x1ebf=function(){return _0xdb9b1a;};return a4_0x1ebf();}class CacheHandler{constructor(_0x34aa7b,_0x44b48d){var _0x1e7008=a4_0x49830b;this[_0x1e7008(0xd4)]=_0x44b48d,this[_0x1e7008(0xbd)]=_0x34aa7b;}async[a4_0x49830b(0xba)](_0x4bc244){var _0xa9b1c8=a4_0x49830b;return await this[_0xa9b1c8(0xd4)][_0xa9b1c8(0xba)](this['prefix']+':'+_0x4bc244);}async[a4_0x49830b(0xd7)](_0x52dcd5,_0xdcd641,_0x19f5a9){var _0x359b04=a4_0x49830b;return await this[_0x359b04(0xd4)]['set'](this[_0x359b04(0xbd)]+':'+_0x52dcd5,_0xdcd641,_0x19f5a9);}async[a4_0x49830b(0xc9)](_0x4c61c3,_0x5f2836){return new Promise((_0x12e192,_0x1465c3)=>{var _0x430ddf=a4_0x106d;this[_0x430ddf(0xd4)]['get'](this[_0x430ddf(0xbd)]+':'+_0x4c61c3,(_0x22397d,_0x446e99)=>{_0x22397d?_0x1465c3(_0x22397d):_0x12e192(_0x446e99||_0x5f2836);});});}async[a4_0x49830b(0xcc)](_0x2c5723,_0x190422){return await this['del'](_0x2c5723+'#'+_0x190422);}async['hset'](_0x5bd0ec,_0x1638ef,_0x1dabd7,_0x42dd7f){return await this['set'](_0x5bd0ec+'#'+_0x1638ef,_0x1dabd7,_0x42dd7f);}async[a4_0x49830b(0xd1)](_0x5091bb,_0x525226,_0x46364f){var _0xe4d27b=a4_0x49830b;return await this[_0xe4d27b(0xc9)](_0x5091bb+'#'+_0x525226,_0x46364f);}}
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.8",
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": "a79c57bf63ef0c1d281921c6f32c3496cefb6c62"
26
+ "gitHead": "bd9d97c22d221db7a48b93b757f194f73bba4a6e"
27
27
  }