@anncic-api/cache 3.4.63 → 3.4.65
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_0x531439=a0_0x5d48;function a0_0x5d48(_0x3417cb,_0xac28b2){const _0x4f6f61=a0_0x38bc();return a0_0x5d48=function(_0x5c5c9a,_0x4eb31c){_0x5c5c9a=_0x5c5c9a-0xf6;let _0x38bc3b=_0x4f6f61[_0x5c5c9a];return _0x38bc3b;},a0_0x5d48(_0x3417cb,_0xac28b2);}(function(_0x12bc83,_0x11d5a8){const _0x257d65=a0_0x5d48,_0x307bc4=_0x12bc83();while(!![]){try{const _0x4c1a78=parseInt(_0x257d65(0xf9))/0x1*(parseInt(_0x257d65(0x101))/0x2)+parseInt(_0x257d65(0x10d))/0x3+-parseInt(_0x257d65(0x10b))/0x4+parseInt(_0x257d65(0xfc))/0x5*(parseInt(_0x257d65(0x100))/0x6)+-parseInt(_0x257d65(0xff))/0x7*(-parseInt(_0x257d65(0xfd))/0x8)+parseInt(_0x257d65(0x10a))/0x9+-parseInt(_0x257d65(0x106))/0xa*(parseInt(_0x257d65(0xf7))/0xb);if(_0x4c1a78===_0x11d5a8)break;else _0x307bc4['push'](_0x307bc4['shift']());}catch(_0x35979d){_0x307bc4['push'](_0x307bc4['shift']());}}}(a0_0x38bc,0xdecc2));const a0_0x4eb31c=(function(){let _0xcc43b7=!![];return function(_0x13ce6f,_0x188782){const _0x818f83=_0xcc43b7?function(){const _0x5abf52=a0_0x5d48;if(_0x188782){const _0x2385c2=_0x188782[_0x5abf52(0x104)](_0x13ce6f,arguments);return _0x188782=null,_0x2385c2;}}:function(){};return _0xcc43b7=![],_0x818f83;};}()),a0_0x5c5c9a=a0_0x4eb31c(this,function(){const _0x595576=a0_0x5d48;return a0_0x5c5c9a[_0x595576(0x10e)]()[_0x595576(0x105)](_0x595576(0x108))[_0x595576(0x10e)]()['constructor'](a0_0x5c5c9a)['search']('(((.+)+)+)+$');});a0_0x5c5c9a();'use strict';Object[a0_0x531439(0xfa)](exports,a0_0x531439(0x10c),{'value':!![]});function a0_0x38bc(){const _0xcf6371=['(((.+)+)+)+$','default','4957290rENGCi','1798656uakKih','__esModule','3214347IslzrC','toString','file','12793297soVGcM','cache-manager-fs-hash','6681BUNExl','defineProperty','appDir','5834885FsPxwE','32pCNgSA','127.0.0.1','2077033cmbxKA','6DIjBRo','262qYWLNP','env','cache-manager-ioredis','apply','search','30ZBYSSq','name'];a0_0x38bc=function(){return _0xcf6371;};return a0_0x38bc();}const fsStore=require(a0_0x531439(0xf8)),redisStore=require(a0_0x531439(0x103));exports[a0_0x531439(0x109)]=_0x33e42f=>{const _0x3e73fd=a0_0x531439;return{'cache':{'default':_0x3e73fd(0xf6),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x33e42f[_0x3e73fd(0xfb)]+'/runtime/.cache'+((_0x33e42f===null||_0x33e42f===void 0x0?void 0x0:_0x33e42f[_0x3e73fd(0x102)])?'-'+_0x33e42f[_0x3e73fd(0x102)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x3e73fd(0xfe),'password':'','keyPrefix':_0x33e42f[_0x3e73fd(0x107)]+':'+((_0x33e42f===null||_0x33e42f===void 0x0?void 0x0:_0x33e42f[_0x3e73fd(0x102)])?_0x33e42f[_0x3e73fd(0x102)]+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x363b3e=a1_0x81a6;function a1_0x537b(){var _0x46e4da=['apply','decorate','defineProperty','1061960UCTaiP','anncic-api:cache','Configuration','1238061erhfvY','search','@midwayjs/core','(((.+)+)+)+$','function','140YNvFLj','307393VDVxPX','__esModule','10PnuRZR','length','3598962SSPxdp','./config/config.default','1314548RGNRcW','5972312QBqlnZ','9cHUmMs','toString','CustomConfiguration','__decorate','getOwnPropertyDescriptor','constructor','2122209qLzvUH','7nwAFuX'];a1_0x537b=function(){return _0x46e4da;};return a1_0x537b();}(function(_0x37bd8b,_0x5b7cca){var _0x31764c=a1_0x81a6,_0x12c521=_0x37bd8b();while(!![]){try{var _0xb5d826=-parseInt(_0x31764c(0x1a8))/0x1*(parseInt(_0x31764c(0x1aa))/0x2)+-parseInt(_0x31764c(0x1b6))/0x3+parseInt(_0x31764c(0x1ae))/0x4+-parseInt(_0x31764c(0x1bb))/0x5+parseInt(_0x31764c(0x1ac))/0x6*(parseInt(_0x31764c(0x1b7))/0x7)+parseInt(_0x31764c(0x1af))/0x8*(parseInt(_0x31764c(0x1b0))/0x9)+parseInt(_0x31764c(0x1a7))/0xa*(parseInt(_0x31764c(0x1a2))/0xb);if(_0xb5d826===_0x5b7cca)break;else _0x12c521['push'](_0x12c521['shift']());}catch(_0x4d6d8f){_0x12c521['push'](_0x12c521['shift']());}}}(a1_0x537b,0xc1d65));function a1_0x81a6(_0x296570,_0x24e0e0){var _0x1005c8=a1_0x537b();return a1_0x81a6=function(_0x50bc7a,_0x1d5c48){_0x50bc7a=_0x50bc7a-0x1a1;var _0x537b16=_0x1005c8[_0x50bc7a];return _0x537b16;},a1_0x81a6(_0x296570,_0x24e0e0);}var a1_0x1d5c48=(function(){var _0x375cf2=!![];return function(_0x31a40d,_0x107392){var _0xe205a7=_0x375cf2?function(){var _0x5a8b20=a1_0x81a6;if(_0x107392){var _0x1303b5=_0x107392[_0x5a8b20(0x1b8)](_0x31a40d,arguments);return _0x107392=null,_0x1303b5;}}:function(){};return _0x375cf2=![],_0xe205a7;};}()),a1_0x50bc7a=a1_0x1d5c48(this,function(){var _0xcdfcd7=a1_0x81a6;return a1_0x50bc7a['toString']()[_0xcdfcd7(0x1a3)](_0xcdfcd7(0x1a5))[_0xcdfcd7(0x1b1)]()[_0xcdfcd7(0x1b5)](a1_0x50bc7a)[_0xcdfcd7(0x1a3)](_0xcdfcd7(0x1a5));});a1_0x50bc7a();'use strict';var __decorate=this&&this[a1_0x363b3e(0x1b3)]||function(_0x4def62,_0x55e497,_0x92c460,_0x2d28df){var _0x46d747=a1_0x363b3e,_0x17bdac=arguments[_0x46d747(0x1ab)],_0x27d4b5=_0x17bdac<0x3?_0x55e497:_0x2d28df===null?_0x2d28df=Object[_0x46d747(0x1b4)](_0x55e497,_0x92c460):_0x2d28df,_0x1ad242;if(typeof Reflect==='object'&&typeof Reflect[_0x46d747(0x1b9)]===_0x46d747(0x1a6))_0x27d4b5=Reflect[_0x46d747(0x1b9)](_0x4def62,_0x55e497,_0x92c460,_0x2d28df);else{for(var _0x4cc91a=_0x4def62[_0x46d747(0x1ab)]-0x1;_0x4cc91a>=0x0;_0x4cc91a--)if(_0x1ad242=_0x4def62[_0x4cc91a])_0x27d4b5=(_0x17bdac<0x3?_0x1ad242(_0x27d4b5):_0x17bdac>0x3?_0x1ad242(_0x55e497,_0x92c460,_0x27d4b5):_0x1ad242(_0x55e497,_0x92c460))||_0x27d4b5;}return _0x17bdac>0x3&&_0x27d4b5&&Object[_0x46d747(0x1ba)](_0x55e497,_0x92c460,_0x27d4b5),_0x27d4b5;};Object[a1_0x363b3e(0x1ba)](exports,a1_0x363b3e(0x1a9),{'value':!![]}),exports[a1_0x363b3e(0x1b2)]=void 0x0;const core_1=require(a1_0x363b3e(0x1a4)),ConfigDefault=require(a1_0x363b3e(0x1ad));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x363b3e(0x1b2)]=CustomConfiguration,exports[a1_0x363b3e(0x1b2)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x363b3e(0x1a1)])({'conflictCheck':![],'namespace':a1_0x363b3e(0x1bc),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x1606c1=a2_0x2ae8;(function(_0x40d91a,_0x424bb8){const _0x26a78c=a2_0x2ae8,_0xc3ae5c=_0x40d91a();while(!![]){try{const _0x1f2f3b=parseInt(_0x26a78c(0x16a))/0x1*(parseInt(_0x26a78c(0x16b))/0x2)+parseInt(_0x26a78c(0x15a))/0x3*(parseInt(_0x26a78c(0x15b))/0x4)+-parseInt(_0x26a78c(0x16d))/0x5+-parseInt(_0x26a78c(0x161))/0x6+-parseInt(_0x26a78c(0x15c))/0x7*(-parseInt(_0x26a78c(0x15e))/0x8)+-parseInt(_0x26a78c(0x155))/0x9+parseInt(_0x26a78c(0x158))/0xa;if(_0x1f2f3b===_0x424bb8)break;else _0xc3ae5c['push'](_0xc3ae5c['shift']());}catch(_0x5bee76){_0xc3ae5c['push'](_0xc3ae5c['shift']());}}}(a2_0x2e14,0xf0ad6));const a2_0x57ca91=(function(){let _0x23a712=!![];return function(_0x559589,_0x9b28a7){const _0x27e6a1=_0x23a712?function(){const _0x58add1=a2_0x2ae8;if(_0x9b28a7){const _0x2e6f6f=_0x9b28a7[_0x58add1(0x162)](_0x559589,arguments);return _0x9b28a7=null,_0x2e6f6f;}}:function(){};return _0x23a712=![],_0x27e6a1;};}()),a2_0x846a08=a2_0x57ca91(this,function(){const _0x5f552f=a2_0x2ae8;return a2_0x846a08[_0x5f552f(0x167)]()[_0x5f552f(0x164)](_0x5f552f(0x15d))[_0x5f552f(0x167)]()[_0x5f552f(0x16e)](a2_0x846a08)['search']('(((.+)+)+)+$');});a2_0x846a08();'use strict';function a2_0x2e14(){const _0x464334=['CacheService','8572020DNSJKv','apply','use','search','value','__esModule','toString','app','@midwayjs/core','5702bMDOOi','418EjypCw','Method::Decorator','4949590URbKoN','constructor','getApplicationContext','Cache','crypto-js','13653396UoQSrh','set','parse','31208100uqLMpq','REQUEST_OBJ_CTX_KEY','2784pVftjH','1096wjlbmK','7MVfbpc','(((.+)+)+)+$','2837168fChNgg','stringify'];a2_0x2e14=function(){return _0x464334;};return a2_0x2e14();}function a2_0x2ae8(_0x3742e9,_0xe5ac21){const _0x5441cc=a2_0x2e14();return a2_0x2ae8=function(_0x846a08,_0x57ca91){_0x846a08=_0x846a08-0x154;let _0x2e14a7=_0x5441cc[_0x846a08];return _0x2e14a7;},a2_0x2ae8(_0x3742e9,_0xe5ac21);}Object['defineProperty'](exports,a2_0x1606c1(0x166),{'value':!![]}),exports[a2_0x1606c1(0x170)]=Cache;const crypto_js_1=require(a2_0x1606c1(0x154)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x1606c1(0x169));function json_encode(_0x55d7ac){const _0x206c8a=a2_0x1606c1;try{return JSON[_0x206c8a(0x15f)](_0x55d7ac);}catch(_0xd7c8fd){return undefined;}}function Cache(_0x550c5d,_0x44493b){return(_0x401652,_0x1df6ac,_0xe71196)=>{const _0x37eade=a2_0x2ae8,_0x1dc588=_0xe71196[_0x37eade(0x165)];return _0xe71196[_0x37eade(0x165)]=async function(..._0x3bcb71){const _0x32098e=_0x37eade;_0x550c5d=(_0x550c5d?''+_0x550c5d:''+(_0x1df6ac||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x3bcb71))[_0x32098e(0x167)]();let _0x25ec1c=await this[core_1[_0x32098e(0x159)]][_0x32098e(0x168)][_0x32098e(0x16f)]()['getAsync'](CacheService_1[_0x32098e(0x160)]),_0x3f9063=await _0x25ec1c[_0x32098e(0x163)]('Method::Decorator')['get'](_0x550c5d);if(_0x3f9063)return JSON[_0x32098e(0x157)](_0x3f9063);else _0x3f9063=await _0x1dc588[_0x32098e(0x162)](this,[..._0x3bcb71]),await _0x25ec1c[_0x32098e(0x163)](_0x32098e(0x16c))[_0x32098e(0x156)](_0x550c5d,JSON[_0x32098e(0x15f)](_0x3f9063),_0x44493b);return _0x3f9063;},_0xe71196;};}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x33507a=a3_0x3ac6;(function(_0x11e235,_0x24546a){var _0x3beba8=a3_0x3ac6,_0x3ac25a=_0x11e235();while(!![]){try{var _0x5dd6d3=-parseInt(_0x3beba8(0x1c9))/0x1+-parseInt(_0x3beba8(0x1d3))/0x2*(parseInt(_0x3beba8(0x1c8))/0x3)+-parseInt(_0x3beba8(0x1cb))/0x4*(parseInt(_0x3beba8(0x1cc))/0x5)+parseInt(_0x3beba8(0x1d0))/0x6+parseInt(_0x3beba8(0x1d1))/0x7+-parseInt(_0x3beba8(0x1da))/0x8*(-parseInt(_0x3beba8(0x1c7))/0x9)+-parseInt(_0x3beba8(0x1db))/0xa;if(_0x5dd6d3===_0x24546a)break;else _0x3ac25a['push'](_0x3ac25a['shift']());}catch(_0x20f3b0){_0x3ac25a['push'](_0x3ac25a['shift']());}}}(a3_0x45c6,0xa8df0));var a3_0xd553c3=(function(){var _0x36ec01=!![];return function(_0x17b13f,_0x161531){var _0xeacb43=_0x36ec01?function(){if(_0x161531){var _0x47916c=_0x161531['apply'](_0x17b13f,arguments);return _0x161531=null,_0x47916c;}}:function(){};return _0x36ec01=![],_0xeacb43;};}()),a3_0x386af2=a3_0xd553c3(this,function(){var _0x16492c=a3_0x3ac6;return a3_0x386af2[_0x16492c(0x1d2)]()[_0x16492c(0x1d6)]('(((.+)+)+)+$')[_0x16492c(0x1d2)]()[_0x16492c(0x1cf)](a3_0x386af2)['search']('(((.+)+)+)+$');});function a3_0x45c6(){var _0xc497c6=['3417723NVOjpE','299277avqQjS','474746YIokDt','CacheService','932xisngB','24545KswHny','Cache','./service/CacheService','constructor','7344438Synfvl','7015519NRNrcG','toString','6LFNDWb','__esModule','CustomConfiguration','search','./decorator/Cache','./configuration','defineProperty','24Mskqwj','7560150RjicSl','Configuration'];a3_0x45c6=function(){return _0xc497c6;};return a3_0x45c6();}a3_0x386af2();'use strict';Object[a3_0x33507a(0x1d9)](exports,a3_0x33507a(0x1d4),{'value':!![]}),exports[a3_0x33507a(0x1ca)]=exports['Cache']=exports[a3_0x33507a(0x1dc)]=void 0x0;var configuration_1=require(a3_0x33507a(0x1d8));Object['defineProperty'](exports,a3_0x33507a(0x1dc),{'enumerable':!![],'get':function(){var _0x892bca=a3_0x33507a;return configuration_1[_0x892bca(0x1d5)];}});function a3_0x3ac6(_0x34f5a4,_0x3f657c){var _0x216d6a=a3_0x45c6();return a3_0x3ac6=function(_0x386af2,_0xd553c3){_0x386af2=_0x386af2-0x1c7;var _0x45c61d=_0x216d6a[_0x386af2];return _0x45c61d;},a3_0x3ac6(_0x34f5a4,_0x3f657c);}var Cache_1=require(a3_0x33507a(0x1d7));Object[a3_0x33507a(0x1d9)](exports,a3_0x33507a(0x1cd),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x33507a(0x1ce));Object[a3_0x33507a(0x1d9)](exports,a3_0x33507a(0x1ca),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x4d7831=a4_0x42e2;(function(_0x353ed5,_0x5b4393){var _0x52de14=a4_0x42e2,_0x583b8c=_0x353ed5();while(!![]){try{var _0x2e7404=-parseInt(_0x52de14(0xa5))/0x1*(-parseInt(_0x52de14(0x9e))/0x2)+-parseInt(_0x52de14(0x92))/0x3+parseInt(_0x52de14(0xab))/0x4*(-parseInt(_0x52de14(0x9d))/0x5)+-parseInt(_0x52de14(0x9b))/0x6*(-parseInt(_0x52de14(0xaa))/0x7)+parseInt(_0x52de14(0x93))/0x8*(parseInt(_0x52de14(0xb1))/0x9)+parseInt(_0x52de14(0x9f))/0xa+parseInt(_0x52de14(0xb3))/0xb*(-parseInt(_0x52de14(0xac))/0xc);if(_0x2e7404===_0x5b4393)break;else _0x583b8c['push'](_0x583b8c['shift']());}catch(_0x1edc63){_0x583b8c['push'](_0x583b8c['shift']());}}}(a4_0xa319,0xe9078));var a4_0x1c2a0c=(function(){var _0x3be61f=!![];return function(_0x1fc8f4,_0x4c235d){var _0x2d8022=_0x3be61f?function(){if(_0x4c235d){var _0x193979=_0x4c235d['apply'](_0x1fc8f4,arguments);return _0x4c235d=null,_0x193979;}}:function(){};return _0x3be61f=![],_0x2d8022;};}()),a4_0x2db3d9=a4_0x1c2a0c(this,function(){var _0x2a196a=a4_0x42e2;return a4_0x2db3d9[_0x2a196a(0x8e)]()['search'](_0x2a196a(0xa8))[_0x2a196a(0x8e)]()[_0x2a196a(0xa7)](a4_0x2db3d9)[_0x2a196a(0xb0)](_0x2a196a(0xa8));});function a4_0x42e2(_0x2c94e8,_0x3795bf){var _0x30abda=a4_0xa319();return a4_0x42e2=function(_0x2db3d9,_0x1c2a0c){_0x2db3d9=_0x2db3d9-0x7d;var _0xa3194a=_0x30abda[_0x2db3d9];return _0xa3194a;},a4_0x42e2(_0x2c94e8,_0x3795bf);}function a4_0xa319(){var _0x2970fa=['list','redis','function','store','default','toString','lpop','caching','undefined','3059631fHggJg','2104BTBJrS','Singleton','config','ScopeEnum','has','cache-manager','hdel','__esModule','3198MKThOZ','options','3745sZgAdZ','10zwiBOL','15556590YMovOD','getClient','stores','decorate','set','length','326015SgBUHp','Cache','constructor','(((.+)+)+)+$','name','5026faYwVy','5868wWgIHF','12JyWXff','defineProperty','reset','metadata','search','30294woySZU','prototype','15185918wkSROk','clients','get','file','CacheService','use','Scope','json_decode','hget','cache','Config','del','push','design:type','@midwayjs/core','prefix','map','object','__decorate'];a4_0xa319=function(){return _0x2970fa;};return a4_0xa319();}a4_0x2db3d9();'use strict';var __decorate=this&&this[a4_0x4d7831(0x88)]||function(_0x1e4f56,_0xde2ac0,_0xcdb49f,_0x4cd762){var _0x1ecd93=a4_0x4d7831,_0x585cf4=arguments[_0x1ecd93(0xa4)],_0x280e3f=_0x585cf4<0x3?_0xde2ac0:_0x4cd762===null?_0x4cd762=Object['getOwnPropertyDescriptor'](_0xde2ac0,_0xcdb49f):_0x4cd762,_0x39c79d;if(typeof Reflect===_0x1ecd93(0x87)&&typeof Reflect[_0x1ecd93(0xa2)]===_0x1ecd93(0x8b))_0x280e3f=Reflect[_0x1ecd93(0xa2)](_0x1e4f56,_0xde2ac0,_0xcdb49f,_0x4cd762);else{for(var _0x4226ee=_0x1e4f56[_0x1ecd93(0xa4)]-0x1;_0x4226ee>=0x0;_0x4226ee--)if(_0x39c79d=_0x1e4f56[_0x4226ee])_0x280e3f=(_0x585cf4<0x3?_0x39c79d(_0x280e3f):_0x585cf4>0x3?_0x39c79d(_0xde2ac0,_0xcdb49f,_0x280e3f):_0x39c79d(_0xde2ac0,_0xcdb49f))||_0x280e3f;}return _0x585cf4>0x3&&_0x280e3f&&Object['defineProperty'](_0xde2ac0,_0xcdb49f,_0x280e3f),_0x280e3f;},__metadata=this&&this['__metadata']||function(_0x11aeb0,_0x3428c7){var _0x7e5f03=a4_0x4d7831;if(typeof Reflect===_0x7e5f03(0x87)&&typeof Reflect[_0x7e5f03(0xaf)]==='function')return Reflect[_0x7e5f03(0xaf)](_0x11aeb0,_0x3428c7);};Object[a4_0x4d7831(0xad)](exports,a4_0x4d7831(0x9a),{'value':!![]}),exports['Cache']=exports[a4_0x4d7831(0xb7)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x4d7831(0x7d)]=json_decode;const cacheManager=require(a4_0x4d7831(0x98)),core_1=require(a4_0x4d7831(0x84));let CacheService=class CacheService{constructor(){var _0xf2b932=a4_0x4d7831;this[_0xf2b932(0x7f)]=undefined,this[_0xf2b932(0xb4)]=new Map();}[a4_0x4d7831(0xb8)](_0x2e2311){var _0xe09d2d=a4_0x4d7831,_0x49734e,_0x22b3d4;if(!this[_0xe09d2d(0x7f)]){const _0xbca7ab=((_0x49734e=this[_0xe09d2d(0x95)][_0xe09d2d(0xa1)])===null||_0x49734e===void 0x0?void 0x0:_0x49734e[(_0x22b3d4=this['config'])===null||_0x22b3d4===void 0x0?void 0x0:_0x22b3d4[_0xe09d2d(0x8d)]])||this['config'][_0xe09d2d(0xa1)][_0xe09d2d(0xb6)];this[_0xe09d2d(0x7f)]=cacheManager[_0xe09d2d(0x90)]({..._0xbca7ab[_0xe09d2d(0x9c)],'store':_0xbca7ab[_0xe09d2d(0x8c)]});}return!this[_0xe09d2d(0xb4)][_0xe09d2d(0x97)](_0x2e2311)&&this[_0xe09d2d(0xb4)][_0xe09d2d(0xa3)](_0x2e2311,new Cache(_0x2e2311,this[_0xe09d2d(0x7f)])),this['clients']['get'](_0x2e2311);}async[a4_0x4d7831(0xae)](){var _0x6ead0=a4_0x4d7831;return await this[_0x6ead0(0x7f)][_0x6ead0(0xae)]();}};exports[a4_0x4d7831(0xb7)]=CacheService,__decorate([(0x0,core_1[a4_0x4d7831(0x80)])(a4_0x4d7831(0x7f)),__metadata(a4_0x4d7831(0x83),Object)],CacheService[a4_0x4d7831(0xb2)],a4_0x4d7831(0x95),void 0x0),exports['CacheService']=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x4d7831(0xb9)])(core_1[a4_0x4d7831(0x96)][a4_0x4d7831(0x94)])],CacheService);class Cache{constructor(_0x475429,_0x3f099c){var _0x2e6577=a4_0x4d7831;this[_0x2e6577(0x7f)]=_0x3f099c,this[_0x2e6577(0x85)]=_0x475429;}async[a4_0x4d7831(0x81)](_0x78ea8e){var _0x50418e=a4_0x4d7831;return await this['cache'][_0x50418e(0x81)](this['prefix']+':'+_0x78ea8e);}async[a4_0x4d7831(0xa3)](_0x236387,_0x49b9ee,_0x350b5a){var _0x1b6fc3=a4_0x4d7831,_0x146612,_0x177662;return((_0x177662=(_0x146612=this[_0x1b6fc3(0x7f)])===null||_0x146612===void 0x0?void 0x0:_0x146612[_0x1b6fc3(0x8c)])===null||_0x177662===void 0x0?void 0x0:_0x177662[_0x1b6fc3(0xa9)])==_0x1b6fc3(0x8a)?await this['cache']['set'](this[_0x1b6fc3(0x85)]+':'+_0x236387,_0x49b9ee,{'ttl':_0x350b5a}):await this[_0x1b6fc3(0x7f)][_0x1b6fc3(0xa3)](this[_0x1b6fc3(0x85)]+':'+_0x236387,_0x49b9ee,{'ttl':_0x350b5a});}async[a4_0x4d7831(0xb5)](_0x2a5658,_0x4deacc,_0xf34610){return new Promise((_0x518d20,_0x4c1ea3)=>{var _0x3a0fe9=a4_0x42e2;this[_0x3a0fe9(0x7f)]['get'](this[_0x3a0fe9(0x85)]+':'+_0x2a5658,async(_0x1df62f,_0x212491)=>{var _0x1c737f=_0x3a0fe9;_0x1df62f?_0x4c1ea3(_0x1df62f):((_0x212491===undefined||_0x212491===null)&&(typeof _0x4deacc==_0x1c737f(0x8b)?(_0x212491=await _0x4deacc()['catch'](_0x3a4aa4=>_0x4c1ea3(_0x3a4aa4)),typeof _0x212491!=_0x1c737f(0x91)&&await this[_0x1c737f(0xa3)](_0x2a5658,_0x212491,_0xf34610)):_0x212491=_0x4deacc),_0x518d20(_0x212491));});});}async[a4_0x4d7831(0x99)](_0xef220e,_0x4f227c){return await this['del'](_0xef220e+'#'+_0x4f227c);}async['hset'](_0x3f101a,_0x13ad7f,_0x7d5a18,_0xa7f891){var _0x31b8ca=a4_0x4d7831;return await this[_0x31b8ca(0xa3)](_0x3f101a+'#'+_0x13ad7f,_0x7d5a18,_0xa7f891);}async[a4_0x4d7831(0x7e)](_0x1f15d5,_0xf0383,_0x5c2d14,_0x3a196a){var _0x3d863b=a4_0x4d7831;return await this[_0x3d863b(0xb5)](_0x1f15d5+'#'+_0xf0383,_0x5c2d14,_0x3a196a);}[a4_0x4d7831(0x89)](_0x4211dc){const _0x378697={'all':async()=>{var _0x43892f=a4_0x42e2,_0x28cb16,_0x774871,_0x44ebaf,_0x2db542,_0x6bdf98;return((_0x774871=(_0x28cb16=this[_0x43892f(0x7f)])===null||_0x28cb16===void 0x0?void 0x0:_0x28cb16[_0x43892f(0x8c)])===null||_0x774871===void 0x0?void 0x0:_0x774871[_0x43892f(0xa9)])==_0x43892f(0x8a)?(await((_0x6bdf98=(_0x2db542=(_0x44ebaf=this===null||this===void 0x0?void 0x0:this[_0x43892f(0x7f)])===null||_0x44ebaf===void 0x0?void 0x0:_0x44ebaf[_0x43892f(0x8c)])===null||_0x2db542===void 0x0?void 0x0:_0x2db542['getClient']())===null||_0x6bdf98===void 0x0?void 0x0:_0x6bdf98['lrange'](this['prefix']+':'+_0x4211dc,0x0,-0x1))||[])['map'](_0x28e50e=>json_decode(_0x28e50e)):await this['get'](_0x4211dc,[]);},'pop':async()=>{var _0xe48ce7=a4_0x42e2,_0x4af1c8,_0x5e1d8b,_0x405254,_0x2c5ff5,_0x3a0a26;if(((_0x5e1d8b=(_0x4af1c8=this['cache'])===null||_0x4af1c8===void 0x0?void 0x0:_0x4af1c8[_0xe48ce7(0x8c)])===null||_0x5e1d8b===void 0x0?void 0x0:_0x5e1d8b['name'])==_0xe48ce7(0x8a))return json_decode(await((_0x3a0a26=(_0x2c5ff5=(_0x405254=this===null||this===void 0x0?void 0x0:this[_0xe48ce7(0x7f)])===null||_0x405254===void 0x0?void 0x0:_0x405254[_0xe48ce7(0x8c)])===null||_0x2c5ff5===void 0x0?void 0x0:_0x2c5ff5[_0xe48ce7(0xa0)]())===null||_0x3a0a26===void 0x0?void 0x0:_0x3a0a26[_0xe48ce7(0x8f)](this[_0xe48ce7(0x85)]+':'+_0x4211dc)));else{let _0xaaf7ad=await this[_0xe48ce7(0xb5)](_0x4211dc,[]),_0xfff51c=_0xaaf7ad['shift']();return await this[_0xe48ce7(0xa3)](_0x4211dc,_0xaaf7ad),_0xfff51c;}},'push':async(..._0x56e687)=>{var _0x4de3e4=a4_0x42e2,_0x383e6f,_0x15019f,_0x5b7c1a,_0x1e50a4,_0x35fcdb;const _0x503b94=_0x56e687['filter'](_0x1597fe=>_0x1597fe!==undefined&&_0x1597fe!==null);if(((_0x15019f=(_0x383e6f=this[_0x4de3e4(0x7f)])===null||_0x383e6f===void 0x0?void 0x0:_0x383e6f['store'])===null||_0x15019f===void 0x0?void 0x0:_0x15019f['name'])=='redis')return await((_0x35fcdb=(_0x1e50a4=(_0x5b7c1a=this===null||this===void 0x0?void 0x0:this[_0x4de3e4(0x7f)])===null||_0x5b7c1a===void 0x0?void 0x0:_0x5b7c1a[_0x4de3e4(0x8c)])===null||_0x1e50a4===void 0x0?void 0x0:_0x1e50a4[_0x4de3e4(0xa0)]())===null||_0x35fcdb===void 0x0?void 0x0:_0x35fcdb['rpush'](this[_0x4de3e4(0x85)]+':'+_0x4211dc,..._0x503b94[_0x4de3e4(0x86)](_0x4af81e=>json_encode(_0x4af81e)))),_0x503b94;else{let _0x2003c3=await this[_0x4de3e4(0xb5)](_0x4211dc,[]);return _0x2003c3[_0x4de3e4(0x82)](..._0x503b94),await this[_0x4de3e4(0xa3)](_0x4211dc,_0x2003c3),_0x2003c3;}}};return _0x378697;}}exports[a4_0x4d7831(0xa6)]=Cache;function json_encode(_0x5a8405){try{return JSON['stringify'](_0x5a8405);}catch(_0x47b875){return undefined;}}function json_decode(_0xa39f11){try{return JSON['parse'](_0xa39f11);}catch(_0x53d28d){return undefined;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.65",
|
|
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": "
|
|
26
|
+
"gitHead": "f575b24f6bd01f1345618820e936c1858127ab59"
|
|
27
27
|
}
|