@anncic-api/cache 1.3.6 → 1.3.9
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_0x5dc145=a0_0x3327;(function(_0x36c006,_0x53f073){const _0x57730f=a0_0x3327,_0x475adc=_0x36c006();while(!![]){try{const _0x23f2a5=parseInt(_0x57730f(0x1f1))/0x1+-parseInt(_0x57730f(0x1ee))/0x2+parseInt(_0x57730f(0x1f9))/0x3*(-parseInt(_0x57730f(0x1fb))/0x4)+parseInt(_0x57730f(0x1f6))/0x5*(parseInt(_0x57730f(0x1fa))/0x6)+-parseInt(_0x57730f(0x1fc))/0x7*(-parseInt(_0x57730f(0x1f5))/0x8)+parseInt(_0x57730f(0x1f2))/0x9+parseInt(_0x57730f(0x1fd))/0xa*(-parseInt(_0x57730f(0x1ef))/0xb);if(_0x23f2a5===_0x53f073)break;else _0x475adc['push'](_0x475adc['shift']());}catch(_0x1f2cf9){_0x475adc['push'](_0x475adc['shift']());}}}(a0_0xac57,0x2477e));Object[a0_0x5dc145(0x1ed)](exports,a0_0x5dc145(0x1f4),{'value':!![]});const fsStore=require(a0_0x5dc145(0x1f0)),redisStore=require(a0_0x5dc145(0x1f7));function a0_0x3327(_0x2a5ee7,_0x4f552a){const _0xac579a=a0_0xac57();return a0_0x3327=function(_0x332738,_0x40b9d6){_0x332738=_0x332738-0x1ec;let _0x1cff2e=_0xac579a[_0x332738];return _0x1cff2e;},a0_0x3327(_0x2a5ee7,_0x4f552a);}function a0_0xac57(){const _0x185ec8=['26072EeKlAz','2686383ZKOTmk','/runtime/.cache','__esModule','75224VnLKft','14310nsEPVq','cache-manager-ioredis','file','35724EPXpnP','420WqarkM','28CoOtFC','7QNZfZf','2350OVUbVU','127.0.0.1','memory','defineProperty','115754tPiKEt','11407qHUULS','cache-manager-fs-hash'];a0_0xac57=function(){return _0x185ec8;};return a0_0xac57();}exports['default']=_0xe57b74=>{const _0x2b1436=a0_0x5dc145;return{'cache':{'default':_0x2b1436(0x1f8),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0xe57b74['appDir']+_0x2b1436(0x1f3)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x2b1436(0x1fe),'password':'','ttl':0x1e13380,'keyPrefix':_0xe57b74['name']+':'}},'memory':{'store':_0x2b1436(0x1ec),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a1_0x5b2f8b=a1_0xfa33;(function(_0x47fc64,_0x4c1750){var _0x4e74e2=a1_0xfa33,_0x31995d=_0x47fc64();while(!![]){try{var _0x14165a=-parseInt(_0x4e74e2(0xf7))/0x1*(parseInt(_0x4e74e2(0x103))/0x2)+-parseInt(_0x4e74e2(0xfc))/0x3*(-parseInt(_0x4e74e2(0xfd))/0x4)+-parseInt(_0x4e74e2(0x100))/0x5*(parseInt(_0x4e74e2(0xf8))/0x6)+parseInt(_0x4e74e2(0x102))/0x7*(-parseInt(_0x4e74e2(0xf0))/0x8)+parseInt(_0x4e74e2(0xf2))/0x9*(parseInt(_0x4e74e2(0xfa))/0xa)+parseInt(_0x4e74e2(0xff))/0xb*(-parseInt(_0x4e74e2(0x101))/0xc)+parseInt(_0x4e74e2(0xf4))/0xd;if(_0x14165a===_0x4c1750)break;else _0x31995d['push'](_0x31995d['shift']());}catch(_0x49108e){_0x31995d['push'](_0x31995d['shift']());}}}(a1_0x1f8b,0x58f08));function a1_0xfa33(_0x3ba433,_0x4a3ecf){var _0x1f8b8a=a1_0x1f8b();return a1_0xfa33=function(_0xfa3360,_0x3c872d){_0xfa3360=_0xfa3360-0xec;var _0x3ca7e7=_0x1f8b8a[_0xfa3360];return _0x3ca7e7;},a1_0xfa33(_0x3ba433,_0x4a3ecf);}var __decorate=this&&this[a1_0x5b2f8b(0xef)]||function(_0x2b4b3d,_0x39fc89,_0x5b06bc,_0x21ee69){var _0x5c76cf=a1_0x5b2f8b,_0x190e1=arguments[_0x5c76cf(0xf3)],_0x12cbb1=_0x190e1<0x3?_0x39fc89:_0x21ee69===null?_0x21ee69=Object[_0x5c76cf(0xfb)](_0x39fc89,_0x5b06bc):_0x21ee69,_0x3dc787;if(typeof Reflect===_0x5c76cf(0xec)&&typeof Reflect[_0x5c76cf(0xf5)]===_0x5c76cf(0xf6))_0x12cbb1=Reflect['decorate'](_0x2b4b3d,_0x39fc89,_0x5b06bc,_0x21ee69);else{for(var _0x13432c=_0x2b4b3d[_0x5c76cf(0xf3)]-0x1;_0x13432c>=0x0;_0x13432c--)if(_0x3dc787=_0x2b4b3d[_0x13432c])_0x12cbb1=(_0x190e1<0x3?_0x3dc787(_0x12cbb1):_0x190e1>0x3?_0x3dc787(_0x39fc89,_0x5b06bc,_0x12cbb1):_0x3dc787(_0x39fc89,_0x5b06bc))||_0x12cbb1;}return _0x190e1>0x3&&_0x12cbb1&&Object[_0x5c76cf(0xf9)](_0x39fc89,_0x5b06bc,_0x12cbb1),_0x12cbb1;};Object[a1_0x5b2f8b(0xf9)](exports,a1_0x5b2f8b(0xfe),{'value':!![]}),exports[a1_0x5b2f8b(0xed)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x5b2f8b(0xf1));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x5b2f8b(0x104)])({'conflictCheck':![],'namespace':a1_0x5b2f8b(0xee),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x5b2f8b(0xed)]=CustomConfiguration;function a1_0x1f8b(){var _0x1c7b7c=['CustomConfiguration','anncic-api:cache','__decorate','2056INATNV','./config/config.default','987102YHVzCa','length','14990027QsGFgR','decorate','function','3ChWtjO','1438518XKvtVS','defineProperty','30BKvJJm','getOwnPropertyDescriptor','1773534IzuMYg','4nbhAde','__esModule','372680MmqQQW','15slWzUR','96AxCgfz','12635kTNzZF','169874PrHAQu','Configuration','object'];a1_0x1f8b=function(){return _0x1c7b7c;};return a1_0x1f8b();}
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a2_0x10ae(){const _0x25a7a3=['99595KJubWz','REQUEST_OBJ_CTX_KEY','defineProperty','6FAFrTw','87493dyLyNb','value','Cache','MD5','38680EdkHII','set','Method::Decorator','app','25363MvnPkE','crypto-js','apply','66540teHBaY','1323ZbFTTX','getApplicationContext','4SMZJHv','207hBSjxd','792szkiNb','getAsync','5268gKFZuz','parse','use','@midwayjs/core','CacheService','1956OyhWMK','toString','stringify','../service/CacheService','697178YWtqZB','__esModule'];a2_0x10ae=function(){return _0x25a7a3;};return a2_0x10ae();}function a2_0x23c3(_0x1ee677,_0x229551){const _0x10aee4=a2_0x10ae();return a2_0x23c3=function(_0x23c305,_0x2dd61a){_0x23c305=_0x23c305-0x1b9;let _0x290a8c=_0x10aee4[_0x23c305];return _0x290a8c;},a2_0x23c3(_0x1ee677,_0x229551);}const a2_0x59ee29=a2_0x23c3;(function(_0x52ce0f,_0x2b43ad){const _0x58f39d=a2_0x23c3,_0x3f619a=_0x52ce0f();while(!![]){try{const _0x5daf0f=parseInt(_0x58f39d(0x1bb))/0x1+-parseInt(_0x58f39d(0x1d3))/0x2*(parseInt(_0x58f39d(0x1d0))/0x3)+-parseInt(_0x58f39d(0x1cf))/0x4*(-parseInt(_0x58f39d(0x1bd))/0x5)+parseInt(_0x58f39d(0x1c0))/0x6*(-parseInt(_0x58f39d(0x1c1))/0x7)+-parseInt(_0x58f39d(0x1c5))/0x8*(-parseInt(_0x58f39d(0x1cd))/0x9)+parseInt(_0x58f39d(0x1cc))/0xa*(-parseInt(_0x58f39d(0x1d1))/0xb)+parseInt(_0x58f39d(0x1d8))/0xc*(-parseInt(_0x58f39d(0x1c9))/0xd);if(_0x5daf0f===_0x2b43ad)break;else _0x3f619a['push'](_0x3f619a['shift']());}catch(_0x59ce7b){_0x3f619a['push'](_0x3f619a['shift']());}}}(a2_0x10ae,0x6a910));Object[a2_0x59ee29(0x1bf)](exports,a2_0x59ee29(0x1bc),{'value':!![]}),exports[a2_0x59ee29(0x1c3)]=void 0x0;const crypto_js_1=require(a2_0x59ee29(0x1ca)),CacheService_1=require(a2_0x59ee29(0x1ba)),core_1=require(a2_0x59ee29(0x1d6));function Cache(_0x4362e6,_0x549788){return(_0x34e009,_0x4051e9,_0x9d0489)=>{const _0x551cd2=a2_0x23c3,_0x591851=_0x9d0489[_0x551cd2(0x1c2)];return _0x9d0489[_0x551cd2(0x1c2)]=async function(..._0x994091){const _0x56334d=_0x551cd2;!_0x4362e6&&(_0x4362e6=(0x0,crypto_js_1[_0x56334d(0x1c4)])(JSON[_0x56334d(0x1b9)](_0x994091))[_0x56334d(0x1d9)]());let _0x511d6a=await this[core_1[_0x56334d(0x1be)]][_0x56334d(0x1c8)][_0x56334d(0x1ce)]()[_0x56334d(0x1d2)](CacheService_1[_0x56334d(0x1d7)]),_0x4e1c07=await _0x511d6a[_0x56334d(0x1d5)](_0x56334d(0x1c7))['get'](_0x4362e6);if(_0x4e1c07)return JSON[_0x56334d(0x1d4)](_0x4e1c07);else _0x4e1c07=await _0x591851[_0x56334d(0x1cb)](this,[..._0x994091]),await _0x511d6a[_0x56334d(0x1d5)](_0x56334d(0x1c7))[_0x56334d(0x1c6)](_0x4362e6,JSON[_0x56334d(0x1b9)](_0x4e1c07),_0x549788);return _0x4e1c07;},_0x9d0489;};}exports['Cache']=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x8bae8c=a3_0x3b59;(function(_0x5c2f67,_0xcac6e0){var _0x30e175=a3_0x3b59,_0x46f708=_0x5c2f67();while(!![]){try{var _0x34fd28=-parseInt(_0x30e175(0x15d))/0x1+parseInt(_0x30e175(0x165))/0x2*(-parseInt(_0x30e175(0x167))/0x3)+-parseInt(_0x30e175(0x163))/0x4+parseInt(_0x30e175(0x15e))/0x5+parseInt(_0x30e175(0x166))/0x6+-parseInt(_0x30e175(0x161))/0x7*(parseInt(_0x30e175(0x15c))/0x8)+parseInt(_0x30e175(0x16a))/0x9*(parseInt(_0x30e175(0x15a))/0xa);if(_0x34fd28===_0xcac6e0)break;else _0x46f708['push'](_0x46f708['shift']());}catch(_0x525b1b){_0x46f708['push'](_0x46f708['shift']());}}}(a3_0x5580,0xee9c2));Object[a3_0x8bae8c(0x160)](exports,a3_0x8bae8c(0x15b),{'value':!![]}),exports[a3_0x8bae8c(0x162)]=exports[a3_0x8bae8c(0x169)]=exports[a3_0x8bae8c(0x15f)]=void 0x0;var configuration_1=require(a3_0x8bae8c(0x164));Object[a3_0x8bae8c(0x160)](exports,a3_0x8bae8c(0x15f),{'enumerable':!![],'get':function(){var _0x1ee229=a3_0x8bae8c;return configuration_1[_0x1ee229(0x168)];}});var Cache_1=require('./decorator/Cache');Object['defineProperty'](exports,a3_0x8bae8c(0x169),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});function a3_0x5580(){var _0x5e416e=['1355863HExaOa','1990855iKfXzR','Configuration','defineProperty','175126IjmEGP','CacheService','6550916tgFbBy','./configuration','2vQNfMx','4563228hRUWRC','1685379QdGrJf','CustomConfiguration','Cache','2437551BYFuxQ','180orrCWq','__esModule','480WWVczc'];a3_0x5580=function(){return _0x5e416e;};return a3_0x5580();}function a3_0x3b59(_0x37c57a,_0x560e7d){var _0x55806f=a3_0x5580();return a3_0x3b59=function(_0x3b5940,_0x329ccf){_0x3b5940=_0x3b5940-0x15a;var _0x170943=_0x55806f[_0x3b5940];return _0x170943;},a3_0x3b59(_0x37c57a,_0x560e7d);}var CacheService_1=require('./service/CacheService');Object[a3_0x8bae8c(0x160)](exports,'CacheService',{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x2cffd1=a4_0x5a07;(function(_0x54dd69,_0x34f911){var _0x22cc09=a4_0x5a07,_0x2d966e=_0x54dd69();while(!![]){try{var _0x3650bb=parseInt(_0x22cc09(0xda))/0x1+-parseInt(_0x22cc09(0xf8))/0x2*(parseInt(_0x22cc09(0xdf))/0x3)+parseInt(_0x22cc09(0xef))/0x4*(parseInt(_0x22cc09(0xec))/0x5)+-parseInt(_0x22cc09(0xdd))/0x6+parseInt(_0x22cc09(0xeb))/0x7*(parseInt(_0x22cc09(0xe0))/0x8)+parseInt(_0x22cc09(0xe4))/0x9*(parseInt(_0x22cc09(0xe6))/0xa)+parseInt(_0x22cc09(0xd5))/0xb*(-parseInt(_0x22cc09(0xf0))/0xc);if(_0x3650bb===_0x34f911)break;else _0x2d966e['push'](_0x2d966e['shift']());}catch(_0x335e60){_0x2d966e['push'](_0x2d966e['shift']());}}}(a4_0x29f6,0xa1b0b));var __decorate=this&&this[a4_0x2cffd1(0xf5)]||function(_0x263dee,_0x2e2b38,_0x306839,_0x524aa2){var _0x461b67=a4_0x2cffd1,_0x170273=arguments[_0x461b67(0xde)],_0x1bc29e=_0x170273<0x3?_0x2e2b38:_0x524aa2===null?_0x524aa2=Object[_0x461b67(0xd4)](_0x2e2b38,_0x306839):_0x524aa2,_0x44b25c;if(typeof Reflect===_0x461b67(0xe2)&&typeof Reflect[_0x461b67(0xcf)]===_0x461b67(0xe9))_0x1bc29e=Reflect['decorate'](_0x263dee,_0x2e2b38,_0x306839,_0x524aa2);else{for(var _0x48a744=_0x263dee[_0x461b67(0xde)]-0x1;_0x48a744>=0x0;_0x48a744--)if(_0x44b25c=_0x263dee[_0x48a744])_0x1bc29e=(_0x170273<0x3?_0x44b25c(_0x1bc29e):_0x170273>0x3?_0x44b25c(_0x2e2b38,_0x306839,_0x1bc29e):_0x44b25c(_0x2e2b38,_0x306839))||_0x1bc29e;}return _0x170273>0x3&&_0x1bc29e&&Object[_0x461b67(0xf9)](_0x2e2b38,_0x306839,_0x1bc29e),_0x1bc29e;},__metadata=this&&this['__metadata']||function(_0x50d23c,_0x4b8d54){var _0x18cc21=a4_0x2cffd1;if(typeof Reflect==='object'&&typeof Reflect[_0x18cc21(0xf2)]===_0x18cc21(0xe9))return Reflect[_0x18cc21(0xf2)](_0x50d23c,_0x4b8d54);};Object[a4_0x2cffd1(0xf9)](exports,a4_0x2cffd1(0xd7),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require(a4_0x2cffd1(0xd8)),core_1=require('@midwayjs/core');function a4_0x5a07(_0x9d5ed9,_0x580042){var _0x29f6f1=a4_0x29f6();return a4_0x5a07=function(_0x5a07ef,_0x3da8a4){_0x5a07ef=_0x5a07ef-0xcf;var _0x654ac9=_0x29f6f1[_0x5a07ef];return _0x654ac9;},a4_0x5a07(_0x9d5ed9,_0x580042);}function a4_0x29f6(){var _0x27803f=['del','Config','2708bNZvYC','defineProperty','set','hdel','decorate','default','config','prefix','prototype','getOwnPropertyDescriptor','18766xVfarh','store','__esModule','cache-manager','hset','455995cxRcmb','stores','cache','1092018ChyBJx','length','2826LRCBvP','3283832XrSMCU','clients','object','ScopeEnum','4382127TGhGus','use','20YhHsQC','caching','file','function','Scope','14ndHrjs','405VTCbqT','get','CacheService','24028isyqNC','4344TmeLPt','options','metadata','reset','hget','__decorate'];a4_0x29f6=function(){return _0x27803f;};return a4_0x29f6();}let CacheService=class CacheService{constructor(){var _0x1f919d=a4_0x2cffd1;this[_0x1f919d(0xdc)]=undefined,this[_0x1f919d(0xe1)]=new Map();}[a4_0x2cffd1(0xe5)](_0x46be22){var _0x58692d=a4_0x2cffd1,_0x39eeb4,_0x1dc86c;if(!this['cache']){const _0x219579=((_0x39eeb4=this[_0x58692d(0xd1)][_0x58692d(0xdb)])===null||_0x39eeb4===void 0x0?void 0x0:_0x39eeb4[(_0x1dc86c=this['config']['cache'])===null||_0x1dc86c===void 0x0?void 0x0:_0x1dc86c[_0x58692d(0xd0)]])||this['config'][_0x58692d(0xdb)][_0x58692d(0xe8)];this[_0x58692d(0xdc)]=cacheManager[_0x58692d(0xe7)]({..._0x219579[_0x58692d(0xf1)],'store':_0x219579[_0x58692d(0xd6)]});}return!this[_0x58692d(0xe1)]['has'](_0x46be22)&&this[_0x58692d(0xe1)][_0x58692d(0xfa)](_0x46be22,new CacheHandler(_0x46be22,this[_0x58692d(0xdc)])),this[_0x58692d(0xe1)]['get'](_0x46be22);}async[a4_0x2cffd1(0xf3)](){var _0x5b6681=a4_0x2cffd1;return await this[_0x5b6681(0xdc)][_0x5b6681(0xf3)]();}};__decorate([(0x0,core_1[a4_0x2cffd1(0xf7)])(a4_0x2cffd1(0xdc)),__metadata('design:type',Object)],CacheService[a4_0x2cffd1(0xd3)],a4_0x2cffd1(0xd1),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x2cffd1(0xea)])(core_1[a4_0x2cffd1(0xe3)]['Singleton'])],CacheService),exports[a4_0x2cffd1(0xee)]=CacheService;class CacheHandler{constructor(_0x33b30f,_0x219bba){var _0x96458a=a4_0x2cffd1;this[_0x96458a(0xdc)]=_0x219bba,this['prefix']=_0x33b30f;}async[a4_0x2cffd1(0xf6)](_0x26dec9){var _0x2f81a6=a4_0x2cffd1;return await this[_0x2f81a6(0xdc)][_0x2f81a6(0xf6)](this[_0x2f81a6(0xd2)]+':'+_0x26dec9);}async[a4_0x2cffd1(0xfa)](_0x1a3b61,_0x248964,_0x30d669){var _0x33e87e=a4_0x2cffd1;return await this[_0x33e87e(0xdc)]['set'](this['prefix']+':'+_0x1a3b61,_0x248964,_0x30d669);}async[a4_0x2cffd1(0xed)](_0x2efd1b,_0x2ac20b){return new Promise((_0x41137e,_0x1ce576)=>{var _0x37ced1=a4_0x5a07;this[_0x37ced1(0xdc)]['get'](this[_0x37ced1(0xd2)]+':'+_0x2efd1b,(_0x234a31,_0x15474f)=>{_0x234a31?_0x1ce576(_0x234a31):_0x41137e(_0x15474f||_0x2ac20b);});});}async[a4_0x2cffd1(0xfb)](_0x25d883,_0x495d69){var _0x414f82=a4_0x2cffd1;return await this[_0x414f82(0xf6)](_0x25d883+'#'+_0x495d69);}async[a4_0x2cffd1(0xd9)](_0x6e0c22,_0x2d4ca8,_0x4852bb,_0xfef1a7){var _0xc9e54c=a4_0x2cffd1;return await this[_0xc9e54c(0xfa)](_0x6e0c22+'#'+_0x2d4ca8,_0x4852bb,_0xfef1a7);}async[a4_0x2cffd1(0xf4)](_0x4d6405,_0x4e2f42,_0x4c3e5e){var _0x511450=a4_0x2cffd1;return await this[_0x511450(0xed)](_0x4d6405+'#'+_0x4e2f42,_0x4c3e5e);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
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": "a1a5da1aea00c12c9c1e6d0827d6d15108d82f71"
|
|
27
27
|
}
|