@anncic-api/cache 3.4.8 → 3.4.9
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_0xa13cf=a0_0x384f;(function(_0x33193a,_0x3fe4f4){const _0x3123fe=a0_0x384f,_0x5b95fe=_0x33193a();while(!![]){try{const _0x14bb4f=-parseInt(_0x3123fe(0xa8))/0x1+parseInt(_0x3123fe(0xa2))/0x2+-parseInt(_0x3123fe(0x99))/0x3*(-parseInt(_0x3123fe(0xa7))/0x4)+parseInt(_0x3123fe(0x9d))/0x5+parseInt(_0x3123fe(0x97))/0x6+-parseInt(_0x3123fe(0xab))/0x7*(-parseInt(_0x3123fe(0xa3))/0x8)+-parseInt(_0x3123fe(0xa4))/0x9*(parseInt(_0x3123fe(0x9e))/0xa);if(_0x14bb4f===_0x3fe4f4)break;else _0x5b95fe['push'](_0x5b95fe['shift']());}catch(_0xb16ba5){_0x5b95fe['push'](_0x5b95fe['shift']());}}}(a0_0x249f,0x7fb70));const a0_0x8b21e6=(function(){let _0x55e545=!![];return function(_0x18195e,_0x194b09){const _0xb68b77=_0x55e545?function(){const _0x3e6f75=a0_0x384f;if(_0x194b09){const _0x4150e7=_0x194b09[_0x3e6f75(0x95)](_0x18195e,arguments);return _0x194b09=null,_0x4150e7;}}:function(){};return _0x55e545=![],_0xb68b77;};}()),a0_0x2a4725=a0_0x8b21e6(this,function(){const _0x4a17e5=a0_0x384f;return a0_0x2a4725[_0x4a17e5(0x96)]()[_0x4a17e5(0x9c)](_0x4a17e5(0xa9))[_0x4a17e5(0x96)]()[_0x4a17e5(0x9b)](a0_0x2a4725)[_0x4a17e5(0x9c)]('(((.+)+)+)+$');});a0_0x2a4725();'use strict';function a0_0x249f(){const _0x2d1991=['127.0.0.1','apply','toString','1641936NcRFRK','defineProperty','233931JOsHpI','env','constructor','search','517105GtNlPS','950QveGgP','cache-manager-fs-hash','appDir','default','848050TzowlD','8EakvRx','52974JhgLwV','memory','file','24CjPJuG','503919zRKOqF','(((.+)+)+)+$','cache-manager-ioredis','2220715oIgSei'];a0_0x249f=function(){return _0x2d1991;};return a0_0x249f();}function a0_0x384f(_0x162c66,_0x3cf523){const _0x2554aa=a0_0x249f();return a0_0x384f=function(_0x2a4725,_0x8b21e6){_0x2a4725=_0x2a4725-0x95;let _0x249ffe=_0x2554aa[_0x2a4725];return _0x249ffe;},a0_0x384f(_0x162c66,_0x3cf523);}Object[a0_0xa13cf(0x98)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0xa13cf(0x9f)),redisStore=require(a0_0xa13cf(0xaa));exports[a0_0xa13cf(0xa1)]=_0x15a414=>{const _0x137a58=a0_0xa13cf;return{'cache':{'default':_0x137a58(0xa6),'stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0x15a414[_0x137a58(0xa0)]+'/runtime/.cache'+((_0x15a414===null||_0x15a414===void 0x0?void 0x0:_0x15a414[_0x137a58(0x9a)])?'-'+_0x15a414['env']:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x137a58(0xac),'password':'','ttl':0xed4e00,'keyPrefix':_0x15a414['name']+':'+((_0x15a414===null||_0x15a414===void 0x0?void 0x0:_0x15a414[_0x137a58(0x9a)])?_0x15a414[_0x137a58(0x9a)]+':':'')}},'memory':{'store':_0x137a58(0xa5),'options':{'max':0x64,'ttl':0xed4e00}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x2c6757=a1_0x1c9f;(function(_0x3d0939,_0x3ac8e7){var _0x364191=a1_0x1c9f,_0x38b835=_0x3d0939();while(!![]){try{var _0x9c494e=-parseInt(_0x364191(0xd8))/0x1*(parseInt(_0x364191(0xd0))/0x2)+parseInt(_0x364191(0xc6))/0x3*(parseInt(_0x364191(0xce))/0x4)+-parseInt(_0x364191(0xcb))/0x5+-parseInt(_0x364191(0xcc))/0x6+parseInt(_0x364191(0xd5))/0x7*(parseInt(_0x364191(0xd9))/0x8)+-parseInt(_0x364191(0xc9))/0x9*(parseInt(_0x364191(0xd6))/0xa)+parseInt(_0x364191(0xdd))/0xb;if(_0x9c494e===_0x3ac8e7)break;else _0x38b835['push'](_0x38b835['shift']());}catch(_0x3bf411){_0x38b835['push'](_0x38b835['shift']());}}}(a1_0xab11,0x8b993));function a1_0xab11(){var _0x357cee=['constructor','anncic-api:cache','5769QOESBN','./config/config.default','1051835JkxDnV','5172408UsCUHq','function','1240liOFgE','Configuration','322778ehoNvz','@midwayjs/core','toString','CustomConfiguration','getOwnPropertyDescriptor','2114urKcvA','310sTiJQI','(((.+)+)+)+$','6ckWyqg','15976TzMBKw','search','__esModule','defineProperty','15567541fDBEgG','length','5943MBmHjC'];a1_0xab11=function(){return _0x357cee;};return a1_0xab11();}var a1_0x447084=(function(){var _0x2c0039=!![];return function(_0x5ac32f,_0x19a490){var _0x3045d3=_0x2c0039?function(){if(_0x19a490){var _0x340e32=_0x19a490['apply'](_0x5ac32f,arguments);return _0x19a490=null,_0x340e32;}}:function(){};return _0x2c0039=![],_0x3045d3;};}()),a1_0x18f141=a1_0x447084(this,function(){var _0x2a6e1b=a1_0x1c9f;return a1_0x18f141[_0x2a6e1b(0xd2)]()[_0x2a6e1b(0xda)](_0x2a6e1b(0xd7))[_0x2a6e1b(0xd2)]()[_0x2a6e1b(0xc7)](a1_0x18f141)[_0x2a6e1b(0xda)](_0x2a6e1b(0xd7));});function a1_0x1c9f(_0x14032a,_0x1c4ea1){var _0x537efc=a1_0xab11();return a1_0x1c9f=function(_0x18f141,_0x447084){_0x18f141=_0x18f141-0xc5;var _0xab1175=_0x537efc[_0x18f141];return _0xab1175;},a1_0x1c9f(_0x14032a,_0x1c4ea1);}a1_0x18f141();'use strict';var __decorate=this&&this['__decorate']||function(_0x331902,_0x407d3c,_0x53c03f,_0x3b1e1f){var _0x390365=a1_0x1c9f,_0x6455ee=arguments[_0x390365(0xc5)],_0x568a52=_0x6455ee<0x3?_0x407d3c:_0x3b1e1f===null?_0x3b1e1f=Object[_0x390365(0xd4)](_0x407d3c,_0x53c03f):_0x3b1e1f,_0x1dc41e;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x390365(0xcd))_0x568a52=Reflect['decorate'](_0x331902,_0x407d3c,_0x53c03f,_0x3b1e1f);else{for(var _0x54a7de=_0x331902[_0x390365(0xc5)]-0x1;_0x54a7de>=0x0;_0x54a7de--)if(_0x1dc41e=_0x331902[_0x54a7de])_0x568a52=(_0x6455ee<0x3?_0x1dc41e(_0x568a52):_0x6455ee>0x3?_0x1dc41e(_0x407d3c,_0x53c03f,_0x568a52):_0x1dc41e(_0x407d3c,_0x53c03f))||_0x568a52;}return _0x6455ee>0x3&&_0x568a52&&Object[_0x390365(0xdc)](_0x407d3c,_0x53c03f,_0x568a52),_0x568a52;};Object[a1_0x2c6757(0xdc)](exports,a1_0x2c6757(0xdb),{'value':!![]}),exports[a1_0x2c6757(0xd3)]=void 0x0;const core_1=require(a1_0x2c6757(0xd1)),ConfigDefault=require(a1_0x2c6757(0xca));let CustomConfiguration=class CustomConfiguration{};exports[a1_0x2c6757(0xd3)]=CustomConfiguration,exports['CustomConfiguration']=CustomConfiguration=__decorate([(0x0,core_1[a1_0x2c6757(0xcf)])({'conflictCheck':![],'namespace':a1_0x2c6757(0xc8),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x42fde9=a2_0x58e7;function a2_0x58e7(_0x321f9c,_0x48cd4b){const _0x228fcb=a2_0x5801();return a2_0x58e7=function(_0xc594de,_0x22e416){_0xc594de=_0xc594de-0x79;let _0x580131=_0x228fcb[_0xc594de];return _0x580131;},a2_0x58e7(_0x321f9c,_0x48cd4b);}(function(_0x3543f1,_0x37594a){const _0x25f667=a2_0x58e7,_0x1aed93=_0x3543f1();while(!![]){try{const _0x3eee79=-parseInt(_0x25f667(0x7d))/0x1*(parseInt(_0x25f667(0x84))/0x2)+-parseInt(_0x25f667(0x83))/0x3*(parseInt(_0x25f667(0x86))/0x4)+-parseInt(_0x25f667(0x88))/0x5*(parseInt(_0x25f667(0x97))/0x6)+-parseInt(_0x25f667(0x96))/0x7*(parseInt(_0x25f667(0x8c))/0x8)+-parseInt(_0x25f667(0x7c))/0x9*(parseInt(_0x25f667(0x7f))/0xa)+parseInt(_0x25f667(0x7a))/0xb+-parseInt(_0x25f667(0x87))/0xc*(-parseInt(_0x25f667(0x8b))/0xd);if(_0x3eee79===_0x37594a)break;else _0x1aed93['push'](_0x1aed93['shift']());}catch(_0x550768){_0x1aed93['push'](_0x1aed93['shift']());}}}(a2_0x5801,0x4a548));const a2_0x22e416=(function(){let _0x2ef8fb=!![];return function(_0x4b333c,_0x740368){const _0x52bd8=_0x2ef8fb?function(){const _0xae47b6=a2_0x58e7;if(_0x740368){const _0x409eba=_0x740368[_0xae47b6(0x7b)](_0x4b333c,arguments);return _0x740368=null,_0x409eba;}}:function(){};return _0x2ef8fb=![],_0x52bd8;};}()),a2_0xc594de=a2_0x22e416(this,function(){const _0x2e1b75=a2_0x58e7;return a2_0xc594de[_0x2e1b75(0x93)]()['search'](_0x2e1b75(0x8a))[_0x2e1b75(0x93)]()[_0x2e1b75(0x8e)](a2_0xc594de)[_0x2e1b75(0x91)](_0x2e1b75(0x8a));});a2_0xc594de();'use strict';function a2_0x5801(){const _0x5968ab=['3971904WhpiEV','515wpzGwq','Cache','(((.+)+)+)+$','65AKqiTC','24SDnWWm','stringify','constructor','getAsync','crypto-js','search','__esModule','toString','set','REQUEST_OBJ_CTX_KEY','176827uFLHbm','17322hnUzkp','Method::Decorator','@midwayjs/core','2705395WyySqq','apply','9JeGnxM','1NpqvtV','use','6063100qTxYTS','get','CacheService','../service/CacheService','6AodzZg','196478ovRrew','value','1037512znWWIC'];a2_0x5801=function(){return _0x5968ab;};return a2_0x5801();}Object['defineProperty'](exports,a2_0x42fde9(0x92),{'value':!![]}),exports[a2_0x42fde9(0x89)]=void 0x0;const crypto_js_1=require(a2_0x42fde9(0x90)),CacheService_1=require(a2_0x42fde9(0x82)),core_1=require(a2_0x42fde9(0x79));function Cache(_0x3ebe38,_0x510643){return(_0x2b530c,_0x17b8cf,_0x1b96b8)=>{const _0x1fcbfa=a2_0x58e7,_0xd76bda=_0x1b96b8['value'];return _0x1b96b8[_0x1fcbfa(0x85)]=async function(..._0x500474){const _0x367af8=_0x1fcbfa;!_0x3ebe38&&(_0x3ebe38=(0x0,crypto_js_1['MD5'])(JSON[_0x367af8(0x8d)](_0x500474))[_0x367af8(0x93)]());let _0x3d36df=await this[core_1[_0x367af8(0x95)]]['app']['getApplicationContext']()[_0x367af8(0x8f)](CacheService_1[_0x367af8(0x81)]),_0x336e63=await _0x3d36df[_0x367af8(0x7e)](_0x367af8(0x98))[_0x367af8(0x80)](_0x3ebe38);if(_0x336e63)return JSON['parse'](_0x336e63);else _0x336e63=await _0xd76bda['apply'](this,[..._0x500474]),await _0x3d36df[_0x367af8(0x7e)]('Method::Decorator')[_0x367af8(0x94)](_0x3ebe38,JSON[_0x367af8(0x8d)](_0x336e63),_0x510643);return _0x336e63;},_0x1b96b8;};}exports[a2_0x42fde9(0x89)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a3_0x2ef5(_0x3ee06f,_0x33b229){var _0x56d76b=a3_0x15f3();return a3_0x2ef5=function(_0x1509d3,_0x947e40){_0x1509d3=_0x1509d3-0xb5;var _0x15f382=_0x56d76b[_0x1509d3];return _0x15f382;},a3_0x2ef5(_0x3ee06f,_0x33b229);}function a3_0x15f3(){var _0x214eb9=['26709570rGgpMM','./configuration','apply','__esModule','./service/CacheService','toString','460458NYMqmQ','search','104ElYLCc','3102sFgqHK','(((.+)+)+)+$','Configuration','19824VTBMTM','1655xnvhjt','1879470DFgzmK','356819svLDQs','CacheService','constructor','CustomConfiguration','defineProperty','1068NtQQhY','135747RzrAeL','Cache'];a3_0x15f3=function(){return _0x214eb9;};return a3_0x15f3();}var a3_0x1de5c1=a3_0x2ef5;(function(_0x50f77f,_0x3f373c){var _0x4c2f5e=a3_0x2ef5,_0x455c30=_0x50f77f();while(!![]){try{var _0x4347cc=-parseInt(_0x4c2f5e(0xc0))/0x1+parseInt(_0x4c2f5e(0xb7))/0x2+-parseInt(_0x4c2f5e(0xbf))/0x3+-parseInt(_0x4c2f5e(0xc5))/0x4*(-parseInt(_0x4c2f5e(0xbe))/0x5)+-parseInt(_0x4c2f5e(0xba))/0x6*(parseInt(_0x4c2f5e(0xbd))/0x7)+-parseInt(_0x4c2f5e(0xb9))/0x8*(-parseInt(_0x4c2f5e(0xc6))/0x9)+parseInt(_0x4c2f5e(0xc8))/0xa;if(_0x4347cc===_0x3f373c)break;else _0x455c30['push'](_0x455c30['shift']());}catch(_0x42e63b){_0x455c30['push'](_0x455c30['shift']());}}}(a3_0x15f3,0xb438d));var a3_0x947e40=(function(){var _0x5cbec5=!![];return function(_0x18bdf2,_0xd2a07a){var _0x5679b4=_0x5cbec5?function(){var _0x72386e=a3_0x2ef5;if(_0xd2a07a){var _0x6029b0=_0xd2a07a[_0x72386e(0xca)](_0x18bdf2,arguments);return _0xd2a07a=null,_0x6029b0;}}:function(){};return _0x5cbec5=![],_0x5679b4;};}()),a3_0x1509d3=a3_0x947e40(this,function(){var _0x38c847=a3_0x2ef5;return a3_0x1509d3[_0x38c847(0xb6)]()[_0x38c847(0xb8)](_0x38c847(0xbb))[_0x38c847(0xb6)]()[_0x38c847(0xc2)](a3_0x1509d3)[_0x38c847(0xb8)](_0x38c847(0xbb));});a3_0x1509d3();'use strict';Object['defineProperty'](exports,a3_0x1de5c1(0xcb),{'value':!![]}),exports['CacheService']=exports[a3_0x1de5c1(0xc7)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x1de5c1(0xc9));Object['defineProperty'](exports,a3_0x1de5c1(0xbc),{'enumerable':!![],'get':function(){var _0x27a729=a3_0x1de5c1;return configuration_1[_0x27a729(0xc3)];}});var Cache_1=require('./decorator/Cache');Object[a3_0x1de5c1(0xc4)](exports,a3_0x1de5c1(0xc7),{'enumerable':!![],'get':function(){var _0x40153f=a3_0x1de5c1;return Cache_1[_0x40153f(0xc7)];}});var CacheService_1=require(a3_0x1de5c1(0xb5));Object[a3_0x1de5c1(0xc4)](exports,a3_0x1de5c1(0xc1),{'enumerable':!![],'get':function(){var _0x57c411=a3_0x1de5c1;return CacheService_1[_0x57c411(0xc1)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a4_0x1797ab=a4_0x59b4;(function(_0x2f104e,_0x3d8609){var _0xc3ee1b=a4_0x59b4,_0xfdd6fa=_0x2f104e();while(!![]){try{var _0x3a49ba=-parseInt(_0xc3ee1b(0xcd))/0x1+parseInt(_0xc3ee1b(0xe8))/0x2*(parseInt(_0xc3ee1b(0xca))/0x3)+parseInt(_0xc3ee1b(0xeb))/0x4*(-parseInt(_0xc3ee1b(0xcb))/0x5)+parseInt(_0xc3ee1b(0xde))/0x6+parseInt(_0xc3ee1b(0xdb))/0x7*(-parseInt(_0xc3ee1b(0xcf))/0x8)+parseInt(_0xc3ee1b(0xe6))/0x9*(parseInt(_0xc3ee1b(0xd5))/0xa)+parseInt(_0xc3ee1b(0xe7))/0xb*(parseInt(_0xc3ee1b(0xee))/0xc);if(_0x3a49ba===_0x3d8609)break;else _0xfdd6fa['push'](_0xfdd6fa['shift']());}catch(_0x90da08){_0xfdd6fa['push'](_0xfdd6fa['shift']());}}}(a4_0x220b,0xc983c));var a4_0x486baf=(function(){var _0xfe24f6=!![];return function(_0x20c2fa,_0x590cfb){var _0x2150c0=_0xfe24f6?function(){var _0x4f965e=a4_0x59b4;if(_0x590cfb){var _0x351781=_0x590cfb[_0x4f965e(0xed)](_0x20c2fa,arguments);return _0x590cfb=null,_0x351781;}}:function(){};return _0xfe24f6=![],_0x2150c0;};}()),a4_0x4553fa=a4_0x486baf(this,function(){var _0x2b04c1=a4_0x59b4;return a4_0x4553fa[_0x2b04c1(0xd2)]()['search'](_0x2b04c1(0xd3))[_0x2b04c1(0xd2)]()[_0x2b04c1(0xd1)](a4_0x4553fa)[_0x2b04c1(0xe3)](_0x2b04c1(0xd3));});a4_0x4553fa();function a4_0x59b4(_0xda797,_0x3cd8e5){var _0x3a1be4=a4_0x220b();return a4_0x59b4=function(_0x4553fa,_0x486baf){_0x4553fa=_0x4553fa-0xc9;var _0x220b0b=_0x3a1be4[_0x4553fa];return _0x220b0b;},a4_0x59b4(_0xda797,_0x3cd8e5);}'use strict';var __decorate=this&&this['__decorate']||function(_0x36afc0,_0x1f0bc6,_0x2df374,_0x3a555f){var _0x2e624b=a4_0x59b4,_0x34b829=arguments[_0x2e624b(0xcc)],_0x5b5a6c=_0x34b829<0x3?_0x1f0bc6:_0x3a555f===null?_0x3a555f=Object[_0x2e624b(0xe5)](_0x1f0bc6,_0x2df374):_0x3a555f,_0x640277;if(typeof Reflect==='object'&&typeof Reflect[_0x2e624b(0xdd)]===_0x2e624b(0xce))_0x5b5a6c=Reflect[_0x2e624b(0xdd)](_0x36afc0,_0x1f0bc6,_0x2df374,_0x3a555f);else{for(var _0x4e50b1=_0x36afc0[_0x2e624b(0xcc)]-0x1;_0x4e50b1>=0x0;_0x4e50b1--)if(_0x640277=_0x36afc0[_0x4e50b1])_0x5b5a6c=(_0x34b829<0x3?_0x640277(_0x5b5a6c):_0x34b829>0x3?_0x640277(_0x1f0bc6,_0x2df374,_0x5b5a6c):_0x640277(_0x1f0bc6,_0x2df374))||_0x5b5a6c;}return _0x34b829>0x3&&_0x5b5a6c&&Object[_0x2e624b(0xfa)](_0x1f0bc6,_0x2df374,_0x5b5a6c),_0x5b5a6c;},__metadata=this&&this[a4_0x1797ab(0xd7)]||function(_0x2c30dd,_0x2d3f25){var _0x2e2173=a4_0x1797ab;if(typeof Reflect===_0x2e2173(0xdc)&&typeof Reflect[_0x2e2173(0xf1)]===_0x2e2173(0xce))return Reflect[_0x2e2173(0xf1)](_0x2c30dd,_0x2d3f25);};Object[a4_0x1797ab(0xfa)](exports,a4_0x1797ab(0xf2),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require('cache-manager'),core_1=require(a4_0x1797ab(0xe0));function a4_0x220b(){var _0x3d778e=['3552900wDbXvH','hget','@midwayjs/core','prefix','CacheService','search','Scope','getOwnPropertyDescriptor','6689241fPcEiu','407yGebMr','1266686wUglZT','store','get','1704364Cwfhme','use','apply','421716QumxFx','has','del','metadata','__esModule','Singleton','Config','caching','set','config','hset','design:type','defineProperty','ScopeEnum','3gukSoa','5aUjoyq','length','697170jkpfxQ','function','188624MQDHEs','hdel','constructor','toString','(((.+)+)+)+$','cache','10UrIdHF','reset','__metadata','Provide','stores','clients','392wJaSdn','object','decorate'];a4_0x220b=function(){return _0x3d778e;};return a4_0x220b();}let CacheService=class CacheService{constructor(){var _0x196fef=a4_0x1797ab;this[_0x196fef(0xd4)]=undefined,this[_0x196fef(0xda)]=new Map();}[a4_0x1797ab(0xec)](_0x5b3135){var _0x450212=a4_0x1797ab,_0x43324a,_0x230ea6;if(!this[_0x450212(0xd4)]){const _0x42931e=((_0x43324a=this[_0x450212(0xf7)][_0x450212(0xd9)])===null||_0x43324a===void 0x0?void 0x0:_0x43324a[(_0x230ea6=this[_0x450212(0xf7)])===null||_0x230ea6===void 0x0?void 0x0:_0x230ea6['default']])||this[_0x450212(0xf7)][_0x450212(0xd9)]['file'];this[_0x450212(0xd4)]=cacheManager[_0x450212(0xf5)]({..._0x42931e['options'],'store':_0x42931e[_0x450212(0xe9)]});}return!this[_0x450212(0xda)][_0x450212(0xef)](_0x5b3135)&&this[_0x450212(0xda)][_0x450212(0xf6)](_0x5b3135,new CacheHandler(_0x5b3135,this[_0x450212(0xd4)])),this['clients'][_0x450212(0xea)](_0x5b3135);}async[a4_0x1797ab(0xd6)](){var _0x1c89d5=a4_0x1797ab;return await this['cache'][_0x1c89d5(0xd6)]();}};exports[a4_0x1797ab(0xe2)]=CacheService,__decorate([(0x0,core_1[a4_0x1797ab(0xf4)])(a4_0x1797ab(0xd4)),__metadata(a4_0x1797ab(0xf9),Object)],CacheService['prototype'],a4_0x1797ab(0xf7),void 0x0),exports[a4_0x1797ab(0xe2)]=CacheService=__decorate([(0x0,core_1[a4_0x1797ab(0xd8)])(),(0x0,core_1[a4_0x1797ab(0xe4)])(core_1[a4_0x1797ab(0xc9)][a4_0x1797ab(0xf3)])],CacheService);class CacheHandler{constructor(_0x5667d8,_0x3ecda3){var _0x5a4a66=a4_0x1797ab;this[_0x5a4a66(0xd4)]=_0x3ecda3,this['prefix']=_0x5667d8;}async[a4_0x1797ab(0xf0)](_0x4b64bb){var _0x21cedd=a4_0x1797ab;return await this[_0x21cedd(0xd4)][_0x21cedd(0xf0)](this[_0x21cedd(0xe1)]+':'+_0x4b64bb);}async['set'](_0xaf4ac2,_0x372208,_0x1ef6f7){var _0x3d5fa8=a4_0x1797ab;return await this[_0x3d5fa8(0xd4)][_0x3d5fa8(0xf6)](this[_0x3d5fa8(0xe1)]+':'+_0xaf4ac2,_0x372208,_0x1ef6f7);}async[a4_0x1797ab(0xea)](_0x3ddc1f,_0x3eb35b){return new Promise((_0x41f614,_0x3b07bc)=>{var _0x3e0656=a4_0x59b4;this['cache'][_0x3e0656(0xea)](this[_0x3e0656(0xe1)]+':'+_0x3ddc1f,(_0x40d49c,_0x851dcb)=>{_0x40d49c?_0x3b07bc(_0x40d49c):_0x41f614(_0x851dcb||_0x3eb35b);});});}async[a4_0x1797ab(0xd0)](_0x3812fa,_0x50ee2){return await this['del'](_0x3812fa+'#'+_0x50ee2);}async[a4_0x1797ab(0xf8)](_0x28eb33,_0x5e7d2a,_0x9a6e24,_0xd49b33){var _0x2bf214=a4_0x1797ab;return await this[_0x2bf214(0xf6)](_0x28eb33+'#'+_0x5e7d2a,_0x9a6e24,_0xd49b33);}async[a4_0x1797ab(0xdf)](_0x3028fb,_0x2523ed,_0x53318a){var _0x107b55=a4_0x1797ab;return await this[_0x107b55(0xea)](_0x3028fb+'#'+_0x2523ed,_0x53318a);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.9",
|
|
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.1.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "6d493e304dc1e1bed59f5e66f49fdb01e46c616d"
|
|
27
27
|
}
|