@anncic-api/cache 3.4.79 → 3.4.80
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_0x33285f=a0_0x17c1;function a0_0x1a84(){const _0x41918b=['(((.+)+)+)+$','file','cache-manager-fs-hash','appDir','1467804swfNYL','335139JEQSJP','100MkFzKD','10rqRjJt','335819UOrmDG','toString','env','defineProperty','name','apply','127.0.0.1','1690770iKKLYT','4BGBAwF','1eUelhm','7616637PhLjLR','constructor','1482882cqQKRp','40HiiCWa','cache-manager-ioredis','search','5235936wLHKbY'];a0_0x1a84=function(){return _0x41918b;};return a0_0x1a84();}function a0_0x17c1(_0x352f3e,_0x1478e3){const _0x5a71c5=a0_0x1a84();return a0_0x17c1=function(_0x374d7f,_0x1d579c){_0x374d7f=_0x374d7f-0x104;let _0x1a84fb=_0x5a71c5[_0x374d7f];return _0x1a84fb;},a0_0x17c1(_0x352f3e,_0x1478e3);}(function(_0x2970b8,_0xe90e4f){const _0x3dc5f1=a0_0x17c1,_0x43eaa7=_0x2970b8();while(!![]){try{const _0xaa408=parseInt(_0x3dc5f1(0x118))/0x1*(parseInt(_0x3dc5f1(0x11b))/0x2)+parseInt(_0x3dc5f1(0x116))/0x3*(parseInt(_0x3dc5f1(0x117))/0x4)+parseInt(_0x3dc5f1(0x10e))/0x5*(parseInt(_0x3dc5f1(0x10b))/0x6)+-parseInt(_0x3dc5f1(0x10c))/0x7*(-parseInt(_0x3dc5f1(0x11c))/0x8)+-parseInt(_0x3dc5f1(0x119))/0x9+parseInt(_0x3dc5f1(0x10d))/0xa*(-parseInt(_0x3dc5f1(0x10f))/0xb)+-parseInt(_0x3dc5f1(0x106))/0xc;if(_0xaa408===_0xe90e4f)break;else _0x43eaa7['push'](_0x43eaa7['shift']());}catch(_0x4eacf3){_0x43eaa7['push'](_0x43eaa7['shift']());}}}(a0_0x1a84,0x6cd4d));const a0_0x1d579c=(function(){let _0x508e9c=!![];return function(_0x332884,_0x581b4){const _0x38771c=_0x508e9c?function(){const _0x476bab=a0_0x17c1;if(_0x581b4){const _0x43dfc0=_0x581b4[_0x476bab(0x114)](_0x332884,arguments);return _0x581b4=null,_0x43dfc0;}}:function(){};return _0x508e9c=![],_0x38771c;};}()),a0_0x374d7f=a0_0x1d579c(this,function(){const _0x4a30ec=a0_0x17c1;return a0_0x374d7f['toString']()[_0x4a30ec(0x105)](_0x4a30ec(0x107))[_0x4a30ec(0x110)]()[_0x4a30ec(0x11a)](a0_0x374d7f)[_0x4a30ec(0x105)](_0x4a30ec(0x107));});a0_0x374d7f();'use strict';Object[a0_0x33285f(0x112)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x33285f(0x109)),redisStore=require(a0_0x33285f(0x104));exports['default']=_0xfe00e1=>{const _0x1d723e=a0_0x33285f;return{'cache':{'default':_0x1d723e(0x108),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0xfe00e1[_0x1d723e(0x10a)]+'/runtime/.cache'+((_0xfe00e1===null||_0xfe00e1===void 0x0?void 0x0:_0xfe00e1['env'])?'-'+_0xfe00e1['env']:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x1d723e(0x115),'password':'','keyPrefix':_0xfe00e1[_0x1d723e(0x113)]+':'+((_0xfe00e1===null||_0xfe00e1===void 0x0?void 0x0:_0xfe00e1[_0x1d723e(0x111)])?_0xfe00e1[_0x1d723e(0x111)]+':':'')}},'memory':{'store':'memory','options':{'max':0x64}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x12844e=a1_0x5bb7;function a1_0x5bb7(_0x34631a,_0x2252df){var _0x2db921=a1_0x190c();return a1_0x5bb7=function(_0x32fabb,_0x15241c){_0x32fabb=_0x32fabb-0x146;var _0x190c1e=_0x2db921[_0x32fabb];return _0x190c1e;},a1_0x5bb7(_0x34631a,_0x2252df);}function a1_0x190c(){var _0x1818d1=['530439HXgpDR','Configuration','CustomConfiguration','168252ONImFe','1820286QEwHca','./config/config.default','311760bxAGyE','length','44552YajYdB','235660KBEepN','defineProperty','search','getOwnPropertyDescriptor','2rzRgsK','(((.+)+)+)+$','25UKQCGG','__esModule','35FqjRBk','anncic-api:cache','117133cBxDHC','decorate','constructor','toString'];a1_0x190c=function(){return _0x1818d1;};return a1_0x190c();}(function(_0x51c9d7,_0x283f75){var _0x5c8d74=a1_0x5bb7,_0x23b7ad=_0x51c9d7();while(!![]){try{var _0x33ad63=parseInt(_0x5c8d74(0x149))/0x1*(-parseInt(_0x5c8d74(0x15a))/0x2)+parseInt(_0x5c8d74(0x14d))/0x3+parseInt(_0x5c8d74(0x156))/0x4+-parseInt(_0x5c8d74(0x15c))/0x5*(parseInt(_0x5c8d74(0x150))/0x6)+parseInt(_0x5c8d74(0x147))/0x7*(-parseInt(_0x5c8d74(0x155))/0x8)+parseInt(_0x5c8d74(0x151))/0x9+-parseInt(_0x5c8d74(0x153))/0xa;if(_0x33ad63===_0x283f75)break;else _0x23b7ad['push'](_0x23b7ad['shift']());}catch(_0x5c00fa){_0x23b7ad['push'](_0x23b7ad['shift']());}}}(a1_0x190c,0x1db12));var a1_0x15241c=(function(){var _0x5c8528=!![];return function(_0x19f059,_0x602495){var _0x4350f6=_0x5c8528?function(){if(_0x602495){var _0x4efff8=_0x602495['apply'](_0x19f059,arguments);return _0x602495=null,_0x4efff8;}}:function(){};return _0x5c8528=![],_0x4350f6;};}()),a1_0x32fabb=a1_0x15241c(this,function(){var _0x5172e5=a1_0x5bb7;return a1_0x32fabb['toString']()[_0x5172e5(0x158)](_0x5172e5(0x15b))[_0x5172e5(0x14c)]()[_0x5172e5(0x14b)](a1_0x32fabb)[_0x5172e5(0x158)]('(((.+)+)+)+$');});a1_0x32fabb();'use strict';var __decorate=this&&this['__decorate']||function(_0x47922c,_0x485600,_0x3a6d5b,_0x13867f){var _0x5864d2=a1_0x5bb7,_0x322d97=arguments[_0x5864d2(0x154)],_0x97988b=_0x322d97<0x3?_0x485600:_0x13867f===null?_0x13867f=Object[_0x5864d2(0x159)](_0x485600,_0x3a6d5b):_0x13867f,_0x19c05c;if(typeof Reflect==='object'&&typeof Reflect[_0x5864d2(0x14a)]==='function')_0x97988b=Reflect[_0x5864d2(0x14a)](_0x47922c,_0x485600,_0x3a6d5b,_0x13867f);else{for(var _0x3df291=_0x47922c[_0x5864d2(0x154)]-0x1;_0x3df291>=0x0;_0x3df291--)if(_0x19c05c=_0x47922c[_0x3df291])_0x97988b=(_0x322d97<0x3?_0x19c05c(_0x97988b):_0x322d97>0x3?_0x19c05c(_0x485600,_0x3a6d5b,_0x97988b):_0x19c05c(_0x485600,_0x3a6d5b))||_0x97988b;}return _0x322d97>0x3&&_0x97988b&&Object[_0x5864d2(0x157)](_0x485600,_0x3a6d5b,_0x97988b),_0x97988b;};Object[a1_0x12844e(0x157)](exports,a1_0x12844e(0x146),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x12844e(0x152));let CustomConfiguration=class CustomConfiguration{};exports['CustomConfiguration']=CustomConfiguration,exports[a1_0x12844e(0x14f)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x12844e(0x14e)])({'conflictCheck':![],'namespace':a1_0x12844e(0x148),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x4c5f19=a2_0x5619;(function(_0x445739,_0x3252fc){const _0x371afb=a2_0x5619,_0x4ccb97=_0x445739();while(!![]){try{const _0x470617=-parseInt(_0x371afb(0x11f))/0x1+-parseInt(_0x371afb(0x124))/0x2*(-parseInt(_0x371afb(0x116))/0x3)+-parseInt(_0x371afb(0x121))/0x4*(-parseInt(_0x371afb(0x114))/0x5)+-parseInt(_0x371afb(0x123))/0x6*(parseInt(_0x371afb(0x119))/0x7)+-parseInt(_0x371afb(0x125))/0x8*(-parseInt(_0x371afb(0x127))/0x9)+-parseInt(_0x371afb(0x12d))/0xa+-parseInt(_0x371afb(0x11a))/0xb*(-parseInt(_0x371afb(0x115))/0xc);if(_0x470617===_0x3252fc)break;else _0x4ccb97['push'](_0x4ccb97['shift']());}catch(_0x22e4db){_0x4ccb97['push'](_0x4ccb97['shift']());}}}(a2_0xbb8e,0x2de69));const a2_0x43fb54=(function(){let _0x1282fc=!![];return function(_0x65c471,_0x1ce326){const _0x144ea7=_0x1282fc?function(){const _0x3e1863=a2_0x5619;if(_0x1ce326){const _0x47ddec=_0x1ce326[_0x3e1863(0x129)](_0x65c471,arguments);return _0x1ce326=null,_0x47ddec;}}:function(){};return _0x1282fc=![],_0x144ea7;};}()),a2_0x5a055e=a2_0x43fb54(this,function(){const _0x4b3790=a2_0x5619;return a2_0x5a055e[_0x4b3790(0x12c)]()[_0x4b3790(0x12a)]('(((.+)+)+)+$')[_0x4b3790(0x12c)]()['constructor'](a2_0x5a055e)[_0x4b3790(0x12a)](_0x4b3790(0x11e));});function a2_0xbb8e(){const _0xcaa404=['../service/CacheService','toString','675390hADDAz','use','value','Cache','@midwayjs/core','1053215WLmJlP','60vjAXop','57QnuMHW','defineProperty','Method::Decorator','3514GozRui','147642AymwFV','REQUEST_OBJ_CTX_KEY','get','crypto-js','(((.+)+)+)+$','46973wHCKWt','parse','4OqyiGy','CacheService','4038LSHtCJ','21046UVltjr','8vbSNNG','stringify','1464093wlmMnj','getAsync','apply','search'];a2_0xbb8e=function(){return _0xcaa404;};return a2_0xbb8e();}a2_0x5a055e();function a2_0x5619(_0x43180d,_0x12c3ea){const _0x583162=a2_0xbb8e();return a2_0x5619=function(_0x5a055e,_0x43fb54){_0x5a055e=_0x5a055e-0x111;let _0xbb8ed5=_0x583162[_0x5a055e];return _0xbb8ed5;},a2_0x5619(_0x43180d,_0x12c3ea);}'use strict';Object[a2_0x4c5f19(0x117)](exports,'__esModule',{'value':!![]}),exports[a2_0x4c5f19(0x112)]=Cache;const crypto_js_1=require(a2_0x4c5f19(0x11d)),CacheService_1=require(a2_0x4c5f19(0x12b)),core_1=require(a2_0x4c5f19(0x113));function json_encode(_0x23357c){const _0x385b01=a2_0x4c5f19;try{return JSON[_0x385b01(0x126)](_0x23357c);}catch(_0x2e7da6){return undefined;}}function Cache(_0x41a17c,_0x2b6d41){return(_0x36fa3d,_0x17a8f5,_0x2236a7)=>{const _0x4afa78=a2_0x5619,_0x17b35b=_0x2236a7[_0x4afa78(0x111)];return _0x2236a7[_0x4afa78(0x111)]=async function(..._0x594174){const _0x2d5d6f=_0x4afa78;_0x41a17c=(_0x41a17c?''+_0x41a17c:''+(_0x17a8f5||''))+'.'+(0x0,crypto_js_1['MD5'])(json_encode(_0x594174))[_0x2d5d6f(0x12c)]();let _0x3a04bd=await this[core_1[_0x2d5d6f(0x11b)]]['app']['getApplicationContext']()[_0x2d5d6f(0x128)](CacheService_1[_0x2d5d6f(0x122)]),_0x54077c=await _0x3a04bd[_0x2d5d6f(0x12e)](_0x2d5d6f(0x118))[_0x2d5d6f(0x11c)](_0x41a17c);if(_0x54077c)return JSON[_0x2d5d6f(0x120)](_0x54077c);else _0x54077c=await _0x17b35b[_0x2d5d6f(0x129)](this,[..._0x594174]),await _0x3a04bd['use']('Method::Decorator')['set'](_0x41a17c,JSON[_0x2d5d6f(0x126)](_0x54077c),_0x2b6d41);return _0x54077c;},_0x2236a7;};}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x553c13=a3_0x46a1;(function(_0x443b18,_0x2c31c2){var _0xc2c4a0=a3_0x46a1,_0x28a927=_0x443b18();while(!![]){try{var _0x4e2bbc=parseInt(_0xc2c4a0(0x1aa))/0x1+-parseInt(_0xc2c4a0(0x1b4))/0x2*(parseInt(_0xc2c4a0(0x1a5))/0x3)+-parseInt(_0xc2c4a0(0x1ac))/0x4*(parseInt(_0xc2c4a0(0x1b1))/0x5)+-parseInt(_0xc2c4a0(0x1b2))/0x6*(parseInt(_0xc2c4a0(0x1ae))/0x7)+parseInt(_0xc2c4a0(0x1b9))/0x8+-parseInt(_0xc2c4a0(0x1b5))/0x9+-parseInt(_0xc2c4a0(0x1a9))/0xa*(-parseInt(_0xc2c4a0(0x1a4))/0xb);if(_0x4e2bbc===_0x2c31c2)break;else _0x28a927['push'](_0x28a927['shift']());}catch(_0x2b8d26){_0x28a927['push'](_0x28a927['shift']());}}}(a3_0x5232,0x2c026));var a3_0x5663b6=(function(){var _0x1d2af3=!![];return function(_0x3361a8,_0xc109eb){var _0x27a2bd=_0x1d2af3?function(){var _0x43d7bc=a3_0x46a1;if(_0xc109eb){var _0x4c06ad=_0xc109eb[_0x43d7bc(0x1b3)](_0x3361a8,arguments);return _0xc109eb=null,_0x4c06ad;}}:function(){};return _0x1d2af3=![],_0x27a2bd;};}()),a3_0x43b0fc=a3_0x5663b6(this,function(){var _0x26b96f=a3_0x46a1;return a3_0x43b0fc[_0x26b96f(0x1b8)]()[_0x26b96f(0x1af)](_0x26b96f(0x1ab))[_0x26b96f(0x1b8)]()[_0x26b96f(0x1a8)](a3_0x43b0fc)[_0x26b96f(0x1af)](_0x26b96f(0x1ab));});a3_0x43b0fc();'use strict';Object[a3_0x553c13(0x1a7)](exports,'__esModule',{'value':!![]}),exports['CacheService']=exports['Cache']=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x553c13(0x1ad));Object[a3_0x553c13(0x1a7)](exports,a3_0x553c13(0x1a6),{'enumerable':!![],'get':function(){var _0x598748=a3_0x553c13;return configuration_1[_0x598748(0x1b0)];}});var Cache_1=require('./decorator/Cache');function a3_0x46a1(_0x4d3045,_0x12993a){var _0x589d36=a3_0x5232();return a3_0x46a1=function(_0x43b0fc,_0x5663b6){_0x43b0fc=_0x43b0fc-0x1a3;var _0x5232ac=_0x589d36[_0x43b0fc];return _0x5232ac;},a3_0x46a1(_0x4d3045,_0x12993a);}Object[a3_0x553c13(0x1a7)](exports,a3_0x553c13(0x1b6),{'enumerable':!![],'get':function(){var _0x919eac=a3_0x553c13;return Cache_1[_0x919eac(0x1b6)];}});function a3_0x5232(){var _0xc94f29=['constructor','20MsjQVv','36148sWZGBN','(((.+)+)+)+$','52BeKOzx','./configuration','448zqoumd','search','CustomConfiguration','77065lSSNlj','26790zYDacV','apply','34RMAQVc','2136087DQxqyo','Cache','./service/CacheService','toString','1994576HUeqUW','CacheService','4753771QREOrO','43422IJJLkd','Configuration','defineProperty'];a3_0x5232=function(){return _0xc94f29;};return a3_0x5232();}var CacheService_1=require(a3_0x553c13(0x1b7));Object['defineProperty'](exports,a3_0x553c13(0x1a3),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a4_0x13b99f=a4_0x2965;function a4_0x2363(){var _0x2f0cb2=['856hdevJD','cache','redis','default','name','constructor','store','hget','799552KGYHxG','reset','Scope','length','4KhtXRd','design:type','Singleton','55yxAVAC','config','Cache','cache-manager','decorate','get','stores','filter','7pBfhpB','list','object','hset','set','has','use','6bgLqYK','clients','toString','search','6557110nescKG','prefix','metadata','del','(((.+)+)+)+$','__decorate','getOwnPropertyDescriptor','catch','defineProperty','parse','Config','6475970FtlAwb','@midwayjs/core','json_decode','options','function','__esModule','CacheService','7898628szwAsu','6911778MgznBZ','1367049pPHeXT','map','108387oWsYKw','lrange','__metadata','undefined','Provide','getClient'];a4_0x2363=function(){return _0x2f0cb2;};return a4_0x2363();}(function(_0x329884,_0x1b0d0d){var _0xd2dff6=a4_0x2965,_0x49e4a4=_0x329884();while(!![]){try{var _0x4e94f3=parseInt(_0xd2dff6(0xfc))/0x1+parseInt(_0xd2dff6(0x112))/0x2*(parseInt(_0xd2dff6(0x12a))/0x3)+parseInt(_0xd2dff6(0x100))/0x4*(parseInt(_0xd2dff6(0x121))/0x5)+-parseInt(_0xd2dff6(0x129))/0x6*(-parseInt(_0xd2dff6(0x10b))/0x7)+-parseInt(_0xd2dff6(0xf4))/0x8*(parseInt(_0xd2dff6(0x12c))/0x9)+parseInt(_0xd2dff6(0x116))/0xa+-parseInt(_0xd2dff6(0x103))/0xb*(parseInt(_0xd2dff6(0x128))/0xc);if(_0x4e94f3===_0x1b0d0d)break;else _0x49e4a4['push'](_0x49e4a4['shift']());}catch(_0x411e37){_0x49e4a4['push'](_0x49e4a4['shift']());}}}(a4_0x2363,0xa866d));var a4_0x1201c8=(function(){var _0xf7ccb5=!![];return function(_0x4b5e26,_0x4a8ee8){var _0x25c906=_0xf7ccb5?function(){if(_0x4a8ee8){var _0x124a25=_0x4a8ee8['apply'](_0x4b5e26,arguments);return _0x4a8ee8=null,_0x124a25;}}:function(){};return _0xf7ccb5=![],_0x25c906;};}()),a4_0xc932a7=a4_0x1201c8(this,function(){var _0x1897d6=a4_0x2965;return a4_0xc932a7[_0x1897d6(0x114)]()[_0x1897d6(0x115)](_0x1897d6(0x11a))['toString']()[_0x1897d6(0xf9)](a4_0xc932a7)[_0x1897d6(0x115)](_0x1897d6(0x11a));});a4_0xc932a7();'use strict';var __decorate=this&&this[a4_0x13b99f(0x11b)]||function(_0x5684ea,_0x249346,_0x1ce60f,_0x404914){var _0x29766e=a4_0x13b99f,_0x4d7b49=arguments[_0x29766e(0xff)],_0x2e272d=_0x4d7b49<0x3?_0x249346:_0x404914===null?_0x404914=Object[_0x29766e(0x11c)](_0x249346,_0x1ce60f):_0x404914,_0x387233;if(typeof Reflect===_0x29766e(0x10d)&&typeof Reflect[_0x29766e(0x107)]===_0x29766e(0x125))_0x2e272d=Reflect[_0x29766e(0x107)](_0x5684ea,_0x249346,_0x1ce60f,_0x404914);else{for(var _0x1acceb=_0x5684ea['length']-0x1;_0x1acceb>=0x0;_0x1acceb--)if(_0x387233=_0x5684ea[_0x1acceb])_0x2e272d=(_0x4d7b49<0x3?_0x387233(_0x2e272d):_0x4d7b49>0x3?_0x387233(_0x249346,_0x1ce60f,_0x2e272d):_0x387233(_0x249346,_0x1ce60f))||_0x2e272d;}return _0x4d7b49>0x3&&_0x2e272d&&Object[_0x29766e(0x11e)](_0x249346,_0x1ce60f,_0x2e272d),_0x2e272d;},__metadata=this&&this[a4_0x13b99f(0x12e)]||function(_0x37a187,_0x35e6b1){var _0x39f852=a4_0x13b99f;if(typeof Reflect==='object'&&typeof Reflect[_0x39f852(0x118)]===_0x39f852(0x125))return Reflect[_0x39f852(0x118)](_0x37a187,_0x35e6b1);};function a4_0x2965(_0x25f6ad,_0x550ef5){var _0x258374=a4_0x2363();return a4_0x2965=function(_0xc932a7,_0x1201c8){_0xc932a7=_0xc932a7-0xf1;var _0x2363a7=_0x258374[_0xc932a7];return _0x2363a7;},a4_0x2965(_0x25f6ad,_0x550ef5);}Object['defineProperty'](exports,a4_0x13b99f(0x126),{'value':!![]}),exports[a4_0x13b99f(0x105)]=exports[a4_0x13b99f(0x127)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x13b99f(0x123)]=json_decode;const cacheManager=require(a4_0x13b99f(0x106)),core_1=require(a4_0x13b99f(0x122));let CacheService=class CacheService{constructor(){var _0x3de17f=a4_0x13b99f;this[_0x3de17f(0xf5)]=undefined,this['clients']=new Map();}[a4_0x13b99f(0x111)](_0x27f9c0){var _0x15b917=a4_0x13b99f,_0x310625,_0x368c4b;if(!this[_0x15b917(0xf5)]){const _0x5869ad=((_0x310625=this[_0x15b917(0x104)][_0x15b917(0x109)])===null||_0x310625===void 0x0?void 0x0:_0x310625[(_0x368c4b=this[_0x15b917(0x104)])===null||_0x368c4b===void 0x0?void 0x0:_0x368c4b[_0x15b917(0xf7)]])||this['config'][_0x15b917(0x109)]['file'];this['cache']=cacheManager['caching']({..._0x5869ad[_0x15b917(0x124)],'store':_0x5869ad[_0x15b917(0xfa)]});}return!this[_0x15b917(0x113)][_0x15b917(0x110)](_0x27f9c0)&&this[_0x15b917(0x113)]['set'](_0x27f9c0,new Cache(_0x27f9c0,this[_0x15b917(0xf5)])),this['clients'][_0x15b917(0x108)](_0x27f9c0);}async[a4_0x13b99f(0xfd)](){var _0xc3f6e=a4_0x13b99f;return await this['cache'][_0xc3f6e(0xfd)]();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x13b99f(0x120)])(a4_0x13b99f(0xf5)),__metadata(a4_0x13b99f(0x101),Object)],CacheService['prototype'],a4_0x13b99f(0x104),void 0x0),exports[a4_0x13b99f(0x127)]=CacheService=__decorate([(0x0,core_1[a4_0x13b99f(0xf2)])(),(0x0,core_1[a4_0x13b99f(0xfe)])(core_1['ScopeEnum'][a4_0x13b99f(0x102)])],CacheService);class Cache{constructor(_0x310cb4,_0x1aecfc){var _0xadfe3c=a4_0x13b99f;this[_0xadfe3c(0xf5)]=_0x1aecfc,this[_0xadfe3c(0x117)]=_0x310cb4;}async[a4_0x13b99f(0x119)](_0x2024dc){var _0x5d5fc5=a4_0x13b99f;return await this[_0x5d5fc5(0xf5)]['del'](this[_0x5d5fc5(0x117)]+':'+_0x2024dc);}async[a4_0x13b99f(0x10f)](_0x47e96d,_0xf7e56d,_0x3c7fd6){var _0x128888=a4_0x13b99f,_0x4effaf,_0x36579b;return((_0x36579b=(_0x4effaf=this[_0x128888(0xf5)])===null||_0x4effaf===void 0x0?void 0x0:_0x4effaf[_0x128888(0xfa)])===null||_0x36579b===void 0x0?void 0x0:_0x36579b['name'])==_0x128888(0xf6)?await this[_0x128888(0xf5)]['set'](this[_0x128888(0x117)]+':'+_0x47e96d,_0xf7e56d,{'ttl':_0x3c7fd6}):await this['cache'][_0x128888(0x10f)](this[_0x128888(0x117)]+':'+_0x47e96d,_0xf7e56d,{'ttl':_0x3c7fd6});}async['get'](_0x1305d4,_0x3af1b3,_0x2691ad){return new Promise((_0x12548d,_0x1251b1)=>{var _0x4d7245=a4_0x2965;this[_0x4d7245(0xf5)][_0x4d7245(0x108)](this[_0x4d7245(0x117)]+':'+_0x1305d4,async(_0x40848a,_0x21386b)=>{var _0x1823cf=_0x4d7245;_0x40848a?_0x1251b1(_0x40848a):((_0x21386b===undefined||_0x21386b===null)&&(typeof _0x3af1b3=='function'?(_0x21386b=await _0x3af1b3()[_0x1823cf(0x11d)](_0x4ae1c0=>_0x1251b1(_0x4ae1c0)),typeof _0x21386b!=_0x1823cf(0xf1)&&await this[_0x1823cf(0x10f)](_0x1305d4,_0x21386b,_0x2691ad)):_0x21386b=_0x3af1b3),_0x12548d(_0x21386b));});});}async['hdel'](_0x103685,_0x4a6d4c){var _0x1f110c=a4_0x13b99f;return await this[_0x1f110c(0x119)](_0x103685+'#'+_0x4a6d4c);}async[a4_0x13b99f(0x10e)](_0x431312,_0x46daf4,_0x25ab34,_0x35bedd){var _0x187eb3=a4_0x13b99f;return await this[_0x187eb3(0x10f)](_0x431312+'#'+_0x46daf4,_0x25ab34,_0x35bedd);}async[a4_0x13b99f(0xfb)](_0x2f5e46,_0x18a6a7,_0x57ca8a,_0x105c95){var _0x2cbc37=a4_0x13b99f;return await this[_0x2cbc37(0x108)](_0x2f5e46+'#'+_0x18a6a7,_0x57ca8a,_0x105c95);}[a4_0x13b99f(0x10c)](_0x118c8c){const _0x317517={'all':async()=>{var _0x7b8db0=a4_0x2965,_0x3976aa,_0x2151c4,_0x21e7e1,_0x32bc11,_0x4476f2;return((_0x2151c4=(_0x3976aa=this[_0x7b8db0(0xf5)])===null||_0x3976aa===void 0x0?void 0x0:_0x3976aa[_0x7b8db0(0xfa)])===null||_0x2151c4===void 0x0?void 0x0:_0x2151c4['name'])==_0x7b8db0(0xf6)?(await((_0x4476f2=(_0x32bc11=(_0x21e7e1=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x21e7e1===void 0x0?void 0x0:_0x21e7e1[_0x7b8db0(0xfa)])===null||_0x32bc11===void 0x0?void 0x0:_0x32bc11[_0x7b8db0(0xf3)]())===null||_0x4476f2===void 0x0?void 0x0:_0x4476f2[_0x7b8db0(0x12d)](this[_0x7b8db0(0x117)]+':'+_0x118c8c,0x0,-0x1))||[])[_0x7b8db0(0x12b)](_0x569101=>json_decode(_0x569101)):await this['get'](_0x118c8c,[]);},'pop':async()=>{var _0x3b9cc6=a4_0x2965,_0x58ce43,_0x2b1c8b,_0x4d538d,_0x3e4342,_0x3bb9fe;if(((_0x2b1c8b=(_0x58ce43=this[_0x3b9cc6(0xf5)])===null||_0x58ce43===void 0x0?void 0x0:_0x58ce43[_0x3b9cc6(0xfa)])===null||_0x2b1c8b===void 0x0?void 0x0:_0x2b1c8b[_0x3b9cc6(0xf8)])==_0x3b9cc6(0xf6))return json_decode(await((_0x3bb9fe=(_0x3e4342=(_0x4d538d=this===null||this===void 0x0?void 0x0:this[_0x3b9cc6(0xf5)])===null||_0x4d538d===void 0x0?void 0x0:_0x4d538d[_0x3b9cc6(0xfa)])===null||_0x3e4342===void 0x0?void 0x0:_0x3e4342['getClient']())===null||_0x3bb9fe===void 0x0?void 0x0:_0x3bb9fe['lpop'](this['prefix']+':'+_0x118c8c)));else{let _0x362e13=await this[_0x3b9cc6(0x108)](_0x118c8c,[]),_0xbc1d6c=_0x362e13['shift']();return await this[_0x3b9cc6(0x10f)](_0x118c8c,_0x362e13),_0xbc1d6c;}},'push':async(..._0x258e68)=>{var _0x144fc6=a4_0x2965,_0x563737,_0xe482be,_0x186c3f,_0x272a25,_0x3622fe;const _0x4d9c1f=_0x258e68[_0x144fc6(0x10a)](_0x4703eb=>_0x4703eb!==undefined&&_0x4703eb!==null);if(((_0xe482be=(_0x563737=this[_0x144fc6(0xf5)])===null||_0x563737===void 0x0?void 0x0:_0x563737[_0x144fc6(0xfa)])===null||_0xe482be===void 0x0?void 0x0:_0xe482be[_0x144fc6(0xf8)])==_0x144fc6(0xf6))return await((_0x3622fe=(_0x272a25=(_0x186c3f=this===null||this===void 0x0?void 0x0:this[_0x144fc6(0xf5)])===null||_0x186c3f===void 0x0?void 0x0:_0x186c3f['store'])===null||_0x272a25===void 0x0?void 0x0:_0x272a25[_0x144fc6(0xf3)]())===null||_0x3622fe===void 0x0?void 0x0:_0x3622fe['rpush'](this[_0x144fc6(0x117)]+':'+_0x118c8c,..._0x4d9c1f[_0x144fc6(0x12b)](_0x19fdb9=>json_encode(_0x19fdb9)))),_0x4d9c1f;else{let _0x1ab5e9=await this['get'](_0x118c8c,[]);return _0x1ab5e9['push'](..._0x4d9c1f),await this[_0x144fc6(0x10f)](_0x118c8c,_0x1ab5e9),_0x1ab5e9;}}};return _0x317517;}}exports[a4_0x13b99f(0x105)]=Cache;function json_encode(_0x262351){try{return JSON['stringify'](_0x262351);}catch(_0x2a8112){return undefined;}}function json_decode(_0x7ee5a7){var _0x56609a=a4_0x13b99f;try{return JSON[_0x56609a(0x11f)](_0x7ee5a7);}catch(_0x1452d2){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.80",
|
|
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": "a24d658b65084f1b3db2ce48e1fdc06d9b5b1541"
|
|
27
27
|
}
|