@anncic-api/cache 3.4.83 → 3.4.85

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
- const a0_0x1efc73=a0_0x5366;function a0_0x52a9(){const _0x15620f=['127.0.0.1','search','115YDSrxl','189fYdYEN','3868494OYMJdI','298Xsuscf','175768qWmWSw','defineProperty','constructor','file','name','345030gHdwXn','env','toString','apply','appDir','11064bMdBXt','24918eVTiSi','memory','__esModule','1442290soLrbE','(((.+)+)+)+$','cache-manager-fs-hash','2121616GfbHII','cache-manager-ioredis'];a0_0x52a9=function(){return _0x15620f;};return a0_0x52a9();}(function(_0xcb78d9,_0x38540d){const _0xd65ef8=a0_0x5366,_0x4900ef=_0xcb78d9();while(!![]){try{const _0x4ca3be=parseInt(_0xd65ef8(0x6f))/0x1+-parseInt(_0xd65ef8(0x82))/0x2*(-parseInt(_0xd65ef8(0x74))/0x3)+parseInt(_0xd65ef8(0x7b))/0x4+parseInt(_0xd65ef8(0x7f))/0x5*(parseInt(_0xd65ef8(0x75))/0x6)+-parseInt(_0xd65ef8(0x81))/0x7+parseInt(_0xd65ef8(0x6a))/0x8*(-parseInt(_0xd65ef8(0x80))/0x9)+-parseInt(_0xd65ef8(0x78))/0xa;if(_0x4ca3be===_0x38540d)break;else _0x4900ef['push'](_0x4900ef['shift']());}catch(_0x418542){_0x4900ef['push'](_0x4900ef['shift']());}}}(a0_0x52a9,0x586db));const a0_0x2b1ce3=(function(){let _0x4eb965=!![];return function(_0x1e1d5a,_0x5ea578){const _0x14809d=_0x4eb965?function(){const _0x3d89f6=a0_0x5366;if(_0x5ea578){const _0x56d71a=_0x5ea578[_0x3d89f6(0x72)](_0x1e1d5a,arguments);return _0x5ea578=null,_0x56d71a;}}:function(){};return _0x4eb965=![],_0x14809d;};}()),a0_0x4a9262=a0_0x2b1ce3(this,function(){const _0x399ef9=a0_0x5366;return a0_0x4a9262['toString']()[_0x399ef9(0x7e)](_0x399ef9(0x79))[_0x399ef9(0x71)]()[_0x399ef9(0x6c)](a0_0x4a9262)[_0x399ef9(0x7e)](_0x399ef9(0x79));});a0_0x4a9262();'use strict';function a0_0x5366(_0x57511c,_0x5e5de7){const _0x24323a=a0_0x52a9();return a0_0x5366=function(_0x4a9262,_0x2b1ce3){_0x4a9262=_0x4a9262-0x6a;let _0x52a9e9=_0x24323a[_0x4a9262];return _0x52a9e9;},a0_0x5366(_0x57511c,_0x5e5de7);}Object[a0_0x1efc73(0x6b)](exports,a0_0x1efc73(0x77),{'value':!![]});const fsStore=require(a0_0x1efc73(0x7a)),redisStore=require(a0_0x1efc73(0x7c));exports['default']=_0x180b9a=>{const _0xf54916=a0_0x1efc73;return{'cache':{'default':_0xf54916(0x6d),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x180b9a[_0xf54916(0x73)]+'/runtime/.cache'+((_0x180b9a===null||_0x180b9a===void 0x0?void 0x0:_0x180b9a[_0xf54916(0x70)])?'-'+_0x180b9a[_0xf54916(0x70)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0xf54916(0x7d),'password':'','keyPrefix':_0x180b9a[_0xf54916(0x6e)]+':'+((_0x180b9a===null||_0x180b9a===void 0x0?void 0x0:_0x180b9a[_0xf54916(0x70)])?_0x180b9a[_0xf54916(0x70)]+':':'')}},'memory':{'store':_0xf54916(0x76),'options':{'max':0x64}}}}};};
1
+ const a0_0x44dc5f=a0_0x46fb;(function(_0x1cb90c,_0x219cb9){const _0x5d8f33=a0_0x46fb,_0x1d017b=_0x1cb90c();while(!![]){try{const _0x5c9167=-parseInt(_0x5d8f33(0x9a))/0x1+-parseInt(_0x5d8f33(0xa9))/0x2*(parseInt(_0x5d8f33(0xb1))/0x3)+parseInt(_0x5d8f33(0xa0))/0x4*(-parseInt(_0x5d8f33(0xab))/0x5)+-parseInt(_0x5d8f33(0xb0))/0x6*(-parseInt(_0x5d8f33(0xac))/0x7)+-parseInt(_0x5d8f33(0xae))/0x8*(parseInt(_0x5d8f33(0xaf))/0x9)+-parseInt(_0x5d8f33(0xa6))/0xa+parseInt(_0x5d8f33(0xad))/0xb*(parseInt(_0x5d8f33(0xa7))/0xc);if(_0x5c9167===_0x219cb9)break;else _0x1d017b['push'](_0x1d017b['shift']());}catch(_0x34fba4){_0x1d017b['push'](_0x1d017b['shift']());}}}(a0_0x5949,0x82c79));function a0_0x46fb(_0x55f69f,_0x20bfe1){const _0x42c042=a0_0x5949();return a0_0x46fb=function(_0x25b72d,_0xb99fa){_0x25b72d=_0x25b72d-0x9a;let _0x5949ac=_0x42c042[_0x25b72d];return _0x5949ac;},a0_0x46fb(_0x55f69f,_0x20bfe1);}const a0_0xb99fa=(function(){let _0x13d9dd=!![];return function(_0xfe9c53,_0x32c955){const _0x2e1e42=_0x13d9dd?function(){const _0x388771=a0_0x46fb;if(_0x32c955){const _0x2155b7=_0x32c955[_0x388771(0xb2)](_0xfe9c53,arguments);return _0x32c955=null,_0x2155b7;}}:function(){};return _0x13d9dd=![],_0x2e1e42;};}()),a0_0x25b72d=a0_0xb99fa(this,function(){const _0x4391e2=a0_0x46fb;return a0_0x25b72d['toString']()[_0x4391e2(0xa2)](_0x4391e2(0xb3))[_0x4391e2(0xa3)]()[_0x4391e2(0xa4)](a0_0x25b72d)[_0x4391e2(0xa2)](_0x4391e2(0xb3));});a0_0x25b72d();'use strict';Object[a0_0x44dc5f(0x9c)](exports,a0_0x44dc5f(0xb4),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x44dc5f(0x9f));exports[a0_0x44dc5f(0xa1)]=_0x37c589=>{const _0x494faf=a0_0x44dc5f;return{'cache':{'default':_0x494faf(0xa5),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x37c589[_0x494faf(0xa8)]+_0x494faf(0x9e)+((_0x37c589===null||_0x37c589===void 0x0?void 0x0:_0x37c589[_0x494faf(0x9b)])?'-'+_0x37c589[_0x494faf(0x9b)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x494faf(0x9d),'password':'','keyPrefix':_0x37c589[_0x494faf(0xaa)]+':'+((_0x37c589===null||_0x37c589===void 0x0?void 0x0:_0x37c589[_0x494faf(0x9b)])?_0x37c589[_0x494faf(0x9b)]+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};function a0_0x5949(){const _0x372f73=['appDir','10jtLyIz','name','25MHnCOJ','6672232MjbTJk','44BHLcRp','3811664ZOesgf','18eXxfas','6haOiXy','372633BVUMnz','apply','(((.+)+)+)+$','__esModule','764919clMiAm','env','defineProperty','127.0.0.1','/runtime/.cache','cache-manager-ioredis','360068tJHZVp','default','search','toString','constructor','file','9992760XrGMBm','10112244JNtWrN'];a0_0x5949=function(){return _0x372f73;};return a0_0x5949();}
@@ -1 +1 @@
1
- var a1_0x1a1b5f=a1_0x4aca;(function(_0xa0597d,_0x196a99){var _0x29e44c=a1_0x4aca,_0x136c3c=_0xa0597d();while(!![]){try{var _0xbdb52e=-parseInt(_0x29e44c(0x202))/0x1*(parseInt(_0x29e44c(0x1ff))/0x2)+parseInt(_0x29e44c(0x1f7))/0x3*(-parseInt(_0x29e44c(0x204))/0x4)+parseInt(_0x29e44c(0x1f3))/0x5+-parseInt(_0x29e44c(0x1f1))/0x6*(parseInt(_0x29e44c(0x1f5))/0x7)+parseInt(_0x29e44c(0x1f9))/0x8+parseInt(_0x29e44c(0x207))/0x9+parseInt(_0x29e44c(0x1f2))/0xa*(parseInt(_0x29e44c(0x203))/0xb);if(_0xbdb52e===_0x196a99)break;else _0x136c3c['push'](_0x136c3c['shift']());}catch(_0x11c43b){_0x136c3c['push'](_0x136c3c['shift']());}}}(a1_0x4aac,0x8a9fb));function a1_0x4aca(_0x5ca12c,_0x50b4d7){var _0x53cd35=a1_0x4aac();return a1_0x4aca=function(_0x48f82d,_0x2668c6){_0x48f82d=_0x48f82d-0x1f0;var _0x4aace5=_0x53cd35[_0x48f82d];return _0x4aace5;},a1_0x4aca(_0x5ca12c,_0x50b4d7);}var a1_0x2668c6=(function(){var _0x2195db=!![];return function(_0x4c34e2,_0x5cf686){var _0x4099c2=_0x2195db?function(){var _0x596f7e=a1_0x4aca;if(_0x5cf686){var _0x4e0171=_0x5cf686[_0x596f7e(0x1fa)](_0x4c34e2,arguments);return _0x5cf686=null,_0x4e0171;}}:function(){};return _0x2195db=![],_0x4099c2;};}()),a1_0x48f82d=a1_0x2668c6(this,function(){var _0x255b2a=a1_0x4aca;return a1_0x48f82d[_0x255b2a(0x205)]()[_0x255b2a(0x20a)]('(((.+)+)+)+$')['toString']()[_0x255b2a(0x1fb)](a1_0x48f82d)['search']('(((.+)+)+)+$');});a1_0x48f82d();'use strict';var __decorate=this&&this[a1_0x1a1b5f(0x201)]||function(_0x58dcad,_0x753091,_0x24c648,_0x32e267){var _0x1092b7=a1_0x1a1b5f,_0x20b9c2=arguments['length'],_0x2b7812=_0x20b9c2<0x3?_0x753091:_0x32e267===null?_0x32e267=Object[_0x1092b7(0x209)](_0x753091,_0x24c648):_0x32e267,_0x3800b1;if(typeof Reflect==='object'&&typeof Reflect[_0x1092b7(0x1f0)]===_0x1092b7(0x206))_0x2b7812=Reflect[_0x1092b7(0x1f0)](_0x58dcad,_0x753091,_0x24c648,_0x32e267);else{for(var _0x563d2e=_0x58dcad[_0x1092b7(0x1fd)]-0x1;_0x563d2e>=0x0;_0x563d2e--)if(_0x3800b1=_0x58dcad[_0x563d2e])_0x2b7812=(_0x20b9c2<0x3?_0x3800b1(_0x2b7812):_0x20b9c2>0x3?_0x3800b1(_0x753091,_0x24c648,_0x2b7812):_0x3800b1(_0x753091,_0x24c648))||_0x2b7812;}return _0x20b9c2>0x3&&_0x2b7812&&Object[_0x1092b7(0x1fc)](_0x753091,_0x24c648,_0x2b7812),_0x2b7812;};Object[a1_0x1a1b5f(0x1fc)](exports,a1_0x1a1b5f(0x1f6),{'value':!![]}),exports[a1_0x1a1b5f(0x208)]=void 0x0;const core_1=require(a1_0x1a1b5f(0x200)),ConfigDefault=require(a1_0x1a1b5f(0x1fe));let CustomConfiguration=class CustomConfiguration{};function a1_0x4aac(){var _0x315917=['./config/config.default','5786IsRQeP','@midwayjs/core','__decorate','267kVvGMT','16533hmnspw','367428tPzBme','toString','function','646758OfzDNH','CustomConfiguration','getOwnPropertyDescriptor','search','decorate','54wpENlN','5870Ysjlng','4264930ZywvyN','anncic-api:cache','602651acabbb','__esModule','27pjcMQb','Configuration','9077400SYeRqS','apply','constructor','defineProperty','length'];a1_0x4aac=function(){return _0x315917;};return a1_0x4aac();}exports[a1_0x1a1b5f(0x208)]=CustomConfiguration,exports[a1_0x1a1b5f(0x208)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x1a1b5f(0x1f8)])({'conflictCheck':![],'namespace':a1_0x1a1b5f(0x1f4),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
1
+ var a1_0x125ba5=a1_0x5cf3;(function(_0x250dee,_0x555a46){var _0x7387e9=a1_0x5cf3,_0x19256c=_0x250dee();while(!![]){try{var _0x13bf73=-parseInt(_0x7387e9(0x93))/0x1+parseInt(_0x7387e9(0xa2))/0x2*(parseInt(_0x7387e9(0x91))/0x3)+-parseInt(_0x7387e9(0xa0))/0x4+-parseInt(_0x7387e9(0x9e))/0x5+parseInt(_0x7387e9(0x8a))/0x6*(parseInt(_0x7387e9(0x9a))/0x7)+parseInt(_0x7387e9(0x8d))/0x8*(parseInt(_0x7387e9(0x9c))/0x9)+-parseInt(_0x7387e9(0x98))/0xa*(-parseInt(_0x7387e9(0x8b))/0xb);if(_0x13bf73===_0x555a46)break;else _0x19256c['push'](_0x19256c['shift']());}catch(_0x232b05){_0x19256c['push'](_0x19256c['shift']());}}}(a1_0x26fe,0x40500));var a1_0x2f91bb=(function(){var _0x44b89=!![];return function(_0x3e5940,_0x209d1c){var _0x106412=_0x44b89?function(){var _0x1088d0=a1_0x5cf3;if(_0x209d1c){var _0x51d301=_0x209d1c[_0x1088d0(0x94)](_0x3e5940,arguments);return _0x209d1c=null,_0x51d301;}}:function(){};return _0x44b89=![],_0x106412;};}()),a1_0xb8b5d0=a1_0x2f91bb(this,function(){var _0x4463b1=a1_0x5cf3;return a1_0xb8b5d0[_0x4463b1(0x9b)]()[_0x4463b1(0x9f)](_0x4463b1(0x96))[_0x4463b1(0x9b)]()[_0x4463b1(0x8f)](a1_0xb8b5d0)['search'](_0x4463b1(0x96));});a1_0xb8b5d0();'use strict';var __decorate=this&&this['__decorate']||function(_0x1cf273,_0x5e2733,_0xda6503,_0x16a6fc){var _0x38e106=a1_0x5cf3,_0x370b2e=arguments[_0x38e106(0xa1)],_0x465446=_0x370b2e<0x3?_0x5e2733:_0x16a6fc===null?_0x16a6fc=Object['getOwnPropertyDescriptor'](_0x5e2733,_0xda6503):_0x16a6fc,_0x2a6792;if(typeof Reflect===_0x38e106(0x95)&&typeof Reflect['decorate']===_0x38e106(0x99))_0x465446=Reflect[_0x38e106(0x90)](_0x1cf273,_0x5e2733,_0xda6503,_0x16a6fc);else{for(var _0x42efac=_0x1cf273['length']-0x1;_0x42efac>=0x0;_0x42efac--)if(_0x2a6792=_0x1cf273[_0x42efac])_0x465446=(_0x370b2e<0x3?_0x2a6792(_0x465446):_0x370b2e>0x3?_0x2a6792(_0x5e2733,_0xda6503,_0x465446):_0x2a6792(_0x5e2733,_0xda6503))||_0x465446;}return _0x370b2e>0x3&&_0x465446&&Object[_0x38e106(0x97)](_0x5e2733,_0xda6503,_0x465446),_0x465446;};function a1_0x26fe(){var _0x32fc2f=['object','(((.+)+)+)+$','defineProperty','1185470uPVHiE','function','679NPzARU','toString','308817UCCABf','anncic-api:cache','1852320TVoPBQ','search','1641828bhcsDw','length','247206zBnfqv','16968nBhFaz','55mQdbjQ','Configuration','48HncEhU','./config/config.default','constructor','decorate','9btfOAM','CustomConfiguration','399393eSVwYl','apply'];a1_0x26fe=function(){return _0x32fc2f;};return a1_0x26fe();}function a1_0x5cf3(_0x5795c2,_0x309c08){var _0x51ad44=a1_0x26fe();return a1_0x5cf3=function(_0xb8b5d0,_0x2f91bb){_0xb8b5d0=_0xb8b5d0-0x8a;var _0x26fe4b=_0x51ad44[_0xb8b5d0];return _0x26fe4b;},a1_0x5cf3(_0x5795c2,_0x309c08);}Object[a1_0x125ba5(0x97)](exports,'__esModule',{'value':!![]}),exports[a1_0x125ba5(0x92)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x125ba5(0x8e));let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x125ba5(0x92)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x125ba5(0x8c)])({'conflictCheck':![],'namespace':a1_0x125ba5(0x9d),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
@@ -1 +1 @@
1
- const a2_0x5c94ba=a2_0x2c7d;function a2_0x2c7d(_0xab89f5,_0x4aa342){const _0xc4b454=a2_0x2083();return a2_0x2c7d=function(_0x17c71c,_0x39630b){_0x17c71c=_0x17c71c-0x184;let _0x2083b1=_0xc4b454[_0x17c71c];return _0x2083b1;},a2_0x2c7d(_0xab89f5,_0x4aa342);}(function(_0x37e71f,_0x11ce78){const _0x1d3385=a2_0x2c7d,_0xffc0f5=_0x37e71f();while(!![]){try{const _0x4460e1=-parseInt(_0x1d3385(0x189))/0x1+parseInt(_0x1d3385(0x18e))/0x2*(parseInt(_0x1d3385(0x19a))/0x3)+parseInt(_0x1d3385(0x184))/0x4+parseInt(_0x1d3385(0x193))/0x5*(parseInt(_0x1d3385(0x198))/0x6)+parseInt(_0x1d3385(0x192))/0x7*(-parseInt(_0x1d3385(0x19b))/0x8)+parseInt(_0x1d3385(0x1a4))/0x9*(-parseInt(_0x1d3385(0x19e))/0xa)+-parseInt(_0x1d3385(0x1a2))/0xb*(-parseInt(_0x1d3385(0x190))/0xc);if(_0x4460e1===_0x11ce78)break;else _0xffc0f5['push'](_0xffc0f5['shift']());}catch(_0x9adb40){_0xffc0f5['push'](_0xffc0f5['shift']());}}}(a2_0x2083,0x58574));const a2_0x39630b=(function(){let _0x4c9633=!![];return function(_0x43d91f,_0x22018f){const _0x4ed192=_0x4c9633?function(){if(_0x22018f){const _0x523f19=_0x22018f['apply'](_0x43d91f,arguments);return _0x22018f=null,_0x523f19;}}:function(){};return _0x4c9633=![],_0x4ed192;};}()),a2_0x17c71c=a2_0x39630b(this,function(){const _0x1e7ccc=a2_0x2c7d;return a2_0x17c71c[_0x1e7ccc(0x188)]()[_0x1e7ccc(0x18f)](_0x1e7ccc(0x195))[_0x1e7ccc(0x188)]()[_0x1e7ccc(0x1a1)](a2_0x17c71c)[_0x1e7ccc(0x18f)](_0x1e7ccc(0x195));});a2_0x17c71c();'use strict';function a2_0x2083(){const _0x53764c=['constructor','5687qApDpZ','getAsync','131715JZzRbR','291220ZtccHH','crypto-js','parse','apply','toString','318026AqWyQD','MD5','../service/CacheService','get','use','58pjivEz','search','15012kkEjUB','Method::Decorator','7sdEZoP','25eLAJpB','defineProperty','(((.+)+)+)+$','app','REQUEST_OBJ_CTX_KEY','118362PCfDQH','getApplicationContext','53373cqVYYt','3946328kWFpTK','stringify','value','110mJbkuk','__esModule','set'];a2_0x2083=function(){return _0x53764c;};return a2_0x2083();}Object[a2_0x5c94ba(0x194)](exports,a2_0x5c94ba(0x19f),{'value':!![]}),exports['Cache']=Cache;const crypto_js_1=require(a2_0x5c94ba(0x185)),CacheService_1=require(a2_0x5c94ba(0x18b)),core_1=require('@midwayjs/core');function json_encode(_0x117fe3){const _0x2da55f=a2_0x5c94ba;try{return JSON[_0x2da55f(0x19c)](_0x117fe3);}catch(_0x5109af){return undefined;}}function Cache(_0x4d17f2,_0x53f7c5){return(_0x10f7fd,_0x1071e7,_0x2036ff)=>{const _0x4dd580=a2_0x2c7d,_0x3ee98d=_0x2036ff[_0x4dd580(0x19d)];return _0x2036ff[_0x4dd580(0x19d)]=async function(..._0x261e06){const _0x301a50=_0x4dd580;_0x4d17f2=(_0x4d17f2?''+_0x4d17f2:''+(_0x1071e7||''))+'.'+(0x0,crypto_js_1[_0x301a50(0x18a)])(json_encode(_0x261e06))[_0x301a50(0x188)]();let _0x451fe7=await this[core_1[_0x301a50(0x197)]][_0x301a50(0x196)][_0x301a50(0x199)]()[_0x301a50(0x1a3)](CacheService_1['CacheService']),_0x3310c9=await _0x451fe7[_0x301a50(0x18d)](_0x301a50(0x191))[_0x301a50(0x18c)](_0x4d17f2);if(_0x3310c9)return JSON[_0x301a50(0x186)](_0x3310c9);else _0x3310c9=await _0x3ee98d[_0x301a50(0x187)](this,[..._0x261e06]),await _0x451fe7['use'](_0x301a50(0x191))[_0x301a50(0x1a0)](_0x4d17f2,JSON['stringify'](_0x3310c9),_0x53f7c5);return _0x3310c9;},_0x2036ff;};}
1
+ const a2_0x201539=a2_0x4fa5;(function(_0x34af86,_0xb5898f){const _0x468f53=a2_0x4fa5,_0x3b9dd1=_0x34af86();while(!![]){try{const _0x323a5d=parseInt(_0x468f53(0xd8))/0x1+parseInt(_0x468f53(0xc6))/0x2*(-parseInt(_0x468f53(0xce))/0x3)+-parseInt(_0x468f53(0xbf))/0x4*(parseInt(_0x468f53(0xd3))/0x5)+parseInt(_0x468f53(0xc5))/0x6*(-parseInt(_0x468f53(0xca))/0x7)+-parseInt(_0x468f53(0xd7))/0x8+parseInt(_0x468f53(0xc0))/0x9*(parseInt(_0x468f53(0xd4))/0xa)+-parseInt(_0x468f53(0xc7))/0xb*(-parseInt(_0x468f53(0xc3))/0xc);if(_0x323a5d===_0xb5898f)break;else _0x3b9dd1['push'](_0x3b9dd1['shift']());}catch(_0x25aef1){_0x3b9dd1['push'](_0x3b9dd1['shift']());}}}(a2_0x542f,0xac6ff));function a2_0x542f(){const _0x16dc2c=['use','apply','toString','getAsync','get','search','(((.+)+)+)+$','4TEEBOS','1718388HvOtyl','../service/CacheService','CacheService','192408MZCDBE','stringify','582RiDQzy','5612zNRsAK','671HqKWLk','value','@midwayjs/core','4921PbOTXt','set','crypto-js','Cache','732qYsROY','__esModule','MD5','defineProperty','REQUEST_OBJ_CTX_KEY','479795MXOXLW','30yNGBfk','getApplicationContext','app','8258416jNdJBa','1036549nclwaP','Method::Decorator','constructor','parse'];a2_0x542f=function(){return _0x16dc2c;};return a2_0x542f();}const a2_0x5a5a31=(function(){let _0x1a0e59=!![];return function(_0x55d4b5,_0x5d00ae){const _0x5bc067=_0x1a0e59?function(){const _0x18ff3d=a2_0x4fa5;if(_0x5d00ae){const _0x568f11=_0x5d00ae[_0x18ff3d(0xb9)](_0x55d4b5,arguments);return _0x5d00ae=null,_0x568f11;}}:function(){};return _0x1a0e59=![],_0x5bc067;};}()),a2_0x45f4cb=a2_0x5a5a31(this,function(){const _0x400ab4=a2_0x4fa5;return a2_0x45f4cb[_0x400ab4(0xba)]()['search']('(((.+)+)+)+$')['toString']()[_0x400ab4(0xda)](a2_0x45f4cb)[_0x400ab4(0xbd)](_0x400ab4(0xbe));});a2_0x45f4cb();'use strict';function a2_0x4fa5(_0x333c13,_0x5463bc){const _0x4cbfc9=a2_0x542f();return a2_0x4fa5=function(_0x45f4cb,_0x5a5a31){_0x45f4cb=_0x45f4cb-0xb8;let _0x542f55=_0x4cbfc9[_0x45f4cb];return _0x542f55;},a2_0x4fa5(_0x333c13,_0x5463bc);}Object[a2_0x201539(0xd1)](exports,a2_0x201539(0xcf),{'value':!![]}),exports[a2_0x201539(0xcd)]=Cache;const crypto_js_1=require(a2_0x201539(0xcc)),CacheService_1=require(a2_0x201539(0xc1)),core_1=require(a2_0x201539(0xc9));function json_encode(_0xfb44e5){const _0x573b6c=a2_0x201539;try{return JSON[_0x573b6c(0xc4)](_0xfb44e5);}catch(_0x43c8fa){return undefined;}}function Cache(_0x16cc64,_0x28e72d){return(_0x3d4ef2,_0x8890ed,_0x2668ce)=>{const _0x12d38a=a2_0x4fa5,_0x326373=_0x2668ce[_0x12d38a(0xc8)];return _0x2668ce[_0x12d38a(0xc8)]=async function(..._0x330705){const _0x2cffcd=_0x12d38a;_0x16cc64=(_0x16cc64?''+_0x16cc64:''+(_0x8890ed||''))+'.'+(0x0,crypto_js_1[_0x2cffcd(0xd0)])(json_encode(_0x330705))[_0x2cffcd(0xba)]();let _0x57a4bc=await this[core_1[_0x2cffcd(0xd2)]][_0x2cffcd(0xd6)][_0x2cffcd(0xd5)]()[_0x2cffcd(0xbb)](CacheService_1[_0x2cffcd(0xc2)]),_0x180020=await _0x57a4bc['use']('Method::Decorator')[_0x2cffcd(0xbc)](_0x16cc64);if(_0x180020)return JSON[_0x2cffcd(0xdb)](_0x180020);else _0x180020=await _0x326373['apply'](this,[..._0x330705]),await _0x57a4bc[_0x2cffcd(0xb8)](_0x2cffcd(0xd9))[_0x2cffcd(0xcb)](_0x16cc64,JSON['stringify'](_0x180020),_0x28e72d);return _0x180020;},_0x2668ce;};}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function a3_0x133a(){var _0x2de008=['defineProperty','7243159zRxoDb','(((.+)+)+)+$','CacheService','./service/CacheService','212977dbBDIU','838464vMtmnF','search','./decorator/Cache','Configuration','4137765RjCkLK','6gQCBjh','toString','__esModule','./configuration','667964YioXYg','Cache','constructor','CustomConfiguration','1850520lzoOdx','30367864AYgONP','apply'];a3_0x133a=function(){return _0x2de008;};return a3_0x133a();}var a3_0x3ebd19=a3_0x3ff1;(function(_0x22dc99,_0x257121){var _0x420eb8=a3_0x3ff1,_0x1361b5=_0x22dc99();while(!![]){try{var _0x45e340=-parseInt(_0x420eb8(0x149))/0x1+-parseInt(_0x420eb8(0x153))/0x2+-parseInt(_0x420eb8(0x141))/0x3+-parseInt(_0x420eb8(0x14a))/0x4+-parseInt(_0x420eb8(0x14e))/0x5+-parseInt(_0x420eb8(0x14f))/0x6*(parseInt(_0x420eb8(0x145))/0x7)+parseInt(_0x420eb8(0x142))/0x8;if(_0x45e340===_0x257121)break;else _0x1361b5['push'](_0x1361b5['shift']());}catch(_0x54c108){_0x1361b5['push'](_0x1361b5['shift']());}}}(a3_0x133a,0x88c96));function a3_0x3ff1(_0x4b071f,_0x1da92a){var _0x4d370e=a3_0x133a();return a3_0x3ff1=function(_0xb2aafc,_0x96453f){_0xb2aafc=_0xb2aafc-0x13e;var _0x133a5c=_0x4d370e[_0xb2aafc];return _0x133a5c;},a3_0x3ff1(_0x4b071f,_0x1da92a);}var a3_0x96453f=(function(){var _0x3a3b91=!![];return function(_0x4757d3,_0x704c9c){var _0xb1ff28=_0x3a3b91?function(){var _0x558af9=a3_0x3ff1;if(_0x704c9c){var _0x46ae28=_0x704c9c[_0x558af9(0x143)](_0x4757d3,arguments);return _0x704c9c=null,_0x46ae28;}}:function(){};return _0x3a3b91=![],_0xb1ff28;};}()),a3_0xb2aafc=a3_0x96453f(this,function(){var _0x14ae35=a3_0x3ff1;return a3_0xb2aafc[_0x14ae35(0x150)]()[_0x14ae35(0x14b)](_0x14ae35(0x146))[_0x14ae35(0x150)]()[_0x14ae35(0x13f)](a3_0xb2aafc)[_0x14ae35(0x14b)](_0x14ae35(0x146));});a3_0xb2aafc();'use strict';Object[a3_0x3ebd19(0x144)](exports,a3_0x3ebd19(0x151),{'value':!![]}),exports[a3_0x3ebd19(0x147)]=exports[a3_0x3ebd19(0x13e)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x3ebd19(0x152));Object[a3_0x3ebd19(0x144)](exports,a3_0x3ebd19(0x14d),{'enumerable':!![],'get':function(){var _0x559f9a=a3_0x3ebd19;return configuration_1[_0x559f9a(0x140)];}});var Cache_1=require(a3_0x3ebd19(0x14c));Object[a3_0x3ebd19(0x144)](exports,'Cache',{'enumerable':!![],'get':function(){var _0xdd25bc=a3_0x3ebd19;return Cache_1[_0xdd25bc(0x13e)];}});var CacheService_1=require(a3_0x3ebd19(0x148));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x4cab9f=a3_0x3ebd19;return CacheService_1[_0x4cab9f(0x147)];}});
1
+ var a3_0x122bc3=a3_0x1281;(function(_0x5f3262,_0x2d87b0){var _0xcd4881=a3_0x1281,_0x30ba58=_0x5f3262();while(!![]){try{var _0x51544a=parseInt(_0xcd4881(0x1d3))/0x1+parseInt(_0xcd4881(0x1db))/0x2*(-parseInt(_0xcd4881(0x1df))/0x3)+parseInt(_0xcd4881(0x1dd))/0x4+-parseInt(_0xcd4881(0x1d4))/0x5+-parseInt(_0xcd4881(0x1e0))/0x6+parseInt(_0xcd4881(0x1de))/0x7*(parseInt(_0xcd4881(0x1d7))/0x8)+-parseInt(_0xcd4881(0x1d5))/0x9;if(_0x51544a===_0x2d87b0)break;else _0x30ba58['push'](_0x30ba58['shift']());}catch(_0x3cc819){_0x30ba58['push'](_0x30ba58['shift']());}}}(a3_0x28e5,0x3197b));var a3_0x4a38d2=(function(){var _0x2776bf=!![];return function(_0x138dea,_0x44ac2c){var _0x4f2b7d=_0x2776bf?function(){var _0x9cd99c=a3_0x1281;if(_0x44ac2c){var _0x1b9411=_0x44ac2c[_0x9cd99c(0x1dc)](_0x138dea,arguments);return _0x44ac2c=null,_0x1b9411;}}:function(){};return _0x2776bf=![],_0x4f2b7d;};}()),a3_0x2ffaf8=a3_0x4a38d2(this,function(){var _0x18768d=a3_0x1281;return a3_0x2ffaf8[_0x18768d(0x1d0)]()[_0x18768d(0x1ce)]('(((.+)+)+)+$')[_0x18768d(0x1d0)]()[_0x18768d(0x1d8)](a3_0x2ffaf8)[_0x18768d(0x1ce)](_0x18768d(0x1d1));});a3_0x2ffaf8();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a3_0x122bc3(0x1d6)]=exports[a3_0x122bc3(0x1d9)]=exports[a3_0x122bc3(0x1d2)]=void 0x0;var configuration_1=require('./configuration');Object[a3_0x122bc3(0x1cd)](exports,a3_0x122bc3(0x1d2),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x122bc3(0x1da));function a3_0x1281(_0x1b2aad,_0x250ef7){var _0x3018dc=a3_0x28e5();return a3_0x1281=function(_0x2ffaf8,_0x4a38d2){_0x2ffaf8=_0x2ffaf8-0x1cd;var _0x28e508=_0x3018dc[_0x2ffaf8];return _0x28e508;},a3_0x1281(_0x1b2aad,_0x250ef7);}Object[a3_0x122bc3(0x1cd)](exports,'Cache',{'enumerable':!![],'get':function(){var _0xe1ebd8=a3_0x122bc3;return Cache_1[_0xe1ebd8(0x1d9)];}});var CacheService_1=require(a3_0x122bc3(0x1cf));function a3_0x28e5(){var _0x2fb80c=['328368cAzlwF','constructor','Cache','./decorator/Cache','1418QyfLGO','apply','352672IbtZgu','42YnzxUa','132LIWPnm','1205754ihpWjO','defineProperty','search','./service/CacheService','toString','(((.+)+)+)+$','Configuration','292410qlaxfC','612030HFWnHN','622458vUDZuk','CacheService'];a3_0x28e5=function(){return _0x2fb80c;};return a3_0x28e5();}Object['defineProperty'](exports,a3_0x122bc3(0x1d6),{'enumerable':!![],'get':function(){var _0x1145d7=a3_0x122bc3;return CacheService_1[_0x1145d7(0x1d6)];}});
@@ -1 +1 @@
1
- var a4_0x106e0c=a4_0x1b48;(function(_0x33167c,_0x1d1b45){var _0x588c7c=a4_0x1b48,_0x1c97cc=_0x33167c();while(!![]){try{var _0x1ae9ca=-parseInt(_0x588c7c(0x1ea))/0x1+parseInt(_0x588c7c(0x1dd))/0x2+parseInt(_0x588c7c(0x1d8))/0x3*(parseInt(_0x588c7c(0x1cc))/0x4)+parseInt(_0x588c7c(0x1c2))/0x5+-parseInt(_0x588c7c(0x1d3))/0x6*(parseInt(_0x588c7c(0x1ca))/0x7)+parseInt(_0x588c7c(0x1be))/0x8+-parseInt(_0x588c7c(0x1bc))/0x9;if(_0x1ae9ca===_0x1d1b45)break;else _0x1c97cc['push'](_0x1c97cc['shift']());}catch(_0x51905b){_0x1c97cc['push'](_0x1c97cc['shift']());}}}(a4_0x52f7,0x58c79));var a4_0x44f05c=(function(){var _0x474367=!![];return function(_0xee9b13,_0x27cfc6){var _0x5bae5d=_0x474367?function(){var _0x5c9f09=a4_0x1b48;if(_0x27cfc6){var _0x53cfd2=_0x27cfc6[_0x5c9f09(0x1c5)](_0xee9b13,arguments);return _0x27cfc6=null,_0x53cfd2;}}:function(){};return _0x474367=![],_0x5bae5d;};}()),a4_0x35e34f=a4_0x44f05c(this,function(){var _0x57a004=a4_0x1b48;return a4_0x35e34f[_0x57a004(0x1d4)]()[_0x57a004(0x1c7)](_0x57a004(0x1d0))[_0x57a004(0x1d4)]()[_0x57a004(0x1c4)](a4_0x35e34f)['search'](_0x57a004(0x1d0));});a4_0x35e34f();'use strict';var __decorate=this&&this[a4_0x106e0c(0x1da)]||function(_0x514ffe,_0x4a55ce,_0x3cfbed,_0x334a33){var _0x33a277=a4_0x106e0c,_0x300359=arguments[_0x33a277(0x1c0)],_0x10cb58=_0x300359<0x3?_0x4a55ce:_0x334a33===null?_0x334a33=Object['getOwnPropertyDescriptor'](_0x4a55ce,_0x3cfbed):_0x334a33,_0x279ef9;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x10cb58=Reflect['decorate'](_0x514ffe,_0x4a55ce,_0x3cfbed,_0x334a33);else{for(var _0x3a3f03=_0x514ffe[_0x33a277(0x1c0)]-0x1;_0x3a3f03>=0x0;_0x3a3f03--)if(_0x279ef9=_0x514ffe[_0x3a3f03])_0x10cb58=(_0x300359<0x3?_0x279ef9(_0x10cb58):_0x300359>0x3?_0x279ef9(_0x4a55ce,_0x3cfbed,_0x10cb58):_0x279ef9(_0x4a55ce,_0x3cfbed))||_0x10cb58;}return _0x300359>0x3&&_0x10cb58&&Object[_0x33a277(0x1cf)](_0x4a55ce,_0x3cfbed,_0x10cb58),_0x10cb58;},__metadata=this&&this[a4_0x106e0c(0x1d9)]||function(_0x2e32a3,_0x235cf7){var _0x49d0c9=a4_0x106e0c;if(typeof Reflect==='object'&&typeof Reflect[_0x49d0c9(0x1ce)]===_0x49d0c9(0x1d1))return Reflect[_0x49d0c9(0x1ce)](_0x2e32a3,_0x235cf7);};Object['defineProperty'](exports,a4_0x106e0c(0x1f3),{'value':!![]}),exports[a4_0x106e0c(0x1e2)]=exports[a4_0x106e0c(0x1bd)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x106e0c(0x1e5)]=json_decode;const cacheManager=require(a4_0x106e0c(0x1c1)),core_1=require(a4_0x106e0c(0x1df));let CacheService=class CacheService{constructor(){var _0x397ff4=a4_0x106e0c;this['cache']=undefined,this[_0x397ff4(0x1e1)]=new Map();}['use'](_0x1206bd){var _0x15a09f=a4_0x106e0c,_0x2f59ea,_0x534789;if(!this[_0x15a09f(0x1e6)]){const _0xfdb6c8=((_0x2f59ea=this['config'][_0x15a09f(0x1e7)])===null||_0x2f59ea===void 0x0?void 0x0:_0x2f59ea[(_0x534789=this[_0x15a09f(0x1cb)])===null||_0x534789===void 0x0?void 0x0:_0x534789[_0x15a09f(0x1bf)]])||this[_0x15a09f(0x1cb)][_0x15a09f(0x1e7)][_0x15a09f(0x1ef)];this[_0x15a09f(0x1e6)]=cacheManager[_0x15a09f(0x1d7)]({..._0xfdb6c8['options'],'store':_0xfdb6c8[_0x15a09f(0x1f0)]});}return!this[_0x15a09f(0x1e1)]['has'](_0x1206bd)&&this['clients'][_0x15a09f(0x1de)](_0x1206bd,new Cache(_0x1206bd,this[_0x15a09f(0x1e6)])),this[_0x15a09f(0x1e1)][_0x15a09f(0x1f4)](_0x1206bd);}async[a4_0x106e0c(0x1e3)](){var _0x20a054=a4_0x106e0c;return await this['cache'][_0x20a054(0x1e3)]();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x106e0c(0x1db)])(a4_0x106e0c(0x1e6)),__metadata(a4_0x106e0c(0x1bb),Object)],CacheService[a4_0x106e0c(0x1eb)],a4_0x106e0c(0x1cb),void 0x0),exports[a4_0x106e0c(0x1bd)]=CacheService=__decorate([(0x0,core_1[a4_0x106e0c(0x1d6)])(),(0x0,core_1[a4_0x106e0c(0x1c9)])(core_1['ScopeEnum']['Singleton'])],CacheService);class Cache{constructor(_0x56ae55,_0x4589ef){var _0x47a054=a4_0x106e0c;this[_0x47a054(0x1e6)]=_0x4589ef,this[_0x47a054(0x1e8)]=_0x56ae55;}async[a4_0x106e0c(0x1d2)](_0x6377c7){var _0x2eb652=a4_0x106e0c;return await this[_0x2eb652(0x1e6)]['del'](this['prefix']+':'+_0x6377c7);}async[a4_0x106e0c(0x1de)](_0x535b0c,_0xd0feee,_0x2fd19e){var _0x486933=a4_0x106e0c,_0x2fe8ec,_0x4bebce;return((_0x4bebce=(_0x2fe8ec=this[_0x486933(0x1e6)])===null||_0x2fe8ec===void 0x0?void 0x0:_0x2fe8ec[_0x486933(0x1f0)])===null||_0x4bebce===void 0x0?void 0x0:_0x4bebce[_0x486933(0x1c8)])==_0x486933(0x1ba)?await this[_0x486933(0x1e6)][_0x486933(0x1de)](this['prefix']+':'+_0x535b0c,_0xd0feee,{'ttl':_0x2fd19e}):await this[_0x486933(0x1e6)][_0x486933(0x1de)](this['prefix']+':'+_0x535b0c,_0xd0feee,{'ttl':_0x2fd19e});}async[a4_0x106e0c(0x1f4)](_0x591648,_0xd80d2d,_0x1f74d0){return new Promise((_0x1625bf,_0x2bd37a)=>{var _0x369f35=a4_0x1b48;this[_0x369f35(0x1e6)][_0x369f35(0x1f4)](this[_0x369f35(0x1e8)]+':'+_0x591648,async(_0x8867b0,_0x50974e)=>{var _0x3a5898=_0x369f35;_0x8867b0?_0x2bd37a(_0x8867b0):((_0x50974e===undefined||_0x50974e===null)&&(typeof _0xd80d2d==_0x3a5898(0x1d1)?(_0x50974e=await _0xd80d2d()[_0x3a5898(0x1f1)](_0x4b2f44=>_0x2bd37a(_0x4b2f44)),typeof _0x50974e!=_0x3a5898(0x1d5)&&await this['set'](_0x591648,_0x50974e,_0x1f74d0)):_0x50974e=_0xd80d2d),_0x1625bf(_0x50974e));});});}async[a4_0x106e0c(0x1c3)](_0x3d9cc8,_0x168dde){var _0x3ff8d9=a4_0x106e0c;return await this[_0x3ff8d9(0x1d2)](_0x3d9cc8+'#'+_0x168dde);}async[a4_0x106e0c(0x1e0)](_0x3b20c2,_0x20194b,_0x4d77e5,_0x2bd63c){return await this['set'](_0x3b20c2+'#'+_0x20194b,_0x4d77e5,_0x2bd63c);}async['hget'](_0x375d59,_0x867f91,_0x5a669f,_0x5988bc){var _0x447e70=a4_0x106e0c;return await this[_0x447e70(0x1f4)](_0x375d59+'#'+_0x867f91,_0x5a669f,_0x5988bc);}[a4_0x106e0c(0x1ed)](_0x128fef){const _0x183731={'all':async()=>{var _0x1f995d=a4_0x1b48,_0x1c2059,_0x28e0dc,_0x23a75a,_0x1465f3,_0xbf41e2;return((_0x28e0dc=(_0x1c2059=this[_0x1f995d(0x1e6)])===null||_0x1c2059===void 0x0?void 0x0:_0x1c2059[_0x1f995d(0x1f0)])===null||_0x28e0dc===void 0x0?void 0x0:_0x28e0dc['name'])==_0x1f995d(0x1ba)?(await((_0xbf41e2=(_0x1465f3=(_0x23a75a=this===null||this===void 0x0?void 0x0:this[_0x1f995d(0x1e6)])===null||_0x23a75a===void 0x0?void 0x0:_0x23a75a[_0x1f995d(0x1f0)])===null||_0x1465f3===void 0x0?void 0x0:_0x1465f3[_0x1f995d(0x1b9)]())===null||_0xbf41e2===void 0x0?void 0x0:_0xbf41e2['lrange'](this['prefix']+':'+_0x128fef,0x0,-0x1))||[])[_0x1f995d(0x1f2)](_0x5dbac8=>json_decode(_0x5dbac8)):await this['get'](_0x128fef,[]);},'pop':async()=>{var _0x5aa8a9=a4_0x1b48,_0x39214f,_0x2b4fae,_0x18efc8,_0x55f9e6,_0x29eead;if(((_0x2b4fae=(_0x39214f=this[_0x5aa8a9(0x1e6)])===null||_0x39214f===void 0x0?void 0x0:_0x39214f[_0x5aa8a9(0x1f0)])===null||_0x2b4fae===void 0x0?void 0x0:_0x2b4fae['name'])=='redis')return json_decode(await((_0x29eead=(_0x55f9e6=(_0x18efc8=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x18efc8===void 0x0?void 0x0:_0x18efc8['store'])===null||_0x55f9e6===void 0x0?void 0x0:_0x55f9e6['getClient']())===null||_0x29eead===void 0x0?void 0x0:_0x29eead[_0x5aa8a9(0x1e4)](this[_0x5aa8a9(0x1e8)]+':'+_0x128fef)));else{let _0x412a87=await this[_0x5aa8a9(0x1f4)](_0x128fef,[]),_0x32eda4=_0x412a87[_0x5aa8a9(0x1ee)]();return await this['set'](_0x128fef,_0x412a87),_0x32eda4;}},'push':async(..._0x3e3306)=>{var _0x5686c8=a4_0x1b48,_0x28a8cc,_0x414771,_0x1765cf,_0x348d66,_0x1d1d62;const _0x2c61aa=_0x3e3306[_0x5686c8(0x1cd)](_0x368a56=>_0x368a56!==undefined&&_0x368a56!==null);if(((_0x414771=(_0x28a8cc=this[_0x5686c8(0x1e6)])===null||_0x28a8cc===void 0x0?void 0x0:_0x28a8cc['store'])===null||_0x414771===void 0x0?void 0x0:_0x414771['name'])==_0x5686c8(0x1ba))return await((_0x1d1d62=(_0x348d66=(_0x1765cf=this===null||this===void 0x0?void 0x0:this[_0x5686c8(0x1e6)])===null||_0x1765cf===void 0x0?void 0x0:_0x1765cf['store'])===null||_0x348d66===void 0x0?void 0x0:_0x348d66['getClient']())===null||_0x1d1d62===void 0x0?void 0x0:_0x1d1d62[_0x5686c8(0x1c6)](this[_0x5686c8(0x1e8)]+':'+_0x128fef,..._0x2c61aa[_0x5686c8(0x1f2)](_0x1a3423=>json_encode(_0x1a3423)))),_0x2c61aa;else{let _0x54979b=await this['get'](_0x128fef,[]);return _0x54979b[_0x5686c8(0x1dc)](..._0x2c61aa),await this['set'](_0x128fef,_0x54979b),_0x54979b;}}};return _0x183731;}}function a4_0x52f7(){var _0x3dc793=['stringify','15252dPnIzL','prototype','parse','list','shift','file','store','catch','map','__esModule','get','getClient','redis','design:type','1076967cRBKWg','CacheService','277944ufnEwB','default','length','cache-manager','1742375ViECLt','hdel','constructor','apply','rpush','search','name','Scope','7bpochh','config','644GPtpbu','filter','metadata','defineProperty','(((.+)+)+)+$','function','del','2739498SfkrKK','toString','undefined','Provide','caching','2118DwIWNJ','__metadata','__decorate','Config','push','916510gtXGxC','set','@midwayjs/core','hset','clients','Cache','reset','lpop','json_decode','cache','stores','prefix'];a4_0x52f7=function(){return _0x3dc793;};return a4_0x52f7();}exports['Cache']=Cache;function a4_0x1b48(_0x26d9fa,_0x5cb34b){var _0x44917d=a4_0x52f7();return a4_0x1b48=function(_0x35e34f,_0x44f05c){_0x35e34f=_0x35e34f-0x1b9;var _0x52f72d=_0x44917d[_0x35e34f];return _0x52f72d;},a4_0x1b48(_0x26d9fa,_0x5cb34b);}function json_encode(_0x917bc4){var _0x4b478b=a4_0x106e0c;try{return JSON[_0x4b478b(0x1e9)](_0x917bc4);}catch(_0x18ca13){return undefined;}}function json_decode(_0xd37840){var _0x1a8d11=a4_0x106e0c;try{return JSON[_0x1a8d11(0x1ec)](_0xd37840);}catch(_0x2aa21f){return undefined;}}
1
+ var a4_0x5c0f41=a4_0x415e;(function(_0x29830c,_0x5bfeee){var _0x49ef0c=a4_0x415e,_0x20eb8d=_0x29830c();while(!![]){try{var _0x42f237=-parseInt(_0x49ef0c(0x118))/0x1*(parseInt(_0x49ef0c(0x124))/0x2)+parseInt(_0x49ef0c(0x11c))/0x3+parseInt(_0x49ef0c(0x13b))/0x4+parseInt(_0x49ef0c(0x117))/0x5*(parseInt(_0x49ef0c(0x12c))/0x6)+parseInt(_0x49ef0c(0x119))/0x7*(-parseInt(_0x49ef0c(0x121))/0x8)+parseInt(_0x49ef0c(0x14a))/0x9+-parseInt(_0x49ef0c(0x13a))/0xa;if(_0x42f237===_0x5bfeee)break;else _0x20eb8d['push'](_0x20eb8d['shift']());}catch(_0x2ebce7){_0x20eb8d['push'](_0x20eb8d['shift']());}}}(a4_0x5070,0x5226f));var a4_0x6437db=(function(){var _0x54ccd7=!![];return function(_0x34cab0,_0x572999){var _0xa4ace9=_0x54ccd7?function(){var _0x3a8371=a4_0x415e;if(_0x572999){var _0xe4b4c5=_0x572999[_0x3a8371(0x149)](_0x34cab0,arguments);return _0x572999=null,_0xe4b4c5;}}:function(){};return _0x54ccd7=![],_0xa4ace9;};}()),a4_0x2535f2=a4_0x6437db(this,function(){var _0x494cb6=a4_0x415e;return a4_0x2535f2[_0x494cb6(0x11a)]()[_0x494cb6(0x14c)]('(((.+)+)+)+$')[_0x494cb6(0x11a)]()[_0x494cb6(0x12e)](a4_0x2535f2)['search'](_0x494cb6(0x123));});a4_0x2535f2();function a4_0x5070(){var _0x3312bd=['search','lpop','json_decode','filter','cache-manager','json_encode','get','__decorate','name','store','stores','730MjlWUe','3338aqRXeV','21wqlzxY','toString','cache','663177EhcwNa','set','CacheService','shift','object','629944vUnpnu','reset','(((.+)+)+)+$','4kOSRrx','redis','rpush','length','Scope','Provide','has','config','1842AOvFNC','defineProperty','constructor','Config','caching','Singleton','@midwayjs/core','list','design:type','map','del','default','Cache','__esModule','1127190nTMQBi','1165452cHGbuH','hset','getOwnPropertyDescriptor','prototype','parse','stringify','clients','push','function','metadata','ScopeEnum','lrange','hdel','file','apply','1213875FrFhwZ','prefix'];a4_0x5070=function(){return _0x3312bd;};return a4_0x5070();}function a4_0x415e(_0x4c59b6,_0x42ec91){var _0xd8bed3=a4_0x5070();return a4_0x415e=function(_0x2535f2,_0x6437db){_0x2535f2=_0x2535f2-0x117;var _0x50704c=_0xd8bed3[_0x2535f2];return _0x50704c;},a4_0x415e(_0x4c59b6,_0x42ec91);}'use strict';var __decorate=this&&this[a4_0x5c0f41(0x153)]||function(_0x534869,_0x4205f8,_0xc512c3,_0x472608){var _0x3d4db1=a4_0x5c0f41,_0x3fb96f=arguments['length'],_0x1969a0=_0x3fb96f<0x3?_0x4205f8:_0x472608===null?_0x472608=Object[_0x3d4db1(0x13d)](_0x4205f8,_0xc512c3):_0x472608,_0x12a681;if(typeof Reflect===_0x3d4db1(0x120)&&typeof Reflect['decorate']==='function')_0x1969a0=Reflect['decorate'](_0x534869,_0x4205f8,_0xc512c3,_0x472608);else{for(var _0x31eeb9=_0x534869[_0x3d4db1(0x127)]-0x1;_0x31eeb9>=0x0;_0x31eeb9--)if(_0x12a681=_0x534869[_0x31eeb9])_0x1969a0=(_0x3fb96f<0x3?_0x12a681(_0x1969a0):_0x3fb96f>0x3?_0x12a681(_0x4205f8,_0xc512c3,_0x1969a0):_0x12a681(_0x4205f8,_0xc512c3))||_0x1969a0;}return _0x3fb96f>0x3&&_0x1969a0&&Object['defineProperty'](_0x4205f8,_0xc512c3,_0x1969a0),_0x1969a0;},__metadata=this&&this['__metadata']||function(_0x20a6a7,_0x177493){var _0x565378=a4_0x5c0f41;if(typeof Reflect===_0x565378(0x120)&&typeof Reflect[_0x565378(0x144)]===_0x565378(0x143))return Reflect['metadata'](_0x20a6a7,_0x177493);};Object[a4_0x5c0f41(0x12d)](exports,a4_0x5c0f41(0x139),{'value':!![]}),exports['Cache']=exports[a4_0x5c0f41(0x11e)]=void 0x0,exports[a4_0x5c0f41(0x151)]=json_encode,exports[a4_0x5c0f41(0x14e)]=json_decode;const cacheManager=require(a4_0x5c0f41(0x150)),core_1=require(a4_0x5c0f41(0x132));let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}['use'](_0x327f76){var _0x1ceb57=a4_0x5c0f41,_0x467c5e,_0xdfec04;if(!this['cache']){const _0x2a1ae9=((_0x467c5e=this[_0x1ceb57(0x12b)][_0x1ceb57(0x156)])===null||_0x467c5e===void 0x0?void 0x0:_0x467c5e[(_0xdfec04=this[_0x1ceb57(0x12b)])===null||_0xdfec04===void 0x0?void 0x0:_0xdfec04[_0x1ceb57(0x137)]])||this['config']['stores'][_0x1ceb57(0x148)];this[_0x1ceb57(0x11b)]=cacheManager[_0x1ceb57(0x130)]({..._0x2a1ae9['options'],'store':_0x2a1ae9['store']});}return!this[_0x1ceb57(0x141)][_0x1ceb57(0x12a)](_0x327f76)&&this[_0x1ceb57(0x141)][_0x1ceb57(0x11d)](_0x327f76,new Cache(_0x327f76,this[_0x1ceb57(0x11b)])),this[_0x1ceb57(0x141)][_0x1ceb57(0x152)](_0x327f76);}async[a4_0x5c0f41(0x122)](){var _0x3e3290=a4_0x5c0f41;return await this[_0x3e3290(0x11b)][_0x3e3290(0x122)]();}};exports[a4_0x5c0f41(0x11e)]=CacheService,__decorate([(0x0,core_1[a4_0x5c0f41(0x12f)])(a4_0x5c0f41(0x11b)),__metadata(a4_0x5c0f41(0x134),Object)],CacheService[a4_0x5c0f41(0x13e)],a4_0x5c0f41(0x12b),void 0x0),exports[a4_0x5c0f41(0x11e)]=CacheService=__decorate([(0x0,core_1[a4_0x5c0f41(0x129)])(),(0x0,core_1[a4_0x5c0f41(0x128)])(core_1[a4_0x5c0f41(0x145)][a4_0x5c0f41(0x131)])],CacheService);class Cache{constructor(_0x16018b,_0x410bb1){var _0xb60290=a4_0x5c0f41;this[_0xb60290(0x11b)]=_0x410bb1,this['prefix']=_0x16018b;}async['del'](_0x12dbcf){var _0x49ca8f=a4_0x5c0f41;return await this[_0x49ca8f(0x11b)][_0x49ca8f(0x136)](this[_0x49ca8f(0x14b)]+':'+_0x12dbcf);}async['set'](_0x4a8a8c,_0x58a171,_0x453398){var _0x323862=a4_0x5c0f41,_0x426d79,_0x550c57;return((_0x550c57=(_0x426d79=this[_0x323862(0x11b)])===null||_0x426d79===void 0x0?void 0x0:_0x426d79[_0x323862(0x155)])===null||_0x550c57===void 0x0?void 0x0:_0x550c57[_0x323862(0x154)])==_0x323862(0x125)?await this[_0x323862(0x11b)][_0x323862(0x11d)](this[_0x323862(0x14b)]+':'+_0x4a8a8c,_0x58a171,{'ttl':_0x453398}):await this[_0x323862(0x11b)][_0x323862(0x11d)](this[_0x323862(0x14b)]+':'+_0x4a8a8c,_0x58a171,{'ttl':_0x453398});}async[a4_0x5c0f41(0x152)](_0x8256d8,_0x5b8f17,_0x557fbc){return new Promise((_0x4135f5,_0xd46d10)=>{var _0x94a80e=a4_0x415e;this[_0x94a80e(0x11b)][_0x94a80e(0x152)](this[_0x94a80e(0x14b)]+':'+_0x8256d8,async(_0x107d21,_0xb2810a)=>{var _0x401c16=_0x94a80e;_0x107d21?_0xd46d10(_0x107d21):((_0xb2810a===undefined||_0xb2810a===null)&&(typeof _0x5b8f17==_0x401c16(0x143)?(_0xb2810a=await _0x5b8f17()['catch'](_0x58b33f=>_0xd46d10(_0x58b33f)),typeof _0xb2810a!='undefined'&&await this['set'](_0x8256d8,_0xb2810a,_0x557fbc)):_0xb2810a=_0x5b8f17),_0x4135f5(_0xb2810a));});});}async[a4_0x5c0f41(0x147)](_0x3ef524,_0x1fc5cf){var _0x4002e2=a4_0x5c0f41;return await this[_0x4002e2(0x136)](_0x3ef524+'#'+_0x1fc5cf);}async[a4_0x5c0f41(0x13c)](_0x3b5000,_0x5ec907,_0x165fc7,_0x4387ce){var _0x50ccac=a4_0x5c0f41;return await this[_0x50ccac(0x11d)](_0x3b5000+'#'+_0x5ec907,_0x165fc7,_0x4387ce);}async['hget'](_0x40a758,_0x58fbd6,_0x43141e,_0xefffa0){var _0x1c30bf=a4_0x5c0f41;return await this[_0x1c30bf(0x152)](_0x40a758+'#'+_0x58fbd6,_0x43141e,_0xefffa0);}[a4_0x5c0f41(0x133)](_0x686390){const _0x104449={'all':async()=>{var _0x1bc6ee=a4_0x415e,_0x50272a,_0x54c571,_0x44a1d9,_0x287d1e,_0xaff2ef;return((_0x54c571=(_0x50272a=this[_0x1bc6ee(0x11b)])===null||_0x50272a===void 0x0?void 0x0:_0x50272a[_0x1bc6ee(0x155)])===null||_0x54c571===void 0x0?void 0x0:_0x54c571[_0x1bc6ee(0x154)])=='redis'?(await((_0xaff2ef=(_0x287d1e=(_0x44a1d9=this===null||this===void 0x0?void 0x0:this[_0x1bc6ee(0x11b)])===null||_0x44a1d9===void 0x0?void 0x0:_0x44a1d9[_0x1bc6ee(0x155)])===null||_0x287d1e===void 0x0?void 0x0:_0x287d1e['getClient']())===null||_0xaff2ef===void 0x0?void 0x0:_0xaff2ef[_0x1bc6ee(0x146)](this['prefix']+':'+_0x686390,0x0,-0x1))||[])[_0x1bc6ee(0x135)](_0x406c32=>json_decode(_0x406c32)):await this[_0x1bc6ee(0x152)](_0x686390,[]);},'pop':async()=>{var _0x227ba2=a4_0x415e,_0x5bc009,_0x1547ec,_0x52cf5d,_0x536f64,_0x1a9498;if(((_0x1547ec=(_0x5bc009=this[_0x227ba2(0x11b)])===null||_0x5bc009===void 0x0?void 0x0:_0x5bc009[_0x227ba2(0x155)])===null||_0x1547ec===void 0x0?void 0x0:_0x1547ec[_0x227ba2(0x154)])==_0x227ba2(0x125))return json_decode(await((_0x1a9498=(_0x536f64=(_0x52cf5d=this===null||this===void 0x0?void 0x0:this[_0x227ba2(0x11b)])===null||_0x52cf5d===void 0x0?void 0x0:_0x52cf5d[_0x227ba2(0x155)])===null||_0x536f64===void 0x0?void 0x0:_0x536f64['getClient']())===null||_0x1a9498===void 0x0?void 0x0:_0x1a9498[_0x227ba2(0x14d)](this[_0x227ba2(0x14b)]+':'+_0x686390)));else{let _0x31440f=await this[_0x227ba2(0x152)](_0x686390,[]),_0x3017f4=_0x31440f[_0x227ba2(0x11f)]();return await this[_0x227ba2(0x11d)](_0x686390,_0x31440f),_0x3017f4;}},'push':async(..._0x3dd7c1)=>{var _0x2bddb9=a4_0x415e,_0x6e8021,_0x109c06,_0x3188ce,_0x4dcf35,_0x214c9d;const _0xc2a42d=_0x3dd7c1[_0x2bddb9(0x14f)](_0x3f500f=>_0x3f500f!==undefined&&_0x3f500f!==null);if(((_0x109c06=(_0x6e8021=this[_0x2bddb9(0x11b)])===null||_0x6e8021===void 0x0?void 0x0:_0x6e8021[_0x2bddb9(0x155)])===null||_0x109c06===void 0x0?void 0x0:_0x109c06[_0x2bddb9(0x154)])==_0x2bddb9(0x125))return await((_0x214c9d=(_0x4dcf35=(_0x3188ce=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x3188ce===void 0x0?void 0x0:_0x3188ce[_0x2bddb9(0x155)])===null||_0x4dcf35===void 0x0?void 0x0:_0x4dcf35['getClient']())===null||_0x214c9d===void 0x0?void 0x0:_0x214c9d[_0x2bddb9(0x126)](this[_0x2bddb9(0x14b)]+':'+_0x686390,..._0xc2a42d[_0x2bddb9(0x135)](_0x3c46ad=>json_encode(_0x3c46ad)))),_0xc2a42d;else{let _0x43df38=await this['get'](_0x686390,[]);return _0x43df38[_0x2bddb9(0x142)](..._0xc2a42d),await this[_0x2bddb9(0x11d)](_0x686390,_0x43df38),_0x43df38;}}};return _0x104449;}}exports[a4_0x5c0f41(0x138)]=Cache;function json_encode(_0x439b94){var _0x11257c=a4_0x5c0f41;try{return JSON[_0x11257c(0x140)](_0x439b94);}catch(_0x315055){return undefined;}}function json_decode(_0x15d772){var _0x17c83b=a4_0x5c0f41;try{return JSON[_0x17c83b(0x13f)](_0x15d772);}catch(_0x4d7bc6){return undefined;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "3.4.83",
3
+ "version": "3.4.85",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -23,5 +23,5 @@
23
23
  "javascript-obfuscator": "^4.0.2",
24
24
  "typescript": "^5.5.4"
25
25
  },
26
- "gitHead": "cc719751e8cc837de31b52bbf3de8a3cbb4d3410"
26
+ "gitHead": "24a449656e4a53bcbc15ae578c0760df1030e730"
27
27
  }