@anncic-api/cache 1.4.10 → 1.4.11
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_0x554192=a0_0x5c0f;(function(_0x4f8d08,_0x574f68){const _0x404ecc=a0_0x5c0f,_0x361dcd=_0x4f8d08();while(!![]){try{const _0x313722=parseInt(_0x404ecc(0x19d))/0x1*(parseInt(_0x404ecc(0x1a4))/0x2)+-parseInt(_0x404ecc(0x1a5))/0x3+-parseInt(_0x404ecc(0x1a7))/0x4*(parseInt(_0x404ecc(0x198))/0x5)+parseInt(_0x404ecc(0x199))/0x6+-parseInt(_0x404ecc(0x1a9))/0x7*(parseInt(_0x404ecc(0x1ac))/0x8)+-parseInt(_0x404ecc(0x1a3))/0x9*(parseInt(_0x404ecc(0x19a))/0xa)+parseInt(_0x404ecc(0x19e))/0xb;if(_0x313722===_0x574f68)break;else _0x361dcd['push'](_0x361dcd['shift']());}catch(_0x26b676){_0x361dcd['push'](_0x361dcd['shift']());}}}(a0_0x5383,0x1d9dd));function a0_0x5383(){const _0x1dd2a3=['4EzkuOW','127.0.0.1','28749UBLikX','memory','file','200eCMjDg','71365VdwVXq','408744ntSaFj','1030MhBtZz','/runtime/.cache','name','9477AcxhFZ','5091185lINWSk','cache-manager-ioredis','defineProperty','default','cache-manager-fs-hash','18648NydDaI','20EMCpgG','522168egiJSD','appDir'];a0_0x5383=function(){return _0x1dd2a3;};return a0_0x5383();}function a0_0x5c0f(_0xf727fe,_0x3665e2){const _0x5383a2=a0_0x5383();return a0_0x5c0f=function(_0x5c0fb1,_0x3cec3e){_0x5c0fb1=_0x5c0fb1-0x198;let _0x3b0f8c=_0x5383a2[_0x5c0fb1];return _0x3b0f8c;},a0_0x5c0f(_0xf727fe,_0x3665e2);}Object[a0_0x554192(0x1a0)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x554192(0x1a2)),redisStore=require(a0_0x554192(0x19f));exports[a0_0x554192(0x1a1)]=_0x276b17=>{const _0x4d5447=a0_0x554192;return{'cache':{'default':_0x4d5447(0x1ab),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x276b17[_0x4d5447(0x1a6)]+_0x4d5447(0x19b)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x4d5447(0x1a8),'password':'','ttl':0x1e13380,'keyPrefix':_0x276b17[_0x4d5447(0x19c)]+':'}},'memory':{'store':_0x4d5447(0x1aa),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a1_0x33f3f6=a1_0x3321;(function(_0x505207,_0xfcd987){var _0x1ff2c3=a1_0x3321,_0x5a72c9=_0x505207();while(!![]){try{var _0x55e28e=parseInt(_0x1ff2c3(0x179))/0x1+-parseInt(_0x1ff2c3(0x17f))/0x2*(parseInt(_0x1ff2c3(0x17d))/0x3)+-parseInt(_0x1ff2c3(0x17a))/0x4+-parseInt(_0x1ff2c3(0x183))/0x5+-parseInt(_0x1ff2c3(0x185))/0x6+parseInt(_0x1ff2c3(0x188))/0x7*(-parseInt(_0x1ff2c3(0x178))/0x8)+parseInt(_0x1ff2c3(0x181))/0x9;if(_0x55e28e===_0xfcd987)break;else _0x5a72c9['push'](_0x5a72c9['shift']());}catch(_0x482a3a){_0x5a72c9['push'](_0x5a72c9['shift']());}}}(a1_0x267b,0xb8e61));var __decorate=this&&this['__decorate']||function(_0x2584c4,_0x27de0f,_0x4ca958,_0x2e5a51){var _0x1b0e69=a1_0x3321,_0x4c5975=arguments['length'],_0x52052f=_0x4c5975<0x3?_0x27de0f:_0x2e5a51===null?_0x2e5a51=Object[_0x1b0e69(0x17b)](_0x27de0f,_0x4ca958):_0x2e5a51,_0x3fc7c2;if(typeof Reflect===_0x1b0e69(0x189)&&typeof Reflect['decorate']===_0x1b0e69(0x184))_0x52052f=Reflect[_0x1b0e69(0x182)](_0x2584c4,_0x27de0f,_0x4ca958,_0x2e5a51);else{for(var _0x44f1fc=_0x2584c4[_0x1b0e69(0x187)]-0x1;_0x44f1fc>=0x0;_0x44f1fc--)if(_0x3fc7c2=_0x2584c4[_0x44f1fc])_0x52052f=(_0x4c5975<0x3?_0x3fc7c2(_0x52052f):_0x4c5975>0x3?_0x3fc7c2(_0x27de0f,_0x4ca958,_0x52052f):_0x3fc7c2(_0x27de0f,_0x4ca958))||_0x52052f;}return _0x4c5975>0x3&&_0x52052f&&Object['defineProperty'](_0x27de0f,_0x4ca958,_0x52052f),_0x52052f;};function a1_0x3321(_0x1aba0b,_0x37cd26){var _0x267b79=a1_0x267b();return a1_0x3321=function(_0x33219e,_0xadf89c){_0x33219e=_0x33219e-0x178;var _0x1355cc=_0x267b79[_0x33219e];return _0x1355cc;},a1_0x3321(_0x1aba0b,_0x37cd26);}Object[a1_0x33f3f6(0x17c)](exports,a1_0x33f3f6(0x17e),{'value':!![]}),exports[a1_0x33f3f6(0x186)]=void 0x0;function a1_0x267b(){var _0x36b6e3=['decorate','2587665wKCDsQ','function','8500770PWvMWk','CustomConfiguration','length','7RxvlBI','object','6633712yrBavs','511735CVCZaM','3264760nZMIRO','getOwnPropertyDescriptor','defineProperty','525AuGMVj','__esModule','8234elKthC','@midwayjs/core','40912353Xdkhae'];a1_0x267b=function(){return _0x36b6e3;};return a1_0x267b();}const core_1=require(a1_0x33f3f6(0x180)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x33f3f6(0x186)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x22ae81=a2_0x2c33;function a2_0x2c33(_0x261252,_0x40c783){const _0x5ae315=a2_0x5ae3();return a2_0x2c33=function(_0x2c33a0,_0x5a6ce8){_0x2c33a0=_0x2c33a0-0x1e2;let _0x3a32a8=_0x5ae315[_0x2c33a0];return _0x3a32a8;},a2_0x2c33(_0x261252,_0x40c783);}(function(_0x39f81e,_0x1c6ba0){const _0xf6cdd5=a2_0x2c33,_0x4ea061=_0x39f81e();while(!![]){try{const _0xc12c58=-parseInt(_0xf6cdd5(0x1e9))/0x1+parseInt(_0xf6cdd5(0x1ee))/0x2*(parseInt(_0xf6cdd5(0x1f3))/0x3)+parseInt(_0xf6cdd5(0x1ec))/0x4*(parseInt(_0xf6cdd5(0x1e4))/0x5)+parseInt(_0xf6cdd5(0x1e7))/0x6+parseInt(_0xf6cdd5(0x1fa))/0x7*(-parseInt(_0xf6cdd5(0x1e8))/0x8)+-parseInt(_0xf6cdd5(0x1f2))/0x9*(-parseInt(_0xf6cdd5(0x1f8))/0xa)+-parseInt(_0xf6cdd5(0x1eb))/0xb;if(_0xc12c58===_0x1c6ba0)break;else _0x4ea061['push'](_0x4ea061['shift']());}catch(_0xd69991){_0x4ea061['push'](_0x4ea061['shift']());}}}(a2_0x5ae3,0x32039));Object[a2_0x22ae81(0x1f0)](exports,a2_0x22ae81(0x1e2),{'value':!![]}),exports[a2_0x22ae81(0x1fd)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x22ae81(0x1f7)),core_1=require(a2_0x22ae81(0x1ef));function Cache(_0x10d5aa,_0x3908d3){return(_0x4afff9,_0x7e56c8,_0x23ec60)=>{const _0x5a6093=a2_0x2c33,_0x5e692c=_0x23ec60[_0x5a6093(0x1f5)];return _0x23ec60[_0x5a6093(0x1f5)]=async function(..._0x58114c){const _0x27734a=_0x5a6093;!_0x10d5aa&&(_0x10d5aa=(0x0,crypto_js_1['MD5'])(JSON[_0x27734a(0x1ea)](_0x58114c))[_0x27734a(0x1f6)]());let _0x31af74=await this[core_1[_0x27734a(0x1e6)]][_0x27734a(0x1f4)][_0x27734a(0x1e5)]()[_0x27734a(0x1fc)](CacheService_1[_0x27734a(0x1fb)]),_0x156a3b=await _0x31af74[_0x27734a(0x1e3)]('Method::Decorator')[_0x27734a(0x1f9)](_0x10d5aa);if(_0x156a3b)return JSON['parse'](_0x156a3b);else _0x156a3b=await _0x5e692c[_0x27734a(0x1ed)](this,[..._0x58114c]),await _0x31af74[_0x27734a(0x1e3)](_0x27734a(0x1fe))[_0x27734a(0x1f1)](_0x10d5aa,JSON['stringify'](_0x156a3b),_0x3908d3);return _0x156a3b;},_0x23ec60;};}exports['Cache']=Cache;function a2_0x5ae3(){const _0x4d90fe=['apply','4DSMTqM','@midwayjs/core','defineProperty','set','594HDpleb','65967blQeNS','app','value','toString','../service/CacheService','40010RWDQIN','get','1230299gDCBqu','CacheService','getAsync','Cache','Method::Decorator','__esModule','use','245iSyzxo','getApplicationContext','REQUEST_OBJ_CTX_KEY','2355534WLpuAn','8YFTjvY','104713ahARhE','stringify','6310073ZEfhXB','29252vTLzIZ'];a2_0x5ae3=function(){return _0x4d90fe;};return a2_0x5ae3();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a3_0x5a6b(){var _0x2b7dd9=['35390KKbeka','./decorator/Cache','Cache','6qMWvXX','CustomConfiguration','Configuration','1301155niQxAV','799194aCMyQo','500521anwdcP','1402718GupYbo','defineProperty','104kvWaPa','./configuration','1775128WmdWcL','5887116CAeNFQ','CacheService'];a3_0x5a6b=function(){return _0x2b7dd9;};return a3_0x5a6b();}var a3_0x563f69=a3_0xda81;(function(_0x584ab3,_0x101238){var _0x449060=a3_0xda81,_0x4064ce=_0x584ab3();while(!![]){try{var _0x4a787f=parseInt(_0x449060(0x162))/0x1+-parseInt(_0x449060(0x165))/0x2+parseInt(_0x449060(0x163))/0x3+-parseInt(_0x449060(0x159))/0x4+parseInt(_0x449060(0x15c))/0x5*(-parseInt(_0x449060(0x15f))/0x6)+-parseInt(_0x449060(0x164))/0x7*(-parseInt(_0x449060(0x157))/0x8)+-parseInt(_0x449060(0x15a))/0x9;if(_0x4a787f===_0x101238)break;else _0x4064ce['push'](_0x4064ce['shift']());}catch(_0xfda63c){_0x4064ce['push'](_0x4064ce['shift']());}}}(a3_0x5a6b,0xa8a3d));Object[a3_0x563f69(0x156)](exports,'__esModule',{'value':!![]}),exports[a3_0x563f69(0x15b)]=exports[a3_0x563f69(0x15e)]=exports[a3_0x563f69(0x161)]=void 0x0;var configuration_1=require(a3_0x563f69(0x158));Object[a3_0x563f69(0x156)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x45244a=a3_0x563f69;return configuration_1[_0x45244a(0x160)];}});var Cache_1=require(a3_0x563f69(0x15d));Object[a3_0x563f69(0x156)](exports,a3_0x563f69(0x15e),{'enumerable':!![],'get':function(){var _0x57b47e=a3_0x563f69;return Cache_1[_0x57b47e(0x15e)];}});var CacheService_1=require('./service/CacheService');function a3_0xda81(_0x1ddbb4,_0x2d4766){var _0x5a6b56=a3_0x5a6b();return a3_0xda81=function(_0xda81f2,_0x21276b){_0xda81f2=_0xda81f2-0x156;var _0x47c436=_0x5a6b56[_0xda81f2];return _0x47c436;},a3_0xda81(_0x1ddbb4,_0x2d4766);}Object[a3_0x563f69(0x156)](exports,a3_0x563f69(0x15b),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x114dab=a4_0x382f;(function(_0x2dcbfb,_0x2df416){var _0x3bc201=a4_0x382f,_0x56df4f=_0x2dcbfb();while(!![]){try{var _0x185c0b=-parseInt(_0x3bc201(0x1b2))/0x1+-parseInt(_0x3bc201(0x18f))/0x2+parseInt(_0x3bc201(0x19c))/0x3+parseInt(_0x3bc201(0x1a7))/0x4*(-parseInt(_0x3bc201(0x1ac))/0x5)+-parseInt(_0x3bc201(0x1b0))/0x6+parseInt(_0x3bc201(0x194))/0x7+parseInt(_0x3bc201(0x1ae))/0x8;if(_0x185c0b===_0x2df416)break;else _0x56df4f['push'](_0x56df4f['shift']());}catch(_0x198b96){_0x56df4f['push'](_0x56df4f['shift']());}}}(a4_0x2b0d,0x45cb5));function a4_0x2b0d(){var _0x5f5047=['cache','length','816057ZqSDwl','@midwayjs/core','__decorate','stores','config','Scope','options','decorate','reset','__esModule','file','4pHYzMS','CacheService','prototype','__metadata','get','838045AKiRLa','del','11739064JXwZlY','object','2484120febDsr','getOwnPropertyDescriptor','363880MvwLhs','clients','Provide','design:type','hget','1036938AiNkPN','hdel','metadata','set','ScopeEnum','73171jrcuhf','default','use','defineProperty','prefix','function'];a4_0x2b0d=function(){return _0x5f5047;};return a4_0x2b0d();}var __decorate=this&&this[a4_0x114dab(0x19e)]||function(_0x4b2607,_0x519639,_0x18f1ae,_0x67ea76){var _0x18015b=a4_0x114dab,_0x29207d=arguments[_0x18015b(0x19b)],_0x1f53e2=_0x29207d<0x3?_0x519639:_0x67ea76===null?_0x67ea76=Object[_0x18015b(0x1b1)](_0x519639,_0x18f1ae):_0x67ea76,_0x3bbc4d;if(typeof Reflect===_0x18015b(0x1af)&&typeof Reflect[_0x18015b(0x1a3)]==='function')_0x1f53e2=Reflect[_0x18015b(0x1a3)](_0x4b2607,_0x519639,_0x18f1ae,_0x67ea76);else{for(var _0x15250e=_0x4b2607[_0x18015b(0x19b)]-0x1;_0x15250e>=0x0;_0x15250e--)if(_0x3bbc4d=_0x4b2607[_0x15250e])_0x1f53e2=(_0x29207d<0x3?_0x3bbc4d(_0x1f53e2):_0x29207d>0x3?_0x3bbc4d(_0x519639,_0x18f1ae,_0x1f53e2):_0x3bbc4d(_0x519639,_0x18f1ae))||_0x1f53e2;}return _0x29207d>0x3&&_0x1f53e2&&Object['defineProperty'](_0x519639,_0x18f1ae,_0x1f53e2),_0x1f53e2;},__metadata=this&&this[a4_0x114dab(0x1aa)]||function(_0x195bce,_0x1a9bdf){var _0x50b1fc=a4_0x114dab;if(typeof Reflect===_0x50b1fc(0x1af)&&typeof Reflect['metadata']===_0x50b1fc(0x199))return Reflect[_0x50b1fc(0x191)](_0x195bce,_0x1a9bdf);};function a4_0x382f(_0x4caf14,_0x380abf){var _0x2b0d6e=a4_0x2b0d();return a4_0x382f=function(_0x382f65,_0x120cfc){_0x382f65=_0x382f65-0x18c;var _0x2fcc77=_0x2b0d6e[_0x382f65];return _0x2fcc77;},a4_0x382f(_0x4caf14,_0x380abf);}Object[a4_0x114dab(0x197)](exports,a4_0x114dab(0x1a5),{'value':!![]}),exports[a4_0x114dab(0x1a8)]=void 0x0;const cacheManager=require('cache-manager'),core_1=require(a4_0x114dab(0x19d));let CacheService=class CacheService{constructor(){var _0x3fb800=a4_0x114dab;this[_0x3fb800(0x19a)]=undefined,this[_0x3fb800(0x1b3)]=new Map();}[a4_0x114dab(0x196)](_0x61796c){var _0x23e807=a4_0x114dab,_0x1288e5,_0x23bbc1;if(!this[_0x23e807(0x19a)]){const _0x166eb7=((_0x1288e5=this['config'][_0x23e807(0x19f)])===null||_0x1288e5===void 0x0?void 0x0:_0x1288e5[(_0x23bbc1=this[_0x23e807(0x1a0)][_0x23e807(0x19a)])===null||_0x23bbc1===void 0x0?void 0x0:_0x23bbc1[_0x23e807(0x195)]])||this['config'][_0x23e807(0x19f)][_0x23e807(0x1a6)];this[_0x23e807(0x19a)]=cacheManager['caching']({..._0x166eb7[_0x23e807(0x1a2)],'store':_0x166eb7['store']});}return!this['clients']['has'](_0x61796c)&&this[_0x23e807(0x1b3)][_0x23e807(0x192)](_0x61796c,new CacheHandler(_0x61796c,this[_0x23e807(0x19a)])),this[_0x23e807(0x1b3)]['get'](_0x61796c);}async[a4_0x114dab(0x1a4)](){var _0x4e2763=a4_0x114dab;return await this['cache'][_0x4e2763(0x1a4)]();}};__decorate([(0x0,core_1['Config'])(a4_0x114dab(0x19a)),__metadata(a4_0x114dab(0x18d),Object)],CacheService[a4_0x114dab(0x1a9)],a4_0x114dab(0x1a0),void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x114dab(0x18c)])(),(0x0,core_1[a4_0x114dab(0x1a1)])(core_1[a4_0x114dab(0x193)]['Singleton'])],CacheService),exports[a4_0x114dab(0x1a8)]=CacheService;class CacheHandler{constructor(_0x10179a,_0x3df551){var _0x301dba=a4_0x114dab;this['cache']=_0x3df551,this[_0x301dba(0x198)]=_0x10179a;}async[a4_0x114dab(0x1ad)](_0x5554b6){var _0x2e444e=a4_0x114dab;return await this[_0x2e444e(0x19a)][_0x2e444e(0x1ad)](this[_0x2e444e(0x198)]+':'+_0x5554b6);}async[a4_0x114dab(0x192)](_0x595864,_0x2a02c7,_0x52e388){var _0x173c4f=a4_0x114dab;return await this[_0x173c4f(0x19a)]['set'](this[_0x173c4f(0x198)]+':'+_0x595864,_0x2a02c7,_0x52e388);}async['get'](_0x38fd2d,_0x34a007){return new Promise((_0x1ce0d9,_0x3a8953)=>{var _0x26b8b0=a4_0x382f;this[_0x26b8b0(0x19a)][_0x26b8b0(0x1ab)](this[_0x26b8b0(0x198)]+':'+_0x38fd2d,(_0x4408ae,_0x2b6d3e)=>{_0x4408ae?_0x3a8953(_0x4408ae):_0x1ce0d9(_0x2b6d3e||_0x34a007);});});}async[a4_0x114dab(0x190)](_0x5cf948,_0x4dafaa){var _0xd1178c=a4_0x114dab;return await this[_0xd1178c(0x1ad)](_0x5cf948+'#'+_0x4dafaa);}async['hset'](_0x1c2c8e,_0x23a4dc,_0x305861,_0x44e060){var _0x45ea0e=a4_0x114dab;return await this[_0x45ea0e(0x192)](_0x1c2c8e+'#'+_0x23a4dc,_0x305861,_0x44e060);}async[a4_0x114dab(0x18e)](_0x289588,_0x3b436b,_0x480a99){var _0x478cc7=a4_0x114dab;return await this[_0x478cc7(0x1ab)](_0x289588+'#'+_0x3b436b,_0x480a99);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.11",
|
|
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": "2424b31e63bd2eb9dc69d658bce00a94341a4dd5"
|
|
27
27
|
}
|