@anncic-api/cache 1.1.46 → 1.1.47

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';function a0_0x7379(){const _0x575438=['210200kOEtcr','44202JFNZxM','631100QasvIk','memory','1976TjPfMB','cache-manager-fs-hash','4165xcSxJL','__esModule','127.0.0.1','cache-manager-ioredis','appDir','1259352VKskQl','name','3473928Scadns','1148865wxQWac','file','defineProperty','default','3NtOJag'];a0_0x7379=function(){return _0x575438;};return a0_0x7379();}const a0_0x34bdc7=a0_0x5393;(function(_0x286c6e,_0x4d33e8){const _0x55f178=a0_0x5393,_0x465aa0=_0x286c6e();while(!![]){try{const _0x573666=-parseInt(_0x55f178(0x9b))/0x1+parseInt(_0x55f178(0x9a))/0x2+-parseInt(_0x55f178(0x99))/0x3*(parseInt(_0x55f178(0x9c))/0x4)+parseInt(_0x55f178(0x95))/0x5+-parseInt(_0x55f178(0x92))/0x6+parseInt(_0x55f178(0x8d))/0x7*(-parseInt(_0x55f178(0x9e))/0x8)+parseInt(_0x55f178(0x94))/0x9;if(_0x573666===_0x4d33e8)break;else _0x465aa0['push'](_0x465aa0['shift']());}catch(_0x11e21a){_0x465aa0['push'](_0x465aa0['shift']());}}}(a0_0x7379,0x278ef));Object[a0_0x34bdc7(0x97)](exports,a0_0x34bdc7(0x8e),{'value':!![]});function a0_0x5393(_0x3a8ce9,_0x41c26f){const _0x737939=a0_0x7379();return a0_0x5393=function(_0x5393a0,_0x17cefa){_0x5393a0=_0x5393a0-0x8c;let _0x2ab1f4=_0x737939[_0x5393a0];return _0x2ab1f4;},a0_0x5393(_0x3a8ce9,_0x41c26f);}const fsStore=require(a0_0x34bdc7(0x8c)),redisStore=require(a0_0x34bdc7(0x90));exports[a0_0x34bdc7(0x98)]=_0x49983d=>{const _0x3d240d=a0_0x34bdc7;return{'cache':{'default':_0x3d240d(0x96),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x49983d[_0x3d240d(0x91)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x3d240d(0x8f),'password':'','ttl':0x1e13380,'keyPrefix':_0x49983d[_0x3d240d(0x93)]+':'}},'memory':{'store':_0x3d240d(0x9d),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0x3a11ec=a0_0x74c5;(function(_0xcebcd5,_0x528911){const _0xb8c830=a0_0x74c5,_0x20c3ec=_0xcebcd5();while(!![]){try{const _0x4fa358=-parseInt(_0xb8c830(0x134))/0x1+-parseInt(_0xb8c830(0x12a))/0x2+-parseInt(_0xb8c830(0x137))/0x3+-parseInt(_0xb8c830(0x12e))/0x4+-parseInt(_0xb8c830(0x129))/0x5*(parseInt(_0xb8c830(0x133))/0x6)+parseInt(_0xb8c830(0x12b))/0x7+-parseInt(_0xb8c830(0x136))/0x8*(-parseInt(_0xb8c830(0x12f))/0x9);if(_0x4fa358===_0x528911)break;else _0x20c3ec['push'](_0x20c3ec['shift']());}catch(_0x36f6e6){_0x20c3ec['push'](_0x20c3ec['shift']());}}}(a0_0x42be,0x4d02b));function a0_0x42be(){const _0x2c5caa=['cache-manager-ioredis','default','/runtime/.cache','6QHuLJo','211819iJkSSF','defineProperty','2272yalidE','1033221GoLvLx','memory','1079555JxYPfE','728672SJTTxX','1432109YCQRRs','file','appDir','106812VYwmzk','40374kUhSFW'];a0_0x42be=function(){return _0x2c5caa;};return a0_0x42be();}function a0_0x74c5(_0x467f59,_0x2266d7){const _0x42beec=a0_0x42be();return a0_0x74c5=function(_0x74c53f,_0x2d10c3){_0x74c53f=_0x74c53f-0x128;let _0x1fa6cf=_0x42beec[_0x74c53f];return _0x1fa6cf;},a0_0x74c5(_0x467f59,_0x2266d7);}Object[a0_0x3a11ec(0x135)](exports,'__esModule',{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x3a11ec(0x130));exports[a0_0x3a11ec(0x131)]=_0xda6840=>{const _0x421133=a0_0x3a11ec;return{'cache':{'default':_0x421133(0x12c),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0xda6840[_0x421133(0x12d)]+_0x421133(0x132)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0xda6840['name']+':'}},'memory':{'store':_0x421133(0x128),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';function a1_0x5e5f(){var _0x1c49f8=['__decorate','function','442042JaTsBu','@midwayjs/decorator','length','54513BFWpcW','1612MXsptu','./config/config.default','605LnBEFF','179445GRCGpZ','defineProperty','952LhaWfc','384162OJhOfr','__esModule','CustomConfiguration','anncic-api:cache','getOwnPropertyDescriptor','670764nikQAZ','22nUNjtn','2682690GWtpLA','9mNQMGI','decorate','150FfOZuv'];a1_0x5e5f=function(){return _0x1c49f8;};return a1_0x5e5f();}var a1_0x1a3e0c=a1_0x34af;(function(_0x19b2b4,_0x311ff6){var _0x108cc9=a1_0x34af,_0x5563dc=_0x19b2b4();while(!![]){try{var _0x343d45=parseInt(_0x108cc9(0xfb))/0x1+parseInt(_0x108cc9(0xee))/0x2*(-parseInt(_0x108cc9(0xf6))/0x3)+-parseInt(_0x108cc9(0xff))/0x4*(-parseInt(_0x108cc9(0xea))/0x5)+-parseInt(_0x108cc9(0xf8))/0x6*(parseInt(_0x108cc9(0xeb))/0x7)+parseInt(_0x108cc9(0xed))/0x8*(parseInt(_0x108cc9(0xfe))/0x9)+parseInt(_0x108cc9(0xf5))/0xa+-parseInt(_0x108cc9(0xf4))/0xb*(-parseInt(_0x108cc9(0xf3))/0xc);if(_0x343d45===_0x311ff6)break;else _0x5563dc['push'](_0x5563dc['shift']());}catch(_0x11ef31){_0x5563dc['push'](_0x5563dc['shift']());}}}(a1_0x5e5f,0x5b705));var __decorate=this&&this[a1_0x1a3e0c(0xf9)]||function(_0x593a23,_0x1e46da,_0x19f461,_0x54a93b){var _0x1af590=a1_0x1a3e0c,_0x4f0471=arguments[_0x1af590(0xfd)],_0x1b58ac=_0x4f0471<0x3?_0x1e46da:_0x54a93b===null?_0x54a93b=Object[_0x1af590(0xf2)](_0x1e46da,_0x19f461):_0x54a93b,_0x3a116b;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x1af590(0xfa))_0x1b58ac=Reflect[_0x1af590(0xf7)](_0x593a23,_0x1e46da,_0x19f461,_0x54a93b);else{for(var _0x29dfc4=_0x593a23[_0x1af590(0xfd)]-0x1;_0x29dfc4>=0x0;_0x29dfc4--)if(_0x3a116b=_0x593a23[_0x29dfc4])_0x1b58ac=(_0x4f0471<0x3?_0x3a116b(_0x1b58ac):_0x4f0471>0x3?_0x3a116b(_0x1e46da,_0x19f461,_0x1b58ac):_0x3a116b(_0x1e46da,_0x19f461))||_0x1b58ac;}return _0x4f0471>0x3&&_0x1b58ac&&Object[_0x1af590(0xec)](_0x1e46da,_0x19f461,_0x1b58ac),_0x1b58ac;};Object[a1_0x1a3e0c(0xec)](exports,a1_0x1a3e0c(0xef),{'value':!![]}),exports[a1_0x1a3e0c(0xf0)]=void 0x0;const decorator_1=require(a1_0x1a3e0c(0xfc)),ConfigDefault=require(a1_0x1a3e0c(0x100));let CustomConfiguration=class CustomConfiguration{};function a1_0x34af(_0x142c0f,_0x20d1b1){var _0x5e5fe6=a1_0x5e5f();return a1_0x34af=function(_0x34afdd,_0x32106a){_0x34afdd=_0x34afdd-0xea;var _0xe502d9=_0x5e5fe6[_0x34afdd];return _0xe502d9;},a1_0x34af(_0x142c0f,_0x20d1b1);}CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x1a3e0c(0xf1),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
1
+ 'use strict';var a1_0x11cce9=a1_0x2345;(function(_0x4af866,_0x13b897){var _0x509e5f=a1_0x2345,_0x59564d=_0x4af866();while(!![]){try{var _0x459081=parseInt(_0x509e5f(0xac))/0x1*(parseInt(_0x509e5f(0xb0))/0x2)+-parseInt(_0x509e5f(0xa9))/0x3+parseInt(_0x509e5f(0xad))/0x4+parseInt(_0x509e5f(0xaa))/0x5*(-parseInt(_0x509e5f(0x9f))/0x6)+parseInt(_0x509e5f(0xa3))/0x7+parseInt(_0x509e5f(0xa2))/0x8+-parseInt(_0x509e5f(0xa6))/0x9;if(_0x459081===_0x13b897)break;else _0x59564d['push'](_0x59564d['shift']());}catch(_0x6a56a7){_0x59564d['push'](_0x59564d['shift']());}}}(a1_0x1d50,0x26ed2));function a1_0x1d50(){var _0x7cf6d3=['5bmXJaP','decorate','7cCyqJQ','606208qzUrvr','CustomConfiguration','object','49586hwYgXg','length','1552542wwNzKO','__decorate','Configuration','2442656bGGfao','2058406lMeIgG','__esModule','function','2232324HaTHoP','getOwnPropertyDescriptor','anncic-api:cache','774774VyfArb'];a1_0x1d50=function(){return _0x7cf6d3;};return a1_0x1d50();}var __decorate=this&&this[a1_0x11cce9(0xa0)]||function(_0x5a74d6,_0x2ddc99,_0xb14fc9,_0xdee21d){var _0x2e9694=a1_0x11cce9,_0x379892=arguments[_0x2e9694(0xb1)],_0x2f46fc=_0x379892<0x3?_0x2ddc99:_0xdee21d===null?_0xdee21d=Object[_0x2e9694(0xa7)](_0x2ddc99,_0xb14fc9):_0xdee21d,_0xde710f;if(typeof Reflect===_0x2e9694(0xaf)&&typeof Reflect[_0x2e9694(0xab)]===_0x2e9694(0xa5))_0x2f46fc=Reflect[_0x2e9694(0xab)](_0x5a74d6,_0x2ddc99,_0xb14fc9,_0xdee21d);else{for(var _0x455229=_0x5a74d6['length']-0x1;_0x455229>=0x0;_0x455229--)if(_0xde710f=_0x5a74d6[_0x455229])_0x2f46fc=(_0x379892<0x3?_0xde710f(_0x2f46fc):_0x379892>0x3?_0xde710f(_0x2ddc99,_0xb14fc9,_0x2f46fc):_0xde710f(_0x2ddc99,_0xb14fc9))||_0x2f46fc;}return _0x379892>0x3&&_0x2f46fc&&Object['defineProperty'](_0x2ddc99,_0xb14fc9,_0x2f46fc),_0x2f46fc;};Object['defineProperty'](exports,a1_0x11cce9(0xa4),{'value':!![]}),exports[a1_0x11cce9(0xae)]=void 0x0;function a1_0x2345(_0x5377bf,_0xe3575f){var _0x1d501b=a1_0x1d50();return a1_0x2345=function(_0x234531,_0x1abe9d){_0x234531=_0x234531-0x9f;var _0x37b6bb=_0x1d501b[_0x234531];return _0x37b6bb;},a1_0x2345(_0x5377bf,_0xe3575f);}const decorator_1=require('@midwayjs/decorator'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x11cce9(0xa1)])({'conflictCheck':![],'namespace':a1_0x11cce9(0xa8),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0x432c0c=a2_0x3aff;(function(_0xe48214,_0x4fb6ee){const _0x580de6=a2_0x3aff,_0x5398e2=_0xe48214();while(!![]){try{const _0x283b17=-parseInt(_0x580de6(0x1d7))/0x1*(parseInt(_0x580de6(0x1d8))/0x2)+-parseInt(_0x580de6(0x1e8))/0x3*(-parseInt(_0x580de6(0x1d3))/0x4)+parseInt(_0x580de6(0x1d5))/0x5+-parseInt(_0x580de6(0x1e4))/0x6*(parseInt(_0x580de6(0x1ce))/0x7)+-parseInt(_0x580de6(0x1eb))/0x8*(parseInt(_0x580de6(0x1cd))/0x9)+parseInt(_0x580de6(0x1e9))/0xa*(-parseInt(_0x580de6(0x1e2))/0xb)+parseInt(_0x580de6(0x1d1))/0xc;if(_0x283b17===_0x4fb6ee)break;else _0x5398e2['push'](_0x5398e2['shift']());}catch(_0x368238){_0x5398e2['push'](_0x5398e2['shift']());}}}(a2_0x4594,0x3d9f6));function a2_0x4594(){const _0xc57e3d=['MethodDecorator','value','get','CacheService','REQUEST_OBJ_CTX_KEY','33cKIyNG','defineProperty','28734LtRAQF','@midwayjs/core','use','app','873507lpgfah','520690ARzYPx','Cache','203296cHUMlg','__esModule','9CrDFxO','35JPmpZu','crypto-js','getAsync','2790936SvKnpH','toString','4ePefOT','set','1664890eLUKHP','apply','35oajawh','22786BPJsbd','../service/CacheService','getApplicationContext','stringify','parse'];a2_0x4594=function(){return _0xc57e3d;};return a2_0x4594();}function a2_0x3aff(_0x357a88,_0x2b502b){const _0x4594c2=a2_0x4594();return a2_0x3aff=function(_0x3aff48,_0x16d95c){_0x3aff48=_0x3aff48-0x1cc;let _0x35285f=_0x4594c2[_0x3aff48];return _0x35285f;},a2_0x3aff(_0x357a88,_0x2b502b);}Object[a2_0x432c0c(0x1e3)](exports,a2_0x432c0c(0x1cc),{'value':!![]}),exports[a2_0x432c0c(0x1ea)]=void 0x0;const crypto_js_1=require(a2_0x432c0c(0x1cf)),CacheService_1=require(a2_0x432c0c(0x1d9)),core_1=require(a2_0x432c0c(0x1e5));function Cache(_0x1d73a3,_0x12e5d8){return(_0x2e8236,_0x52403e,_0x2b729f)=>{const _0x5869c8=a2_0x3aff,_0x34ace1=_0x2b729f[_0x5869c8(0x1de)];return _0x2b729f[_0x5869c8(0x1de)]=async function(..._0x11a2c4){const _0x57b4ae=_0x5869c8;!_0x1d73a3&&(_0x1d73a3=(0x0,crypto_js_1['MD5'])(JSON[_0x57b4ae(0x1db)](_0x11a2c4))[_0x57b4ae(0x1d2)]());let _0x17245f=await this[core_1[_0x57b4ae(0x1e1)]][_0x57b4ae(0x1e7)][_0x57b4ae(0x1da)]()[_0x57b4ae(0x1d0)](CacheService_1[_0x57b4ae(0x1e0)]),_0xba313=await _0x17245f[_0x57b4ae(0x1e6)](_0x57b4ae(0x1dd))[_0x57b4ae(0x1df)](_0x1d73a3);if(_0xba313)return JSON[_0x57b4ae(0x1dc)](_0xba313);else _0xba313=await _0x34ace1[_0x57b4ae(0x1d6)](this,[..._0x11a2c4]),await _0x17245f[_0x57b4ae(0x1e6)](_0x57b4ae(0x1dd))[_0x57b4ae(0x1d4)](_0x1d73a3,JSON[_0x57b4ae(0x1db)](_0xba313),_0x12e5d8);return _0xba313;},_0x2b729f;};}exports['Cache']=Cache;
1
+ 'use strict';const a2_0xb15961=a2_0x5282;(function(_0x52b76d,_0x4bdb58){const _0x45ed39=a2_0x5282,_0x3220e1=_0x52b76d();while(!![]){try{const _0x526c41=parseInt(_0x45ed39(0x1d9))/0x1*(parseInt(_0x45ed39(0x1df))/0x2)+parseInt(_0x45ed39(0x1e5))/0x3*(parseInt(_0x45ed39(0x1dc))/0x4)+-parseInt(_0x45ed39(0x1e3))/0x5+parseInt(_0x45ed39(0x1e7))/0x6+parseInt(_0x45ed39(0x1e1))/0x7*(parseInt(_0x45ed39(0x1e4))/0x8)+parseInt(_0x45ed39(0x1db))/0x9*(-parseInt(_0x45ed39(0x1d5))/0xa)+parseInt(_0x45ed39(0x1d2))/0xb*(parseInt(_0x45ed39(0x1de))/0xc);if(_0x526c41===_0x4bdb58)break;else _0x3220e1['push'](_0x3220e1['shift']());}catch(_0x424a9a){_0x3220e1['push'](_0x3220e1['shift']());}}}(a2_0x5900,0xa7d42));Object['defineProperty'](exports,a2_0xb15961(0x1e9),{'value':!![]}),exports[a2_0xb15961(0x1d6)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0xb15961(0x1ea)),core_1=require('@midwayjs/core');function Cache(_0x245d17,_0x3198b6){return(_0x27e4d4,_0x28f468,_0x451651)=>{const _0x2172ed=a2_0x5282,_0x5d2549=_0x451651[_0x2172ed(0x1da)];return _0x451651[_0x2172ed(0x1da)]=async function(..._0x271b31){const _0x31d651=_0x2172ed;!_0x245d17&&(_0x245d17=(0x0,crypto_js_1[_0x31d651(0x1d3)])(JSON[_0x31d651(0x1e0)](_0x271b31))[_0x31d651(0x1ee)]());let _0x452d16=await this[core_1[_0x31d651(0x1ec)]][_0x31d651(0x1e8)][_0x31d651(0x1d7)]()[_0x31d651(0x1e6)](CacheService_1[_0x31d651(0x1ed)]),_0x193f7e=await _0x452d16[_0x31d651(0x1d4)](_0x31d651(0x1d8))[_0x31d651(0x1e2)](_0x245d17);if(_0x193f7e)return JSON['parse'](_0x193f7e);else _0x193f7e=await _0x5d2549[_0x31d651(0x1eb)](this,[..._0x271b31]),await _0x452d16['use'](_0x31d651(0x1d8))[_0x31d651(0x1dd)](_0x245d17,JSON[_0x31d651(0x1e0)](_0x193f7e),_0x3198b6);return _0x193f7e;},_0x451651;};}function a2_0x5282(_0x2660a6,_0x16527f){const _0x590043=a2_0x5900();return a2_0x5282=function(_0x52823f,_0x2439c6){_0x52823f=_0x52823f-0x1d2;let _0x29faa5=_0x590043[_0x52823f];return _0x29faa5;},a2_0x5282(_0x2660a6,_0x16527f);}exports[a2_0xb15961(0x1d6)]=Cache;function a2_0x5900(){const _0x3428a0=['CacheService','toString','233453ysgEWu','MD5','use','10YTJNwZ','Cache','getApplicationContext','MethodDecorator','31706RNdlvw','value','9335844hmwzjt','1259780JhkRCo','set','588PIRjGQ','2IDIJPV','stringify','2128DKVOIF','get','6081060LSvGoI','24632FFZbUD','3auAVkK','getAsync','3710160LchBpj','app','__esModule','../service/CacheService','apply','REQUEST_OBJ_CTX_KEY'];a2_0x5900=function(){return _0x3428a0;};return a2_0x5900();}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0x1bd3f2=a3_0xf6b2;(function(_0x5e3588,_0x21d53d){var _0x28255b=a3_0xf6b2,_0x59c4b2=_0x5e3588();while(!![]){try{var _0x5747be=-parseInt(_0x28255b(0xa1))/0x1+-parseInt(_0x28255b(0xa2))/0x2*(-parseInt(_0x28255b(0xa6))/0x3)+-parseInt(_0x28255b(0xa8))/0x4+parseInt(_0x28255b(0xa0))/0x5+-parseInt(_0x28255b(0x9a))/0x6+-parseInt(_0x28255b(0xab))/0x7+parseInt(_0x28255b(0x9e))/0x8*(parseInt(_0x28255b(0x9c))/0x9);if(_0x5747be===_0x21d53d)break;else _0x59c4b2['push'](_0x59c4b2['shift']());}catch(_0x592e8c){_0x59c4b2['push'](_0x59c4b2['shift']());}}}(a3_0x34c1,0xde99b));Object['defineProperty'](exports,a3_0x1bd3f2(0x9d),{'value':!![]}),exports[a3_0x1bd3f2(0x9f)]=exports[a3_0x1bd3f2(0xa9)]=exports[a3_0x1bd3f2(0xa5)]=void 0x0;var configuration_1=require(a3_0x1bd3f2(0xa7));function a3_0x34c1(){var _0x2ef869=['CustomConfiguration','./decorator/Cache','Configuration','1160250xNSCqQ','./configuration','4174900rwrUyU','Cache','defineProperty','312627fjttkQ','2009742qUYyVf','./service/CacheService','9PnMhHR','__esModule','11976856YThXwM','CacheService','2644125OPFsjH','1237818qQvvxY','8pAGBjy'];a3_0x34c1=function(){return _0x2ef869;};return a3_0x34c1();}function a3_0xf6b2(_0x292920,_0x17a0db){var _0x34c11d=a3_0x34c1();return a3_0xf6b2=function(_0xf6b20c,_0x3b1d7a){_0xf6b20c=_0xf6b20c-0x9a;var _0x2e6d94=_0x34c11d[_0xf6b20c];return _0x2e6d94;},a3_0xf6b2(_0x292920,_0x17a0db);}Object[a3_0x1bd3f2(0xaa)](exports,a3_0x1bd3f2(0xa5),{'enumerable':!![],'get':function(){var _0x3c90cc=a3_0x1bd3f2;return configuration_1[_0x3c90cc(0xa3)];}});var Cache_1=require(a3_0x1bd3f2(0xa4));Object[a3_0x1bd3f2(0xaa)](exports,a3_0x1bd3f2(0xa9),{'enumerable':!![],'get':function(){var _0x120923=a3_0x1bd3f2;return Cache_1[_0x120923(0xa9)];}});var CacheService_1=require(a3_0x1bd3f2(0x9b));Object['defineProperty'](exports,a3_0x1bd3f2(0x9f),{'enumerable':!![],'get':function(){var _0x33d1af=a3_0x1bd3f2;return CacheService_1[_0x33d1af(0x9f)];}});
1
+ 'use strict';function a3_0x118e(){var _0xc031ad=['8772890zwxcUX','CacheService','Configuration','14lgWqLs','702795JIRmrE','605196eSMjhr','26887pwwTcm','./configuration','./service/CacheService','88QLKilG','3724230FozkxX','235AxAffO','CustomConfiguration','4420170oQgINJ','defineProperty','Cache','20368QgGfPH'];a3_0x118e=function(){return _0xc031ad;};return a3_0x118e();}function a3_0x2eb1(_0x268c68,_0x218762){var _0x118e24=a3_0x118e();return a3_0x2eb1=function(_0x2eb1a9,_0x132e79){_0x2eb1a9=_0x2eb1a9-0x8c;var _0x38d565=_0x118e24[_0x2eb1a9];return _0x38d565;},a3_0x2eb1(_0x268c68,_0x218762);}var a3_0x1d6320=a3_0x2eb1;(function(_0x59427a,_0x2fa9f6){var _0x9690f1=a3_0x2eb1,_0x37991a=_0x59427a();while(!![]){try{var _0x4ba15c=parseInt(_0x9690f1(0x9a))/0x1*(-parseInt(_0x9690f1(0x97))/0x2)+-parseInt(_0x9690f1(0x98))/0x3+-parseInt(_0x9690f1(0x93))/0x4*(parseInt(_0x9690f1(0x8e))/0x5)+parseInt(_0x9690f1(0x8d))/0x6+parseInt(_0x9690f1(0x94))/0x7+parseInt(_0x9690f1(0x8c))/0x8*(-parseInt(_0x9690f1(0x99))/0x9)+parseInt(_0x9690f1(0x90))/0xa;if(_0x4ba15c===_0x2fa9f6)break;else _0x37991a['push'](_0x37991a['shift']());}catch(_0x101673){_0x37991a['push'](_0x37991a['shift']());}}}(a3_0x118e,0xdf44e));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CacheService']=exports[a3_0x1d6320(0x92)]=exports[a3_0x1d6320(0x96)]=void 0x0;var configuration_1=require(a3_0x1d6320(0x9b));Object[a3_0x1d6320(0x91)](exports,a3_0x1d6320(0x96),{'enumerable':!![],'get':function(){var _0x3c90e4=a3_0x1d6320;return configuration_1[_0x3c90e4(0x8f)];}});var Cache_1=require('./decorator/Cache');Object[a3_0x1d6320(0x91)](exports,a3_0x1d6320(0x92),{'enumerable':!![],'get':function(){var _0xc915c6=a3_0x1d6320;return Cache_1[_0xc915c6(0x92)];}});var CacheService_1=require(a3_0x1d6320(0x9c));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0xd9a806=a3_0x1d6320;return CacheService_1[_0xd9a806(0x95)];}});
@@ -1 +1 @@
1
- 'use strict';var a4_0x1425ac=a4_0x5946;(function(_0x504a6f,_0x216e94){var _0x16e066=a4_0x5946,_0x167384=_0x504a6f();while(!![]){try{var _0x161d80=-parseInt(_0x16e066(0x18b))/0x1*(parseInt(_0x16e066(0x164))/0x2)+parseInt(_0x16e066(0x173))/0x3*(-parseInt(_0x16e066(0x16a))/0x4)+-parseInt(_0x16e066(0x16c))/0x5*(-parseInt(_0x16e066(0x17a))/0x6)+-parseInt(_0x16e066(0x17e))/0x7+-parseInt(_0x16e066(0x174))/0x8+parseInt(_0x16e066(0x16b))/0x9*(parseInt(_0x16e066(0x176))/0xa)+-parseInt(_0x16e066(0x183))/0xb;if(_0x161d80===_0x216e94)break;else _0x167384['push'](_0x167384['shift']());}catch(_0xcdc662){_0x167384['push'](_0x167384['shift']());}}}(a4_0x1570,0x9cb0d));var __decorate=this&&this[a4_0x1425ac(0x17d)]||function(_0x58cd4f,_0x373912,_0x436745,_0x312b10){var _0x362be7=a4_0x1425ac,_0x148093=arguments[_0x362be7(0x189)],_0x47b1f0=_0x148093<0x3?_0x373912:_0x312b10===null?_0x312b10=Object[_0x362be7(0x18a)](_0x373912,_0x436745):_0x312b10,_0x4c6769;if(typeof Reflect===_0x362be7(0x18d)&&typeof Reflect[_0x362be7(0x187)]===_0x362be7(0x165))_0x47b1f0=Reflect[_0x362be7(0x187)](_0x58cd4f,_0x373912,_0x436745,_0x312b10);else{for(var _0x33003a=_0x58cd4f['length']-0x1;_0x33003a>=0x0;_0x33003a--)if(_0x4c6769=_0x58cd4f[_0x33003a])_0x47b1f0=(_0x148093<0x3?_0x4c6769(_0x47b1f0):_0x148093>0x3?_0x4c6769(_0x373912,_0x436745,_0x47b1f0):_0x4c6769(_0x373912,_0x436745))||_0x47b1f0;}return _0x148093>0x3&&_0x47b1f0&&Object[_0x362be7(0x18c)](_0x373912,_0x436745,_0x47b1f0),_0x47b1f0;},__metadata=this&&this[a4_0x1425ac(0x170)]||function(_0x270a6c,_0x458a5e){var _0x18a411=a4_0x1425ac;if(typeof Reflect===_0x18a411(0x18d)&&typeof Reflect['metadata']==='function')return Reflect[_0x18a411(0x178)](_0x270a6c,_0x458a5e);};Object[a4_0x1425ac(0x18c)](exports,'__esModule',{'value':!![]}),exports[a4_0x1425ac(0x18e)]=void 0x0;const cacheManager=require(a4_0x1425ac(0x16d)),decorator_1=require(a4_0x1425ac(0x172));let CacheService=class CacheService{constructor(){var _0x518d0e=a4_0x1425ac;this[_0x518d0e(0x18f)]=undefined,this['clients']=new Map();}[a4_0x1425ac(0x169)](_0x15a672){var _0x1c585c=a4_0x1425ac,_0xadd4e9,_0x353d53;if(!this['cache']){const _0x2115f3=((_0xadd4e9=this['config']['stores'])===null||_0xadd4e9===void 0x0?void 0x0:_0xadd4e9[(_0x353d53=this[_0x1c585c(0x184)][_0x1c585c(0x18f)])===null||_0x353d53===void 0x0?void 0x0:_0x353d53[_0x1c585c(0x17c)]])||this['config'][_0x1c585c(0x175)][_0x1c585c(0x163)];this[_0x1c585c(0x18f)]=cacheManager[_0x1c585c(0x179)]({..._0x2115f3[_0x1c585c(0x16f)],'store':_0x2115f3[_0x1c585c(0x192)]});}return!this[_0x1c585c(0x180)][_0x1c585c(0x193)](_0x15a672)&&this[_0x1c585c(0x180)][_0x1c585c(0x167)](_0x15a672,new CacheHandler(_0x15a672,this[_0x1c585c(0x18f)])),this[_0x1c585c(0x180)][_0x1c585c(0x166)](_0x15a672);}async[a4_0x1425ac(0x168)](){var _0x1de57d=a4_0x1425ac;return await this[_0x1de57d(0x18f)][_0x1de57d(0x168)]();}};__decorate([(0x0,decorator_1[a4_0x1425ac(0x177)])('cache'),__metadata(a4_0x1425ac(0x171),Object)],CacheService[a4_0x1425ac(0x185)],a4_0x1425ac(0x184),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x1425ac(0x16e)])(),(0x0,decorator_1[a4_0x1425ac(0x182)])(decorator_1[a4_0x1425ac(0x181)][a4_0x1425ac(0x17b)])],CacheService),exports[a4_0x1425ac(0x18e)]=CacheService;function a4_0x5946(_0x4116f5,_0x474fde){var _0x1570c7=a4_0x1570();return a4_0x5946=function(_0x59462a,_0xbbe13f){_0x59462a=_0x59462a-0x163;var _0x1e1982=_0x1570c7[_0x59462a];return _0x1e1982;},a4_0x5946(_0x4116f5,_0x474fde);}class CacheHandler{constructor(_0x5c3b86,_0x2b60fd){var _0x1b4c55=a4_0x1425ac;this[_0x1b4c55(0x18f)]=_0x2b60fd,this[_0x1b4c55(0x186)]=_0x5c3b86;}async[a4_0x1425ac(0x17f)](_0x153a23){var _0x331b35=a4_0x1425ac;return await this[_0x331b35(0x18f)][_0x331b35(0x17f)](this['prefix']+':'+_0x153a23);}async['set'](_0x327584,_0x34382b,_0x1771a8){var _0x1e39bb=a4_0x1425ac;return await this['cache'][_0x1e39bb(0x167)](this[_0x1e39bb(0x186)]+':'+_0x327584,_0x34382b,_0x1771a8);}async['get'](_0x4cb866,_0x5543f1){return new Promise((_0x2d4936,_0x3d0664)=>{var _0x1a54f2=a4_0x5946;this[_0x1a54f2(0x18f)][_0x1a54f2(0x166)](this[_0x1a54f2(0x186)]+':'+_0x4cb866,(_0x1e94b6,_0xf95620)=>{_0x1e94b6?_0x3d0664(_0x1e94b6):_0x2d4936(_0xf95620||_0x5543f1);});});}async[a4_0x1425ac(0x190)](_0x2c732e,_0x54c506){var _0x30729c=a4_0x1425ac;return await this[_0x30729c(0x17f)](_0x2c732e+'-'+_0x54c506);}async[a4_0x1425ac(0x188)](_0x364653,_0x35e9b7,_0xa533b9,_0x490ff0){return await this['set'](_0x364653+'-'+_0x35e9b7,_0xa533b9,_0x490ff0);}async[a4_0x1425ac(0x191)](_0x208279,_0x307470,_0x3cfbfe){var _0x5e1a8e=a4_0x1425ac;return await this[_0x5e1a8e(0x166)](_0x208279+'-'+_0x307470,_0x3cfbfe);}}function a4_0x1570(){var _0x312edd=['1786rYHcVB','function','get','set','reset','use','62624giEccK','10711269ZGEnLX','80865HTPMzD','cache-manager','Provide','options','__metadata','design:type','@midwayjs/decorator','9oMZhjf','80576JiuEia','stores','10JlQGBi','Config','metadata','caching','270GUOgPi','Singleton','default','__decorate','2490397rQyqYF','del','clients','ScopeEnum','Scope','5017122bwLooW','config','prototype','prefix','decorate','hset','length','getOwnPropertyDescriptor','456WpBKRO','defineProperty','object','CacheService','cache','hdel','hget','store','has','file'];a4_0x1570=function(){return _0x312edd;};return a4_0x1570();}
1
+ 'use strict';var a4_0x754bf9=a4_0x4a1f;(function(_0x7bd24d,_0x8f2abd){var _0x494afc=a4_0x4a1f,_0x1b86ca=_0x7bd24d();while(!![]){try{var _0x693323=parseInt(_0x494afc(0xe3))/0x1+-parseInt(_0x494afc(0xe4))/0x2+parseInt(_0x494afc(0xe8))/0x3+parseInt(_0x494afc(0xdc))/0x4*(parseInt(_0x494afc(0xf6))/0x5)+parseInt(_0x494afc(0xee))/0x6*(-parseInt(_0x494afc(0xdb))/0x7)+-parseInt(_0x494afc(0xf7))/0x8+parseInt(_0x494afc(0xfb))/0x9*(parseInt(_0x494afc(0xea))/0xa);if(_0x693323===_0x8f2abd)break;else _0x1b86ca['push'](_0x1b86ca['shift']());}catch(_0x531a9b){_0x1b86ca['push'](_0x1b86ca['shift']());}}}(a4_0x34eb,0x34717));function a4_0x4a1f(_0x15252b,_0x3693b0){var _0x34eb2f=a4_0x34eb();return a4_0x4a1f=function(_0x4a1f35,_0x3ac666){_0x4a1f35=_0x4a1f35-0xd3;var _0x13381a=_0x34eb2f[_0x4a1f35];return _0x13381a;},a4_0x4a1f(_0x15252b,_0x3693b0);}var __decorate=this&&this[a4_0x754bf9(0xd6)]||function(_0x3c6b70,_0x4d788e,_0x441a00,_0xaf0b5){var _0x20644e=a4_0x754bf9,_0x5632cb=arguments[_0x20644e(0xfd)],_0x5e8894=_0x5632cb<0x3?_0x4d788e:_0xaf0b5===null?_0xaf0b5=Object[_0x20644e(0xed)](_0x4d788e,_0x441a00):_0xaf0b5,_0x55ce78;if(typeof Reflect==='object'&&typeof Reflect[_0x20644e(0xfe)]===_0x20644e(0xde))_0x5e8894=Reflect[_0x20644e(0xfe)](_0x3c6b70,_0x4d788e,_0x441a00,_0xaf0b5);else{for(var _0x3bab4f=_0x3c6b70['length']-0x1;_0x3bab4f>=0x0;_0x3bab4f--)if(_0x55ce78=_0x3c6b70[_0x3bab4f])_0x5e8894=(_0x5632cb<0x3?_0x55ce78(_0x5e8894):_0x5632cb>0x3?_0x55ce78(_0x4d788e,_0x441a00,_0x5e8894):_0x55ce78(_0x4d788e,_0x441a00))||_0x5e8894;}return _0x5632cb>0x3&&_0x5e8894&&Object[_0x20644e(0xe1)](_0x4d788e,_0x441a00,_0x5e8894),_0x5e8894;},__metadata=this&&this[a4_0x754bf9(0xd8)]||function(_0x12bdf5,_0x54bd79){var _0x4b7476=a4_0x754bf9;if(typeof Reflect===_0x4b7476(0xf5)&&typeof Reflect[_0x4b7476(0xfc)]===_0x4b7476(0xde))return Reflect[_0x4b7476(0xfc)](_0x12bdf5,_0x54bd79);};Object[a4_0x754bf9(0xe1)](exports,a4_0x754bf9(0xdf),{'value':!![]}),exports[a4_0x754bf9(0xe7)]=void 0x0;const cacheManager=require(a4_0x754bf9(0xe5)),decorator_1=require(a4_0x754bf9(0xef));function a4_0x34eb(){var _0x1483c3=['128613pVfbiW','690784tbBGyX','cache-manager','default','CacheService','1032939iJvyGP','prototype','140690BMcfqW','store','Scope','getOwnPropertyDescriptor','9546kYWKzQ','@midwayjs/decorator','file','set','config','Config','design:type','object','117235BBaQoh','1240080oOXovM','has','hset','stores','225snoOtg','metadata','length','decorate','Singleton','prefix','cache','clients','__decorate','hdel','__metadata','get','del','791bSUnAr','12iXIXpU','options','function','__esModule','caching','defineProperty','reset'];a4_0x34eb=function(){return _0x1483c3;};return a4_0x34eb();}let CacheService=class CacheService{constructor(){var _0xc3eb6d=a4_0x754bf9;this[_0xc3eb6d(0xd4)]=undefined,this[_0xc3eb6d(0xd5)]=new Map();}['use'](_0x2ffd7c){var _0x2f8bcf=a4_0x754bf9,_0x7d6b4e,_0x1d352c;if(!this[_0x2f8bcf(0xd4)]){const _0x50ae16=((_0x7d6b4e=this[_0x2f8bcf(0xf2)][_0x2f8bcf(0xfa)])===null||_0x7d6b4e===void 0x0?void 0x0:_0x7d6b4e[(_0x1d352c=this[_0x2f8bcf(0xf2)][_0x2f8bcf(0xd4)])===null||_0x1d352c===void 0x0?void 0x0:_0x1d352c[_0x2f8bcf(0xe6)]])||this[_0x2f8bcf(0xf2)][_0x2f8bcf(0xfa)][_0x2f8bcf(0xf0)];this[_0x2f8bcf(0xd4)]=cacheManager[_0x2f8bcf(0xe0)]({..._0x50ae16[_0x2f8bcf(0xdd)],'store':_0x50ae16[_0x2f8bcf(0xeb)]});}return!this[_0x2f8bcf(0xd5)][_0x2f8bcf(0xf8)](_0x2ffd7c)&&this['clients'][_0x2f8bcf(0xf1)](_0x2ffd7c,new CacheHandler(_0x2ffd7c,this[_0x2f8bcf(0xd4)])),this['clients']['get'](_0x2ffd7c);}async[a4_0x754bf9(0xe2)](){var _0xbc8a8=a4_0x754bf9;return await this['cache'][_0xbc8a8(0xe2)]();}};__decorate([(0x0,decorator_1[a4_0x754bf9(0xf3)])(a4_0x754bf9(0xd4)),__metadata(a4_0x754bf9(0xf4),Object)],CacheService[a4_0x754bf9(0xe9)],a4_0x754bf9(0xf2),void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x754bf9(0xec)])(decorator_1['ScopeEnum'][a4_0x754bf9(0xff)])],CacheService),exports[a4_0x754bf9(0xe7)]=CacheService;class CacheHandler{constructor(_0x11cd08,_0x3a78b8){var _0x29b4ac=a4_0x754bf9;this[_0x29b4ac(0xd4)]=_0x3a78b8,this[_0x29b4ac(0xd3)]=_0x11cd08;}async[a4_0x754bf9(0xda)](_0x58b3de){var _0x117b31=a4_0x754bf9;return await this[_0x117b31(0xd4)]['del'](this['prefix']+':'+_0x58b3de);}async[a4_0x754bf9(0xf1)](_0x325e21,_0x287196,_0x5aba7c){var _0x4f7d59=a4_0x754bf9;return await this[_0x4f7d59(0xd4)][_0x4f7d59(0xf1)](this[_0x4f7d59(0xd3)]+':'+_0x325e21,_0x287196,_0x5aba7c);}async['get'](_0x19102d,_0x31f4b7){return new Promise((_0x2d08e0,_0x3516ef)=>{var _0x44a4c7=a4_0x4a1f;this[_0x44a4c7(0xd4)][_0x44a4c7(0xd9)](this[_0x44a4c7(0xd3)]+':'+_0x19102d,(_0x13e61a,_0x3464bb)=>{_0x13e61a?_0x3516ef(_0x13e61a):_0x2d08e0(_0x3464bb||_0x31f4b7);});});}async[a4_0x754bf9(0xd7)](_0x2f3a1,_0x5716f0){var _0x2df6af=a4_0x754bf9;return await this[_0x2df6af(0xda)](_0x2f3a1+'-'+_0x5716f0);}async[a4_0x754bf9(0xf9)](_0x46b7f5,_0x321053,_0x430452,_0x5d48a6){var _0x431f88=a4_0x754bf9;return await this[_0x431f88(0xf1)](_0x46b7f5+'-'+_0x321053,_0x430452,_0x5d48a6);}async['hget'](_0x3770ca,_0x58b9f5,_0x2693dd){var _0x5613a9=a4_0x754bf9;return await this[_0x5613a9(0xd9)](_0x3770ca+'-'+_0x58b9f5,_0x2693dd);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.1.46",
3
+ "version": "1.1.47",
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": "e37a1f5d5cc7f7ca65888b48f508c1700c45d8e8"
26
+ "gitHead": "6403115fd1a06bfb4d2f2cf775c503744564ebaa"
27
27
  }