@anncic-api/cache 1.4.25 → 1.4.26
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';function
|
|
1
|
+
'use strict';const a0_0x2b8c7e=a0_0x7174;function a0_0x7174(_0x3f3218,_0x5363cc){const _0x40fa3d=a0_0x40fa();return a0_0x7174=function(_0x717469,_0x57b657){_0x717469=_0x717469-0x156;let _0x3efdf1=_0x40fa3d[_0x717469];return _0x3efdf1;},a0_0x7174(_0x3f3218,_0x5363cc);}(function(_0x2c8019,_0x4db2c7){const _0x15d457=a0_0x7174,_0x74fed5=_0x2c8019();while(!![]){try{const _0x3d3114=parseInt(_0x15d457(0x15a))/0x1+-parseInt(_0x15d457(0x167))/0x2+-parseInt(_0x15d457(0x163))/0x3*(parseInt(_0x15d457(0x165))/0x4)+-parseInt(_0x15d457(0x15b))/0x5*(parseInt(_0x15d457(0x164))/0x6)+parseInt(_0x15d457(0x168))/0x7+parseInt(_0x15d457(0x15c))/0x8+-parseInt(_0x15d457(0x15f))/0x9*(parseInt(_0x15d457(0x158))/0xa);if(_0x3d3114===_0x4db2c7)break;else _0x74fed5['push'](_0x74fed5['shift']());}catch(_0x31afce){_0x74fed5['push'](_0x74fed5['shift']());}}}(a0_0x40fa,0xd58e2));Object[a0_0x2b8c7e(0x15e)](exports,a0_0x2b8c7e(0x160),{'value':!![]});function a0_0x40fa(){const _0x494da1=['appDir','3QLNzgl','5076ccjNcn','3725308mVqZLI','/runtime/.cache','363562WCcExP','8553594IShDHj','file','name','default','50ydJffg','127.0.0.1','1139685TYIUPq','80jViZQZ','733792FSMGuI','cache-manager-ioredis','defineProperty','813573WkKBns','__esModule','memory'];a0_0x40fa=function(){return _0x494da1;};return a0_0x40fa();}const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x2b8c7e(0x15d));exports[a0_0x2b8c7e(0x157)]=_0x2b2f3f=>{const _0x54706f=a0_0x2b8c7e;return{'cache':{'default':_0x54706f(0x169),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x2b2f3f[_0x54706f(0x162)]+_0x54706f(0x166)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x54706f(0x159),'password':'','ttl':0x1e13380,'keyPrefix':_0x2b2f3f[_0x54706f(0x156)]+':'}},'memory':{'store':_0x54706f(0x161),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a1_0x14372b=a1_0x393b;(function(_0x2f9b2e,_0x13b097){var _0x469a5e=a1_0x393b,_0x3face8=_0x2f9b2e();while(!![]){try{var _0x3d855c=parseInt(_0x469a5e(0x201))/0x1*(-parseInt(_0x469a5e(0x200))/0x2)+parseInt(_0x469a5e(0x204))/0x3*(-parseInt(_0x469a5e(0x1f6))/0x4)+-parseInt(_0x469a5e(0x1f8))/0x5*(-parseInt(_0x469a5e(0x206))/0x6)+-parseInt(_0x469a5e(0x1f2))/0x7*(-parseInt(_0x469a5e(0x1f4))/0x8)+parseInt(_0x469a5e(0x1fb))/0x9+-parseInt(_0x469a5e(0x1f7))/0xa+parseInt(_0x469a5e(0x205))/0xb;if(_0x3d855c===_0x13b097)break;else _0x3face8['push'](_0x3face8['shift']());}catch(_0x4b88da){_0x3face8['push'](_0x3face8['shift']());}}}(a1_0x24d5,0xa3dbb));function a1_0x393b(_0xe9d055,_0x490e85){var _0x24d5f4=a1_0x24d5();return a1_0x393b=function(_0x393b9c,_0x1954bc){_0x393b9c=_0x393b9c-0x1f2;var _0x928df2=_0x24d5f4[_0x393b9c];return _0x928df2;},a1_0x393b(_0xe9d055,_0x490e85);}function a1_0x24d5(){var _0x4d748e=['9BAmlaX','4422803dyRaIa','564uhUxkn','anncic-api:cache','7cQdyil','Configuration','186472anTkpp','decorate','673212ButBMW','7072410qjlTlO','59785OpRLJH','./config/config.default','object','5973687aMwHpI','@midwayjs/core','function','__decorate','defineProperty','1346vThkHj','490EtOAFn','__esModule','CustomConfiguration'];a1_0x24d5=function(){return _0x4d748e;};return a1_0x24d5();}var __decorate=this&&this[a1_0x14372b(0x1fe)]||function(_0x517c3b,_0x5be039,_0x12771b,_0x680579){var _0x5ca04a=a1_0x14372b,_0x46683f=arguments['length'],_0x5dae19=_0x46683f<0x3?_0x5be039:_0x680579===null?_0x680579=Object['getOwnPropertyDescriptor'](_0x5be039,_0x12771b):_0x680579,_0x4b6176;if(typeof Reflect===_0x5ca04a(0x1fa)&&typeof Reflect[_0x5ca04a(0x1f5)]===_0x5ca04a(0x1fd))_0x5dae19=Reflect['decorate'](_0x517c3b,_0x5be039,_0x12771b,_0x680579);else{for(var _0x47734e=_0x517c3b['length']-0x1;_0x47734e>=0x0;_0x47734e--)if(_0x4b6176=_0x517c3b[_0x47734e])_0x5dae19=(_0x46683f<0x3?_0x4b6176(_0x5dae19):_0x46683f>0x3?_0x4b6176(_0x5be039,_0x12771b,_0x5dae19):_0x4b6176(_0x5be039,_0x12771b))||_0x5dae19;}return _0x46683f>0x3&&_0x5dae19&&Object[_0x5ca04a(0x1ff)](_0x5be039,_0x12771b,_0x5dae19),_0x5dae19;};Object['defineProperty'](exports,a1_0x14372b(0x202),{'value':!![]}),exports[a1_0x14372b(0x203)]=void 0x0;const core_1=require(a1_0x14372b(0x1fc)),ConfigDefault=require(a1_0x14372b(0x1f9));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x14372b(0x1f3)])({'conflictCheck':![],'namespace':a1_0x14372b(0x207),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x14372b(0x203)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a2_0x5c61(_0x3c799a,_0x40f61f){const _0x55cd6b=a2_0x55cd();return a2_0x5c61=function(_0x5c61af,_0x233222){_0x5c61af=_0x5c61af-0xe5;let _0x2f42df=_0x55cd6b[_0x5c61af];return _0x2f42df;},a2_0x5c61(_0x3c799a,_0x40f61f);}const a2_0x13c279=a2_0x5c61;(function(_0x3866e8,_0x57691d){const _0xa2b4fd=a2_0x5c61,_0x69de46=_0x3866e8();while(!![]){try{const _0x1ad9de=parseInt(_0xa2b4fd(0xe6))/0x1+parseInt(_0xa2b4fd(0x100))/0x2*(-parseInt(_0xa2b4fd(0xff))/0x3)+-parseInt(_0xa2b4fd(0xe9))/0x4*(-parseInt(_0xa2b4fd(0xf8))/0x5)+-parseInt(_0xa2b4fd(0xf1))/0x6*(parseInt(_0xa2b4fd(0xee))/0x7)+parseInt(_0xa2b4fd(0xef))/0x8*(-parseInt(_0xa2b4fd(0xfa))/0x9)+-parseInt(_0xa2b4fd(0x101))/0xa*(parseInt(_0xa2b4fd(0xfb))/0xb)+parseInt(_0xa2b4fd(0xf9))/0xc*(parseInt(_0xa2b4fd(0xed))/0xd);if(_0x1ad9de===_0x57691d)break;else _0x69de46['push'](_0x69de46['shift']());}catch(_0x323989){_0x69de46['push'](_0x69de46['shift']());}}}(a2_0x55cd,0xec45d));function a2_0x55cd(){const _0xf782e4=['427948aQaWWi','get','getApplicationContext','set','13MSxXww','28qDkKYT','1952daMLRX','../service/CacheService','1269834yHckku','MD5','CacheService','app','stringify','use','__esModule','25INAWxO','51601044qLEsbL','51606nsxuoD','55OVePML','value','parse','Cache','195918pbBtGa','58VCyrZo','1624370EHYIxJ','crypto-js','getAsync','1084462HsHhge','REQUEST_OBJ_CTX_KEY','Method::Decorator'];a2_0x55cd=function(){return _0xf782e4;};return a2_0x55cd();}Object['defineProperty'](exports,a2_0x13c279(0xf7),{'value':!![]}),exports[a2_0x13c279(0xfe)]=void 0x0;const crypto_js_1=require(a2_0x13c279(0x102)),CacheService_1=require(a2_0x13c279(0xf0)),core_1=require('@midwayjs/core');function Cache(_0x3c3738,_0x1142c1){return(_0x5710b9,_0x29a5ff,_0x316530)=>{const _0x4bd50e=a2_0x5c61,_0x5aac60=_0x316530[_0x4bd50e(0xfc)];return _0x316530[_0x4bd50e(0xfc)]=async function(..._0x23ed3a){const _0xd039df=_0x4bd50e;!_0x3c3738&&(_0x3c3738=(0x0,crypto_js_1[_0xd039df(0xf2)])(JSON[_0xd039df(0xf5)](_0x23ed3a))['toString']());let _0x5ecb13=await this[core_1[_0xd039df(0xe7)]][_0xd039df(0xf4)][_0xd039df(0xeb)]()[_0xd039df(0xe5)](CacheService_1[_0xd039df(0xf3)]),_0x2ebcae=await _0x5ecb13[_0xd039df(0xf6)](_0xd039df(0xe8))[_0xd039df(0xea)](_0x3c3738);if(_0x2ebcae)return JSON[_0xd039df(0xfd)](_0x2ebcae);else _0x2ebcae=await _0x5aac60['apply'](this,[..._0x23ed3a]),await _0x5ecb13['use'](_0xd039df(0xe8))[_0xd039df(0xec)](_0x3c3738,JSON['stringify'](_0x2ebcae),_0x1142c1);return _0x2ebcae;},_0x316530;};}exports['Cache']=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a3_0x3850(_0x5179c2,_0x1120bd){var _0x5ed691=a3_0x5ed6();return a3_0x3850=function(_0x385040,_0x29c22f){_0x385040=_0x385040-0x1a0;var _0x58d627=_0x5ed691[_0x385040];return _0x58d627;},a3_0x3850(_0x5179c2,_0x1120bd);}var a3_0x32c154=a3_0x3850;(function(_0x5ef790,_0x59943e){var _0x566b2c=a3_0x3850,_0x18f05c=_0x5ef790();while(!![]){try{var _0x305663=parseInt(_0x566b2c(0x1af))/0x1*(-parseInt(_0x566b2c(0x1ab))/0x2)+-parseInt(_0x566b2c(0x1a8))/0x3+-parseInt(_0x566b2c(0x1a2))/0x4*(-parseInt(_0x566b2c(0x1a4))/0x5)+parseInt(_0x566b2c(0x1a9))/0x6+-parseInt(_0x566b2c(0x1a0))/0x7+-parseInt(_0x566b2c(0x1ad))/0x8+parseInt(_0x566b2c(0x1a7))/0x9;if(_0x305663===_0x59943e)break;else _0x18f05c['push'](_0x18f05c['shift']());}catch(_0xfc3e6b){_0x18f05c['push'](_0x18f05c['shift']());}}}(a3_0x5ed6,0xecaa9));Object[a3_0x32c154(0x1a3)](exports,'__esModule',{'value':!![]}),exports['CacheService']=exports[a3_0x32c154(0x1a6)]=exports[a3_0x32c154(0x1ae)]=void 0x0;var configuration_1=require(a3_0x32c154(0x1ac));Object[a3_0x32c154(0x1a3)](exports,a3_0x32c154(0x1ae),{'enumerable':!![],'get':function(){var _0x59c05e=a3_0x32c154;return configuration_1[_0x59c05e(0x1a5)];}});var Cache_1=require(a3_0x32c154(0x1a1));Object[a3_0x32c154(0x1a3)](exports,a3_0x32c154(0x1a6),{'enumerable':!![],'get':function(){var _0x4fefd9=a3_0x32c154;return Cache_1[_0x4fefd9(0x1a6)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x32c154(0x1a3)](exports,a3_0x32c154(0x1aa),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});function a3_0x5ed6(){var _0x11cd19=['2JCIGUw','./configuration','13910624KlfINR','Configuration','104166AiCqFZ','9847250tSGxqp','./decorator/Cache','24IjABtl','defineProperty','1072305tHvTXT','CustomConfiguration','Cache','25138305AyYeXV','1049709DbTbLo','2934726qSIphm','CacheService'];a3_0x5ed6=function(){return _0x11cd19;};return a3_0x5ed6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x8b052c=a4_0x1b99;(function(_0x402620,_0x2f46fb){var _0x3d28f4=a4_0x1b99,_0x857a92=_0x402620();while(!![]){try{var _0x4273b3=-parseInt(_0x3d28f4(0xdd))/0x1*(-parseInt(_0x3d28f4(0xf2))/0x2)+-parseInt(_0x3d28f4(0xec))/0x3*(parseInt(_0x3d28f4(0xdc))/0x4)+-parseInt(_0x3d28f4(0xda))/0x5+-parseInt(_0x3d28f4(0xf7))/0x6*(-parseInt(_0x3d28f4(0xee))/0x7)+parseInt(_0x3d28f4(0x100))/0x8*(parseInt(_0x3d28f4(0xf6))/0x9)+parseInt(_0x3d28f4(0xeb))/0xa+-parseInt(_0x3d28f4(0xd7))/0xb;if(_0x4273b3===_0x2f46fb)break;else _0x857a92['push'](_0x857a92['shift']());}catch(_0x22514e){_0x857a92['push'](_0x857a92['shift']());}}}(a4_0x4f8b,0x6c19f));function a4_0x4f8b(){var _0x4f1bd8=['672850YFBpMx','Provide','4IpYlSp','17277LLLCck','object','options','hdel','cache','file','__esModule','ScopeEnum','use','getOwnPropertyDescriptor','Scope','reset','__decorate','length','8225750oeZgnR','12645JuNcDu','prefix','7oMoNEw','set','prototype','has','54ysSQXv','get','hset','decorate','9WknojC','1133178ZTcKlE','config','cache-manager','caching','function','hget','stores','defineProperty','clients','4936408PPBrMS','@midwayjs/core','Singleton','16647400dKkoPd','default','metadata'];a4_0x4f8b=function(){return _0x4f1bd8;};return a4_0x4f8b();}var __decorate=this&&this[a4_0x8b052c(0xe9)]||function(_0x37a3ae,_0x4b9b38,_0x3c8a9b,_0x3c160c){var _0x567640=a4_0x8b052c,_0x111255=arguments[_0x567640(0xea)],_0x4a65ef=_0x111255<0x3?_0x4b9b38:_0x3c160c===null?_0x3c160c=Object[_0x567640(0xe6)](_0x4b9b38,_0x3c8a9b):_0x3c160c,_0x52a011;if(typeof Reflect===_0x567640(0xde)&&typeof Reflect['decorate']===_0x567640(0xfb))_0x4a65ef=Reflect[_0x567640(0xf5)](_0x37a3ae,_0x4b9b38,_0x3c8a9b,_0x3c160c);else{for(var _0x371306=_0x37a3ae[_0x567640(0xea)]-0x1;_0x371306>=0x0;_0x371306--)if(_0x52a011=_0x37a3ae[_0x371306])_0x4a65ef=(_0x111255<0x3?_0x52a011(_0x4a65ef):_0x111255>0x3?_0x52a011(_0x4b9b38,_0x3c8a9b,_0x4a65ef):_0x52a011(_0x4b9b38,_0x3c8a9b))||_0x4a65ef;}return _0x111255>0x3&&_0x4a65ef&&Object[_0x567640(0xfe)](_0x4b9b38,_0x3c8a9b,_0x4a65ef),_0x4a65ef;},__metadata=this&&this['__metadata']||function(_0x16725d,_0xe4cdb4){var _0x43dfcc=a4_0x8b052c;if(typeof Reflect===_0x43dfcc(0xde)&&typeof Reflect[_0x43dfcc(0xd9)]==='function')return Reflect[_0x43dfcc(0xd9)](_0x16725d,_0xe4cdb4);};function a4_0x1b99(_0x23324f,_0x219951){var _0x4f8b50=a4_0x4f8b();return a4_0x1b99=function(_0x1b99fd,_0xa772d){_0x1b99fd=_0x1b99fd-0xd5;var _0x403b2e=_0x4f8b50[_0x1b99fd];return _0x403b2e;},a4_0x1b99(_0x23324f,_0x219951);}Object[a4_0x8b052c(0xfe)](exports,a4_0x8b052c(0xe3),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require(a4_0x8b052c(0xf9)),core_1=require(a4_0x8b052c(0xd5));let CacheService=class CacheService{constructor(){var _0x33e72e=a4_0x8b052c;this[_0x33e72e(0xe1)]=undefined,this[_0x33e72e(0xff)]=new Map();}[a4_0x8b052c(0xe5)](_0x2a318e){var _0x59358a=a4_0x8b052c,_0x6d5292,_0x1ff126;if(!this['cache']){const _0x10c0bd=((_0x6d5292=this[_0x59358a(0xf8)][_0x59358a(0xfd)])===null||_0x6d5292===void 0x0?void 0x0:_0x6d5292[(_0x1ff126=this[_0x59358a(0xf8)][_0x59358a(0xe1)])===null||_0x1ff126===void 0x0?void 0x0:_0x1ff126[_0x59358a(0xd8)]])||this['config']['stores'][_0x59358a(0xe2)];this['cache']=cacheManager[_0x59358a(0xfa)]({..._0x10c0bd[_0x59358a(0xdf)],'store':_0x10c0bd['store']});}return!this[_0x59358a(0xff)][_0x59358a(0xf1)](_0x2a318e)&&this[_0x59358a(0xff)][_0x59358a(0xef)](_0x2a318e,new CacheHandler(_0x2a318e,this['cache'])),this[_0x59358a(0xff)][_0x59358a(0xf3)](_0x2a318e);}async[a4_0x8b052c(0xe8)](){var _0x10e580=a4_0x8b052c;return await this[_0x10e580(0xe1)][_0x10e580(0xe8)]();}};__decorate([(0x0,core_1['Config'])(a4_0x8b052c(0xe1)),__metadata('design:type',Object)],CacheService[a4_0x8b052c(0xf0)],'config',void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x8b052c(0xdb)])(),(0x0,core_1[a4_0x8b052c(0xe7)])(core_1[a4_0x8b052c(0xe4)][a4_0x8b052c(0xd6)])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x5d29ff,_0x4e32f0){this['cache']=_0x4e32f0,this['prefix']=_0x5d29ff;}async['del'](_0x14eb85){var _0x520533=a4_0x8b052c;return await this[_0x520533(0xe1)]['del'](this[_0x520533(0xed)]+':'+_0x14eb85);}async['set'](_0x4d07f7,_0x907ec4,_0x2186e4){var _0x1556e0=a4_0x8b052c;return await this['cache'][_0x1556e0(0xef)](this[_0x1556e0(0xed)]+':'+_0x4d07f7,_0x907ec4,_0x2186e4);}async[a4_0x8b052c(0xf3)](_0xe0343,_0x500f74){return new Promise((_0x451c0c,_0x458c5f)=>{var _0x47fed8=a4_0x1b99;this[_0x47fed8(0xe1)][_0x47fed8(0xf3)](this[_0x47fed8(0xed)]+':'+_0xe0343,(_0x2617b8,_0x6f2264)=>{_0x2617b8?_0x458c5f(_0x2617b8):_0x451c0c(_0x6f2264||_0x500f74);});});}async[a4_0x8b052c(0xe0)](_0x421a10,_0x11aba1){return await this['del'](_0x421a10+'#'+_0x11aba1);}async[a4_0x8b052c(0xf4)](_0xbe8c22,_0x2a766f,_0x575aa9,_0x24ed79){return await this['set'](_0xbe8c22+'#'+_0x2a766f,_0x575aa9,_0x24ed79);}async[a4_0x8b052c(0xfc)](_0x2ec3f5,_0x3a1833,_0xb8d001){var _0x5aa23d=a4_0x8b052c;return await this[_0x5aa23d(0xf3)](_0x2ec3f5+'#'+_0x3a1833,_0xb8d001);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.26",
|
|
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": "2b46646a074fc14c48509aa692a16a9f012616ef"
|
|
27
27
|
}
|