@anncic-api/cache 3.4.71 → 3.4.73
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
|
-
|
|
1
|
+
const a0_0x233f12=a0_0x4af3;(function(_0x357007,_0x4ab1cb){const _0x2df590=a0_0x4af3,_0x423d7f=_0x357007();while(!![]){try{const _0x4406e1=parseInt(_0x2df590(0xf1))/0x1*(parseInt(_0x2df590(0x100))/0x2)+parseInt(_0x2df590(0xf7))/0x3*(-parseInt(_0x2df590(0xfb))/0x4)+-parseInt(_0x2df590(0x103))/0x5*(-parseInt(_0x2df590(0xf8))/0x6)+-parseInt(_0x2df590(0xff))/0x7*(parseInt(_0x2df590(0xfe))/0x8)+parseInt(_0x2df590(0x109))/0x9*(-parseInt(_0x2df590(0xf4))/0xa)+-parseInt(_0x2df590(0x10a))/0xb+parseInt(_0x2df590(0xf6))/0xc;if(_0x4406e1===_0x4ab1cb)break;else _0x423d7f['push'](_0x423d7f['shift']());}catch(_0x41ed4a){_0x423d7f['push'](_0x423d7f['shift']());}}}(a0_0x3393,0x2ebfc));const a0_0x3e843f=(function(){let _0x351258=!![];return function(_0x5ec5cb,_0x3fdf8a){const _0x56482b=_0x351258?function(){const _0x40558b=a0_0x4af3;if(_0x3fdf8a){const _0x4e9ce1=_0x3fdf8a[_0x40558b(0x102)](_0x5ec5cb,arguments);return _0x3fdf8a=null,_0x4e9ce1;}}:function(){};return _0x351258=![],_0x56482b;};}()),a0_0x3c7b12=a0_0x3e843f(this,function(){const _0x4669b4=a0_0x4af3;return a0_0x3c7b12[_0x4669b4(0xfd)]()[_0x4669b4(0xef)]('(((.+)+)+)+$')['toString']()[_0x4669b4(0x104)](a0_0x3c7b12)[_0x4669b4(0xef)](_0x4669b4(0xf5));});a0_0x3c7b12();'use strict';Object['defineProperty'](exports,a0_0x233f12(0xfa),{'value':!![]});function a0_0x4af3(_0x48a2f9,_0x15ad5b){const _0x1197e8=a0_0x3393();return a0_0x4af3=function(_0x3c7b12,_0x3e843f){_0x3c7b12=_0x3c7b12-0xef;let _0x33935a=_0x1197e8[_0x3c7b12];return _0x33935a;},a0_0x4af3(_0x48a2f9,_0x15ad5b);}function a0_0x3393(){const _0x50b274=['search','default','2lBgFjr','memory','/runtime/.cache','589090Fwxqhh','(((.+)+)+)+$','2984544oKuYwa','267528rLHkxh','270kSuEcw','127.0.0.1','__esModule','8CnUXcx','appDir','toString','8ZbYZqQ','502201UwiDCr','332192fwkSTB','env','apply','9510UJqvJZ','constructor','cache-manager-ioredis','file','cache-manager-fs-hash','name','18bzgEXW','1178067TMEuPJ'];a0_0x3393=function(){return _0x50b274;};return a0_0x3393();}const fsStore=require(a0_0x233f12(0x107)),redisStore=require(a0_0x233f12(0x105));exports[a0_0x233f12(0xf0)]=_0x454bd1=>{const _0x238b72=a0_0x233f12;return{'cache':{'default':_0x238b72(0x106),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x454bd1[_0x238b72(0xfc)]+_0x238b72(0xf3)+((_0x454bd1===null||_0x454bd1===void 0x0?void 0x0:_0x454bd1[_0x238b72(0x101)])?'-'+_0x454bd1[_0x238b72(0x101)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x238b72(0xf9),'password':'','keyPrefix':_0x454bd1[_0x238b72(0x108)]+':'+((_0x454bd1===null||_0x454bd1===void 0x0?void 0x0:_0x454bd1[_0x238b72(0x101)])?_0x454bd1['env']+':':'')}},'memory':{'store':_0x238b72(0xf2),'options':{'max':0x64}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0xc10333=a1_0x32e0;(function(_0x93fef1,_0x54d8ef){var _0x11395e=a1_0x32e0,_0x2ceaa0=_0x93fef1();while(!![]){try{var _0x534c99=-parseInt(_0x11395e(0x140))/0x1+parseInt(_0x11395e(0x13d))/0x2+-parseInt(_0x11395e(0x146))/0x3+parseInt(_0x11395e(0x148))/0x4*(-parseInt(_0x11395e(0x14c))/0x5)+parseInt(_0x11395e(0x13c))/0x6*(-parseInt(_0x11395e(0x149))/0x7)+-parseInt(_0x11395e(0x139))/0x8*(-parseInt(_0x11395e(0x14b))/0x9)+parseInt(_0x11395e(0x144))/0xa;if(_0x534c99===_0x54d8ef)break;else _0x2ceaa0['push'](_0x2ceaa0['shift']());}catch(_0x3347e5){_0x2ceaa0['push'](_0x2ceaa0['shift']());}}}(a1_0x305b,0x735bf));var a1_0x5c3713=(function(){var _0x10511e=!![];return function(_0x5cc18a,_0x34b3f9){var _0x403a87=_0x10511e?function(){var _0x3da621=a1_0x32e0;if(_0x34b3f9){var _0x2c6448=_0x34b3f9[_0x3da621(0x13b)](_0x5cc18a,arguments);return _0x34b3f9=null,_0x2c6448;}}:function(){};return _0x10511e=![],_0x403a87;};}()),a1_0x459366=a1_0x5c3713(this,function(){var _0x38b41e=a1_0x32e0;return a1_0x459366[_0x38b41e(0x143)]()['search'](_0x38b41e(0x138))[_0x38b41e(0x143)]()[_0x38b41e(0x142)](a1_0x459366)['search'](_0x38b41e(0x138));});function a1_0x305b(){var _0x122787=['__decorate','(((.+)+)+)+$','8dqSBDT','object','apply','96XkVCIc','592286knDuqF','decorate','anncic-api:cache','747188sHLhQo','./config/config.default','constructor','toString','25569260lGqVci','length','540102yjOCMv','Configuration','148kqQlkK','338422TsCJXl','function','2128212cYgEwq','123820atoQnt','defineProperty','CustomConfiguration'];a1_0x305b=function(){return _0x122787;};return a1_0x305b();}a1_0x459366();'use strict';var __decorate=this&&this[a1_0xc10333(0x137)]||function(_0x5bfdf0,_0x3baef9,_0x39f267,_0x1f8ad0){var _0x19294c=a1_0xc10333,_0xc7952e=arguments['length'],_0x57d52b=_0xc7952e<0x3?_0x3baef9:_0x1f8ad0===null?_0x1f8ad0=Object['getOwnPropertyDescriptor'](_0x3baef9,_0x39f267):_0x1f8ad0,_0x29f470;if(typeof Reflect===_0x19294c(0x13a)&&typeof Reflect[_0x19294c(0x13e)]===_0x19294c(0x14a))_0x57d52b=Reflect[_0x19294c(0x13e)](_0x5bfdf0,_0x3baef9,_0x39f267,_0x1f8ad0);else{for(var _0x2a95d6=_0x5bfdf0[_0x19294c(0x145)]-0x1;_0x2a95d6>=0x0;_0x2a95d6--)if(_0x29f470=_0x5bfdf0[_0x2a95d6])_0x57d52b=(_0xc7952e<0x3?_0x29f470(_0x57d52b):_0xc7952e>0x3?_0x29f470(_0x3baef9,_0x39f267,_0x57d52b):_0x29f470(_0x3baef9,_0x39f267))||_0x57d52b;}return _0xc7952e>0x3&&_0x57d52b&&Object['defineProperty'](_0x3baef9,_0x39f267,_0x57d52b),_0x57d52b;};function a1_0x32e0(_0x45bae1,_0x3e59c3){var _0x56885f=a1_0x305b();return a1_0x32e0=function(_0x459366,_0x5c3713){_0x459366=_0x459366-0x137;var _0x305b94=_0x56885f[_0x459366];return _0x305b94;},a1_0x32e0(_0x45bae1,_0x3e59c3);}Object[a1_0xc10333(0x14d)](exports,'__esModule',{'value':!![]}),exports[a1_0xc10333(0x14e)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0xc10333(0x141));let CustomConfiguration=class CustomConfiguration{};exports[a1_0xc10333(0x14e)]=CustomConfiguration,exports[a1_0xc10333(0x14e)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0xc10333(0x147)])({'conflictCheck':![],'namespace':a1_0xc10333(0x13f),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a2_0x3c6fb4=a2_0x2054;(function(_0x4fb9d7,_0x3a60be){const _0x1590ab=a2_0x2054,_0x2901e4=_0x4fb9d7();while(!![]){try{const _0x2e7cec=-parseInt(_0x1590ab(0x1c9))/0x1+parseInt(_0x1590ab(0x1c3))/0x2+parseInt(_0x1590ab(0x1ce))/0x3+parseInt(_0x1590ab(0x1cb))/0x4+-parseInt(_0x1590ab(0x1d3))/0x5+-parseInt(_0x1590ab(0x1db))/0x6*(-parseInt(_0x1590ab(0x1d5))/0x7)+-parseInt(_0x1590ab(0x1c5))/0x8*(parseInt(_0x1590ab(0x1da))/0x9);if(_0x2e7cec===_0x3a60be)break;else _0x2901e4['push'](_0x2901e4['shift']());}catch(_0x58f817){_0x2901e4['push'](_0x2901e4['shift']());}}}(a2_0x4741,0xc2dbd));const a2_0x2ba874=(function(){let _0x408fc7=!![];return function(_0x10070c,_0x2698af){const _0x2c6aa7=_0x408fc7?function(){const _0x272b9c=a2_0x2054;if(_0x2698af){const _0x430c8f=_0x2698af[_0x272b9c(0x1cf)](_0x10070c,arguments);return _0x2698af=null,_0x430c8f;}}:function(){};return _0x408fc7=![],_0x2c6aa7;};}()),a2_0x5e7b2d=a2_0x2ba874(this,function(){const _0x14ac91=a2_0x2054;return a2_0x5e7b2d[_0x14ac91(0x1c8)]()['search']('(((.+)+)+)+$')[_0x14ac91(0x1c8)]()['constructor'](a2_0x5e7b2d)['search'](_0x14ac91(0x1d1));});a2_0x5e7b2d();'use strict';Object[a2_0x3c6fb4(0x1d6)](exports,a2_0x3c6fb4(0x1d8),{'value':!![]}),exports['Cache']=Cache;const crypto_js_1=require(a2_0x3c6fb4(0x1d4)),CacheService_1=require(a2_0x3c6fb4(0x1d0)),core_1=require(a2_0x3c6fb4(0x1c6));function json_encode(_0x294569){const _0x1b432a=a2_0x3c6fb4;try{return JSON[_0x1b432a(0x1cd)](_0x294569);}catch(_0x4f33e1){return undefined;}}function a2_0x2054(_0x216484,_0x493a74){const _0x410253=a2_0x4741();return a2_0x2054=function(_0x5e7b2d,_0x2ba874){_0x5e7b2d=_0x5e7b2d-0x1c2;let _0x474192=_0x410253[_0x5e7b2d];return _0x474192;},a2_0x2054(_0x216484,_0x493a74);}function a2_0x4741(){const _0x1fd444=['set','stringify','4553457GqWfPM','apply','../service/CacheService','(((.+)+)+)+$','Method::Decorator','3217105nmoUgU','crypto-js','42VUptdT','defineProperty','REQUEST_OBJ_CTX_KEY','__esModule','getApplicationContext','81Rnyrqz','355506hoqosX','MD5','2156638CxMkuE','parse','1691296vImIHR','@midwayjs/core','getAsync','toString','129857fYphWL','value','2089932uuFXnB'];a2_0x4741=function(){return _0x1fd444;};return a2_0x4741();}function Cache(_0x242715,_0x1cb8fe){return(_0x4a01fc,_0x52a96d,_0xf00a3)=>{const _0x277fc6=a2_0x2054,_0x520604=_0xf00a3[_0x277fc6(0x1ca)];return _0xf00a3['value']=async function(..._0x239135){const _0x2cc8c1=_0x277fc6;_0x242715=(_0x242715?''+_0x242715:''+(_0x52a96d||''))+'.'+(0x0,crypto_js_1[_0x2cc8c1(0x1c2)])(json_encode(_0x239135))[_0x2cc8c1(0x1c8)]();let _0x36d897=await this[core_1[_0x2cc8c1(0x1d7)]]['app'][_0x2cc8c1(0x1d9)]()[_0x2cc8c1(0x1c7)](CacheService_1['CacheService']),_0x4ab17c=await _0x36d897['use'](_0x2cc8c1(0x1d2))['get'](_0x242715);if(_0x4ab17c)return JSON[_0x2cc8c1(0x1c4)](_0x4ab17c);else _0x4ab17c=await _0x520604[_0x2cc8c1(0x1cf)](this,[..._0x239135]),await _0x36d897['use'](_0x2cc8c1(0x1d2))[_0x2cc8c1(0x1cc)](_0x242715,JSON['stringify'](_0x4ab17c),_0x1cb8fe);return _0x4ab17c;},_0xf00a3;};}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x4cfcef=a3_0x1285;(function(_0x5b55ed,_0x4e790d){var _0x5ce4e1=a3_0x1285,_0x949a00=_0x5b55ed();while(!![]){try{var _0x21a17b=-parseInt(_0x5ce4e1(0xf4))/0x1+-parseInt(_0x5ce4e1(0xfa))/0x2+parseInt(_0x5ce4e1(0x106))/0x3+-parseInt(_0x5ce4e1(0xf2))/0x4*(parseInt(_0x5ce4e1(0xf5))/0x5)+-parseInt(_0x5ce4e1(0xf3))/0x6*(-parseInt(_0x5ce4e1(0xfc))/0x7)+parseInt(_0x5ce4e1(0x102))/0x8*(parseInt(_0x5ce4e1(0x107))/0x9)+-parseInt(_0x5ce4e1(0x108))/0xa*(-parseInt(_0x5ce4e1(0xfe))/0xb);if(_0x21a17b===_0x4e790d)break;else _0x949a00['push'](_0x949a00['shift']());}catch(_0x114b69){_0x949a00['push'](_0x949a00['shift']());}}}(a3_0x1036,0xba6a0));var a3_0x351146=(function(){var _0xd9b91c=!![];return function(_0x5b3c6b,_0xd90dad){var _0x1af74a=_0xd9b91c?function(){if(_0xd90dad){var _0x3eb6c4=_0xd90dad['apply'](_0x5b3c6b,arguments);return _0xd90dad=null,_0x3eb6c4;}}:function(){};return _0xd9b91c=![],_0x1af74a;};}()),a3_0x2ab272=a3_0x351146(this,function(){var _0x504650=a3_0x1285;return a3_0x2ab272[_0x504650(0x104)]()[_0x504650(0xff)](_0x504650(0xf8))[_0x504650(0x104)]()[_0x504650(0x103)](a3_0x2ab272)[_0x504650(0xff)](_0x504650(0xf8));});a3_0x2ab272();'use strict';Object[a3_0x4cfcef(0xf6)](exports,a3_0x4cfcef(0xf7),{'value':!![]}),exports[a3_0x4cfcef(0xf9)]=exports[a3_0x4cfcef(0x100)]=exports[a3_0x4cfcef(0x101)]=void 0x0;var configuration_1=require(a3_0x4cfcef(0xfd));Object['defineProperty'](exports,a3_0x4cfcef(0x101),{'enumerable':!![],'get':function(){var _0x13c1a5=a3_0x4cfcef;return configuration_1[_0x13c1a5(0x105)];}});var Cache_1=require(a3_0x4cfcef(0xfb));Object[a3_0x4cfcef(0xf6)](exports,a3_0x4cfcef(0x100),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});function a3_0x1285(_0x464a11,_0x337f6a){var _0x333a98=a3_0x1036();return a3_0x1285=function(_0x2ab272,_0x351146){_0x2ab272=_0x2ab272-0xf2;var _0x103650=_0x333a98[_0x2ab272];return _0x103650;},a3_0x1285(_0x464a11,_0x337f6a);}var CacheService_1=require('./service/CacheService');Object['defineProperty'](exports,a3_0x4cfcef(0xf9),{'enumerable':!![],'get':function(){var _0x12c3d3=a3_0x4cfcef;return CacheService_1[_0x12c3d3(0xf9)];}});function a3_0x1036(){var _0x3c9bc1=['(((.+)+)+)+$','CacheService','2391430bdELdu','./decorator/Cache','1141qkWZCC','./configuration','66319QCQfOb','search','Cache','Configuration','8cqBtHm','constructor','toString','CustomConfiguration','290700lsJtJo','1108665gjMmhE','3710vHPfYs','4TVHmov','54006VNhTsm','1033052EItdLf','4658440nYePYc','defineProperty','__esModule'];a3_0x1036=function(){return _0x3c9bc1;};return a3_0x1036();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a4_0x2448ff=a4_0x594e;(function(_0xeb8324,_0x501e22){var _0x3edf73=a4_0x594e,_0xf471a0=_0xeb8324();while(!![]){try{var _0x43c6e2=-parseInt(_0x3edf73(0x130))/0x1+-parseInt(_0x3edf73(0x135))/0x2*(parseInt(_0x3edf73(0x145))/0x3)+-parseInt(_0x3edf73(0x149))/0x4+-parseInt(_0x3edf73(0x123))/0x5+parseInt(_0x3edf73(0x153))/0x6+-parseInt(_0x3edf73(0x147))/0x7*(-parseInt(_0x3edf73(0x133))/0x8)+parseInt(_0x3edf73(0x12b))/0x9*(parseInt(_0x3edf73(0x146))/0xa);if(_0x43c6e2===_0x501e22)break;else _0xf471a0['push'](_0xf471a0['shift']());}catch(_0xb6838e){_0xf471a0['push'](_0xf471a0['shift']());}}}(a4_0x1dff,0xa0c3f));var a4_0x3959eb=(function(){var _0x57ffd7=!![];return function(_0x1e1a1a,_0x461138){var _0x1aba66=_0x57ffd7?function(){var _0x29a223=a4_0x594e;if(_0x461138){var _0x52fc2c=_0x461138[_0x29a223(0x12f)](_0x1e1a1a,arguments);return _0x461138=null,_0x52fc2c;}}:function(){};return _0x57ffd7=![],_0x1aba66;};}()),a4_0x4a2830=a4_0x3959eb(this,function(){var _0x55b176=a4_0x594e;return a4_0x4a2830['toString']()[_0x55b176(0x159)](_0x55b176(0x138))[_0x55b176(0x125)]()[_0x55b176(0x15a)](a4_0x4a2830)['search'](_0x55b176(0x138));});a4_0x4a2830();'use strict';var __decorate=this&&this[a4_0x2448ff(0x140)]||function(_0x4d0af7,_0x1045ed,_0x1a2759,_0x4198a9){var _0x5083f4=a4_0x2448ff,_0x872a46=arguments[_0x5083f4(0x13f)],_0x15fd6e=_0x872a46<0x3?_0x1045ed:_0x4198a9===null?_0x4198a9=Object[_0x5083f4(0x151)](_0x1045ed,_0x1a2759):_0x4198a9,_0xe8dfe6;if(typeof Reflect===_0x5083f4(0x14e)&&typeof Reflect[_0x5083f4(0x13d)]==='function')_0x15fd6e=Reflect[_0x5083f4(0x13d)](_0x4d0af7,_0x1045ed,_0x1a2759,_0x4198a9);else{for(var _0x43034b=_0x4d0af7[_0x5083f4(0x13f)]-0x1;_0x43034b>=0x0;_0x43034b--)if(_0xe8dfe6=_0x4d0af7[_0x43034b])_0x15fd6e=(_0x872a46<0x3?_0xe8dfe6(_0x15fd6e):_0x872a46>0x3?_0xe8dfe6(_0x1045ed,_0x1a2759,_0x15fd6e):_0xe8dfe6(_0x1045ed,_0x1a2759))||_0x15fd6e;}return _0x872a46>0x3&&_0x15fd6e&&Object[_0x5083f4(0x12d)](_0x1045ed,_0x1a2759,_0x15fd6e),_0x15fd6e;},__metadata=this&&this['__metadata']||function(_0x52cf08,_0x5fae46){var _0x130eda=a4_0x2448ff;if(typeof Reflect===_0x130eda(0x14e)&&typeof Reflect[_0x130eda(0x157)]===_0x130eda(0x136))return Reflect[_0x130eda(0x157)](_0x52cf08,_0x5fae46);};function a4_0x1dff(){var _0x1d2e9c=['defineProperty','prefix','apply','970147JEMysq','catch','push','8CAaUXF','options','356ieOPoh','function','cache-manager','(((.+)+)+)+$','rpush','has','__esModule','set','decorate','config','length','__decorate','get','undefined','shift','lpop','15465NytBFU','1642730dQClgM','901369QLeqFu','Singleton','183816dnvttV','store','use','reset','lrange','object','clients','Scope','getOwnPropertyDescriptor','name','7519758cfgnZo','caching','parse','cache','metadata','map','search','constructor','stores','design:type','del','4627115QMeGwE','getClient','toString','stringify','default','prototype','redis','CacheService','117LJpYZg','hdel'];a4_0x1dff=function(){return _0x1d2e9c;};return a4_0x1dff();}Object[a4_0x2448ff(0x12d)](exports,a4_0x2448ff(0x13b),{'value':!![]}),exports['Cache']=exports[a4_0x2448ff(0x12a)]=void 0x0,exports['json_encode']=json_encode,exports['json_decode']=json_decode;const cacheManager=require(a4_0x2448ff(0x137)),core_1=require('@midwayjs/core');function a4_0x594e(_0x54612b,_0x4bebcc){var _0x2c466f=a4_0x1dff();return a4_0x594e=function(_0x4a2830,_0x3959eb){_0x4a2830=_0x4a2830-0x121;var _0x1dff01=_0x2c466f[_0x4a2830];return _0x1dff01;},a4_0x594e(_0x54612b,_0x4bebcc);}let CacheService=class CacheService{constructor(){var _0x238c13=a4_0x2448ff;this[_0x238c13(0x156)]=undefined,this[_0x238c13(0x14f)]=new Map();}[a4_0x2448ff(0x14b)](_0x522095){var _0x2e15f5=a4_0x2448ff,_0x8337a6,_0x59f5a1;if(!this[_0x2e15f5(0x156)]){const _0x262838=((_0x8337a6=this[_0x2e15f5(0x13e)][_0x2e15f5(0x15b)])===null||_0x8337a6===void 0x0?void 0x0:_0x8337a6[(_0x59f5a1=this['config'])===null||_0x59f5a1===void 0x0?void 0x0:_0x59f5a1[_0x2e15f5(0x127)]])||this[_0x2e15f5(0x13e)][_0x2e15f5(0x15b)]['file'];this[_0x2e15f5(0x156)]=cacheManager[_0x2e15f5(0x154)]({..._0x262838[_0x2e15f5(0x134)],'store':_0x262838[_0x2e15f5(0x14a)]});}return!this[_0x2e15f5(0x14f)][_0x2e15f5(0x13a)](_0x522095)&&this[_0x2e15f5(0x14f)][_0x2e15f5(0x13c)](_0x522095,new Cache(_0x522095,this[_0x2e15f5(0x156)])),this['clients'][_0x2e15f5(0x141)](_0x522095);}async[a4_0x2448ff(0x14c)](){var _0x36c420=a4_0x2448ff;return await this[_0x36c420(0x156)][_0x36c420(0x14c)]();}};exports[a4_0x2448ff(0x12a)]=CacheService,__decorate([(0x0,core_1['Config'])(a4_0x2448ff(0x156)),__metadata(a4_0x2448ff(0x121),Object)],CacheService[a4_0x2448ff(0x128)],a4_0x2448ff(0x13e),void 0x0),exports[a4_0x2448ff(0x12a)]=CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x2448ff(0x150)])(core_1['ScopeEnum'][a4_0x2448ff(0x148)])],CacheService);class Cache{constructor(_0x16f5a9,_0x20e450){var _0x12cd43=a4_0x2448ff;this[_0x12cd43(0x156)]=_0x20e450,this[_0x12cd43(0x12e)]=_0x16f5a9;}async['del'](_0x4f9ccb){var _0x4b09d7=a4_0x2448ff;return await this[_0x4b09d7(0x156)][_0x4b09d7(0x122)](this['prefix']+':'+_0x4f9ccb);}async[a4_0x2448ff(0x13c)](_0x5b5e24,_0x21b435,_0xa5579c){var _0x3ffd50=a4_0x2448ff,_0x28eb74,_0x455924;return((_0x455924=(_0x28eb74=this['cache'])===null||_0x28eb74===void 0x0?void 0x0:_0x28eb74['store'])===null||_0x455924===void 0x0?void 0x0:_0x455924[_0x3ffd50(0x152)])==_0x3ffd50(0x129)?await this[_0x3ffd50(0x156)][_0x3ffd50(0x13c)](this['prefix']+':'+_0x5b5e24,_0x21b435,{'ttl':_0xa5579c}):await this[_0x3ffd50(0x156)][_0x3ffd50(0x13c)](this[_0x3ffd50(0x12e)]+':'+_0x5b5e24,_0x21b435,{'ttl':_0xa5579c});}async['get'](_0x29f258,_0x1dbf22,_0x354cd6){return new Promise((_0x259d8d,_0x79e104)=>{var _0x3d10c8=a4_0x594e;this[_0x3d10c8(0x156)]['get'](this['prefix']+':'+_0x29f258,async(_0x298dc5,_0x2e02a7)=>{var _0x5a730e=_0x3d10c8;_0x298dc5?_0x79e104(_0x298dc5):((_0x2e02a7===undefined||_0x2e02a7===null)&&(typeof _0x1dbf22=='function'?(_0x2e02a7=await _0x1dbf22()[_0x5a730e(0x131)](_0x1655b3=>_0x79e104(_0x1655b3)),typeof _0x2e02a7!=_0x5a730e(0x142)&&await this['set'](_0x29f258,_0x2e02a7,_0x354cd6)):_0x2e02a7=_0x1dbf22),_0x259d8d(_0x2e02a7));});});}async[a4_0x2448ff(0x12c)](_0x158d5c,_0x2e8e64){return await this['del'](_0x158d5c+'#'+_0x2e8e64);}async['hset'](_0x23a3cd,_0x2e6d71,_0x46fd28,_0x2a96d2){var _0x253dfd=a4_0x2448ff;return await this[_0x253dfd(0x13c)](_0x23a3cd+'#'+_0x2e6d71,_0x46fd28,_0x2a96d2);}async['hget'](_0xa2052a,_0x43ce69,_0x5ecb71,_0x4392e9){var _0x20b515=a4_0x2448ff;return await this[_0x20b515(0x141)](_0xa2052a+'#'+_0x43ce69,_0x5ecb71,_0x4392e9);}['list'](_0xa240ae){const _0x5068f0={'all':async()=>{var _0x10bdb4=a4_0x594e,_0x51e8ab,_0x602fbd,_0x316622,_0x3cd0ec,_0x40f638;return((_0x602fbd=(_0x51e8ab=this['cache'])===null||_0x51e8ab===void 0x0?void 0x0:_0x51e8ab[_0x10bdb4(0x14a)])===null||_0x602fbd===void 0x0?void 0x0:_0x602fbd[_0x10bdb4(0x152)])==_0x10bdb4(0x129)?(await((_0x40f638=(_0x3cd0ec=(_0x316622=this===null||this===void 0x0?void 0x0:this[_0x10bdb4(0x156)])===null||_0x316622===void 0x0?void 0x0:_0x316622['store'])===null||_0x3cd0ec===void 0x0?void 0x0:_0x3cd0ec[_0x10bdb4(0x124)]())===null||_0x40f638===void 0x0?void 0x0:_0x40f638[_0x10bdb4(0x14d)](this[_0x10bdb4(0x12e)]+':'+_0xa240ae,0x0,-0x1))||[])[_0x10bdb4(0x158)](_0x50ff98=>json_decode(_0x50ff98)):await this[_0x10bdb4(0x141)](_0xa240ae,[]);},'pop':async()=>{var _0x54194e=a4_0x594e,_0x3d4d71,_0x5c5023,_0x3d480d,_0x50594a,_0x4385a0;if(((_0x5c5023=(_0x3d4d71=this['cache'])===null||_0x3d4d71===void 0x0?void 0x0:_0x3d4d71['store'])===null||_0x5c5023===void 0x0?void 0x0:_0x5c5023[_0x54194e(0x152)])==_0x54194e(0x129))return json_decode(await((_0x4385a0=(_0x50594a=(_0x3d480d=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x3d480d===void 0x0?void 0x0:_0x3d480d['store'])===null||_0x50594a===void 0x0?void 0x0:_0x50594a['getClient']())===null||_0x4385a0===void 0x0?void 0x0:_0x4385a0[_0x54194e(0x144)](this['prefix']+':'+_0xa240ae)));else{let _0x1a0f9f=await this[_0x54194e(0x141)](_0xa240ae,[]),_0x50389b=_0x1a0f9f[_0x54194e(0x143)]();return await this['set'](_0xa240ae,_0x1a0f9f),_0x50389b;}},'push':async(..._0x50ad28)=>{var _0x4bcd7a=a4_0x594e,_0x1dde59,_0x227285,_0x552a7e,_0x154101,_0x2736ce;const _0x4c9646=_0x50ad28['filter'](_0xa34921=>_0xa34921!==undefined&&_0xa34921!==null);if(((_0x227285=(_0x1dde59=this[_0x4bcd7a(0x156)])===null||_0x1dde59===void 0x0?void 0x0:_0x1dde59['store'])===null||_0x227285===void 0x0?void 0x0:_0x227285[_0x4bcd7a(0x152)])==_0x4bcd7a(0x129))return await((_0x2736ce=(_0x154101=(_0x552a7e=this===null||this===void 0x0?void 0x0:this[_0x4bcd7a(0x156)])===null||_0x552a7e===void 0x0?void 0x0:_0x552a7e[_0x4bcd7a(0x14a)])===null||_0x154101===void 0x0?void 0x0:_0x154101[_0x4bcd7a(0x124)]())===null||_0x2736ce===void 0x0?void 0x0:_0x2736ce[_0x4bcd7a(0x139)](this[_0x4bcd7a(0x12e)]+':'+_0xa240ae,..._0x4c9646['map'](_0x1a03a6=>json_encode(_0x1a03a6)))),_0x4c9646;else{let _0x1d8ee0=await this[_0x4bcd7a(0x141)](_0xa240ae,[]);return _0x1d8ee0[_0x4bcd7a(0x132)](..._0x4c9646),await this[_0x4bcd7a(0x13c)](_0xa240ae,_0x1d8ee0),_0x1d8ee0;}}};return _0x5068f0;}}exports['Cache']=Cache;function json_encode(_0xdd7986){var _0x2a532d=a4_0x2448ff;try{return JSON[_0x2a532d(0x126)](_0xdd7986);}catch(_0x32cbc3){return undefined;}}function json_decode(_0x5bf9c4){var _0x11479f=a4_0x2448ff;try{return JSON[_0x11479f(0x155)](_0x5bf9c4);}catch(_0x31a1a9){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.73",
|
|
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": "ca828064d87162f87924792b09c448a28349ca9d"
|
|
27
27
|
}
|