@anncic-api/cache 3.4.88 → 3.7.0
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
|
|
1
|
+
const a0_0x1e7866=a0_0x4b45;(function(_0x11fb24,_0x58e163){const _0x5ccf2b=a0_0x4b45,_0x3e7ec9=_0x11fb24();while(!![]){try{const _0x368f1e=parseInt(_0x5ccf2b(0x163))/0x1+parseInt(_0x5ccf2b(0x15a))/0x2+-parseInt(_0x5ccf2b(0x154))/0x3+parseInt(_0x5ccf2b(0x153))/0x4*(-parseInt(_0x5ccf2b(0x159))/0x5)+parseInt(_0x5ccf2b(0x15b))/0x6+-parseInt(_0x5ccf2b(0x14d))/0x7+parseInt(_0x5ccf2b(0x160))/0x8*(-parseInt(_0x5ccf2b(0x155))/0x9);if(_0x368f1e===_0x58e163)break;else _0x3e7ec9['push'](_0x3e7ec9['shift']());}catch(_0x690720){_0x3e7ec9['push'](_0x3e7ec9['shift']());}}}(a0_0x15a0,0x98634));const a0_0x469760=(function(){let _0x8eccda=!![];return function(_0x2eec71,_0x41035c){const _0x150477=_0x8eccda?function(){const _0x576d3f=a0_0x4b45;if(_0x41035c){const _0x394066=_0x41035c[_0x576d3f(0x14e)](_0x2eec71,arguments);return _0x41035c=null,_0x394066;}}:function(){};return _0x8eccda=![],_0x150477;};}()),a0_0x1d4f3f=a0_0x469760(this,function(){const _0x131bb5=a0_0x4b45;return a0_0x1d4f3f[_0x131bb5(0x158)]()['search'](_0x131bb5(0x15e))[_0x131bb5(0x158)]()['constructor'](a0_0x1d4f3f)[_0x131bb5(0x161)](_0x131bb5(0x15e));});a0_0x1d4f3f();function a0_0x4b45(_0xe1774b,_0x1a3867){const _0x1709d7=a0_0x15a0();return a0_0x4b45=function(_0x1d4f3f,_0x469760){_0x1d4f3f=_0x1d4f3f-0x14d;let _0x15a042=_0x1709d7[_0x1d4f3f];return _0x15a042;},a0_0x4b45(_0xe1774b,_0x1a3867);}'use strict';function a0_0x15a0(){const _0x5a0ade=['132955aNDREE','1735024ZwPzoX','4555938DXjKUo','/runtime/.cache','appDir','(((.+)+)+)+$','name','1144dBSjZP','search','memory','894604SzlJCn','127.0.0.1','2565542xXTlKy','apply','default','env','file','cache-manager-fs-hash','140lPxIhZ','786048YdxpUq','21276DihKKx','cache-manager-ioredis','defineProperty','toString'];a0_0x15a0=function(){return _0x5a0ade;};return a0_0x15a0();}Object[a0_0x1e7866(0x157)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x1e7866(0x152)),redisStore=require(a0_0x1e7866(0x156));exports[a0_0x1e7866(0x14f)]=_0x1e7365=>{const _0x45bc1a=a0_0x1e7866;return{'cache':{'default':_0x45bc1a(0x151),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x1e7365[_0x45bc1a(0x15d)]+_0x45bc1a(0x15c)+((_0x1e7365===null||_0x1e7365===void 0x0?void 0x0:_0x1e7365[_0x45bc1a(0x150)])?'-'+_0x1e7365[_0x45bc1a(0x150)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x45bc1a(0x164),'password':'','keyPrefix':_0x1e7365[_0x45bc1a(0x15f)]+':'+((_0x1e7365===null||_0x1e7365===void 0x0?void 0x0:_0x1e7365[_0x45bc1a(0x150)])?_0x1e7365[_0x45bc1a(0x150)]+':':'')}},'memory':{'store':_0x45bc1a(0x162),'options':{'max':0x64}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x5a92b2=a1_0xaf4b;(function(_0x4e85b6,_0x16c28c){var _0x31c396=a1_0xaf4b,_0xdbc546=_0x4e85b6();while(!![]){try{var _0x3e805c=-parseInt(_0x31c396(0x1bb))/0x1*(-parseInt(_0x31c396(0x1af))/0x2)+-parseInt(_0x31c396(0x1c4))/0x3+parseInt(_0x31c396(0x1ad))/0x4+parseInt(_0x31c396(0x1b8))/0x5*(-parseInt(_0x31c396(0x1bd))/0x6)+parseInt(_0x31c396(0x1c0))/0x7+-parseInt(_0x31c396(0x1c3))/0x8*(parseInt(_0x31c396(0x1b2))/0x9)+-parseInt(_0x31c396(0x1bc))/0xa*(-parseInt(_0x31c396(0x1ae))/0xb);if(_0x3e805c===_0x16c28c)break;else _0xdbc546['push'](_0xdbc546['shift']());}catch(_0x217b5f){_0xdbc546['push'](_0xdbc546['shift']());}}}(a1_0x333b,0xf147f));var a1_0x56789e=(function(){var _0x881ca1=!![];return function(_0x165de0,_0x15a364){var _0x2a9ba7=_0x881ca1?function(){if(_0x15a364){var _0x3cbc58=_0x15a364['apply'](_0x165de0,arguments);return _0x15a364=null,_0x3cbc58;}}:function(){};return _0x881ca1=![],_0x2a9ba7;};}()),a1_0x215e02=a1_0x56789e(this,function(){var _0x268a4e=a1_0xaf4b;return a1_0x215e02[_0x268a4e(0x1ba)]()['search']('(((.+)+)+)+$')[_0x268a4e(0x1ba)]()[_0x268a4e(0x1b7)](a1_0x215e02)[_0x268a4e(0x1b9)](_0x268a4e(0x1b4));});function a1_0xaf4b(_0x37a82d,_0x359a4a){var _0x5b19e5=a1_0x333b();return a1_0xaf4b=function(_0x215e02,_0x56789e){_0x215e02=_0x215e02-0x1ad;var _0x333bd7=_0x5b19e5[_0x215e02];return _0x333bd7;},a1_0xaf4b(_0x37a82d,_0x359a4a);}function a1_0x333b(){var _0x33c78c=['34JhtvmR','CustomConfiguration','__esModule','1953QEQulq','./config/config.default','(((.+)+)+)+$','object','decorate','constructor','55DsIxnp','search','toString','31019aELpgx','773770RuQEMk','903558zZczgt','Configuration','defineProperty','2276043kAKgjE','length','anncic-api:cache','15688GQDSrM','4516875dHYHji','5299252fqmSSj','341DrKLKt'];a1_0x333b=function(){return _0x33c78c;};return a1_0x333b();}a1_0x215e02();'use strict';var __decorate=this&&this['__decorate']||function(_0x31a9f1,_0x4180f3,_0x15c26b,_0x41cd51){var _0x2c2264=a1_0xaf4b,_0x46ff4c=arguments[_0x2c2264(0x1c1)],_0x4bdb86=_0x46ff4c<0x3?_0x4180f3:_0x41cd51===null?_0x41cd51=Object['getOwnPropertyDescriptor'](_0x4180f3,_0x15c26b):_0x41cd51,_0x71fbe8;if(typeof Reflect===_0x2c2264(0x1b5)&&typeof Reflect[_0x2c2264(0x1b6)]==='function')_0x4bdb86=Reflect[_0x2c2264(0x1b6)](_0x31a9f1,_0x4180f3,_0x15c26b,_0x41cd51);else{for(var _0x59b859=_0x31a9f1[_0x2c2264(0x1c1)]-0x1;_0x59b859>=0x0;_0x59b859--)if(_0x71fbe8=_0x31a9f1[_0x59b859])_0x4bdb86=(_0x46ff4c<0x3?_0x71fbe8(_0x4bdb86):_0x46ff4c>0x3?_0x71fbe8(_0x4180f3,_0x15c26b,_0x4bdb86):_0x71fbe8(_0x4180f3,_0x15c26b))||_0x4bdb86;}return _0x46ff4c>0x3&&_0x4bdb86&&Object[_0x2c2264(0x1bf)](_0x4180f3,_0x15c26b,_0x4bdb86),_0x4bdb86;};Object['defineProperty'](exports,a1_0x5a92b2(0x1b1),{'value':!![]}),exports[a1_0x5a92b2(0x1b0)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x5a92b2(0x1b3));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x5a92b2(0x1b0)]=CustomConfiguration,exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a1_0x5a92b2(0x1be)])({'conflictCheck':![],'namespace':a1_0x5a92b2(0x1c2),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x4b8a37=a2_0x2db0;function a2_0x4909(){const _0x208ff7=['__esModule','set','2CgzCUR','619812HRMTVx','15ExpGAb','Method::Decorator','535764VhjvbD','(((.+)+)+)+$','get','defineProperty','Cache','162784OkTsxz','toString','CacheService','3507584CwIwzy','getAsync','parse','70992eODeWf','value','constructor','apply','REQUEST_OBJ_CTX_KEY','stringify','crypto-js','MD5','112083AZPZeV','../service/CacheService','20nkkkEt','3808399yfzHyj','use'];a2_0x4909=function(){return _0x208ff7;};return a2_0x4909();}(function(_0x5ed7aa,_0xd345b3){const _0x12eade=a2_0x2db0,_0xcee991=_0x5ed7aa();while(!![]){try{const _0x2a957b=parseInt(_0x12eade(0x9d))/0x1+-parseInt(_0x12eade(0x94))/0x2*(parseInt(_0x12eade(0x8d))/0x3)+-parseInt(_0x12eade(0x95))/0x4+parseInt(_0x12eade(0x96))/0x5*(parseInt(_0x12eade(0x98))/0x6)+parseInt(_0x12eade(0x90))/0x7+-parseInt(_0x12eade(0xa0))/0x8+-parseInt(_0x12eade(0x85))/0x9*(-parseInt(_0x12eade(0x8f))/0xa);if(_0x2a957b===_0xd345b3)break;else _0xcee991['push'](_0xcee991['shift']());}catch(_0x5a211e){_0xcee991['push'](_0xcee991['shift']());}}}(a2_0x4909,0x57d39));function a2_0x2db0(_0x52a5e1,_0x47ece3){const _0x372420=a2_0x4909();return a2_0x2db0=function(_0x1eb58d,_0x5b78ec){_0x1eb58d=_0x1eb58d-0x84;let _0x4909f7=_0x372420[_0x1eb58d];return _0x4909f7;},a2_0x2db0(_0x52a5e1,_0x47ece3);}const a2_0x5b78ec=(function(){let _0x38e441=!![];return function(_0x3ed42d,_0x2b8a92){const _0x18bbdc=_0x38e441?function(){const _0x58494d=a2_0x2db0;if(_0x2b8a92){const _0x3dd04d=_0x2b8a92[_0x58494d(0x88)](_0x3ed42d,arguments);return _0x2b8a92=null,_0x3dd04d;}}:function(){};return _0x38e441=![],_0x18bbdc;};}()),a2_0x1eb58d=a2_0x5b78ec(this,function(){const _0x5bf244=a2_0x2db0;return a2_0x1eb58d[_0x5bf244(0x9e)]()['search'](_0x5bf244(0x99))[_0x5bf244(0x9e)]()[_0x5bf244(0x87)](a2_0x1eb58d)['search'](_0x5bf244(0x99));});a2_0x1eb58d();'use strict';Object[a2_0x4b8a37(0x9b)](exports,a2_0x4b8a37(0x92),{'value':!![]}),exports[a2_0x4b8a37(0x9c)]=Cache;const crypto_js_1=require(a2_0x4b8a37(0x8b)),CacheService_1=require(a2_0x4b8a37(0x8e)),core_1=require('@midwayjs/core');function json_encode(_0x5e2f36){const _0x1c679d=a2_0x4b8a37;try{return JSON[_0x1c679d(0x8a)](_0x5e2f36);}catch(_0x2e619b){return undefined;}}function Cache(_0x5a852d,_0x4c52b2){return(_0x331952,_0x412be7,_0x135fa4)=>{const _0x46070a=a2_0x2db0,_0x44ff9a=_0x135fa4[_0x46070a(0x86)];return _0x135fa4['value']=async function(..._0x3c1bbf){const _0x2158fa=_0x46070a;_0x5a852d=(_0x5a852d?''+_0x5a852d:''+(_0x412be7||''))+'.'+(0x0,crypto_js_1[_0x2158fa(0x8c)])(json_encode(_0x3c1bbf))['toString']();let _0x263c90=await this[core_1[_0x2158fa(0x89)]]['app']['getApplicationContext']()[_0x2158fa(0xa1)](CacheService_1[_0x2158fa(0x9f)]),_0x40c646=await _0x263c90[_0x2158fa(0x91)](_0x2158fa(0x97))[_0x2158fa(0x9a)](_0x5a852d);if(_0x40c646)return JSON[_0x2158fa(0x84)](_0x40c646);else _0x40c646=await _0x44ff9a[_0x2158fa(0x88)](this,[..._0x3c1bbf]),await _0x263c90[_0x2158fa(0x91)](_0x2158fa(0x97))[_0x2158fa(0x93)](_0x5a852d,JSON[_0x2158fa(0x8a)](_0x40c646),_0x4c52b2);return _0x40c646;},_0x135fa4;};}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x95390=a3_0x5627;(function(_0x54e80f,_0x4cb8a2){var _0x5e8f1b=a3_0x5627,_0x852dee=_0x54e80f();while(!![]){try{var _0x44fd80=parseInt(_0x5e8f1b(0x183))/0x1+-parseInt(_0x5e8f1b(0x180))/0x2*(parseInt(_0x5e8f1b(0x18b))/0x3)+parseInt(_0x5e8f1b(0x185))/0x4+parseInt(_0x5e8f1b(0x17f))/0x5+parseInt(_0x5e8f1b(0x184))/0x6+parseInt(_0x5e8f1b(0x189))/0x7*(parseInt(_0x5e8f1b(0x182))/0x8)+-parseInt(_0x5e8f1b(0x186))/0x9;if(_0x44fd80===_0x4cb8a2)break;else _0x852dee['push'](_0x852dee['shift']());}catch(_0x259e92){_0x852dee['push'](_0x852dee['shift']());}}}(a3_0x5383,0xc0967));function a3_0x5627(_0x2b51f7,_0x16dbd6){var _0x5351af=a3_0x5383();return a3_0x5627=function(_0x133f61,_0x55055d){_0x133f61=_0x133f61-0x176;var _0x538369=_0x5351af[_0x133f61];return _0x538369;},a3_0x5627(_0x2b51f7,_0x16dbd6);}var a3_0x55055d=(function(){var _0x40de7c=!![];return function(_0x87a1e8,_0x2da623){var _0x3cb456=_0x40de7c?function(){var _0x1ad429=a3_0x5627;if(_0x2da623){var _0x91b1bb=_0x2da623[_0x1ad429(0x176)](_0x87a1e8,arguments);return _0x2da623=null,_0x91b1bb;}}:function(){};return _0x40de7c=![],_0x3cb456;};}()),a3_0x133f61=a3_0x55055d(this,function(){var _0x325f2a=a3_0x5627;return a3_0x133f61['toString']()['search'](_0x325f2a(0x17b))[_0x325f2a(0x181)]()[_0x325f2a(0x178)](a3_0x133f61)[_0x325f2a(0x18a)](_0x325f2a(0x17b));});a3_0x133f61();'use strict';Object[a3_0x95390(0x188)](exports,a3_0x95390(0x17d),{'value':!![]}),exports[a3_0x95390(0x17c)]=exports[a3_0x95390(0x17a)]=exports[a3_0x95390(0x187)]=void 0x0;function a3_0x5383(){var _0x4ffa6c=['search','228960BFnrbb','apply','./decorator/Cache','constructor','./service/CacheService','Cache','(((.+)+)+)+$','CacheService','__esModule','CustomConfiguration','2791545MbTLBb','26TlWEcU','toString','8EuUstz','595467eOAOjY','5522556QMeEZd','1086040DrkWnb','8550414EnJwBj','Configuration','defineProperty','2697331gDwTAJ'];a3_0x5383=function(){return _0x4ffa6c;};return a3_0x5383();}var configuration_1=require('./configuration');Object[a3_0x95390(0x188)](exports,a3_0x95390(0x187),{'enumerable':!![],'get':function(){var _0x3bf81b=a3_0x95390;return configuration_1[_0x3bf81b(0x17e)];}});var Cache_1=require(a3_0x95390(0x177));Object[a3_0x95390(0x188)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x1e8557=a3_0x95390;return Cache_1[_0x1e8557(0x17a)];}});var CacheService_1=require(a3_0x95390(0x179));Object['defineProperty'](exports,a3_0x95390(0x17c),{'enumerable':!![],'get':function(){var _0x6f6384=a3_0x95390;return CacheService_1[_0x6f6384(0x17c)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a4_0x4a77(_0x18a743,_0x5290e2){var _0x295d63=a4_0x8a67();return a4_0x4a77=function(_0x2c7b83,_0x4f1265){_0x2c7b83=_0x2c7b83-0x67;var _0x8a674b=_0x295d63[_0x2c7b83];return _0x8a674b;},a4_0x4a77(_0x18a743,_0x5290e2);}var a4_0x51b0e3=a4_0x4a77;(function(_0x530aea,_0x428f45){var _0x26fe30=a4_0x4a77,_0x4408a9=_0x530aea();while(!![]){try{var _0xe86088=parseInt(_0x26fe30(0x9d))/0x1+-parseInt(_0x26fe30(0x76))/0x2*(-parseInt(_0x26fe30(0xa4))/0x3)+-parseInt(_0x26fe30(0x72))/0x4*(parseInt(_0x26fe30(0x74))/0x5)+parseInt(_0x26fe30(0x97))/0x6+-parseInt(_0x26fe30(0x83))/0x7*(parseInt(_0x26fe30(0x78))/0x8)+-parseInt(_0x26fe30(0x6c))/0x9+-parseInt(_0x26fe30(0x8c))/0xa*(-parseInt(_0x26fe30(0x89))/0xb);if(_0xe86088===_0x428f45)break;else _0x4408a9['push'](_0x4408a9['shift']());}catch(_0x1d8cc8){_0x4408a9['push'](_0x4408a9['shift']());}}}(a4_0x8a67,0xb13f5));var a4_0x4f1265=(function(){var _0x2b078b=!![];return function(_0x4c4f53,_0x4d9d51){var _0x18cdf4=_0x2b078b?function(){var _0x273d9a=a4_0x4a77;if(_0x4d9d51){var _0x16d97c=_0x4d9d51[_0x273d9a(0x70)](_0x4c4f53,arguments);return _0x4d9d51=null,_0x16d97c;}}:function(){};return _0x2b078b=![],_0x18cdf4;};}()),a4_0x2c7b83=a4_0x4f1265(this,function(){var _0x476385=a4_0x4a77;return a4_0x2c7b83[_0x476385(0x6b)]()['search'](_0x476385(0xa3))[_0x476385(0x6b)]()['constructor'](a4_0x2c7b83)[_0x476385(0x85)]('(((.+)+)+)+$');});a4_0x2c7b83();function a4_0x8a67(){var _0x211b93=['catch','store','reset','ScopeEnum','del','7iCCkHR','options','search','stringify','getClient','decorate','1177JVFazI','Cache','stores','96510aHoHxt','json_decode','lrange','name','caching','Provide','parse','redis','Config','@midwayjs/core','CacheService','6344814AHzuXM','Scope','cache-manager','list','get','json_encode','1311290irkEUw','__esModule','length','file','lpop','prototype','(((.+)+)+)+$','3qHxxWE','prefix','object','has','undefined','defineProperty','toString','8908731ZyWmQy','filter','clients','getOwnPropertyDescriptor','apply','set','5692ymbcuM','config','4310uXcICH','cache','458438wPaAaK','function','5505160nAwVWz','hset','__metadata','map','metadata','hget'];a4_0x8a67=function(){return _0x211b93;};return a4_0x8a67();}'use strict';var __decorate=this&&this['__decorate']||function(_0xd4d65f,_0x3d4bae,_0x3477a0,_0xfd52d0){var _0x58b71e=a4_0x4a77,_0x1b9a71=arguments[_0x58b71e(0x9f)],_0x1320e5=_0x1b9a71<0x3?_0x3d4bae:_0xfd52d0===null?_0xfd52d0=Object[_0x58b71e(0x6f)](_0x3d4bae,_0x3477a0):_0xfd52d0,_0x1af61f;if(typeof Reflect===_0x58b71e(0x67)&&typeof Reflect[_0x58b71e(0x88)]==='function')_0x1320e5=Reflect[_0x58b71e(0x88)](_0xd4d65f,_0x3d4bae,_0x3477a0,_0xfd52d0);else{for(var _0x4450ae=_0xd4d65f[_0x58b71e(0x9f)]-0x1;_0x4450ae>=0x0;_0x4450ae--)if(_0x1af61f=_0xd4d65f[_0x4450ae])_0x1320e5=(_0x1b9a71<0x3?_0x1af61f(_0x1320e5):_0x1b9a71>0x3?_0x1af61f(_0x3d4bae,_0x3477a0,_0x1320e5):_0x1af61f(_0x3d4bae,_0x3477a0))||_0x1320e5;}return _0x1b9a71>0x3&&_0x1320e5&&Object[_0x58b71e(0x6a)](_0x3d4bae,_0x3477a0,_0x1320e5),_0x1320e5;},__metadata=this&&this[a4_0x51b0e3(0x7a)]||function(_0x326190,_0x3812c0){var _0x490640=a4_0x51b0e3;if(typeof Reflect==='object'&&typeof Reflect[_0x490640(0x7c)]===_0x490640(0x77))return Reflect[_0x490640(0x7c)](_0x326190,_0x3812c0);};Object['defineProperty'](exports,a4_0x51b0e3(0x9e),{'value':!![]}),exports[a4_0x51b0e3(0x8a)]=exports[a4_0x51b0e3(0x96)]=void 0x0,exports[a4_0x51b0e3(0x9c)]=json_encode,exports[a4_0x51b0e3(0x8d)]=json_decode;const cacheManager=require(a4_0x51b0e3(0x99)),core_1=require(a4_0x51b0e3(0x95));let CacheService=class CacheService{constructor(){var _0x31a041=a4_0x51b0e3;this[_0x31a041(0x75)]=undefined,this[_0x31a041(0x6e)]=new Map();}['use'](_0x5cb637){var _0x2d8752=a4_0x51b0e3,_0x275dbc,_0x1dc603;if(!this[_0x2d8752(0x75)]){const _0x108105=((_0x275dbc=this[_0x2d8752(0x73)]['stores'])===null||_0x275dbc===void 0x0?void 0x0:_0x275dbc[(_0x1dc603=this[_0x2d8752(0x73)])===null||_0x1dc603===void 0x0?void 0x0:_0x1dc603['default']])||this[_0x2d8752(0x73)][_0x2d8752(0x8b)][_0x2d8752(0xa0)];this[_0x2d8752(0x75)]=cacheManager[_0x2d8752(0x90)]({..._0x108105[_0x2d8752(0x84)],'store':_0x108105[_0x2d8752(0x7f)]});}return!this['clients'][_0x2d8752(0x68)](_0x5cb637)&&this[_0x2d8752(0x6e)][_0x2d8752(0x71)](_0x5cb637,new Cache(_0x5cb637,this[_0x2d8752(0x75)])),this['clients'][_0x2d8752(0x9b)](_0x5cb637);}async[a4_0x51b0e3(0x80)](){return await this['cache']['reset']();}};exports[a4_0x51b0e3(0x96)]=CacheService,__decorate([(0x0,core_1[a4_0x51b0e3(0x94)])(a4_0x51b0e3(0x75)),__metadata('design:type',Object)],CacheService[a4_0x51b0e3(0xa2)],a4_0x51b0e3(0x73),void 0x0),exports[a4_0x51b0e3(0x96)]=CacheService=__decorate([(0x0,core_1[a4_0x51b0e3(0x91)])(),(0x0,core_1[a4_0x51b0e3(0x98)])(core_1[a4_0x51b0e3(0x81)]['Singleton'])],CacheService);class Cache{constructor(_0x2f40e6,_0x57e479){var _0x182a5a=a4_0x51b0e3;this[_0x182a5a(0x75)]=_0x57e479,this[_0x182a5a(0xa5)]=_0x2f40e6;}async[a4_0x51b0e3(0x82)](_0x4a6cd5){var _0x5546d9=a4_0x51b0e3;return await this[_0x5546d9(0x75)][_0x5546d9(0x82)](this[_0x5546d9(0xa5)]+':'+_0x4a6cd5);}async[a4_0x51b0e3(0x71)](_0x763015,_0x6d5387,_0x40f1f3){var _0x451579=a4_0x51b0e3,_0x1c4cb,_0x2fafd6;return((_0x2fafd6=(_0x1c4cb=this[_0x451579(0x75)])===null||_0x1c4cb===void 0x0?void 0x0:_0x1c4cb[_0x451579(0x7f)])===null||_0x2fafd6===void 0x0?void 0x0:_0x2fafd6[_0x451579(0x8f)])==_0x451579(0x93)?await this[_0x451579(0x75)][_0x451579(0x71)](this[_0x451579(0xa5)]+':'+_0x763015,_0x6d5387,{'ttl':_0x40f1f3}):await this['cache'][_0x451579(0x71)](this[_0x451579(0xa5)]+':'+_0x763015,_0x6d5387,{'ttl':_0x40f1f3});}async['get'](_0x46ece9,_0x1eac6a,_0x52d6c1){return new Promise((_0x9853ed,_0x2caa4a)=>{var _0x36bdcd=a4_0x4a77;this[_0x36bdcd(0x75)]['get'](this[_0x36bdcd(0xa5)]+':'+_0x46ece9,async(_0x1fbc5b,_0x2cfacd)=>{var _0x32789e=_0x36bdcd;_0x1fbc5b?_0x2caa4a(_0x1fbc5b):((_0x2cfacd===undefined||_0x2cfacd===null)&&(typeof _0x1eac6a=='function'?(_0x2cfacd=await _0x1eac6a()[_0x32789e(0x7e)](_0x10ddd1=>_0x2caa4a(_0x10ddd1)),typeof _0x2cfacd!=_0x32789e(0x69)&&await this[_0x32789e(0x71)](_0x46ece9,_0x2cfacd,_0x52d6c1)):_0x2cfacd=_0x1eac6a),_0x9853ed(_0x2cfacd));});});}async['hdel'](_0x21d684,_0x52c607){var _0x3a101f=a4_0x51b0e3;return await this[_0x3a101f(0x82)](_0x21d684+'#'+_0x52c607);}async[a4_0x51b0e3(0x79)](_0x5b34fe,_0x2998eb,_0x307a1e,_0x470fbf){var _0x1eb5d3=a4_0x51b0e3;return await this[_0x1eb5d3(0x71)](_0x5b34fe+'#'+_0x2998eb,_0x307a1e,_0x470fbf);}async[a4_0x51b0e3(0x7d)](_0x5277ac,_0xf3611,_0x7e3a57,_0x13980a){var _0x30ebe2=a4_0x51b0e3;return await this[_0x30ebe2(0x9b)](_0x5277ac+'#'+_0xf3611,_0x7e3a57,_0x13980a);}[a4_0x51b0e3(0x9a)](_0x3f5512){const _0x38f39b={'all':async()=>{var _0x58e5e5=a4_0x4a77,_0x295891,_0x3b65b3,_0x12d276,_0x305fe0,_0x59761f;return((_0x3b65b3=(_0x295891=this['cache'])===null||_0x295891===void 0x0?void 0x0:_0x295891[_0x58e5e5(0x7f)])===null||_0x3b65b3===void 0x0?void 0x0:_0x3b65b3['name'])==_0x58e5e5(0x93)?(await((_0x59761f=(_0x305fe0=(_0x12d276=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x12d276===void 0x0?void 0x0:_0x12d276[_0x58e5e5(0x7f)])===null||_0x305fe0===void 0x0?void 0x0:_0x305fe0['getClient']())===null||_0x59761f===void 0x0?void 0x0:_0x59761f[_0x58e5e5(0x8e)](this[_0x58e5e5(0xa5)]+':'+_0x3f5512,0x0,-0x1))||[])['map'](_0x4e78e3=>json_decode(_0x4e78e3)):await this[_0x58e5e5(0x9b)](_0x3f5512,[]);},'pop':async()=>{var _0x29f297=a4_0x4a77,_0x1f20bb,_0x381f27,_0x5b6c68,_0x593199,_0x4bceac;if(((_0x381f27=(_0x1f20bb=this[_0x29f297(0x75)])===null||_0x1f20bb===void 0x0?void 0x0:_0x1f20bb['store'])===null||_0x381f27===void 0x0?void 0x0:_0x381f27[_0x29f297(0x8f)])==_0x29f297(0x93))return json_decode(await((_0x4bceac=(_0x593199=(_0x5b6c68=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x5b6c68===void 0x0?void 0x0:_0x5b6c68[_0x29f297(0x7f)])===null||_0x593199===void 0x0?void 0x0:_0x593199[_0x29f297(0x87)]())===null||_0x4bceac===void 0x0?void 0x0:_0x4bceac[_0x29f297(0xa1)](this['prefix']+':'+_0x3f5512)));else{let _0x43d1c4=await this[_0x29f297(0x9b)](_0x3f5512,[]),_0x27512d=_0x43d1c4['shift']();return await this[_0x29f297(0x71)](_0x3f5512,_0x43d1c4),_0x27512d;}},'push':async(..._0x1497b9)=>{var _0xe5cc58=a4_0x4a77,_0x5d183d,_0x28ab19,_0x38a58f,_0x36d51f,_0x2e86a9;const _0x2a1e4f=_0x1497b9[_0xe5cc58(0x6d)](_0x2e1a71=>_0x2e1a71!==undefined&&_0x2e1a71!==null);if(((_0x28ab19=(_0x5d183d=this[_0xe5cc58(0x75)])===null||_0x5d183d===void 0x0?void 0x0:_0x5d183d[_0xe5cc58(0x7f)])===null||_0x28ab19===void 0x0?void 0x0:_0x28ab19[_0xe5cc58(0x8f)])==_0xe5cc58(0x93))return await((_0x2e86a9=(_0x36d51f=(_0x38a58f=this===null||this===void 0x0?void 0x0:this[_0xe5cc58(0x75)])===null||_0x38a58f===void 0x0?void 0x0:_0x38a58f[_0xe5cc58(0x7f)])===null||_0x36d51f===void 0x0?void 0x0:_0x36d51f[_0xe5cc58(0x87)]())===null||_0x2e86a9===void 0x0?void 0x0:_0x2e86a9['rpush'](this['prefix']+':'+_0x3f5512,..._0x2a1e4f[_0xe5cc58(0x7b)](_0x2d5547=>json_encode(_0x2d5547)))),_0x2a1e4f;else{let _0x1d04f5=await this[_0xe5cc58(0x9b)](_0x3f5512,[]);return _0x1d04f5['push'](..._0x2a1e4f),await this[_0xe5cc58(0x71)](_0x3f5512,_0x1d04f5),_0x1d04f5;}}};return _0x38f39b;}}exports[a4_0x51b0e3(0x8a)]=Cache;function json_encode(_0xce54f6){var _0x53f29a=a4_0x51b0e3;try{return JSON[_0x53f29a(0x86)](_0xce54f6);}catch(_0x2eadf9){return undefined;}}function json_decode(_0x27e0c1){var _0x5a9cdc=a4_0x51b0e3;try{return JSON[_0x5a9cdc(0x92)](_0x27e0c1);}catch(_0x2fae56){return undefined;}}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"publishConfig": {
|
|
10
|
-
"access": "public"
|
|
10
|
+
"access": "public",
|
|
11
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
12
|
},
|
|
12
13
|
"scripts": {
|
|
13
14
|
"build2": "tsc",
|
|
@@ -23,5 +24,5 @@
|
|
|
23
24
|
"javascript-obfuscator": "^4.0.2",
|
|
24
25
|
"typescript": "^5.5.4"
|
|
25
26
|
},
|
|
26
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "725020d29dd02779df3b02bbc24e3347c44b9e9c"
|
|
27
28
|
}
|