@anncic-api/cache 1.1.17 → 1.1.21
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_0x31ee78=a0_0x5d9d;function a0_0x2477(){const _0x49103b=['3736892vLJumJ','cache-manager-fs-hash','__esModule','memory','78DsaJvv','2gExfmg','438910GKIcma','4441251TwOagJ','default','cache-manager-ioredis','537090scACcH','defineProperty','196497iBgiHo','127.0.0.1','file','34145000AFaPWh','56ydSXkC','name','10303202gPOSqn'];a0_0x2477=function(){return _0x49103b;};return a0_0x2477();}(function(_0x17f844,_0x2b6f00){const _0x4fc933=a0_0x5d9d,_0x393d5d=_0x17f844();while(!![]){try{const _0x37603d=-parseInt(_0x4fc933(0x13a))/0x1+parseInt(_0x4fc933(0x139))/0x2*(-parseInt(_0x4fc933(0x13b))/0x3)+-parseInt(_0x4fc933(0x147))/0x4+-parseInt(_0x4fc933(0x13e))/0x5*(parseInt(_0x4fc933(0x138))/0x6)+parseInt(_0x4fc933(0x146))/0x7+-parseInt(_0x4fc933(0x144))/0x8*(-parseInt(_0x4fc933(0x140))/0x9)+parseInt(_0x4fc933(0x143))/0xa;if(_0x37603d===_0x2b6f00)break;else _0x393d5d['push'](_0x393d5d['shift']());}catch(_0x2b3181){_0x393d5d['push'](_0x393d5d['shift']());}}}(a0_0x2477,0xc0af1));Object[a0_0x31ee78(0x13f)](exports,a0_0x31ee78(0x136),{'value':!![]});const fsStore=require(a0_0x31ee78(0x135)),redisStore=require(a0_0x31ee78(0x13d));function a0_0x5d9d(_0x12ce91,_0x3a76a4){const _0x2477af=a0_0x2477();return a0_0x5d9d=function(_0x5d9da6,_0x13ad12){_0x5d9da6=_0x5d9da6-0x135;let _0x2a619d=_0x2477af[_0x5d9da6];return _0x2a619d;},a0_0x5d9d(_0x12ce91,_0x3a76a4);}exports[a0_0x31ee78(0x13c)]=_0x1eb45a=>{const _0x282680=a0_0x31ee78;return{'cache':{'default':_0x282680(0x142),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x1eb45a['appDir']+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x282680(0x141),'password':'','ttl':0x1e13380,'keyPrefix':_0x1eb45a[_0x282680(0x145)]+':'}},'memory':{'store':_0x282680(0x137),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x679e4a=a1_0xace6;function a1_0xace6(_0x2fd4bf,_0x51c3a0){var _0x2fff4f=a1_0x2fff();return a1_0xace6=function(_0xace61a,_0x2f32cc){_0xace61a=_0xace61a-0x12c;var _0x5efa42=_0x2fff4f[_0xace61a];return _0x5efa42;},a1_0xace6(_0x2fd4bf,_0x51c3a0);}(function(_0x91c3d2,_0x46ed80){var _0x4de7b2=a1_0xace6,_0x5a9b4b=_0x91c3d2();while(!![]){try{var _0xfbbe97=-parseInt(_0x4de7b2(0x137))/0x1+-parseInt(_0x4de7b2(0x135))/0x2+parseInt(_0x4de7b2(0x134))/0x3+-parseInt(_0x4de7b2(0x13d))/0x4+parseInt(_0x4de7b2(0x136))/0x5*(parseInt(_0x4de7b2(0x12e))/0x6)+-parseInt(_0x4de7b2(0x138))/0x7+-parseInt(_0x4de7b2(0x139))/0x8*(-parseInt(_0x4de7b2(0x12c))/0x9);if(_0xfbbe97===_0x46ed80)break;else _0x5a9b4b['push'](_0x5a9b4b['shift']());}catch(_0x15bcc0){_0x5a9b4b['push'](_0x5a9b4b['shift']());}}}(a1_0x2fff,0x43119));var __decorate=this&&this[a1_0x679e4a(0x12f)]||function(_0x38767c,_0xafb5c,_0x44f603,_0x54f79d){var _0x500229=a1_0x679e4a,_0x3aad79=arguments[_0x500229(0x13c)],_0x36212c=_0x3aad79<0x3?_0xafb5c:_0x54f79d===null?_0x54f79d=Object['getOwnPropertyDescriptor'](_0xafb5c,_0x44f603):_0x54f79d,_0x12dcc2;if(typeof Reflect===_0x500229(0x133)&&typeof Reflect['decorate']===_0x500229(0x132))_0x36212c=Reflect[_0x500229(0x13a)](_0x38767c,_0xafb5c,_0x44f603,_0x54f79d);else{for(var _0x26b2f1=_0x38767c[_0x500229(0x13c)]-0x1;_0x26b2f1>=0x0;_0x26b2f1--)if(_0x12dcc2=_0x38767c[_0x26b2f1])_0x36212c=(_0x3aad79<0x3?_0x12dcc2(_0x36212c):_0x3aad79>0x3?_0x12dcc2(_0xafb5c,_0x44f603,_0x36212c):_0x12dcc2(_0xafb5c,_0x44f603))||_0x36212c;}return _0x3aad79>0x3&&_0x36212c&&Object[_0x500229(0x130)](_0xafb5c,_0x44f603,_0x36212c),_0x36212c;};function a1_0x2fff(){var _0x154fe4=['284806kolley','170oFGbBE','417144NYxcJX','2675407GdBYUO','3260104prTlaX','decorate','Configuration','length','1661340SHpaaf','27TUDcAT','@midwayjs/decorator','52134XIECss','__decorate','defineProperty','./config/config.default','function','object','341493GpqZcI'];a1_0x2fff=function(){return _0x154fe4;};return a1_0x2fff();}Object[a1_0x679e4a(0x130)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a1_0x679e4a(0x12d)),ConfigDefault=require(a1_0x679e4a(0x131));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x679e4a(0x13b)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x4f4a4e=a2_0xea7f;function a2_0xea7f(_0x12a6cc,_0x31b9d4){const _0x45192b=a2_0x4519();return a2_0xea7f=function(_0xea7f59,_0x539b51){_0xea7f59=_0xea7f59-0x1e3;let _0x5a1ae2=_0x45192b[_0xea7f59];return _0x5a1ae2;},a2_0xea7f(_0x12a6cc,_0x31b9d4);}(function(_0x4814ca,_0x3ef37d){const _0x2b1fd6=a2_0xea7f,_0x586619=_0x4814ca();while(!![]){try{const _0x50e464=parseInt(_0x2b1fd6(0x1fc))/0x1+parseInt(_0x2b1fd6(0x1e5))/0x2*(parseInt(_0x2b1fd6(0x1ec))/0x3)+-parseInt(_0x2b1fd6(0x1fb))/0x4+-parseInt(_0x2b1fd6(0x1ff))/0x5*(parseInt(_0x2b1fd6(0x1fd))/0x6)+parseInt(_0x2b1fd6(0x1fe))/0x7*(parseInt(_0x2b1fd6(0x1eb))/0x8)+parseInt(_0x2b1fd6(0x1fa))/0x9*(parseInt(_0x2b1fd6(0x1f3))/0xa)+parseInt(_0x2b1fd6(0x1e8))/0xb;if(_0x50e464===_0x3ef37d)break;else _0x586619['push'](_0x586619['shift']());}catch(_0x23ac23){_0x586619['push'](_0x586619['shift']());}}}(a2_0x4519,0xb863d));Object['defineProperty'](exports,a2_0x4f4a4e(0x1e4),{'value':!![]}),exports[a2_0x4f4a4e(0x1f8)]=void 0x0;const crypto_js_1=require(a2_0x4f4a4e(0x1ef)),CacheService_1=require(a2_0x4f4a4e(0x1e6)),core_1=require(a2_0x4f4a4e(0x1ea));function Cache(_0x4319bb,_0xed8293){return(_0xd3519c,_0x348971,_0x4043cf)=>{const _0x63040b=a2_0xea7f,_0x920977=_0x4043cf[_0x63040b(0x1f6)];return _0x4043cf[_0x63040b(0x1f6)]=async function(..._0x4777f7){const _0x595d3d=_0x63040b;!_0x4319bb&&(_0x4319bb=(0x0,crypto_js_1[_0x595d3d(0x200)])(JSON['stringify'](_0x4777f7))[_0x595d3d(0x1e3)]());let _0x2303ca=await this[core_1[_0x595d3d(0x1ed)]][_0x595d3d(0x1f0)][_0x595d3d(0x1e7)]()[_0x595d3d(0x1f2)](CacheService_1[_0x595d3d(0x1f7)]),_0x51c9a4=await _0x2303ca[_0x595d3d(0x1e9)](_0x595d3d(0x1f5))['get'](_0x4319bb);if(_0x51c9a4)return JSON[_0x595d3d(0x1f1)](_0x51c9a4);else _0x51c9a4=await _0x920977[_0x595d3d(0x1ee)](this,[..._0x4777f7]),await _0x2303ca[_0x595d3d(0x1e9)](_0x595d3d(0x1f5))[_0x595d3d(0x1f4)](_0x4319bb,JSON[_0x595d3d(0x1f9)](_0x51c9a4),_0xed8293);return _0x51c9a4;},_0x4043cf;};}exports[a2_0x4f4a4e(0x1f8)]=Cache;function a2_0x4519(){const _0x1a8807=['43656ruXQyA','6xCYtVN','5635zIxYuD','5140245wMgdoR','MD5','toString','__esModule','534teqChy','../service/CacheService','getApplicationContext','8291613qHYVIn','use','@midwayjs/core','944LMPmcH','4395WeJbif','REQUEST_OBJ_CTX_KEY','apply','crypto-js','app','parse','getAsync','10DTwRjZ','set','MethodDecorator','value','CacheService','Cache','stringify','12394233PtNtCe','3509644BNbTpy'];a2_0x4519=function(){return _0x1a8807;};return a2_0x4519();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a3_0x538d(_0x269b38,_0x151ac6){var _0x166c2d=a3_0x166c();return a3_0x538d=function(_0x538d8e,_0x1d9c8d){_0x538d8e=_0x538d8e-0x166;var _0x2dfd17=_0x166c2d[_0x538d8e];return _0x2dfd17;},a3_0x538d(_0x269b38,_0x151ac6);}var a3_0x27dc9f=a3_0x538d;(function(_0x5f4f78,_0x432fd1){var _0x362bf3=a3_0x538d,_0x24c4cc=_0x5f4f78();while(!![]){try{var _0x432816=-parseInt(_0x362bf3(0x170))/0x1*(parseInt(_0x362bf3(0x16a))/0x2)+-parseInt(_0x362bf3(0x177))/0x3+parseInt(_0x362bf3(0x16c))/0x4*(-parseInt(_0x362bf3(0x16b))/0x5)+parseInt(_0x362bf3(0x16f))/0x6+parseInt(_0x362bf3(0x173))/0x7*(parseInt(_0x362bf3(0x175))/0x8)+parseInt(_0x362bf3(0x166))/0x9+parseInt(_0x362bf3(0x169))/0xa;if(_0x432816===_0x432fd1)break;else _0x24c4cc['push'](_0x24c4cc['shift']());}catch(_0x2752a3){_0x24c4cc['push'](_0x24c4cc['shift']());}}}(a3_0x166c,0x56ca1));Object[a3_0x27dc9f(0x16e)](exports,a3_0x27dc9f(0x167),{'value':!![]}),exports[a3_0x27dc9f(0x172)]=exports[a3_0x27dc9f(0x16d)]=exports[a3_0x27dc9f(0x176)]=void 0x0;var configuration_1=require(a3_0x27dc9f(0x174));function a3_0x166c(){var _0x5e25c4=['./configuration','16GUcFWc','Configuration','1992492ERQMwh','4203765TNRpUG','__esModule','./service/CacheService','3867450ExryOw','2HAgPAb','5cNmPML','2105952FJYQxp','Cache','defineProperty','4190484sxQvSg','317717GVZvhy','./decorator/Cache','CacheService','1090649uRFpMj'];a3_0x166c=function(){return _0x5e25c4;};return a3_0x166c();}Object[a3_0x27dc9f(0x16e)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x27dc9f(0x171));Object[a3_0x27dc9f(0x16e)](exports,a3_0x27dc9f(0x16d),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x27dc9f(0x168));Object[a3_0x27dc9f(0x16e)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x1a8e99=a3_0x27dc9f;return CacheService_1[_0x1a8e99(0x172)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x5c6eb2=a4_0x3505;(function(_0x550ec1,_0x155d4f){var _0x4ee0a1=a4_0x3505,_0x11cfed=_0x550ec1();while(!![]){try{var _0x285958=-parseInt(_0x4ee0a1(0x1ed))/0x1+-parseInt(_0x4ee0a1(0x219))/0x2+parseInt(_0x4ee0a1(0x20f))/0x3*(-parseInt(_0x4ee0a1(0x208))/0x4)+-parseInt(_0x4ee0a1(0x1fb))/0x5*(parseInt(_0x4ee0a1(0x20b))/0x6)+parseInt(_0x4ee0a1(0x20d))/0x7*(-parseInt(_0x4ee0a1(0x1f7))/0x8)+-parseInt(_0x4ee0a1(0x1fc))/0x9+parseInt(_0x4ee0a1(0x1ff))/0xa;if(_0x285958===_0x155d4f)break;else _0x11cfed['push'](_0x11cfed['shift']());}catch(_0x38624a){_0x11cfed['push'](_0x11cfed['shift']());}}}(a4_0x223a,0x67486));function a4_0x3505(_0x40abba,_0x3a3e05){var _0x223a64=a4_0x223a();return a4_0x3505=function(_0x3505cb,_0x284ee9){_0x3505cb=_0x3505cb-0x1ed;var _0x14e12c=_0x223a64[_0x3505cb];return _0x14e12c;},a4_0x3505(_0x40abba,_0x3a3e05);}var __decorate=this&&this[a4_0x5c6eb2(0x20a)]||function(_0x39bca5,_0x1d0342,_0x5af718,_0x57d432){var _0x2cd477=a4_0x5c6eb2,_0x5c4375=arguments['length'],_0x3f9653=_0x5c4375<0x3?_0x1d0342:_0x57d432===null?_0x57d432=Object[_0x2cd477(0x212)](_0x1d0342,_0x5af718):_0x57d432,_0xdf5ccc;if(typeof Reflect===_0x2cd477(0x1f0)&&typeof Reflect['decorate']===_0x2cd477(0x20c))_0x3f9653=Reflect[_0x2cd477(0x203)](_0x39bca5,_0x1d0342,_0x5af718,_0x57d432);else{for(var _0x2b1989=_0x39bca5[_0x2cd477(0x218)]-0x1;_0x2b1989>=0x0;_0x2b1989--)if(_0xdf5ccc=_0x39bca5[_0x2b1989])_0x3f9653=(_0x5c4375<0x3?_0xdf5ccc(_0x3f9653):_0x5c4375>0x3?_0xdf5ccc(_0x1d0342,_0x5af718,_0x3f9653):_0xdf5ccc(_0x1d0342,_0x5af718))||_0x3f9653;}return _0x5c4375>0x3&&_0x3f9653&&Object[_0x2cd477(0x1f4)](_0x1d0342,_0x5af718,_0x3f9653),_0x3f9653;},__metadata=this&&this['__metadata']||function(_0x5eadf0,_0x3ade01){var _0x25d62a=a4_0x5c6eb2;if(typeof Reflect===_0x25d62a(0x1f0)&&typeof Reflect[_0x25d62a(0x215)]===_0x25d62a(0x20c))return Reflect[_0x25d62a(0x215)](_0x5eadf0,_0x3ade01);};Object['defineProperty'](exports,a4_0x5c6eb2(0x1fe),{'value':!![]}),exports[a4_0x5c6eb2(0x213)]=void 0x0;const cacheManager=require('cache-manager'),decorator_1=require(a4_0x5c6eb2(0x201));let CacheService=class CacheService{constructor(){var _0xce9b21=a4_0x5c6eb2;this[_0xce9b21(0x216)]=undefined,this[_0xce9b21(0x1f5)]=new Map();}[a4_0x5c6eb2(0x211)](_0x586858){var _0x3fbce1=a4_0x5c6eb2,_0x38227a,_0x3cf98c;if(!this[_0x3fbce1(0x216)]){const _0x225696=((_0x38227a=this[_0x3fbce1(0x1f2)][_0x3fbce1(0x1f1)])===null||_0x38227a===void 0x0?void 0x0:_0x38227a[(_0x3cf98c=this['config'][_0x3fbce1(0x216)])===null||_0x3cf98c===void 0x0?void 0x0:_0x3cf98c[_0x3fbce1(0x1ee)]])||this[_0x3fbce1(0x1f2)][_0x3fbce1(0x1f1)][_0x3fbce1(0x20e)];this['cache']=cacheManager[_0x3fbce1(0x1f3)]({..._0x225696[_0x3fbce1(0x205)],'store':_0x225696[_0x3fbce1(0x1fa)]});}return!this[_0x3fbce1(0x1f5)]['has'](_0x586858)&&this[_0x3fbce1(0x1f5)][_0x3fbce1(0x1ef)](_0x586858,new CacheHandler(_0x586858,this[_0x3fbce1(0x216)])),this[_0x3fbce1(0x1f5)][_0x3fbce1(0x200)](_0x586858);}async[a4_0x5c6eb2(0x210)](){var _0x528eae=a4_0x5c6eb2;return await this[_0x528eae(0x216)]['reset']();}};__decorate([(0x0,decorator_1[a4_0x5c6eb2(0x209)])(a4_0x5c6eb2(0x216)),__metadata(a4_0x5c6eb2(0x214),Object)],CacheService[a4_0x5c6eb2(0x202)],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x5c6eb2(0x217)])(),(0x0,decorator_1[a4_0x5c6eb2(0x1f6)])(decorator_1[a4_0x5c6eb2(0x1fd)][a4_0x5c6eb2(0x206)])],CacheService),exports[a4_0x5c6eb2(0x213)]=CacheService;class CacheHandler{constructor(_0x3217d9,_0x896294){var _0x570f55=a4_0x5c6eb2;this[_0x570f55(0x216)]=_0x896294,this[_0x570f55(0x1f9)]=_0x3217d9;}async[a4_0x5c6eb2(0x204)](_0x165780){var _0x51b844=a4_0x5c6eb2;return await this[_0x51b844(0x216)][_0x51b844(0x204)](this[_0x51b844(0x1f9)]+':'+_0x165780);}async['set'](_0x2fe458,_0x5d14f4,_0xfb70f6){var _0x1bd8aa=a4_0x5c6eb2;return await this['cache'][_0x1bd8aa(0x1ef)](this[_0x1bd8aa(0x1f9)]+':'+_0x2fe458,_0x5d14f4,_0xfb70f6);}async[a4_0x5c6eb2(0x200)](_0x104355,_0x55de19){return new Promise((_0x2768a5,_0x5f3fb1)=>{var _0x10fb5c=a4_0x3505;this['cache'][_0x10fb5c(0x200)](this['prefix']+':'+_0x104355,(_0x2c67e1,_0x533efe)=>{_0x2c67e1?_0x5f3fb1(_0x2c67e1):_0x2768a5(_0x533efe||_0x55de19);});});}async[a4_0x5c6eb2(0x1f8)](_0x27c2cd,_0x1c0a54){var _0x4f1be2=a4_0x5c6eb2;return await this[_0x4f1be2(0x204)](_0x27c2cd+'-'+_0x1c0a54);}async['hset'](_0x28d4cc,_0x446834,_0xba291a,_0x5528ac){var _0x1e9e2a=a4_0x5c6eb2;return await this[_0x1e9e2a(0x1ef)](_0x28d4cc+'-'+_0x446834,_0xba291a,_0x5528ac);}async[a4_0x5c6eb2(0x207)](_0xe1bca7,_0x4c3178,_0xa119cb){return await this['get'](_0xe1bca7+'-'+_0x4c3178,_0xa119cb);}}function a4_0x223a(){var _0x363271=['Singleton','hget','1412GTyYnf','Config','__decorate','102kbxCqU','function','410613vZZRYK','file','2229Spjcye','reset','use','getOwnPropertyDescriptor','CacheService','design:type','metadata','cache','Provide','length','1535088powXAX','87589DmHlTn','default','set','object','stores','config','caching','defineProperty','clients','Scope','16rKGeBl','hdel','prefix','store','525RYIpSd','5952420NsVMUr','ScopeEnum','__esModule','23209410GfnGNR','get','@midwayjs/decorator','prototype','decorate','del','options'];a4_0x223a=function(){return _0x363271;};return a4_0x223a();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
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": "4946b752735d6323795e5e2734d3a2cfa47f1b78"
|
|
27
27
|
}
|