@anncic-api/cache 1.1.5 → 1.1.6

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_0xf20713=a0_0x2748;(function(_0xdc437,_0x8c81b3){const _0x58a999=a0_0x2748,_0x191baa=_0xdc437();while(!![]){try{const _0x4f1651=parseInt(_0x58a999(0x143))/0x1+parseInt(_0x58a999(0x140))/0x2+parseInt(_0x58a999(0x132))/0x3+parseInt(_0x58a999(0x13a))/0x4*(-parseInt(_0x58a999(0x13c))/0x5)+-parseInt(_0x58a999(0x137))/0x6*(-parseInt(_0x58a999(0x141))/0x7)+-parseInt(_0x58a999(0x13e))/0x8*(-parseInt(_0x58a999(0x133))/0x9)+-parseInt(_0x58a999(0x13f))/0xa;if(_0x4f1651===_0x8c81b3)break;else _0x191baa['push'](_0x191baa['shift']());}catch(_0x21d565){_0x191baa['push'](_0x191baa['shift']());}}}(a0_0x43ec,0xeb0c3));Object['defineProperty'](exports,'__esModule',{'value':!![]});function a0_0x2748(_0x2dd4df,_0x387f22){const _0x43ec62=a0_0x43ec();return a0_0x2748=function(_0x2748a9,_0x5dbfbb){_0x2748a9=_0x2748a9-0x131;let _0x442ee8=_0x43ec62[_0x2748a9];return _0x442ee8;},a0_0x2748(_0x2dd4df,_0x387f22);}const fsStore=require(a0_0xf20713(0x139)),redisStore=require(a0_0xf20713(0x131));function a0_0x43ec(){const _0x3bf7ff=['1514009sBJFah','name','1087553WXxsEW','cache-manager-ioredis','1723572tguJHF','27pLrzbL','memory','appDir','default','6AyxLaS','/runtime/.cache','cache-manager-fs-hash','3784436AVcuFs','file','5NeJaDw','127.0.0.1','3963328GjkyTO','31050210hYFhCH','3298546ozILjw'];a0_0x43ec=function(){return _0x3bf7ff;};return a0_0x43ec();}exports[a0_0xf20713(0x136)]=_0x4e76ce=>{const _0x36e742=a0_0xf20713;return{'cache':{'default':_0x36e742(0x13b),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x4e76ce[_0x36e742(0x135)]+_0x36e742(0x138)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x36e742(0x13d),'password':'','ttl':0x1e13380,'keyPrefix':_0x4e76ce[_0x36e742(0x142)]+':'}},'memory':{'store':_0x36e742(0x134),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0x3c2fa6=a0_0x38f3;(function(_0x16831c,_0x3456c7){const _0x26e524=a0_0x38f3,_0x2eb6a9=_0x16831c();while(!![]){try{const _0x447d20=parseInt(_0x26e524(0x11d))/0x1+parseInt(_0x26e524(0x129))/0x2+parseInt(_0x26e524(0x128))/0x3+-parseInt(_0x26e524(0x125))/0x4+-parseInt(_0x26e524(0x11f))/0x5+-parseInt(_0x26e524(0x124))/0x6*(parseInt(_0x26e524(0x120))/0x7)+-parseInt(_0x26e524(0x123))/0x8*(-parseInt(_0x26e524(0x127))/0x9);if(_0x447d20===_0x3456c7)break;else _0x2eb6a9['push'](_0x2eb6a9['shift']());}catch(_0x2d7f5b){_0x2eb6a9['push'](_0x2eb6a9['shift']());}}}(a0_0xebcd,0xef396));function a0_0xebcd(){const _0x2044e2=['127.0.0.1','default','111472cMtwpC','1974354YquEuV','4730332iEeTfM','cache-manager-ioredis','1602aEjriB','180411zxMqOq','1775126qYjswX','file','appDir','cache-manager-fs-hash','name','__esModule','memory','224752WdufLW','/runtime/.cache','4160705RqTImw','14FsDUVn'];a0_0xebcd=function(){return _0x2044e2;};return a0_0xebcd();}function a0_0x38f3(_0x438e22,_0x433960){const _0xebcd5e=a0_0xebcd();return a0_0x38f3=function(_0x38f33b,_0x590f79){_0x38f33b=_0x38f33b-0x119;let _0x3c811a=_0xebcd5e[_0x38f33b];return _0x3c811a;},a0_0x38f3(_0x438e22,_0x433960);}Object['defineProperty'](exports,a0_0x3c2fa6(0x11b),{'value':!![]});const fsStore=require(a0_0x3c2fa6(0x119)),redisStore=require(a0_0x3c2fa6(0x126));exports[a0_0x3c2fa6(0x122)]=_0x386556=>{const _0x445a92=a0_0x3c2fa6;return{'cache':{'default':_0x445a92(0x12a),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x386556[_0x445a92(0x12b)]+_0x445a92(0x11e)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x445a92(0x121),'password':'','ttl':0x1e13380,'keyPrefix':_0x386556[_0x445a92(0x11a)]+':'}},'memory':{'store':_0x445a92(0x11c),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';function a1_0x228c(){var _0x869dee=['@midwayjs/decorator','getOwnPropertyDescriptor','__decorate','3707025UsjTYI','54ZjPcIt','length','6413886dEqkew','defineProperty','1455216BAAyoY','CustomConfiguration','6564546nLtWWW','anncic-api:cache','decorate','59544BuxUgv','3066735wIUMum','2876764vMTsDU','object','1ySfuUe','function','Configuration','./config/config.default'];a1_0x228c=function(){return _0x869dee;};return a1_0x228c();}var a1_0x2624b6=a1_0x2816;(function(_0xebb093,_0x27cb42){var _0x5cd0d6=a1_0x2816,_0x2f0bd2=_0xebb093();while(!![]){try{var _0x20af1c=parseInt(_0x5cd0d6(0x13b))/0x1*(parseInt(_0x5cd0d6(0x139))/0x2)+-parseInt(_0x5cd0d6(0x12e))/0x3*(-parseInt(_0x5cd0d6(0x137))/0x4)+-parseInt(_0x5cd0d6(0x12d))/0x5+-parseInt(_0x5cd0d6(0x130))/0x6+parseInt(_0x5cd0d6(0x138))/0x7+-parseInt(_0x5cd0d6(0x132))/0x8+parseInt(_0x5cd0d6(0x134))/0x9;if(_0x20af1c===_0x27cb42)break;else _0x2f0bd2['push'](_0x2f0bd2['shift']());}catch(_0x4f9f30){_0x2f0bd2['push'](_0x2f0bd2['shift']());}}}(a1_0x228c,0xd7385));function a1_0x2816(_0x45eaf5,_0x5cdd77){var _0x228cc1=a1_0x228c();return a1_0x2816=function(_0x2816f0,_0x5c2c05){_0x2816f0=_0x2816f0-0x12a;var _0x4a35a4=_0x228cc1[_0x2816f0];return _0x4a35a4;},a1_0x2816(_0x45eaf5,_0x5cdd77);}var __decorate=this&&this[a1_0x2624b6(0x12c)]||function(_0x5b8b74,_0xe27cec,_0x58e87b,_0x461a97){var _0x490ed8=a1_0x2624b6,_0xe736b0=arguments[_0x490ed8(0x12f)],_0x407839=_0xe736b0<0x3?_0xe27cec:_0x461a97===null?_0x461a97=Object[_0x490ed8(0x12b)](_0xe27cec,_0x58e87b):_0x461a97,_0xc8d70a;if(typeof Reflect===_0x490ed8(0x13a)&&typeof Reflect[_0x490ed8(0x136)]===_0x490ed8(0x13c))_0x407839=Reflect['decorate'](_0x5b8b74,_0xe27cec,_0x58e87b,_0x461a97);else{for(var _0x5bf49f=_0x5b8b74[_0x490ed8(0x12f)]-0x1;_0x5bf49f>=0x0;_0x5bf49f--)if(_0xc8d70a=_0x5b8b74[_0x5bf49f])_0x407839=(_0xe736b0<0x3?_0xc8d70a(_0x407839):_0xe736b0>0x3?_0xc8d70a(_0xe27cec,_0x58e87b,_0x407839):_0xc8d70a(_0xe27cec,_0x58e87b))||_0x407839;}return _0xe736b0>0x3&&_0x407839&&Object[_0x490ed8(0x131)](_0xe27cec,_0x58e87b,_0x407839),_0x407839;};Object[a1_0x2624b6(0x131)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a1_0x2624b6(0x12a)),ConfigDefault=require(a1_0x2624b6(0x13e));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x2624b6(0x13d)])({'conflictCheck':![],'namespace':a1_0x2624b6(0x135),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x2624b6(0x133)]=CustomConfiguration;
1
+ 'use strict';var a1_0x2fa170=a1_0x113e;function a1_0x113e(_0x3b1ca9,_0x2e2842){var _0x516d2a=a1_0x516d();return a1_0x113e=function(_0x113e12,_0x4f9db0){_0x113e12=_0x113e12-0x105;var _0x517b31=_0x516d2a[_0x113e12];return _0x517b31;},a1_0x113e(_0x3b1ca9,_0x2e2842);}(function(_0x57c7fa,_0x581c93){var _0x4ec830=a1_0x113e,_0x336c80=_0x57c7fa();while(!![]){try{var _0x4b4b33=parseInt(_0x4ec830(0x10d))/0x1+parseInt(_0x4ec830(0x107))/0x2*(-parseInt(_0x4ec830(0x111))/0x3)+-parseInt(_0x4ec830(0x112))/0x4+-parseInt(_0x4ec830(0x113))/0x5*(parseInt(_0x4ec830(0x10a))/0x6)+parseInt(_0x4ec830(0x110))/0x7+-parseInt(_0x4ec830(0x109))/0x8+parseInt(_0x4ec830(0x115))/0x9;if(_0x4b4b33===_0x581c93)break;else _0x336c80['push'](_0x336c80['shift']());}catch(_0x53dd57){_0x336c80['push'](_0x336c80['shift']());}}}(a1_0x516d,0x53549));var __decorate=this&&this['__decorate']||function(_0x49ed20,_0x2187e9,_0x591a5b,_0x14fc48){var _0x27dbf2=a1_0x113e,_0x58f649=arguments[_0x27dbf2(0x10b)],_0x140d11=_0x58f649<0x3?_0x2187e9:_0x14fc48===null?_0x14fc48=Object[_0x27dbf2(0x10e)](_0x2187e9,_0x591a5b):_0x14fc48,_0xc3fdac;if(typeof Reflect==='object'&&typeof Reflect[_0x27dbf2(0x108)]===_0x27dbf2(0x10f))_0x140d11=Reflect[_0x27dbf2(0x108)](_0x49ed20,_0x2187e9,_0x591a5b,_0x14fc48);else{for(var _0x1bdcea=_0x49ed20[_0x27dbf2(0x10b)]-0x1;_0x1bdcea>=0x0;_0x1bdcea--)if(_0xc3fdac=_0x49ed20[_0x1bdcea])_0x140d11=(_0x58f649<0x3?_0xc3fdac(_0x140d11):_0x58f649>0x3?_0xc3fdac(_0x2187e9,_0x591a5b,_0x140d11):_0xc3fdac(_0x2187e9,_0x591a5b))||_0x140d11;}return _0x58f649>0x3&&_0x140d11&&Object[_0x27dbf2(0x106)](_0x2187e9,_0x591a5b,_0x140d11),_0x140d11;};function a1_0x516d(){var _0x5a5128=['anncic-api:cache','367683vNUXmX','getOwnPropertyDescriptor','function','1736679fgCFpH','69393PBkWpX','1719060YuRHih','80luvhfV','CustomConfiguration','6573402dfcKul','./config/config.default','__esModule','defineProperty','26ueHBrj','decorate','1497224qJInBt','32706EEuWqt','length'];a1_0x516d=function(){return _0x5a5128;};return a1_0x516d();}Object['defineProperty'](exports,a1_0x2fa170(0x105),{'value':!![]}),exports[a1_0x2fa170(0x114)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),ConfigDefault=require(a1_0x2fa170(0x116));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x2fa170(0x10c),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0x114ae6=a2_0x242d;(function(_0x3877,_0x14a55b){const _0x16ce1e=a2_0x242d,_0x1883fd=_0x3877();while(!![]){try{const _0x1183e8=-parseInt(_0x16ce1e(0x12e))/0x1+parseInt(_0x16ce1e(0x120))/0x2+parseInt(_0x16ce1e(0x134))/0x3*(-parseInt(_0x16ce1e(0x123))/0x4)+-parseInt(_0x16ce1e(0x128))/0x5*(-parseInt(_0x16ce1e(0x11e))/0x6)+-parseInt(_0x16ce1e(0x127))/0x7*(-parseInt(_0x16ce1e(0x124))/0x8)+parseInt(_0x16ce1e(0x12d))/0x9+parseInt(_0x16ce1e(0x136))/0xa;if(_0x1183e8===_0x14a55b)break;else _0x1883fd['push'](_0x1883fd['shift']());}catch(_0x2d50d3){_0x1883fd['push'](_0x1883fd['shift']());}}}(a2_0x270b,0xe94b8));function a2_0x242d(_0x2d3ff6,_0x4cfff6){const _0x270b43=a2_0x270b();return a2_0x242d=function(_0x242dd2,_0x450e2f){_0x242dd2=_0x242dd2-0x11e;let _0x3c29c5=_0x270b43[_0x242dd2];return _0x3c29c5;},a2_0x242d(_0x2d3ff6,_0x4cfff6);}Object['defineProperty'](exports,a2_0x114ae6(0x125),{'value':!![]}),exports[a2_0x114ae6(0x135)]=void 0x0;const crypto_js_1=require(a2_0x114ae6(0x12b)),CacheService_1=require(a2_0x114ae6(0x129)),core_1=require('@midwayjs/core');function Cache(_0x622923,_0x3a5b16){return(_0x2b70d3,_0x4646f2,_0x25b562)=>{const _0x2c74=a2_0x242d,_0x5af879=_0x25b562[_0x2c74(0x12a)];return _0x25b562['value']=async function(..._0x30a704){const _0xa3c510=_0x2c74;!_0x622923&&(_0x622923=(0x0,crypto_js_1[_0xa3c510(0x130)])(JSON['stringify'](_0x30a704))['toString']());let _0x39162c=await this[core_1[_0xa3c510(0x132)]][_0xa3c510(0x133)]['getApplicationContext']()[_0xa3c510(0x126)](CacheService_1[_0xa3c510(0x131)]),_0x384722=await _0x39162c[_0xa3c510(0x12c)](_0xa3c510(0x137))[_0xa3c510(0x121)](_0x622923);if(_0x384722)return JSON[_0xa3c510(0x12f)](_0x384722);else _0x384722=await _0x5af879['apply'](this,[..._0x30a704]),await _0x39162c[_0xa3c510(0x12c)](_0xa3c510(0x137))[_0xa3c510(0x11f)](_0x622923,JSON[_0xa3c510(0x122)](_0x384722),_0x3a5b16);return _0x384722;},_0x25b562;};}exports[a2_0x114ae6(0x135)]=Cache;function a2_0x270b(){const _0x21e864=['app','54gyrqNK','Cache','13409390CJbkHT','MethodDecorator','448062ESdPwZ','set','1156396Ytydpw','get','stringify','385692YMcKhs','8tmBGfS','__esModule','getAsync','1801380TIjVkx','35JnrdTs','../service/CacheService','value','crypto-js','use','4844952egYyEw','546354QaUghI','parse','MD5','CacheService','REQUEST_OBJ_CTX_KEY'];a2_0x270b=function(){return _0x21e864;};return a2_0x270b();}
1
+ 'use strict';const a2_0x26eaac=a2_0x1fca;(function(_0x4f9435,_0x4f2e01){const _0x2b448c=a2_0x1fca,_0x5a3692=_0x4f9435();while(!![]){try{const _0x380835=parseInt(_0x2b448c(0xc6))/0x1*(-parseInt(_0x2b448c(0xc7))/0x2)+parseInt(_0x2b448c(0xc8))/0x3*(parseInt(_0x2b448c(0xc3))/0x4)+parseInt(_0x2b448c(0xbe))/0x5*(-parseInt(_0x2b448c(0xb7))/0x6)+parseInt(_0x2b448c(0xb8))/0x7+parseInt(_0x2b448c(0xcc))/0x8*(-parseInt(_0x2b448c(0xbb))/0x9)+-parseInt(_0x2b448c(0xd0))/0xa+-parseInt(_0x2b448c(0xce))/0xb*(-parseInt(_0x2b448c(0xc5))/0xc);if(_0x380835===_0x4f2e01)break;else _0x5a3692['push'](_0x5a3692['shift']());}catch(_0x3ef2c9){_0x5a3692['push'](_0x5a3692['shift']());}}}(a2_0x59e6,0x70a5c));Object[a2_0x26eaac(0xbf)](exports,a2_0x26eaac(0xc2),{'value':!![]}),exports[a2_0x26eaac(0xbc)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x26eaac(0xc9)),core_1=require('@midwayjs/core');function a2_0x1fca(_0x5a6a7f,_0x441784){const _0x59e658=a2_0x59e6();return a2_0x1fca=function(_0x1fca48,_0x329807){_0x1fca48=_0x1fca48-0xb6;let _0x144a13=_0x59e658[_0x1fca48];return _0x144a13;},a2_0x1fca(_0x5a6a7f,_0x441784);}function a2_0x59e6(){const _0x3a7a2f=['4GdUmxi','REQUEST_OBJ_CTX_KEY','4724844acQKjR','42793FjOjlq','4PsuPWK','2636847weZRcS','../service/CacheService','MethodDecorator','MD5','24PQCPOF','parse','22RvdZvq','app','3913250pOkAgF','get','set','getApplicationContext','33018VIHdso','1726704hPTfQy','value','apply','1950309XDhpNY','Cache','use','295gXcFjn','defineProperty','toString','stringify','__esModule'];a2_0x59e6=function(){return _0x3a7a2f;};return a2_0x59e6();}function Cache(_0x2baf93,_0x316058){return(_0x4f72f2,_0x1ea791,_0x396fe5)=>{const _0x8c25bc=a2_0x1fca,_0x5d60a3=_0x396fe5['value'];return _0x396fe5[_0x8c25bc(0xb9)]=async function(..._0xb0be5a){const _0x4cace5=_0x8c25bc;!_0x2baf93&&(_0x2baf93=(0x0,crypto_js_1[_0x4cace5(0xcb)])(JSON[_0x4cace5(0xc1)](_0xb0be5a))[_0x4cace5(0xc0)]());let _0x4bc857=await this[core_1[_0x4cace5(0xc4)]][_0x4cace5(0xcf)][_0x4cace5(0xb6)]()['getAsync'](CacheService_1['CacheService']),_0x4db936=await _0x4bc857['use'](_0x4cace5(0xca))[_0x4cace5(0xd1)](_0x2baf93);if(_0x4db936)return JSON[_0x4cace5(0xcd)](_0x4db936);else _0x4db936=await _0x5d60a3[_0x4cace5(0xba)](this,[..._0xb0be5a]),await _0x4bc857[_0x4cace5(0xbd)](_0x4cace5(0xca))[_0x4cace5(0xd2)](_0x2baf93,JSON[_0x4cace5(0xc1)](_0x4db936),_0x316058);return _0x4db936;},_0x396fe5;};}exports[a2_0x26eaac(0xbc)]=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0x1cf279=a3_0x4e8c;(function(_0x12b02f,_0x594652){var _0x324b38=a3_0x4e8c,_0x1560be=_0x12b02f();while(!![]){try{var _0xaf7016=-parseInt(_0x324b38(0xce))/0x1+-parseInt(_0x324b38(0xd1))/0x2*(-parseInt(_0x324b38(0xca))/0x3)+parseInt(_0x324b38(0xd2))/0x4+parseInt(_0x324b38(0xd3))/0x5*(-parseInt(_0x324b38(0xc7))/0x6)+-parseInt(_0x324b38(0xd5))/0x7+parseInt(_0x324b38(0xc6))/0x8*(-parseInt(_0x324b38(0xd0))/0x9)+parseInt(_0x324b38(0xcb))/0xa;if(_0xaf7016===_0x594652)break;else _0x1560be['push'](_0x1560be['shift']());}catch(_0x1af461){_0x1560be['push'](_0x1560be['shift']());}}}(a3_0x4ff8,0x984b3));Object[a3_0x1cf279(0xd4)](exports,'__esModule',{'value':!![]}),exports[a3_0x1cf279(0xc9)]=exports[a3_0x1cf279(0xcd)]=exports[a3_0x1cf279(0xc8)]=void 0x0;var configuration_1=require('./configuration');Object[a3_0x1cf279(0xd4)](exports,a3_0x1cf279(0xc8),{'enumerable':!![],'get':function(){var _0x5c9eba=a3_0x1cf279;return configuration_1[_0x5c9eba(0xcc)];}});var Cache_1=require(a3_0x1cf279(0xcf));Object[a3_0x1cf279(0xd4)](exports,a3_0x1cf279(0xcd),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});function a3_0x4e8c(_0x1aa4e9,_0x190b8e){var _0x4ff826=a3_0x4ff8();return a3_0x4e8c=function(_0x4e8c5b,_0x31631d){_0x4e8c5b=_0x4e8c5b-0xc6;var _0x537231=_0x4ff826[_0x4e8c5b];return _0x537231;},a3_0x4e8c(_0x1aa4e9,_0x190b8e);}var CacheService_1=require('./service/CacheService');Object[a3_0x1cf279(0xd4)](exports,a3_0x1cf279(0xc9),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});function a3_0x4ff8(){var _0x2ff95e=['18pquYiS','46JOXamw','3392016xWcaHb','680265jUsmFB','defineProperty','6258364AnavJi','4873808GPXbbq','48sPnqqO','Configuration','CacheService','133818IMsCHZ','30750260jLHovw','CustomConfiguration','Cache','1124245AjjrQB','./decorator/Cache'];a3_0x4ff8=function(){return _0x2ff95e;};return a3_0x4ff8();}
1
+ 'use strict';var a3_0xd9b63=a3_0x92a2;function a3_0x465b(){var _0x6b6b4e=['16qgWJQh','691284SJlgUK','CacheService','779400USKmir','CustomConfiguration','21976890Dhkzsq','./decorator/Cache','./configuration','79184KBNjGn','136356ssknrD','21zGWWLa','Cache','./service/CacheService','defineProperty','5826384zcGiQm','1251BdETAR','174321FaUysV','__esModule'];a3_0x465b=function(){return _0x6b6b4e;};return a3_0x465b();}(function(_0x3107f4,_0x32f620){var _0x5cb602=a3_0x92a2,_0x505f70=_0x3107f4();while(!![]){try{var _0x4c6cd0=-parseInt(_0x5cb602(0x1ad))/0x1+parseInt(_0x5cb602(0x1ac))/0x2*(-parseInt(_0x5cb602(0x1aa))/0x3)+parseInt(_0x5cb602(0x1a8))/0x4+-parseInt(_0x5cb602(0x19d))/0x5+-parseInt(_0x5cb602(0x1a3))/0x6*(parseInt(_0x5cb602(0x1a4))/0x7)+-parseInt(_0x5cb602(0x1a2))/0x8*(parseInt(_0x5cb602(0x1a9))/0x9)+parseInt(_0x5cb602(0x19f))/0xa;if(_0x4c6cd0===_0x32f620)break;else _0x505f70['push'](_0x505f70['shift']());}catch(_0x38ff2a){_0x505f70['push'](_0x505f70['shift']());}}}(a3_0x465b,0xdb4d9));Object[a3_0xd9b63(0x1a7)](exports,a3_0xd9b63(0x1ab),{'value':!![]}),exports[a3_0xd9b63(0x1ae)]=exports[a3_0xd9b63(0x1a5)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0xd9b63(0x1a1));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x234790=a3_0xd9b63;return configuration_1[_0x234790(0x19e)];}});function a3_0x92a2(_0x13bfad,_0x31e516){var _0x465ba8=a3_0x465b();return a3_0x92a2=function(_0x92a299,_0x1f740d){_0x92a299=_0x92a299-0x19d;var _0x29e2f2=_0x465ba8[_0x92a299];return _0x29e2f2;},a3_0x92a2(_0x13bfad,_0x31e516);}var Cache_1=require(a3_0xd9b63(0x1a0));Object[a3_0xd9b63(0x1a7)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x319c2f=a3_0xd9b63;return Cache_1[_0x319c2f(0x1a5)];}});var CacheService_1=require(a3_0xd9b63(0x1a6));Object[a3_0xd9b63(0x1a7)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0xf1eed9=a3_0xd9b63;return CacheService_1[_0xf1eed9(0x1ae)];}});
@@ -1 +1 @@
1
- 'use strict';var a4_0x5a35c5=a4_0x217e;function a4_0x217e(_0x8a572a,_0x42c486){var _0x15666e=a4_0x1566();return a4_0x217e=function(_0x217e13,_0x45d82d){_0x217e13=_0x217e13-0x18d;var _0x4a2223=_0x15666e[_0x217e13];return _0x4a2223;},a4_0x217e(_0x8a572a,_0x42c486);}(function(_0x5cb086,_0x169d6b){var _0x161b16=a4_0x217e,_0x1c0220=_0x5cb086();while(!![]){try{var _0x4c7179=parseInt(_0x161b16(0x19a))/0x1*(parseInt(_0x161b16(0x198))/0x2)+parseInt(_0x161b16(0x194))/0x3*(-parseInt(_0x161b16(0x19f))/0x4)+parseInt(_0x161b16(0x192))/0x5+parseInt(_0x161b16(0x1a8))/0x6+-parseInt(_0x161b16(0x18d))/0x7*(-parseInt(_0x161b16(0x195))/0x8)+parseInt(_0x161b16(0x18f))/0x9+-parseInt(_0x161b16(0x1a0))/0xa*(parseInt(_0x161b16(0x19b))/0xb);if(_0x4c7179===_0x169d6b)break;else _0x1c0220['push'](_0x1c0220['shift']());}catch(_0x411098){_0x1c0220['push'](_0x1c0220['shift']());}}}(a4_0x1566,0xac07d));var __decorate=this&&this['__decorate']||function(_0x27ce68,_0x397b89,_0x1d8b05,_0x325204){var _0x44c41b=a4_0x217e,_0x51aa18=arguments[_0x44c41b(0x1af)],_0x5f1887=_0x51aa18<0x3?_0x397b89:_0x325204===null?_0x325204=Object[_0x44c41b(0x1ab)](_0x397b89,_0x1d8b05):_0x325204,_0x39ca81;if(typeof Reflect==='object'&&typeof Reflect[_0x44c41b(0x197)]===_0x44c41b(0x1a2))_0x5f1887=Reflect['decorate'](_0x27ce68,_0x397b89,_0x1d8b05,_0x325204);else{for(var _0x15c741=_0x27ce68[_0x44c41b(0x1af)]-0x1;_0x15c741>=0x0;_0x15c741--)if(_0x39ca81=_0x27ce68[_0x15c741])_0x5f1887=(_0x51aa18<0x3?_0x39ca81(_0x5f1887):_0x51aa18>0x3?_0x39ca81(_0x397b89,_0x1d8b05,_0x5f1887):_0x39ca81(_0x397b89,_0x1d8b05))||_0x5f1887;}return _0x51aa18>0x3&&_0x5f1887&&Object[_0x44c41b(0x1b1)](_0x397b89,_0x1d8b05,_0x5f1887),_0x5f1887;},__metadata=this&&this['__metadata']||function(_0x3dfde0,_0xab896){var _0x4aa27a=a4_0x217e;if(typeof Reflect===_0x4aa27a(0x1b6)&&typeof Reflect[_0x4aa27a(0x1a1)]==='function')return Reflect[_0x4aa27a(0x1a1)](_0x3dfde0,_0xab896);};Object[a4_0x5a35c5(0x1b1)](exports,a4_0x5a35c5(0x199),{'value':!![]}),exports[a4_0x5a35c5(0x1b5)]=void 0x0;const cacheManager=require('cache-manager'),decorator_1=require(a4_0x5a35c5(0x19c));let CacheService=class CacheService{constructor(){var _0x56aa31=a4_0x5a35c5;this[_0x56aa31(0x1a6)]=undefined,this[_0x56aa31(0x191)]=new Map();}['use'](_0x54487c){var _0x20455c=a4_0x5a35c5,_0x3d8311,_0x144e4a;if(!this[_0x20455c(0x1a6)]){const _0x53188c=((_0x3d8311=this[_0x20455c(0x1a7)]['stores'])===null||_0x3d8311===void 0x0?void 0x0:_0x3d8311[(_0x144e4a=this['config'][_0x20455c(0x1a6)])===null||_0x144e4a===void 0x0?void 0x0:_0x144e4a[_0x20455c(0x19e)]])||this[_0x20455c(0x1a7)][_0x20455c(0x190)]['file'];this[_0x20455c(0x1a6)]=cacheManager[_0x20455c(0x1b0)]({..._0x53188c[_0x20455c(0x19d)],'store':_0x53188c[_0x20455c(0x1b4)]});}return!this[_0x20455c(0x191)]['has'](_0x54487c)&&this[_0x20455c(0x191)][_0x20455c(0x196)](_0x54487c,new CacheHandler(_0x54487c,this[_0x20455c(0x1a6)])),this[_0x20455c(0x191)]['get'](_0x54487c);}async[a4_0x5a35c5(0x1ac)](){var _0x97a282=a4_0x5a35c5;return await this[_0x97a282(0x1a6)][_0x97a282(0x1ac)]();}};function a4_0x1566(){var _0xd7b8b8=['metadata','function','del','get','hset','cache','config','8213370WrXTTI','prototype','hdel','getOwnPropertyDescriptor','reset','Scope','Singleton','length','caching','defineProperty','ScopeEnum','design:type','store','CacheService','object','903pvjHlV','prefix','1773621WmRTXb','stores','clients','3580155IPvnWP','Config','1536NQLnwi','67312uPqBgA','set','decorate','273412FadcXr','__esModule','4tfcjYv','22UpOPhv','@midwayjs/decorator','options','default','7364lNPSOS','11334980dfSQZk'];a4_0x1566=function(){return _0xd7b8b8;};return a4_0x1566();}__decorate([(0x0,decorator_1[a4_0x5a35c5(0x193)])(a4_0x5a35c5(0x1a6)),__metadata(a4_0x5a35c5(0x1b3),Object)],CacheService[a4_0x5a35c5(0x1a9)],a4_0x5a35c5(0x1a7),void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x5a35c5(0x1ad)])(decorator_1[a4_0x5a35c5(0x1b2)][a4_0x5a35c5(0x1ae)])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x3ee3bc,_0x3a76b6){var _0x120056=a4_0x5a35c5;this[_0x120056(0x1a6)]=_0x3a76b6,this[_0x120056(0x18e)]=_0x3ee3bc;}async[a4_0x5a35c5(0x1a3)](_0x1106ab){var _0x536036=a4_0x5a35c5;return await this[_0x536036(0x1a6)]['del'](this['prefix']+':'+_0x1106ab);}async[a4_0x5a35c5(0x196)](_0x451248,_0x27640f,_0x40f825){var _0x57b803=a4_0x5a35c5;return await this[_0x57b803(0x1a6)][_0x57b803(0x196)](this[_0x57b803(0x18e)]+':'+_0x451248,_0x27640f,_0x40f825);}async[a4_0x5a35c5(0x1a4)](_0x70e0dc,_0x292e7b){return new Promise((_0x2fa72a,_0x5ed2e7)=>{var _0x21cd12=a4_0x217e;this[_0x21cd12(0x1a6)][_0x21cd12(0x1a4)](this['prefix']+':'+_0x70e0dc,(_0x122d6b,_0x327f50)=>{_0x122d6b?_0x5ed2e7(_0x122d6b):_0x2fa72a(_0x327f50||_0x292e7b);});});}async[a4_0x5a35c5(0x1aa)](_0x48b3c3,_0x29309b){return await this['del'](_0x48b3c3+'-'+_0x29309b);}async[a4_0x5a35c5(0x1a5)](_0x3189b8,_0x5aee3a,_0xf440cb,_0xe3d8dd){return await this['set'](_0x3189b8+'-'+_0x5aee3a,_0xf440cb,_0xe3d8dd);}async['hget'](_0x237ab5,_0x12b83b,_0xe1a652){var _0x1e26b7=a4_0x5a35c5;return await this[_0x1e26b7(0x1a4)](_0x237ab5+'-'+_0x12b83b,_0xe1a652);}}
1
+ 'use strict';var a4_0x2d67ec=a4_0x1516;(function(_0x352d95,_0x54ddfc){var _0x31f444=a4_0x1516,_0x2c95ae=_0x352d95();while(!![]){try{var _0x2c1843=-parseInt(_0x31f444(0x1f3))/0x1*(parseInt(_0x31f444(0x1e3))/0x2)+parseInt(_0x31f444(0x1d4))/0x3+parseInt(_0x31f444(0x1e1))/0x4*(parseInt(_0x31f444(0x1da))/0x5)+parseInt(_0x31f444(0x1ea))/0x6*(parseInt(_0x31f444(0x1dd))/0x7)+-parseInt(_0x31f444(0x1ee))/0x8+-parseInt(_0x31f444(0x1ce))/0x9+parseInt(_0x31f444(0x1cc))/0xa;if(_0x2c1843===_0x54ddfc)break;else _0x2c95ae['push'](_0x2c95ae['shift']());}catch(_0x1a7d5b){_0x2c95ae['push'](_0x2c95ae['shift']());}}}(a4_0x300c,0xeffbd));function a4_0x300c(){var _0x30274b=['__metadata','1916388hgGehp','object','7834aUEGMx','design:type','getOwnPropertyDescriptor','get','del','store','options','3631854EMsUwO','metadata','prefix','__esModule','1449272xfDbdx','Provide','file','default','length','256rhCtJF','CacheService','14336760OdRZMF','ScopeEnum','16110882JhfLxr','prototype','Config','config','__decorate','function','1063482tscnsB','clients','cache','set','use','@midwayjs/decorator','10jJDSjE','has','stores','14HdtVnX','cache-manager','Singleton'];a4_0x300c=function(){return _0x30274b;};return a4_0x300c();}function a4_0x1516(_0x39e004,_0x30580a){var _0x300c47=a4_0x300c();return a4_0x1516=function(_0x151685,_0x3ebd69){_0x151685=_0x151685-0x1cc;var _0x48d738=_0x300c47[_0x151685];return _0x48d738;},a4_0x1516(_0x39e004,_0x30580a);}var __decorate=this&&this[a4_0x2d67ec(0x1d2)]||function(_0x342616,_0x1ebfd7,_0x107b17,_0x266174){var _0x41ba9e=a4_0x2d67ec,_0x15287f=arguments[_0x41ba9e(0x1f2)],_0x258635=_0x15287f<0x3?_0x1ebfd7:_0x266174===null?_0x266174=Object[_0x41ba9e(0x1e5)](_0x1ebfd7,_0x107b17):_0x266174,_0x71f9fd;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x41ba9e(0x1d3))_0x258635=Reflect['decorate'](_0x342616,_0x1ebfd7,_0x107b17,_0x266174);else{for(var _0x773ca3=_0x342616[_0x41ba9e(0x1f2)]-0x1;_0x773ca3>=0x0;_0x773ca3--)if(_0x71f9fd=_0x342616[_0x773ca3])_0x258635=(_0x15287f<0x3?_0x71f9fd(_0x258635):_0x15287f>0x3?_0x71f9fd(_0x1ebfd7,_0x107b17,_0x258635):_0x71f9fd(_0x1ebfd7,_0x107b17))||_0x258635;}return _0x15287f>0x3&&_0x258635&&Object['defineProperty'](_0x1ebfd7,_0x107b17,_0x258635),_0x258635;},__metadata=this&&this[a4_0x2d67ec(0x1e0)]||function(_0x5b23f9,_0x18f7ec){var _0x38468b=a4_0x2d67ec;if(typeof Reflect===_0x38468b(0x1e2)&&typeof Reflect[_0x38468b(0x1eb)]==='function')return Reflect[_0x38468b(0x1eb)](_0x5b23f9,_0x18f7ec);};Object['defineProperty'](exports,a4_0x2d67ec(0x1ed),{'value':!![]}),exports[a4_0x2d67ec(0x1f4)]=void 0x0;const cacheManager=require(a4_0x2d67ec(0x1de)),decorator_1=require(a4_0x2d67ec(0x1d9));let CacheService=class CacheService{constructor(){var _0x133a01=a4_0x2d67ec;this[_0x133a01(0x1d6)]=undefined,this[_0x133a01(0x1d5)]=new Map();}[a4_0x2d67ec(0x1d8)](_0x1fe4e9){var _0x9bf992=a4_0x2d67ec,_0x39914b,_0x40ce91;if(!this[_0x9bf992(0x1d6)]){const _0x47b556=((_0x39914b=this[_0x9bf992(0x1d1)][_0x9bf992(0x1dc)])===null||_0x39914b===void 0x0?void 0x0:_0x39914b[(_0x40ce91=this[_0x9bf992(0x1d1)][_0x9bf992(0x1d6)])===null||_0x40ce91===void 0x0?void 0x0:_0x40ce91[_0x9bf992(0x1f1)]])||this['config'][_0x9bf992(0x1dc)][_0x9bf992(0x1f0)];this[_0x9bf992(0x1d6)]=cacheManager['caching']({..._0x47b556[_0x9bf992(0x1e9)],'store':_0x47b556[_0x9bf992(0x1e8)]});}return!this[_0x9bf992(0x1d5)][_0x9bf992(0x1db)](_0x1fe4e9)&&this[_0x9bf992(0x1d5)]['set'](_0x1fe4e9,new CacheHandler(_0x1fe4e9,this[_0x9bf992(0x1d6)])),this['clients'][_0x9bf992(0x1e6)](_0x1fe4e9);}async['reset'](){return await this['cache']['reset']();}};__decorate([(0x0,decorator_1[a4_0x2d67ec(0x1d0)])(a4_0x2d67ec(0x1d6)),__metadata(a4_0x2d67ec(0x1e4),Object)],CacheService[a4_0x2d67ec(0x1cf)],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x2d67ec(0x1ef)])(),(0x0,decorator_1['Scope'])(decorator_1[a4_0x2d67ec(0x1cd)][a4_0x2d67ec(0x1df)])],CacheService),exports[a4_0x2d67ec(0x1f4)]=CacheService;class CacheHandler{constructor(_0x5f245e,_0x319321){var _0x5baaac=a4_0x2d67ec;this[_0x5baaac(0x1d6)]=_0x319321,this[_0x5baaac(0x1ec)]=_0x5f245e;}async[a4_0x2d67ec(0x1e7)](_0x322349){var _0x531927=a4_0x2d67ec;return await this[_0x531927(0x1d6)][_0x531927(0x1e7)](this[_0x531927(0x1ec)]+':'+_0x322349);}async['set'](_0x5d59e1,_0xe541,_0x44939b){var _0x14f64d=a4_0x2d67ec;return await this[_0x14f64d(0x1d6)][_0x14f64d(0x1d7)](this[_0x14f64d(0x1ec)]+':'+_0x5d59e1,_0xe541,_0x44939b);}async[a4_0x2d67ec(0x1e6)](_0xae506,_0x5e9c7e){return new Promise((_0x59286a,_0x141152)=>{var _0x229bf0=a4_0x1516;this[_0x229bf0(0x1d6)]['get'](this['prefix']+':'+_0xae506,(_0x15be0b,_0x4d9a97)=>{_0x15be0b?_0x141152(_0x15be0b):_0x59286a(_0x4d9a97||_0x5e9c7e);});});}async['hdel'](_0x428f27,_0x5ef2c8){var _0x4d0ef9=a4_0x2d67ec;return await this[_0x4d0ef9(0x1e7)](_0x428f27+'-'+_0x5ef2c8);}async['hset'](_0x1d241e,_0x541117,_0x5891b5,_0x2680da){var _0x2bc686=a4_0x2d67ec;return await this[_0x2bc686(0x1d7)](_0x1d241e+'-'+_0x541117,_0x5891b5,_0x2680da);}async['hget'](_0x230b45,_0x49352f,_0x27cfd3){return await this['get'](_0x230b45+'-'+_0x49352f,_0x27cfd3);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
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": "f12532c658e19791b372d2339dadd1575b0669e2"
26
+ "gitHead": "c3515458c76e02ff95219389d6322d473eb79a9f"
27
27
  }