@anncic-api/cache 1.1.13 → 1.1.16
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';
|
|
1
|
+
'use strict';const a0_0x347798=a0_0x526f;(function(_0x2f5f62,_0x25fa10){const _0x50a8ed=a0_0x526f,_0x2c0d2c=_0x2f5f62();while(!![]){try{const _0x23e69b=-parseInt(_0x50a8ed(0x1e6))/0x1*(parseInt(_0x50a8ed(0x1d6))/0x2)+-parseInt(_0x50a8ed(0x1da))/0x3*(-parseInt(_0x50a8ed(0x1e2))/0x4)+parseInt(_0x50a8ed(0x1de))/0x5*(parseInt(_0x50a8ed(0x1dc))/0x6)+parseInt(_0x50a8ed(0x1e1))/0x7*(-parseInt(_0x50a8ed(0x1d7))/0x8)+parseInt(_0x50a8ed(0x1e3))/0x9*(parseInt(_0x50a8ed(0x1db))/0xa)+parseInt(_0x50a8ed(0x1e0))/0xb+-parseInt(_0x50a8ed(0x1d8))/0xc;if(_0x23e69b===_0x25fa10)break;else _0x2c0d2c['push'](_0x2c0d2c['shift']());}catch(_0x2abeb7){_0x2c0d2c['push'](_0x2c0d2c['shift']());}}}(a0_0x4f07,0x54f96));function a0_0x526f(_0x351317,_0x2f3194){const _0x4f07d8=a0_0x4f07();return a0_0x526f=function(_0x526fa9,_0x3e1851){_0x526fa9=_0x526fa9-0x1d3;let _0xf9aa61=_0x4f07d8[_0x526fa9];return _0xf9aa61;},a0_0x526f(_0x351317,_0x2f3194);}Object[a0_0x347798(0x1df)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x347798(0x1d4)),redisStore=require(a0_0x347798(0x1dd));exports[a0_0x347798(0x1d5)]=_0x4e39f0=>{const _0x3eb8fc=a0_0x347798;return{'cache':{'default':_0x3eb8fc(0x1d3),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x4e39f0[_0x3eb8fc(0x1e4)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x3eb8fc(0x1e5),'password':'','ttl':0x1e13380,'keyPrefix':_0x4e39f0[_0x3eb8fc(0x1e7)]+':'}},'memory':{'store':_0x3eb8fc(0x1d9),'options':{'max':0x64,'ttl':0x1e13380}}}}};};function a0_0x4f07(){const _0x23012e=['7430anHuMo','134430ADhCuu','cache-manager-ioredis','105aUvsVH','defineProperty','2450679vRVjnR','11417PIhnBI','4PnTsGq','1440eXEDqb','appDir','127.0.0.1','9320wzftur','name','file','cache-manager-fs-hash','default','136jZxHvB','1080gFHBMB','178488BnQABp','memory','1214097pAfxGB'];a0_0x4f07=function(){return _0x23012e;};return a0_0x4f07();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a1_0x3a8f99=a1_0x52ce;(function(_0x40266f,_0x9b8a11){var _0x9f9755=a1_0x52ce,_0x596ebe=_0x40266f();while(!![]){try{var _0x2dd6bb=-parseInt(_0x9f9755(0xa6))/0x1+-parseInt(_0x9f9755(0x9c))/0x2*(parseInt(_0x9f9755(0xa1))/0x3)+parseInt(_0x9f9755(0xa5))/0x4+parseInt(_0x9f9755(0x9f))/0x5+-parseInt(_0x9f9755(0xa3))/0x6+parseInt(_0x9f9755(0xa2))/0x7*(parseInt(_0x9f9755(0xa8))/0x8)+parseInt(_0x9f9755(0xa4))/0x9;if(_0x2dd6bb===_0x9b8a11)break;else _0x596ebe['push'](_0x596ebe['shift']());}catch(_0x20413c){_0x596ebe['push'](_0x596ebe['shift']());}}}(a1_0x4d26,0xd98f0));function a1_0x4d26(){var _0x4f65ed=['94409VpFpTx','6868458JnIEyZ','24900894hVVkIi','2393808cSyHcD','1392194pzXnAy','decorate','344kmXjlT','Configuration','CustomConfiguration','./config/config.default','defineProperty','object','3974YRPaoj','length','@midwayjs/decorator','2868805gaiRQI','__decorate','1647VMAWDl'];a1_0x4d26=function(){return _0x4f65ed;};return a1_0x4d26();}var __decorate=this&&this[a1_0x3a8f99(0xa0)]||function(_0x3e3524,_0x558fa1,_0x2ce56e,_0x25bec5){var _0x514fd8=a1_0x3a8f99,_0x4d4467=arguments[_0x514fd8(0x9d)],_0x11152f=_0x4d4467<0x3?_0x558fa1:_0x25bec5===null?_0x25bec5=Object['getOwnPropertyDescriptor'](_0x558fa1,_0x2ce56e):_0x25bec5,_0x48440f;if(typeof Reflect===_0x514fd8(0xad)&&typeof Reflect[_0x514fd8(0xa7)]==='function')_0x11152f=Reflect[_0x514fd8(0xa7)](_0x3e3524,_0x558fa1,_0x2ce56e,_0x25bec5);else{for(var _0x19db37=_0x3e3524[_0x514fd8(0x9d)]-0x1;_0x19db37>=0x0;_0x19db37--)if(_0x48440f=_0x3e3524[_0x19db37])_0x11152f=(_0x4d4467<0x3?_0x48440f(_0x11152f):_0x4d4467>0x3?_0x48440f(_0x558fa1,_0x2ce56e,_0x11152f):_0x48440f(_0x558fa1,_0x2ce56e))||_0x11152f;}return _0x4d4467>0x3&&_0x11152f&&Object['defineProperty'](_0x558fa1,_0x2ce56e,_0x11152f),_0x11152f;};function a1_0x52ce(_0x2a75b8,_0x5437a1){var _0x4d267f=a1_0x4d26();return a1_0x52ce=function(_0x52ce93,_0xd3ae17){_0x52ce93=_0x52ce93-0x9c;var _0x3e4cff=_0x4d267f[_0x52ce93];return _0x3e4cff;},a1_0x52ce(_0x2a75b8,_0x5437a1);}Object[a1_0x3a8f99(0xac)](exports,'__esModule',{'value':!![]}),exports[a1_0x3a8f99(0xaa)]=void 0x0;const decorator_1=require(a1_0x3a8f99(0x9e)),ConfigDefault=require(a1_0x3a8f99(0xab));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x3a8f99(0xa9)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x3a8f99(0xaa)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x581676=a2_0x286b;function a2_0x286b(_0x4c04a6,_0x3ce7b2){const _0x544a5e=a2_0x544a();return a2_0x286b=function(_0x286b98,_0xe265f7){_0x286b98=_0x286b98-0x199;let _0x45dc62=_0x544a5e[_0x286b98];return _0x45dc62;},a2_0x286b(_0x4c04a6,_0x3ce7b2);}(function(_0x215f65,_0x3811f4){const _0x2c7050=a2_0x286b,_0x34641e=_0x215f65();while(!![]){try{const _0x1914f5=parseInt(_0x2c7050(0x19b))/0x1*(parseInt(_0x2c7050(0x1a5))/0x2)+-parseInt(_0x2c7050(0x1ad))/0x3*(-parseInt(_0x2c7050(0x1a9))/0x4)+-parseInt(_0x2c7050(0x1a8))/0x5+-parseInt(_0x2c7050(0x1a6))/0x6*(-parseInt(_0x2c7050(0x1b3))/0x7)+-parseInt(_0x2c7050(0x1af))/0x8+parseInt(_0x2c7050(0x1ac))/0x9*(parseInt(_0x2c7050(0x1a7))/0xa)+parseInt(_0x2c7050(0x19f))/0xb*(parseInt(_0x2c7050(0x1b1))/0xc);if(_0x1914f5===_0x3811f4)break;else _0x34641e['push'](_0x34641e['shift']());}catch(_0x4d29e0){_0x34641e['push'](_0x34641e['shift']());}}}(a2_0x544a,0x565a8));Object[a2_0x581676(0x1a2)](exports,a2_0x581676(0x1a3),{'value':!![]}),exports[a2_0x581676(0x1a4)]=void 0x0;const crypto_js_1=require(a2_0x581676(0x1b2)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x581676(0x1ab));function Cache(_0x34336c,_0x4fe1ac){return(_0x4c88f2,_0x1b7101,_0x1579d3)=>{const _0x1dcc67=a2_0x286b,_0x15d0a3=_0x1579d3[_0x1dcc67(0x19d)];return _0x1579d3[_0x1dcc67(0x19d)]=async function(..._0x2c3fee){const _0x2fdec5=_0x1dcc67;!_0x34336c&&(_0x34336c=(0x0,crypto_js_1['MD5'])(JSON[_0x2fdec5(0x19c)](_0x2c3fee))[_0x2fdec5(0x1b0)]());let _0x40d400=await this[core_1[_0x2fdec5(0x1a1)]][_0x2fdec5(0x1ae)]['getApplicationContext']()[_0x2fdec5(0x199)](CacheService_1['CacheService']),_0x422fb3=await _0x40d400[_0x2fdec5(0x19a)](_0x2fdec5(0x19e))['get'](_0x34336c);if(_0x422fb3)return JSON[_0x2fdec5(0x1aa)](_0x422fb3);else _0x422fb3=await _0x15d0a3[_0x2fdec5(0x1a0)](this,[..._0x2c3fee]),await _0x40d400[_0x2fdec5(0x19a)](_0x2fdec5(0x19e))[_0x2fdec5(0x1b4)](_0x34336c,JSON[_0x2fdec5(0x19c)](_0x422fb3),_0x4fe1ac);return _0x422fb3;},_0x1579d3;};}exports[a2_0x581676(0x1a4)]=Cache;function a2_0x544a(){const _0x5e9e48=['9qHndSk','39ykxtSx','app','3276824lPVfWS','toString','2741280IWEIGf','crypto-js','14fqYgEn','set','getAsync','use','2279lAFQfu','stringify','value','MethodDecorator','22ipQxmj','apply','REQUEST_OBJ_CTX_KEY','defineProperty','__esModule','Cache','164ktrxAu','925674eFeNtp','865210nVoqDe','2709175XwPSNm','81940PllPSH','parse','@midwayjs/core'];a2_0x544a=function(){return _0x5e9e48;};return a2_0x544a();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a3_0x73e1(_0x4d752c,_0x3d1f6b){var _0xdba62c=a3_0xdba6();return a3_0x73e1=function(_0x73e1a2,_0x3f83bd){_0x73e1a2=_0x73e1a2-0xe5;var _0xe4d315=_0xdba62c[_0x73e1a2];return _0xe4d315;},a3_0x73e1(_0x4d752c,_0x3d1f6b);}var a3_0x12ff64=a3_0x73e1;(function(_0x229d05,_0x10ce8a){var _0x46af9b=a3_0x73e1,_0x5c292d=_0x229d05();while(!![]){try{var _0x436803=-parseInt(_0x46af9b(0xf1))/0x1+parseInt(_0x46af9b(0xf4))/0x2+parseInt(_0x46af9b(0xef))/0x3+-parseInt(_0x46af9b(0xf2))/0x4+parseInt(_0x46af9b(0xe8))/0x5*(-parseInt(_0x46af9b(0xe9))/0x6)+parseInt(_0x46af9b(0xee))/0x7+-parseInt(_0x46af9b(0xea))/0x8*(-parseInt(_0x46af9b(0xf3))/0x9);if(_0x436803===_0x10ce8a)break;else _0x5c292d['push'](_0x5c292d['shift']());}catch(_0x1b3939){_0x5c292d['push'](_0x5c292d['shift']());}}}(a3_0xdba6,0xdf3f6));Object[a3_0x12ff64(0xec)](exports,a3_0x12ff64(0xe7),{'value':!![]}),exports[a3_0x12ff64(0xe6)]=exports[a3_0x12ff64(0xf0)]=exports['Configuration']=void 0x0;var configuration_1=require('./configuration');Object[a3_0x12ff64(0xec)](exports,a3_0x12ff64(0xeb),{'enumerable':!![],'get':function(){var _0x3cdc31=a3_0x12ff64;return configuration_1[_0x3cdc31(0xed)];}});var Cache_1=require(a3_0x12ff64(0xe5));Object[a3_0x12ff64(0xec)](exports,a3_0x12ff64(0xf0),{'enumerable':!![],'get':function(){var _0x113de6=a3_0x12ff64;return Cache_1[_0x113de6(0xf0)];}});var CacheService_1=require(a3_0x12ff64(0xf5));Object[a3_0x12ff64(0xec)](exports,a3_0x12ff64(0xe6),{'enumerable':!![],'get':function(){var _0x4d14ea=a3_0x12ff64;return CacheService_1[_0x4d14ea(0xe6)];}});function a3_0xdba6(){var _0x322862=['3064077Ymiawu','2671468WOYvTK','./service/CacheService','./decorator/Cache','CacheService','__esModule','1047805OrQFtc','12vgCLAk','24LsaEJS','Configuration','defineProperty','CustomConfiguration','10567788lBtDnX','390900derDaP','Cache','957012XIAlJR','6826084HPUCmm'];a3_0xdba6=function(){return _0x322862;};return a3_0xdba6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a4_0xb122(_0xd07d5d,_0x15b946){var _0x278a5c=a4_0x278a();return a4_0xb122=function(_0xb122b4,_0x596011){_0xb122b4=_0xb122b4-0xb1;var _0x1edc07=_0x278a5c[_0xb122b4];return _0x1edc07;},a4_0xb122(_0xd07d5d,_0x15b946);}var a4_0xfc5f91=a4_0xb122;(function(_0x26e385,_0x5eb28d){var _0x223ce0=a4_0xb122,_0x5747df=_0x26e385();while(!![]){try{var _0x41673f=parseInt(_0x223ce0(0xc9))/0x1*(parseInt(_0x223ce0(0xbd))/0x2)+-parseInt(_0x223ce0(0xcd))/0x3*(parseInt(_0x223ce0(0xbe))/0x4)+parseInt(_0x223ce0(0xb7))/0x5*(parseInt(_0x223ce0(0xc5))/0x6)+-parseInt(_0x223ce0(0xc4))/0x7*(parseInt(_0x223ce0(0xda))/0x8)+-parseInt(_0x223ce0(0xb3))/0x9+-parseInt(_0x223ce0(0xc2))/0xa+parseInt(_0x223ce0(0xb5))/0xb*(parseInt(_0x223ce0(0xb2))/0xc);if(_0x41673f===_0x5eb28d)break;else _0x5747df['push'](_0x5747df['shift']());}catch(_0x9c5e88){_0x5747df['push'](_0x5747df['shift']());}}}(a4_0x278a,0x56852));var __decorate=this&&this[a4_0xfc5f91(0xcb)]||function(_0x7cd1f6,_0x55ef6b,_0x5ccb86,_0x4983a7){var _0xac10c1=a4_0xfc5f91,_0x310f47=arguments[_0xac10c1(0xd6)],_0x418d23=_0x310f47<0x3?_0x55ef6b:_0x4983a7===null?_0x4983a7=Object[_0xac10c1(0xd0)](_0x55ef6b,_0x5ccb86):_0x4983a7,_0x454ad3;if(typeof Reflect===_0xac10c1(0xdc)&&typeof Reflect[_0xac10c1(0xd9)]===_0xac10c1(0xde))_0x418d23=Reflect[_0xac10c1(0xd9)](_0x7cd1f6,_0x55ef6b,_0x5ccb86,_0x4983a7);else{for(var _0x1ee4e6=_0x7cd1f6[_0xac10c1(0xd6)]-0x1;_0x1ee4e6>=0x0;_0x1ee4e6--)if(_0x454ad3=_0x7cd1f6[_0x1ee4e6])_0x418d23=(_0x310f47<0x3?_0x454ad3(_0x418d23):_0x310f47>0x3?_0x454ad3(_0x55ef6b,_0x5ccb86,_0x418d23):_0x454ad3(_0x55ef6b,_0x5ccb86))||_0x418d23;}return _0x310f47>0x3&&_0x418d23&&Object[_0xac10c1(0xbc)](_0x55ef6b,_0x5ccb86,_0x418d23),_0x418d23;},__metadata=this&&this[a4_0xfc5f91(0xd4)]||function(_0x2a0d7e,_0x3b2f6d){var _0x43a835=a4_0xfc5f91;if(typeof Reflect===_0x43a835(0xdc)&&typeof Reflect[_0x43a835(0xd2)]===_0x43a835(0xde))return Reflect[_0x43a835(0xd2)](_0x2a0d7e,_0x3b2f6d);};Object[a4_0xfc5f91(0xbc)](exports,a4_0xfc5f91(0xd7),{'value':!![]}),exports[a4_0xfc5f91(0xb6)]=void 0x0;const cacheManager=require(a4_0xfc5f91(0xba)),decorator_1=require(a4_0xfc5f91(0xca));let CacheService=class CacheService{constructor(){var _0x1f2206=a4_0xfc5f91;this['cache']=undefined,this[_0x1f2206(0xc0)]=new Map();}[a4_0xfc5f91(0xb9)](_0xd57ca0){var _0x55fd6a=a4_0xfc5f91,_0x552b26,_0x142ed5;if(!this[_0x55fd6a(0xbb)]){const _0x8b62b5=((_0x552b26=this[_0x55fd6a(0xc1)]['stores'])===null||_0x552b26===void 0x0?void 0x0:_0x552b26[(_0x142ed5=this['config'][_0x55fd6a(0xbb)])===null||_0x142ed5===void 0x0?void 0x0:_0x142ed5[_0x55fd6a(0xd1)]])||this['config'][_0x55fd6a(0xcc)][_0x55fd6a(0xbf)];this[_0x55fd6a(0xbb)]=cacheManager['caching']({..._0x8b62b5[_0x55fd6a(0xc6)],'store':_0x8b62b5['store']});}return!this[_0x55fd6a(0xc0)][_0x55fd6a(0xc7)](_0xd57ca0)&&this[_0x55fd6a(0xc0)][_0x55fd6a(0xd3)](_0xd57ca0,new CacheHandler(_0xd57ca0,this['cache'])),this[_0x55fd6a(0xc0)][_0x55fd6a(0xb4)](_0xd57ca0);}async[a4_0xfc5f91(0xd5)](){var _0x4c444d=a4_0xfc5f91;return await this[_0x4c444d(0xbb)][_0x4c444d(0xd5)]();}};__decorate([(0x0,decorator_1[a4_0xfc5f91(0xc8)])(a4_0xfc5f91(0xbb)),__metadata('design:type',Object)],CacheService[a4_0xfc5f91(0xd8)],a4_0xfc5f91(0xc1),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0xfc5f91(0xc3)])(),(0x0,decorator_1[a4_0xfc5f91(0xb8)])(decorator_1['ScopeEnum'][a4_0xfc5f91(0xce)])],CacheService),exports[a4_0xfc5f91(0xb6)]=CacheService;class CacheHandler{constructor(_0x91c5c9,_0x505100){var _0x3257eb=a4_0xfc5f91;this['cache']=_0x505100,this[_0x3257eb(0xdb)]=_0x91c5c9;}async[a4_0xfc5f91(0xdd)](_0x1f6a18){var _0x1c94b1=a4_0xfc5f91;return await this[_0x1c94b1(0xbb)][_0x1c94b1(0xdd)](this[_0x1c94b1(0xdb)]+':'+_0x1f6a18);}async['set'](_0x1a2d55,_0x50377c,_0x39bfee){var _0x3bd693=a4_0xfc5f91;return await this[_0x3bd693(0xbb)][_0x3bd693(0xd3)](this['prefix']+':'+_0x1a2d55,_0x50377c,_0x39bfee);}async['get'](_0x369407,_0x2b0239){return new Promise((_0xc7a62e,_0x207def)=>{var _0x310998=a4_0xb122;this['cache'][_0x310998(0xb4)](this[_0x310998(0xdb)]+':'+_0x369407,(_0x84243e,_0x4fb0ea)=>{_0x84243e?_0x207def(_0x84243e):_0xc7a62e(_0x4fb0ea||_0x2b0239);});});}async[a4_0xfc5f91(0xb1)](_0x3f2000,_0x2abd9d){var _0x30659b=a4_0xfc5f91;return await this[_0x30659b(0xdd)](_0x3f2000+'-'+_0x2abd9d);}async['hset'](_0x3d2c25,_0x636231,_0x418538,_0x1075a6){var _0x27fd5f=a4_0xfc5f91;return await this[_0x27fd5f(0xd3)](_0x3d2c25+'-'+_0x636231,_0x418538,_0x1075a6);}async[a4_0xfc5f91(0xcf)](_0x5424dc,_0x5b6c3b,_0x8e8977){var _0x57fc40=a4_0xfc5f91;return await this[_0x57fc40(0xb4)](_0x5424dc+'-'+_0x5b6c3b,_0x8e8977);}}function a4_0x278a(){var _0xda0469=['has','Config','1hnBOBf','@midwayjs/decorator','__decorate','stores','20409epXfei','Singleton','hget','getOwnPropertyDescriptor','default','metadata','set','__metadata','reset','length','__esModule','prototype','decorate','536UWwxXy','prefix','object','del','function','hdel','10247016cbcyJi','4818708rhFCMz','get','22CbMazU','CacheService','15ujQgrU','Scope','use','cache-manager','cache','defineProperty','1116842pNkcfi','316KRZhfL','file','clients','config','5647700eEOzwb','Provide','43666OZAdyF','287388zryzWM','options'];a4_0x278a=function(){return _0xda0469;};return a4_0x278a();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
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": "452564401c353c628070325c7dabca442a008f8d"
|
|
27
27
|
}
|