@anncic-api/cache 1.1.21 → 1.1.22
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_0x22d2b7=a0_0x5d07;(function(_0x5e265b,_0x447266){const _0x581dfd=a0_0x5d07,_0x453ad1=_0x5e265b();while(!![]){try{const _0x47159e=-parseInt(_0x581dfd(0x185))/0x1+parseInt(_0x581dfd(0x18f))/0x2*(parseInt(_0x581dfd(0x189))/0x3)+parseInt(_0x581dfd(0x190))/0x4+-parseInt(_0x581dfd(0x192))/0x5+parseInt(_0x581dfd(0x18b))/0x6+parseInt(_0x581dfd(0x184))/0x7+-parseInt(_0x581dfd(0x18c))/0x8*(-parseInt(_0x581dfd(0x18d))/0x9);if(_0x47159e===_0x447266)break;else _0x453ad1['push'](_0x453ad1['shift']());}catch(_0x152326){_0x453ad1['push'](_0x453ad1['shift']());}}}(a0_0x38df,0xf41d9));function a0_0x38df(){const _0xb72aed=['11892034iQtNGQ','1872198WVTQWB','file','__esModule','cache-manager-ioredis','1300566dnszqk','cache-manager-fs-hash','2637342XbXZeD','24mkBgqq','621999qbJGeG','name','6cVVLyb','1771508tOpplH','127.0.0.1','6085500yIwYeC','default'];a0_0x38df=function(){return _0xb72aed;};return a0_0x38df();}Object['defineProperty'](exports,a0_0x22d2b7(0x187),{'value':!![]});const fsStore=require(a0_0x22d2b7(0x18a)),redisStore=require(a0_0x22d2b7(0x188));function a0_0x5d07(_0x5566c5,_0x3e170e){const _0x38df11=a0_0x38df();return a0_0x5d07=function(_0x5d0734,_0x5b8731){_0x5d0734=_0x5d0734-0x184;let _0x4a3499=_0x38df11[_0x5d0734];return _0x4a3499;},a0_0x5d07(_0x5566c5,_0x3e170e);}exports[a0_0x22d2b7(0x193)]=_0x4193c5=>{const _0x59d5ee=a0_0x22d2b7;return{'cache':{'default':_0x59d5ee(0x186),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x4193c5['appDir']+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x59d5ee(0x191),'password':'','ttl':0x1e13380,'keyPrefix':_0x4193c5[_0x59d5ee(0x18e)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x224e3=a1_0x331d;(function(_0x609903,_0x691484){var _0x29edd2=a1_0x331d,_0x15018c=_0x609903();while(!![]){try{var _0x482b6e=parseInt(_0x29edd2(0x16d))/0x1+-parseInt(_0x29edd2(0x162))/0x2*(-parseInt(_0x29edd2(0x15e))/0x3)+parseInt(_0x29edd2(0x161))/0x4+parseInt(_0x29edd2(0x15f))/0x5*(parseInt(_0x29edd2(0x168))/0x6)+-parseInt(_0x29edd2(0x163))/0x7+-parseInt(_0x29edd2(0x16c))/0x8*(parseInt(_0x29edd2(0x165))/0x9)+parseInt(_0x29edd2(0x160))/0xa*(parseInt(_0x29edd2(0x167))/0xb);if(_0x482b6e===_0x691484)break;else _0x15018c['push'](_0x15018c['shift']());}catch(_0x10bf4d){_0x15018c['push'](_0x15018c['shift']());}}}(a1_0x35da,0xb0d8c));function a1_0x35da(){var _0x4c66eb=['defineProperty','142109pDoorD','399822zZwiGJ','Configuration','function','anncic-api:cache','160HqSIrd','240378HfcwAr','./config/config.default','@midwayjs/decorator','3837HjYdQA','85OYhGuD','630chkspm','4010680uyNkYx','310oxBVyf','9979725RDoUbW','decorate','557091zbKBXJ'];a1_0x35da=function(){return _0x4c66eb;};return a1_0x35da();}var __decorate=this&&this['__decorate']||function(_0x2dcc67,_0x4ebd46,_0x3dfe01,_0x2f3db1){var _0x45824d=a1_0x331d,_0x4b553e=arguments['length'],_0x34a12c=_0x4b553e<0x3?_0x4ebd46:_0x2f3db1===null?_0x2f3db1=Object['getOwnPropertyDescriptor'](_0x4ebd46,_0x3dfe01):_0x2f3db1,_0x2e5dd2;if(typeof Reflect==='object'&&typeof Reflect[_0x45824d(0x164)]===_0x45824d(0x16a))_0x34a12c=Reflect[_0x45824d(0x164)](_0x2dcc67,_0x4ebd46,_0x3dfe01,_0x2f3db1);else{for(var _0x1ca747=_0x2dcc67['length']-0x1;_0x1ca747>=0x0;_0x1ca747--)if(_0x2e5dd2=_0x2dcc67[_0x1ca747])_0x34a12c=(_0x4b553e<0x3?_0x2e5dd2(_0x34a12c):_0x4b553e>0x3?_0x2e5dd2(_0x4ebd46,_0x3dfe01,_0x34a12c):_0x2e5dd2(_0x4ebd46,_0x3dfe01))||_0x34a12c;}return _0x4b553e>0x3&&_0x34a12c&&Object['defineProperty'](_0x4ebd46,_0x3dfe01,_0x34a12c),_0x34a12c;};Object[a1_0x224e3(0x166)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x331d(_0x3a456c,_0x16ce52){var _0x35da67=a1_0x35da();return a1_0x331d=function(_0x331dfc,_0x9e88ff){_0x331dfc=_0x331dfc-0x15d;var _0x5edf6f=_0x35da67[_0x331dfc];return _0x5edf6f;},a1_0x331d(_0x3a456c,_0x16ce52);}const decorator_1=require(a1_0x224e3(0x15d)),ConfigDefault=require(a1_0x224e3(0x16e));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x224e3(0x169)])({'conflictCheck':![],'namespace':a1_0x224e3(0x16b),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0xc0b658=a2_0x49c8;(function(_0x266b50,_0x34c6f2){const _0x314569=a2_0x49c8,_0x13e91a=_0x266b50();while(!![]){try{const _0x3916e8=-parseInt(_0x314569(0x1d5))/0x1*(parseInt(_0x314569(0x1cd))/0x2)+parseInt(_0x314569(0x1c9))/0x3*(-parseInt(_0x314569(0x1d3))/0x4)+-parseInt(_0x314569(0x1c6))/0x5*(-parseInt(_0x314569(0x1d1))/0x6)+parseInt(_0x314569(0x1db))/0x7*(parseInt(_0x314569(0x1d9))/0x8)+parseInt(_0x314569(0x1dd))/0x9+-parseInt(_0x314569(0x1d8))/0xa*(parseInt(_0x314569(0x1c2))/0xb)+-parseInt(_0x314569(0x1de))/0xc*(-parseInt(_0x314569(0x1c7))/0xd);if(_0x3916e8===_0x34c6f2)break;else _0x13e91a['push'](_0x13e91a['shift']());}catch(_0x1eef7c){_0x13e91a['push'](_0x13e91a['shift']());}}}(a2_0x5671,0x6398d));function a2_0x49c8(_0x27419d,_0xb31610){const _0x5671eb=a2_0x5671();return a2_0x49c8=function(_0x49c8a2,_0x506d57){_0x49c8a2=_0x49c8a2-0x1c1;let _0x3b9461=_0x5671eb[_0x49c8a2];return _0x3b9461;},a2_0x49c8(_0x27419d,_0xb31610);}function a2_0x5671(){const _0x848b9b=['756NICfdB','getApplicationContext','parse','1353TnAUWG','@midwayjs/core','crypto-js','defineProperty','173155eAYvgD','133159vZnCpK','MethodDecorator','1137lCbqHW','REQUEST_OBJ_CTX_KEY','use','../service/CacheService','474TvuIlm','stringify','MD5','get','18nwMykB','toString','6236zeDpzk','value','871ljFBLY','CacheService','app','14930oGqYZT','8RPkmlv','apply','2430526nrWqhM','Cache','2632104ZdsbBj'];a2_0x5671=function(){return _0x848b9b;};return a2_0x5671();}Object[a2_0xc0b658(0x1c5)](exports,'__esModule',{'value':!![]}),exports[a2_0xc0b658(0x1dc)]=void 0x0;const crypto_js_1=require(a2_0xc0b658(0x1c4)),CacheService_1=require(a2_0xc0b658(0x1cc)),core_1=require(a2_0xc0b658(0x1c3));function Cache(_0x37e22d,_0x585e07){return(_0x39e5df,_0x59eca1,_0x5e8282)=>{const _0x47fcf9=a2_0x49c8,_0x51e5ec=_0x5e8282[_0x47fcf9(0x1d4)];return _0x5e8282[_0x47fcf9(0x1d4)]=async function(..._0x26adc1){const _0x571a14=_0x47fcf9;!_0x37e22d&&(_0x37e22d=(0x0,crypto_js_1[_0x571a14(0x1cf)])(JSON[_0x571a14(0x1ce)](_0x26adc1))[_0x571a14(0x1d2)]());let _0x28529f=await this[core_1[_0x571a14(0x1ca)]][_0x571a14(0x1d7)][_0x571a14(0x1df)]()['getAsync'](CacheService_1[_0x571a14(0x1d6)]),_0x8ea632=await _0x28529f['use'](_0x571a14(0x1c8))[_0x571a14(0x1d0)](_0x37e22d);if(_0x8ea632)return JSON[_0x571a14(0x1c1)](_0x8ea632);else _0x8ea632=await _0x51e5ec[_0x571a14(0x1da)](this,[..._0x26adc1]),await _0x28529f[_0x571a14(0x1cb)](_0x571a14(0x1c8))['set'](_0x37e22d,JSON[_0x571a14(0x1ce)](_0x8ea632),_0x585e07);return _0x8ea632;},_0x5e8282;};}exports[a2_0xc0b658(0x1dc)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a3_0x2cf9eb=a3_0xd7c3;(function(_0x1b3008,_0x36501e){var _0x543a28=a3_0xd7c3,_0x517da8=_0x1b3008();while(!![]){try{var _0x326de9=parseInt(_0x543a28(0x13f))/0x1*(parseInt(_0x543a28(0x14a))/0x2)+parseInt(_0x543a28(0x14c))/0x3+-parseInt(_0x543a28(0x14b))/0x4*(-parseInt(_0x543a28(0x142))/0x5)+parseInt(_0x543a28(0x13d))/0x6+parseInt(_0x543a28(0x148))/0x7+parseInt(_0x543a28(0x13c))/0x8*(parseInt(_0x543a28(0x147))/0x9)+-parseInt(_0x543a28(0x146))/0xa;if(_0x326de9===_0x36501e)break;else _0x517da8['push'](_0x517da8['shift']());}catch(_0x51f9a8){_0x517da8['push'](_0x517da8['shift']());}}}(a3_0x1dcf,0xed6ca));function a3_0xd7c3(_0x5695de,_0x58616b){var _0x1dcf31=a3_0x1dcf();return a3_0xd7c3=function(_0xd7c3fe,_0x7b9169){_0xd7c3fe=_0xd7c3fe-0x13b;var _0x44bc41=_0x1dcf31[_0xd7c3fe];return _0x44bc41;},a3_0xd7c3(_0x5695de,_0x58616b);}Object[a3_0x2cf9eb(0x144)](exports,'__esModule',{'value':!![]}),exports[a3_0x2cf9eb(0x149)]=exports['Cache']=exports[a3_0x2cf9eb(0x13b)]=void 0x0;function a3_0x1dcf(){var _0xa45187=['CustomConfiguration','1jhZmTN','./decorator/Cache','./service/CacheService','35sjpNMQ','./configuration','defineProperty','Cache','30784040fEmBRt','54vkBPQU','8808051SFqoIZ','CacheService','3412246jLpOEm','345364qkluwX','1731aqNKGX','Configuration','160536MozkLD','2166672hCbBJJ'];a3_0x1dcf=function(){return _0xa45187;};return a3_0x1dcf();}var configuration_1=require(a3_0x2cf9eb(0x143));Object[a3_0x2cf9eb(0x144)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x48fb37=a3_0x2cf9eb;return configuration_1[_0x48fb37(0x13e)];}});var Cache_1=require(a3_0x2cf9eb(0x140));Object[a3_0x2cf9eb(0x144)](exports,a3_0x2cf9eb(0x145),{'enumerable':!![],'get':function(){var _0x589800=a3_0x2cf9eb;return Cache_1[_0x589800(0x145)];}});var CacheService_1=require(a3_0x2cf9eb(0x141));Object[a3_0x2cf9eb(0x144)](exports,a3_0x2cf9eb(0x149),{'enumerable':!![],'get':function(){var _0x51d2f=a3_0x2cf9eb;return CacheService_1[_0x51d2f(0x149)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x405788=a4_0x229b;(function(_0x470413,_0x4019c9){var _0x80eed0=a4_0x229b,_0x37d0cf=_0x470413();while(!![]){try{var _0x1ae48d=-parseInt(_0x80eed0(0x1ef))/0x1+parseInt(_0x80eed0(0x203))/0x2+parseInt(_0x80eed0(0x1f2))/0x3*(-parseInt(_0x80eed0(0x1fa))/0x4)+parseInt(_0x80eed0(0x1f3))/0x5*(-parseInt(_0x80eed0(0x1ff))/0x6)+-parseInt(_0x80eed0(0x1ee))/0x7+parseInt(_0x80eed0(0x1f6))/0x8+parseInt(_0x80eed0(0x1fe))/0x9;if(_0x1ae48d===_0x4019c9)break;else _0x37d0cf['push'](_0x37d0cf['shift']());}catch(_0x514062){_0x37d0cf['push'](_0x37d0cf['shift']());}}}(a4_0x5d75,0x57271));var __decorate=this&&this['__decorate']||function(_0x4b8b99,_0x2419f6,_0x458bd3,_0x5c3d21){var _0x425390=a4_0x229b,_0x46e83b=arguments['length'],_0x567a6d=_0x46e83b<0x3?_0x2419f6:_0x5c3d21===null?_0x5c3d21=Object['getOwnPropertyDescriptor'](_0x2419f6,_0x458bd3):_0x5c3d21,_0x5493e9;if(typeof Reflect===_0x425390(0x20a)&&typeof Reflect['decorate']===_0x425390(0x200))_0x567a6d=Reflect[_0x425390(0x1f7)](_0x4b8b99,_0x2419f6,_0x458bd3,_0x5c3d21);else{for(var _0x2d8b23=_0x4b8b99[_0x425390(0x205)]-0x1;_0x2d8b23>=0x0;_0x2d8b23--)if(_0x5493e9=_0x4b8b99[_0x2d8b23])_0x567a6d=(_0x46e83b<0x3?_0x5493e9(_0x567a6d):_0x46e83b>0x3?_0x5493e9(_0x2419f6,_0x458bd3,_0x567a6d):_0x5493e9(_0x2419f6,_0x458bd3))||_0x567a6d;}return _0x46e83b>0x3&&_0x567a6d&&Object[_0x425390(0x206)](_0x2419f6,_0x458bd3,_0x567a6d),_0x567a6d;},__metadata=this&&this[a4_0x405788(0x1fd)]||function(_0x1bec2b,_0x7100f4){var _0x2c0464=a4_0x405788;if(typeof Reflect===_0x2c0464(0x20a)&&typeof Reflect['metadata']===_0x2c0464(0x200))return Reflect[_0x2c0464(0x20b)](_0x1bec2b,_0x7100f4);};Object[a4_0x405788(0x206)](exports,a4_0x405788(0x1ed),{'value':!![]}),exports[a4_0x405788(0x201)]=void 0x0;const cacheManager=require(a4_0x405788(0x1fb)),decorator_1=require(a4_0x405788(0x1f1));function a4_0x5d75(){var _0x52049d=['del','prefix','clients','caching','cache','use','file','__esModule','460726tjvsUL','543710KSHzOW','Scope','@midwayjs/decorator','15UiZkLa','237900cyoscS','default','ScopeEnum','1031768cjQExO','decorate','design:type','hget','461752EwdWsg','cache-manager','has','__metadata','9527229qaXZut','18YJSmJg','function','CacheService','config','997766lThTjP','options','length','defineProperty','get','stores','Config','object','metadata','hdel','store','set','hset'];a4_0x5d75=function(){return _0x52049d;};return a4_0x5d75();}let CacheService=class CacheService{constructor(){var _0x5eb4da=a4_0x405788;this[_0x5eb4da(0x1ea)]=undefined,this[_0x5eb4da(0x1e8)]=new Map();}[a4_0x405788(0x1eb)](_0xf77ea1){var _0x1ef730=a4_0x405788,_0x3f08ee,_0x3b41b5;if(!this[_0x1ef730(0x1ea)]){const _0x375de2=((_0x3f08ee=this[_0x1ef730(0x202)]['stores'])===null||_0x3f08ee===void 0x0?void 0x0:_0x3f08ee[(_0x3b41b5=this[_0x1ef730(0x202)][_0x1ef730(0x1ea)])===null||_0x3b41b5===void 0x0?void 0x0:_0x3b41b5[_0x1ef730(0x1f4)]])||this[_0x1ef730(0x202)][_0x1ef730(0x208)][_0x1ef730(0x1ec)];this[_0x1ef730(0x1ea)]=cacheManager[_0x1ef730(0x1e9)]({..._0x375de2[_0x1ef730(0x204)],'store':_0x375de2[_0x1ef730(0x1e3)]});}return!this['clients'][_0x1ef730(0x1fc)](_0xf77ea1)&&this[_0x1ef730(0x1e8)][_0x1ef730(0x1e4)](_0xf77ea1,new CacheHandler(_0xf77ea1,this['cache'])),this[_0x1ef730(0x1e8)][_0x1ef730(0x207)](_0xf77ea1);}async['reset'](){var _0x49603a=a4_0x405788;return await this[_0x49603a(0x1ea)]['reset']();}};function a4_0x229b(_0x139575,_0x5d3b2e){var _0x5d7535=a4_0x5d75();return a4_0x229b=function(_0x229b9b,_0x2d9540){_0x229b9b=_0x229b9b-0x1e2;var _0x659207=_0x5d7535[_0x229b9b];return _0x659207;},a4_0x229b(_0x139575,_0x5d3b2e);}__decorate([(0x0,decorator_1[a4_0x405788(0x209)])(a4_0x405788(0x1ea)),__metadata(a4_0x405788(0x1f8),Object)],CacheService['prototype'],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x405788(0x1f0)])(decorator_1[a4_0x405788(0x1f5)]['Singleton'])],CacheService),exports[a4_0x405788(0x201)]=CacheService;class CacheHandler{constructor(_0x4f120b,_0x134201){var _0x2ae804=a4_0x405788;this[_0x2ae804(0x1ea)]=_0x134201,this['prefix']=_0x4f120b;}async[a4_0x405788(0x1e6)](_0x55bb96){var _0x18c7d0=a4_0x405788;return await this[_0x18c7d0(0x1ea)][_0x18c7d0(0x1e6)](this[_0x18c7d0(0x1e7)]+':'+_0x55bb96);}async[a4_0x405788(0x1e4)](_0x553ff6,_0x1695b2,_0x675e03){var _0x3f6a94=a4_0x405788;return await this['cache'][_0x3f6a94(0x1e4)](this[_0x3f6a94(0x1e7)]+':'+_0x553ff6,_0x1695b2,_0x675e03);}async[a4_0x405788(0x207)](_0x48cd5d,_0x76cd15){return new Promise((_0xc7ba55,_0x9664b0)=>{var _0xb50f16=a4_0x229b;this['cache'][_0xb50f16(0x207)](this['prefix']+':'+_0x48cd5d,(_0x287249,_0x1992f9)=>{_0x287249?_0x9664b0(_0x287249):_0xc7ba55(_0x1992f9||_0x76cd15);});});}async[a4_0x405788(0x1e2)](_0x4f0982,_0x16a4b0){return await this['del'](_0x4f0982+'-'+_0x16a4b0);}async[a4_0x405788(0x1e5)](_0x132e41,_0x5acb1e,_0x32505b,_0x4edbe7){var _0x542563=a4_0x405788;return await this[_0x542563(0x1e4)](_0x132e41+'-'+_0x5acb1e,_0x32505b,_0x4edbe7);}async[a4_0x405788(0x1f9)](_0x3a0815,_0x98b996,_0x4c2c21){return await this['get'](_0x3a0815+'-'+_0x98b996,_0x4c2c21);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
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": "31197d6976e8b15c25473d7a6f64a8bc42c8fd0b"
|
|
27
27
|
}
|