@anncic-api/cache 1.1.26 → 1.1.27
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
|
|
1
|
+
'use strict';const a0_0x4c28ba=a0_0x2e36;function a0_0x2234(){const _0x4a7feb=['name','6535UkWcQj','428382ZAQQgp','127.0.0.1','1798638BBGBNH','4796760mfpUUb','6KePKWC','memory','4292015BFVDeH','file','/runtime/.cache','652GLCYlx','defineProperty','default','appDir','4QoIPxr','3183060OQyygJ','__esModule','cache-manager-fs-hash','193891hIHfMh'];a0_0x2234=function(){return _0x4a7feb;};return a0_0x2234();}(function(_0x51bf81,_0x5bebe2){const _0x2c751b=a0_0x2e36,_0x3af3e1=_0x51bf81();while(!![]){try{const _0x2f8577=parseInt(_0x2c751b(0x1ad))/0x1*(parseInt(_0x2c751b(0x1a9))/0x2)+parseInt(_0x2c751b(0x19e))/0x3+parseInt(_0x2c751b(0x1a5))/0x4*(parseInt(_0x2c751b(0x19b))/0x5)+parseInt(_0x2c751b(0x1a0))/0x6*(-parseInt(_0x2c751b(0x1a2))/0x7)+-parseInt(_0x2c751b(0x19f))/0x8+parseInt(_0x2c751b(0x19c))/0x9+parseInt(_0x2c751b(0x1aa))/0xa;if(_0x2f8577===_0x5bebe2)break;else _0x3af3e1['push'](_0x3af3e1['shift']());}catch(_0x3b9c69){_0x3af3e1['push'](_0x3af3e1['shift']());}}}(a0_0x2234,0x564fd));Object[a0_0x4c28ba(0x1a6)](exports,a0_0x4c28ba(0x1ab),{'value':!![]});const fsStore=require(a0_0x4c28ba(0x1ac)),redisStore=require('cache-manager-ioredis');function a0_0x2e36(_0x4a9cc3,_0x52a4dc){const _0x2234cd=a0_0x2234();return a0_0x2e36=function(_0x2e3600,_0x819297){_0x2e3600=_0x2e3600-0x19b;let _0x209dd1=_0x2234cd[_0x2e3600];return _0x209dd1;},a0_0x2e36(_0x4a9cc3,_0x52a4dc);}exports[a0_0x4c28ba(0x1a7)]=_0x5aa68b=>{const _0x184b28=a0_0x4c28ba;return{'cache':{'default':_0x184b28(0x1a3),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x5aa68b[_0x184b28(0x1a8)]+_0x184b28(0x1a4)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x184b28(0x19d),'password':'','ttl':0x1e13380,'keyPrefix':_0x5aa68b[_0x184b28(0x1ae)]+':'}},'memory':{'store':_0x184b28(0x1a1),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x2741c6=a1_0xd49d;(function(_0x5b1f40,_0x5f3f39){var _0x2e6290=a1_0xd49d,_0x1ad192=_0x5b1f40();while(!![]){try{var _0x1fdedf=-parseInt(_0x2e6290(0x1bb))/0x1+parseInt(_0x2e6290(0x1b5))/0x2+-parseInt(_0x2e6290(0x1ba))/0x3*(parseInt(_0x2e6290(0x1b7))/0x4)+-parseInt(_0x2e6290(0x1b3))/0x5+-parseInt(_0x2e6290(0x1b6))/0x6*(parseInt(_0x2e6290(0x1b2))/0x7)+-parseInt(_0x2e6290(0x1b8))/0x8*(-parseInt(_0x2e6290(0x1c0))/0x9)+parseInt(_0x2e6290(0x1bc))/0xa;if(_0x1fdedf===_0x5f3f39)break;else _0x1ad192['push'](_0x1ad192['shift']());}catch(_0x58f5c2){_0x1ad192['push'](_0x1ad192['shift']());}}}(a1_0x5440,0xc8c04));function a1_0x5440(){var _0x1e0933=['anncic-api:cache','length','1587060aPHAxf','object','Configuration','decorate','defineProperty','CustomConfiguration','__decorate','7EwJQbt','2282755eCmIsc','@midwayjs/decorator','2926964yWxzUH','5507022bEqmEo','1380pnuYHz','72rPkHwt','./config/config.default','11757SkPLxg','749250xgOsLc','12474270KqueVS','getOwnPropertyDescriptor'];a1_0x5440=function(){return _0x1e0933;};return a1_0x5440();}var __decorate=this&&this[a1_0x2741c6(0x1b1)]||function(_0xca9b19,_0x1f7528,_0x232ff2,_0x3a29c6){var _0xc31223=a1_0x2741c6,_0x3356e6=arguments[_0xc31223(0x1bf)],_0x29e6b4=_0x3356e6<0x3?_0x1f7528:_0x3a29c6===null?_0x3a29c6=Object[_0xc31223(0x1bd)](_0x1f7528,_0x232ff2):_0x3a29c6,_0x30240e;if(typeof Reflect===_0xc31223(0x1c1)&&typeof Reflect[_0xc31223(0x1ae)]==='function')_0x29e6b4=Reflect[_0xc31223(0x1ae)](_0xca9b19,_0x1f7528,_0x232ff2,_0x3a29c6);else{for(var _0x30f794=_0xca9b19[_0xc31223(0x1bf)]-0x1;_0x30f794>=0x0;_0x30f794--)if(_0x30240e=_0xca9b19[_0x30f794])_0x29e6b4=(_0x3356e6<0x3?_0x30240e(_0x29e6b4):_0x3356e6>0x3?_0x30240e(_0x1f7528,_0x232ff2,_0x29e6b4):_0x30240e(_0x1f7528,_0x232ff2))||_0x29e6b4;}return _0x3356e6>0x3&&_0x29e6b4&&Object['defineProperty'](_0x1f7528,_0x232ff2,_0x29e6b4),_0x29e6b4;};Object[a1_0x2741c6(0x1af)](exports,'__esModule',{'value':!![]}),exports[a1_0x2741c6(0x1b0)]=void 0x0;function a1_0xd49d(_0x99546c,_0x59bb11){var _0x5440c3=a1_0x5440();return a1_0xd49d=function(_0xd49d6a,_0x445d9f){_0xd49d6a=_0xd49d6a-0x1ae;var _0x1e3a3e=_0x5440c3[_0xd49d6a];return _0x1e3a3e;},a1_0xd49d(_0x99546c,_0x59bb11);}const decorator_1=require(a1_0x2741c6(0x1b4)),ConfigDefault=require(a1_0x2741c6(0x1b9));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x2741c6(0x1c2)])({'conflictCheck':![],'namespace':a1_0x2741c6(0x1be),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x446f8a=a2_0x254a;(function(_0x45db51,_0x2b37fb){const _0x23916f=a2_0x254a,_0x55431c=_0x45db51();while(!![]){try{const _0x41d002=-parseInt(_0x23916f(0x157))/0x1*(parseInt(_0x23916f(0x153))/0x2)+-parseInt(_0x23916f(0x161))/0x3*(-parseInt(_0x23916f(0x163))/0x4)+parseInt(_0x23916f(0x162))/0x5*(parseInt(_0x23916f(0x155))/0x6)+parseInt(_0x23916f(0x159))/0x7*(-parseInt(_0x23916f(0x166))/0x8)+parseInt(_0x23916f(0x15e))/0x9+parseInt(_0x23916f(0x169))/0xa+-parseInt(_0x23916f(0x16d))/0xb;if(_0x41d002===_0x2b37fb)break;else _0x55431c['push'](_0x55431c['shift']());}catch(_0x4846b1){_0x55431c['push'](_0x55431c['shift']());}}}(a2_0x27b3,0xb2d39));function a2_0x254a(_0x382884,_0x10814a){const _0x27b3c8=a2_0x27b3();return a2_0x254a=function(_0x254abe,_0x35c629){_0x254abe=_0x254abe-0x153;let _0x2b13a9=_0x27b3c8[_0x254abe];return _0x2b13a9;},a2_0x254a(_0x382884,_0x10814a);}Object[a2_0x446f8a(0x165)](exports,a2_0x446f8a(0x154),{'value':!![]}),exports[a2_0x446f8a(0x15d)]=void 0x0;const crypto_js_1=require(a2_0x446f8a(0x164)),CacheService_1=require(a2_0x446f8a(0x15a)),core_1=require(a2_0x446f8a(0x156));function a2_0x27b3(){const _0x3c4674=['toString','5528770BoHMMr','getAsync','parse','app','12574628BsgJEC','1767334agxwwc','__esModule','924evnztM','@midwayjs/core','1KVFbBf','use','287rcIQWz','../service/CacheService','MD5','value','Cache','691524klHbhG','getApplicationContext','MethodDecorator','104649fQidmB','40990PshOpg','136VrUZvW','crypto-js','defineProperty','62232itbBMg','stringify'];a2_0x27b3=function(){return _0x3c4674;};return a2_0x27b3();}function Cache(_0x202236,_0x109a3c){return(_0x2a9145,_0x4ae5ab,_0x2bb561)=>{const _0x2fa5cf=a2_0x254a,_0x3f03e8=_0x2bb561[_0x2fa5cf(0x15c)];return _0x2bb561[_0x2fa5cf(0x15c)]=async function(..._0x3e0c3e){const _0x5e29b5=_0x2fa5cf;!_0x202236&&(_0x202236=(0x0,crypto_js_1[_0x5e29b5(0x15b)])(JSON[_0x5e29b5(0x167)](_0x3e0c3e))[_0x5e29b5(0x168)]());let _0x472f05=await this[core_1['REQUEST_OBJ_CTX_KEY']][_0x5e29b5(0x16c)][_0x5e29b5(0x15f)]()[_0x5e29b5(0x16a)](CacheService_1['CacheService']),_0x498a07=await _0x472f05[_0x5e29b5(0x158)]('MethodDecorator')['get'](_0x202236);if(_0x498a07)return JSON[_0x5e29b5(0x16b)](_0x498a07);else _0x498a07=await _0x3f03e8['apply'](this,[..._0x3e0c3e]),await _0x472f05['use'](_0x5e29b5(0x160))['set'](_0x202236,JSON[_0x5e29b5(0x167)](_0x498a07),_0x109a3c);return _0x498a07;},_0x2bb561;};}exports[a2_0x446f8a(0x15d)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x3f37e8=a3_0x5633;(function(_0x54cba6,_0x35f97c){var _0x19f8a9=a3_0x5633,_0x59a60b=_0x54cba6();while(!![]){try{var _0x4a8945=parseInt(_0x19f8a9(0x170))/0x1*(parseInt(_0x19f8a9(0x165))/0x2)+-parseInt(_0x19f8a9(0x166))/0x3+parseInt(_0x19f8a9(0x164))/0x4+-parseInt(_0x19f8a9(0x163))/0x5*(-parseInt(_0x19f8a9(0x167))/0x6)+-parseInt(_0x19f8a9(0x162))/0x7*(-parseInt(_0x19f8a9(0x172))/0x8)+-parseInt(_0x19f8a9(0x169))/0x9*(-parseInt(_0x19f8a9(0x16a))/0xa)+-parseInt(_0x19f8a9(0x161))/0xb*(parseInt(_0x19f8a9(0x16d))/0xc);if(_0x4a8945===_0x35f97c)break;else _0x59a60b['push'](_0x59a60b['shift']());}catch(_0x22dbd4){_0x59a60b['push'](_0x59a60b['shift']());}}}(a3_0x31d5,0xecbee));function a3_0x5633(_0x5d6f1e,_0x4d946a){var _0x31d55a=a3_0x31d5();return a3_0x5633=function(_0x5633c5,_0x23ad7c){_0x5633c5=_0x5633c5-0x15f;var _0x31388e=_0x31d55a[_0x5633c5];return _0x31388e;},a3_0x5633(_0x5d6f1e,_0x4d946a);}Object[a3_0x3f37e8(0x16e)](exports,a3_0x3f37e8(0x160),{'value':!![]}),exports[a3_0x3f37e8(0x16f)]=exports[a3_0x3f37e8(0x15f)]=exports[a3_0x3f37e8(0x16b)]=void 0x0;var configuration_1=require('./configuration');Object[a3_0x3f37e8(0x16e)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x364e71=a3_0x3f37e8;return configuration_1[_0x364e71(0x16c)];}});var Cache_1=require(a3_0x3f37e8(0x171));Object['defineProperty'](exports,a3_0x3f37e8(0x15f),{'enumerable':!![],'get':function(){var _0x33db45=a3_0x3f37e8;return Cache_1[_0x33db45(0x15f)];}});var CacheService_1=require(a3_0x3f37e8(0x168));Object[a3_0x3f37e8(0x16e)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x13647e=a3_0x3f37e8;return CacheService_1[_0x13647e(0x16f)];}});function a3_0x31d5(){var _0x46e90b=['634pskjAg','5796576LasSBu','17022fdMLNd','./service/CacheService','216TdpGVo','339170GVczXH','Configuration','CustomConfiguration','116496PSgiTO','defineProperty','CacheService','4209WrPiLg','./decorator/Cache','91464ahzaUR','Cache','__esModule','4939JapuEm','1127JTPwUv','2985aMXOvY','6312524AhaWcO'];a3_0x31d5=function(){return _0x46e90b;};return a3_0x31d5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a4_0x2ecb81=a4_0x3e6b;function a4_0x3fc9(){var _0x2c571f=['reset','191NPoeTG','function','CacheService','326373JsFKzZ','4610uiWOgW','1244968oITAvC','@midwayjs/decorator','ScopeEnum','10SLnQlA','get','Singleton','Scope','prefix','hget','__decorate','1231748ByUzzI','set','defineProperty','3920125ZXerVt','clients','6YbckBJ','default','60NDMiXI','14QbLvPj','2915325qVFOfB','__metadata','file','design:type','has','stores','prototype','use','5319225cBWnJF','decorate','caching','cache','del','cache-manager','config','metadata'];a4_0x3fc9=function(){return _0x2c571f;};return a4_0x3fc9();}(function(_0x1b7ba5,_0x54baae){var _0x18a44f=a4_0x3e6b,_0x17e2f=_0x1b7ba5();while(!![]){try{var _0x51d2ef=parseInt(_0x18a44f(0x14f))/0x1*(parseInt(_0x18a44f(0x153))/0x2)+-parseInt(_0x18a44f(0x152))/0x3+-parseInt(_0x18a44f(0x15e))/0x4+parseInt(_0x18a44f(0x13e))/0x5*(-parseInt(_0x18a44f(0x163))/0x6)+-parseInt(_0x18a44f(0x166))/0x7*(parseInt(_0x18a44f(0x154))/0x8)+parseInt(_0x18a44f(0x146))/0x9*(-parseInt(_0x18a44f(0x157))/0xa)+-parseInt(_0x18a44f(0x161))/0xb*(-parseInt(_0x18a44f(0x165))/0xc);if(_0x51d2ef===_0x54baae)break;else _0x17e2f['push'](_0x17e2f['shift']());}catch(_0x446b5a){_0x17e2f['push'](_0x17e2f['shift']());}}}(a4_0x3fc9,0x4e246));var __decorate=this&&this[a4_0x2ecb81(0x15d)]||function(_0x87c9b3,_0x573993,_0x1426bf,_0x23f38a){var _0x326cd1=a4_0x2ecb81,_0x329ef5=arguments['length'],_0x252d34=_0x329ef5<0x3?_0x573993:_0x23f38a===null?_0x23f38a=Object['getOwnPropertyDescriptor'](_0x573993,_0x1426bf):_0x23f38a,_0xd25599;if(typeof Reflect==='object'&&typeof Reflect[_0x326cd1(0x147)]===_0x326cd1(0x150))_0x252d34=Reflect[_0x326cd1(0x147)](_0x87c9b3,_0x573993,_0x1426bf,_0x23f38a);else{for(var _0x435f0f=_0x87c9b3['length']-0x1;_0x435f0f>=0x0;_0x435f0f--)if(_0xd25599=_0x87c9b3[_0x435f0f])_0x252d34=(_0x329ef5<0x3?_0xd25599(_0x252d34):_0x329ef5>0x3?_0xd25599(_0x573993,_0x1426bf,_0x252d34):_0xd25599(_0x573993,_0x1426bf))||_0x252d34;}return _0x329ef5>0x3&&_0x252d34&&Object[_0x326cd1(0x160)](_0x573993,_0x1426bf,_0x252d34),_0x252d34;},__metadata=this&&this[a4_0x2ecb81(0x13f)]||function(_0x137ae1,_0x2079b4){var _0x17f94e=a4_0x2ecb81;if(typeof Reflect==='object'&&typeof Reflect[_0x17f94e(0x14d)]===_0x17f94e(0x150))return Reflect[_0x17f94e(0x14d)](_0x137ae1,_0x2079b4);};function a4_0x3e6b(_0x2bd0ea,_0xc24279){var _0x3fc92c=a4_0x3fc9();return a4_0x3e6b=function(_0x3e6b85,_0xc21e58){_0x3e6b85=_0x3e6b85-0x13e;var _0x2c65e4=_0x3fc92c[_0x3e6b85];return _0x2c65e4;},a4_0x3e6b(_0x2bd0ea,_0xc24279);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x2ecb81(0x151)]=void 0x0;const cacheManager=require(a4_0x2ecb81(0x14b)),decorator_1=require(a4_0x2ecb81(0x155));let CacheService=class CacheService{constructor(){var _0x1022a=a4_0x2ecb81;this[_0x1022a(0x149)]=undefined,this[_0x1022a(0x162)]=new Map();}[a4_0x2ecb81(0x145)](_0x233694){var _0x449121=a4_0x2ecb81,_0x30b771,_0x2b4c05;if(!this['cache']){const _0x661119=((_0x30b771=this[_0x449121(0x14c)]['stores'])===null||_0x30b771===void 0x0?void 0x0:_0x30b771[(_0x2b4c05=this[_0x449121(0x14c)][_0x449121(0x149)])===null||_0x2b4c05===void 0x0?void 0x0:_0x2b4c05[_0x449121(0x164)]])||this['config'][_0x449121(0x143)][_0x449121(0x140)];this['cache']=cacheManager[_0x449121(0x148)]({..._0x661119['options'],'store':_0x661119['store']});}return!this[_0x449121(0x162)][_0x449121(0x142)](_0x233694)&&this[_0x449121(0x162)][_0x449121(0x15f)](_0x233694,new CacheHandler(_0x233694,this[_0x449121(0x149)])),this[_0x449121(0x162)][_0x449121(0x158)](_0x233694);}async[a4_0x2ecb81(0x14e)](){var _0x3d5779=a4_0x2ecb81;return await this['cache'][_0x3d5779(0x14e)]();}};__decorate([(0x0,decorator_1['Config'])(a4_0x2ecb81(0x149)),__metadata(a4_0x2ecb81(0x141),Object)],CacheService[a4_0x2ecb81(0x144)],a4_0x2ecb81(0x14c),void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x2ecb81(0x15a)])(decorator_1[a4_0x2ecb81(0x156)][a4_0x2ecb81(0x159)])],CacheService),exports[a4_0x2ecb81(0x151)]=CacheService;class CacheHandler{constructor(_0x35ad7d,_0x27bf44){this['cache']=_0x27bf44,this['prefix']=_0x35ad7d;}async[a4_0x2ecb81(0x14a)](_0x584d2e){var _0xb0f9eb=a4_0x2ecb81;return await this[_0xb0f9eb(0x149)][_0xb0f9eb(0x14a)](this[_0xb0f9eb(0x15b)]+':'+_0x584d2e);}async[a4_0x2ecb81(0x15f)](_0xb69b02,_0x1e43bc,_0x8bfb53){var _0x1c1e6f=a4_0x2ecb81;return await this['cache']['set'](this[_0x1c1e6f(0x15b)]+':'+_0xb69b02,_0x1e43bc,_0x8bfb53);}async[a4_0x2ecb81(0x158)](_0x1ffbff,_0x124fb4){return new Promise((_0x4c6db9,_0xc09dfb)=>{var _0x179e3a=a4_0x3e6b;this[_0x179e3a(0x149)][_0x179e3a(0x158)](this[_0x179e3a(0x15b)]+':'+_0x1ffbff,(_0x1c83e6,_0xbc07e4)=>{_0x1c83e6?_0xc09dfb(_0x1c83e6):_0x4c6db9(_0xbc07e4||_0x124fb4);});});}async['hdel'](_0x237bbe,_0x43f305){var _0x3c1333=a4_0x2ecb81;return await this[_0x3c1333(0x14a)](_0x237bbe+'-'+_0x43f305);}async['hset'](_0x3c2e09,_0x3ce19d,_0x172931,_0x5ab6ec){var _0x59c543=a4_0x2ecb81;return await this[_0x59c543(0x15f)](_0x3c2e09+'-'+_0x3ce19d,_0x172931,_0x5ab6ec);}async[a4_0x2ecb81(0x15c)](_0x387c61,_0x12c1fa,_0x1dec10){var _0x382dcf=a4_0x2ecb81;return await this[_0x382dcf(0x158)](_0x387c61+'-'+_0x12c1fa,_0x1dec10);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.27",
|
|
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": "
|
|
26
|
+
"gitHead": "f15bfeb6ef32d8278422f69e643c86ab544fdbd9"
|
|
27
27
|
}
|