@anncic-api/cache 3.0.3 → 3.0.4
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
|
+
function a0_0x4367(_0x73df40,_0x432586){const _0x21fc28=a0_0x1e28();return a0_0x4367=function(_0x7c38c1,_0x437019){_0x7c38c1=_0x7c38c1-0x192;let _0x1e28f6=_0x21fc28[_0x7c38c1];return _0x1e28f6;},a0_0x4367(_0x73df40,_0x432586);}const a0_0x2002fd=a0_0x4367;function a0_0x1e28(){const _0x199b2b=['apply','/runtime/.cache','1841330VlnIiR','20498885tePVgo','3292816XHSrRH','toString','10IuNQSo','8108JfOWWu','search','127.0.0.1','6soJkVX','4632642mRlwMP','memory','140281JhjvTf','constructor','(((.+)+)+)+$','defineProperty','8UmQbeF','536727mqcihU','9FvPPgB','__esModule','name','appDir'];a0_0x1e28=function(){return _0x199b2b;};return a0_0x1e28();}(function(_0x5527d4,_0x294fda){const _0x4b6e25=a0_0x4367,_0x399d7d=_0x5527d4();while(!![]){try{const _0x100c83=parseInt(_0x4b6e25(0x1a8))/0x1+-parseInt(_0x4b6e25(0x195))/0x2*(parseInt(_0x4b6e25(0x196))/0x3)+parseInt(_0x4b6e25(0x1a2))/0x4*(-parseInt(_0x4b6e25(0x1a1))/0x5)+-parseInt(_0x4b6e25(0x1a5))/0x6*(parseInt(_0x4b6e25(0x1a6))/0x7)+-parseInt(_0x4b6e25(0x19f))/0x8+-parseInt(_0x4b6e25(0x197))/0x9*(-parseInt(_0x4b6e25(0x19d))/0xa)+parseInt(_0x4b6e25(0x19e))/0xb;if(_0x100c83===_0x294fda)break;else _0x399d7d['push'](_0x399d7d['shift']());}catch(_0x45133f){_0x399d7d['push'](_0x399d7d['shift']());}}}(a0_0x1e28,0x60663));const a0_0x437019=(function(){let _0x44cf26=!![];return function(_0x5cec28,_0x14cc4d){const _0x15cc39=_0x44cf26?function(){const _0x2b775a=a0_0x4367;if(_0x14cc4d){const _0x4afbad=_0x14cc4d[_0x2b775a(0x19b)](_0x5cec28,arguments);return _0x14cc4d=null,_0x4afbad;}}:function(){};return _0x44cf26=![],_0x15cc39;};}()),a0_0x7c38c1=a0_0x437019(this,function(){const _0x37c4b7=a0_0x4367;return a0_0x7c38c1[_0x37c4b7(0x1a0)]()[_0x37c4b7(0x1a3)](_0x37c4b7(0x193))[_0x37c4b7(0x1a0)]()[_0x37c4b7(0x192)](a0_0x7c38c1)[_0x37c4b7(0x1a3)](_0x37c4b7(0x193));});a0_0x7c38c1();'use strict';Object[a0_0x2002fd(0x194)](exports,a0_0x2002fd(0x198),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require('cache-manager-ioredis');exports['default']=_0xab056c=>{const _0x3d6723=a0_0x2002fd;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0xab056c[_0x3d6723(0x19a)]+_0x3d6723(0x19c)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x3d6723(0x1a4),'password':'','ttl':0x1e13380,'keyPrefix':_0xab056c[_0x3d6723(0x199)]+':'}},'memory':{'store':_0x3d6723(0x1a7),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x52c6c8=a1_0x1a2e;(function(_0x58a2b2,_0x3ea9c5){var _0x38f8de=a1_0x1a2e,_0x3eee98=_0x58a2b2();while(!![]){try{var _0x3000a6=-parseInt(_0x38f8de(0xa5))/0x1+-parseInt(_0x38f8de(0xa8))/0x2*(parseInt(_0x38f8de(0x94))/0x3)+parseInt(_0x38f8de(0x9d))/0x4*(-parseInt(_0x38f8de(0xa0))/0x5)+-parseInt(_0x38f8de(0x97))/0x6*(-parseInt(_0x38f8de(0xa6))/0x7)+parseInt(_0x38f8de(0x95))/0x8+parseInt(_0x38f8de(0xaa))/0x9*(parseInt(_0x38f8de(0xac))/0xa)+-parseInt(_0x38f8de(0xa3))/0xb;if(_0x3000a6===_0x3ea9c5)break;else _0x3eee98['push'](_0x3eee98['shift']());}catch(_0x179242){_0x3eee98['push'](_0x3eee98['shift']());}}}(a1_0x39d6,0x8ca7b));var a1_0x43c609=(function(){var _0x3c5291=!![];return function(_0x2025d8,_0x3e84ef){var _0x6d6e9b=_0x3c5291?function(){var _0x166135=a1_0x1a2e;if(_0x3e84ef){var _0xf13ebf=_0x3e84ef[_0x166135(0xa2)](_0x2025d8,arguments);return _0x3e84ef=null,_0xf13ebf;}}:function(){};return _0x3c5291=![],_0x6d6e9b;};}()),a1_0x307966=a1_0x43c609(this,function(){var _0x4a2af6=a1_0x1a2e;return a1_0x307966[_0x4a2af6(0xa9)]()[_0x4a2af6(0xab)](_0x4a2af6(0x96))['toString']()[_0x4a2af6(0xae)](a1_0x307966)['search'](_0x4a2af6(0x96));});a1_0x307966();function a1_0x39d6(){var _0x9a189d=['defineProperty','anncic-api:cache','__esModule','./config/config.default','getOwnPropertyDescriptor','676LiPSzT','CustomConfiguration','length','205TsxnGr','@midwayjs/core','apply','2573362CByJrV','Configuration','240777kIKXiu','21BPVCrQ','__decorate','78obsMcN','toString','9eNRQFC','search','6508730biQcAj','function','constructor','decorate','object','68346sfjDdB','1215400vrhAJl','(((.+)+)+)+$','2286942OVUmmy'];a1_0x39d6=function(){return _0x9a189d;};return a1_0x39d6();}'use strict';var __decorate=this&&this[a1_0x52c6c8(0xa7)]||function(_0xca630,_0x1e945d,_0x87e779,_0x17c1ba){var _0x22a445=a1_0x52c6c8,_0x3b80a8=arguments[_0x22a445(0x9f)],_0x4945e0=_0x3b80a8<0x3?_0x1e945d:_0x17c1ba===null?_0x17c1ba=Object[_0x22a445(0x9c)](_0x1e945d,_0x87e779):_0x17c1ba,_0x16812c;if(typeof Reflect===_0x22a445(0x93)&&typeof Reflect['decorate']===_0x22a445(0xad))_0x4945e0=Reflect[_0x22a445(0x92)](_0xca630,_0x1e945d,_0x87e779,_0x17c1ba);else{for(var _0x6ed029=_0xca630['length']-0x1;_0x6ed029>=0x0;_0x6ed029--)if(_0x16812c=_0xca630[_0x6ed029])_0x4945e0=(_0x3b80a8<0x3?_0x16812c(_0x4945e0):_0x3b80a8>0x3?_0x16812c(_0x1e945d,_0x87e779,_0x4945e0):_0x16812c(_0x1e945d,_0x87e779))||_0x4945e0;}return _0x3b80a8>0x3&&_0x4945e0&&Object['defineProperty'](_0x1e945d,_0x87e779,_0x4945e0),_0x4945e0;};Object[a1_0x52c6c8(0x98)](exports,a1_0x52c6c8(0x9a),{'value':!![]}),exports[a1_0x52c6c8(0x9e)]=void 0x0;const core_1=require(a1_0x52c6c8(0xa1)),ConfigDefault=require(a1_0x52c6c8(0x9b));let CustomConfiguration=class CustomConfiguration{};function a1_0x1a2e(_0x34c37b,_0x362d1d){var _0x25e85f=a1_0x39d6();return a1_0x1a2e=function(_0x307966,_0x43c609){_0x307966=_0x307966-0x92;var _0x39d611=_0x25e85f[_0x307966];return _0x39d611;},a1_0x1a2e(_0x34c37b,_0x362d1d);}CustomConfiguration=__decorate([(0x0,core_1[a1_0x52c6c8(0xa4)])({'conflictCheck':![],'namespace':a1_0x52c6c8(0x99),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x52c6c8(0x9e)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a2_0x1a1f(_0x1ec989,_0x55e82f){const _0x1a6dd8=a2_0x1927();return a2_0x1a1f=function(_0x1c8d4b,_0x4144db){_0x1c8d4b=_0x1c8d4b-0x112;let _0x192738=_0x1a6dd8[_0x1c8d4b];return _0x192738;},a2_0x1a1f(_0x1ec989,_0x55e82f);}const a2_0x303bbd=a2_0x1a1f;(function(_0x4df155,_0x483c19){const _0x3dca65=a2_0x1a1f,_0x2af5b2=_0x4df155();while(!![]){try{const _0x52eb53=parseInt(_0x3dca65(0x113))/0x1*(-parseInt(_0x3dca65(0x124))/0x2)+-parseInt(_0x3dca65(0x11f))/0x3*(-parseInt(_0x3dca65(0x12d))/0x4)+-parseInt(_0x3dca65(0x12b))/0x5+-parseInt(_0x3dca65(0x11b))/0x6+parseInt(_0x3dca65(0x118))/0x7+-parseInt(_0x3dca65(0x125))/0x8+parseInt(_0x3dca65(0x127))/0x9*(parseInt(_0x3dca65(0x114))/0xa);if(_0x52eb53===_0x483c19)break;else _0x2af5b2['push'](_0x2af5b2['shift']());}catch(_0x536bbd){_0x2af5b2['push'](_0x2af5b2['shift']());}}}(a2_0x1927,0xc0453));const a2_0x4144db=(function(){let _0x3c0f60=!![];return function(_0x29c0cd,_0x147fa3){const _0x4938c0=_0x3c0f60?function(){if(_0x147fa3){const _0x5d8a77=_0x147fa3['apply'](_0x29c0cd,arguments);return _0x147fa3=null,_0x5d8a77;}}:function(){};return _0x3c0f60=![],_0x4938c0;};}()),a2_0x1c8d4b=a2_0x4144db(this,function(){const _0x57825a=a2_0x1a1f;return a2_0x1c8d4b[_0x57825a(0x11c)]()[_0x57825a(0x120)](_0x57825a(0x115))[_0x57825a(0x11c)]()[_0x57825a(0x11a)](a2_0x1c8d4b)['search'](_0x57825a(0x115));});a2_0x1c8d4b();'use strict';Object[a2_0x303bbd(0x128)](exports,a2_0x303bbd(0x11e),{'value':!![]}),exports[a2_0x303bbd(0x116)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function a2_0x1927(){const _0x47ba35=['114lRhnRG','search','parse','value','Method::Decorator','118498JxbAkE','2024816YMDtMd','use','9976401rVdheY','defineProperty','set','MD5','6812015LOamnh','get','52944ELZAio','getAsync','CacheService','11oQbWDw','10jKZKAz','(((.+)+)+)+$','Cache','stringify','10648568FplKyx','apply','constructor','467388iAusnY','toString','REQUEST_OBJ_CTX_KEY','__esModule'];a2_0x1927=function(){return _0x47ba35;};return a2_0x1927();}function Cache(_0x568d94,_0x480a97){return(_0x2ca984,_0x8beb6b,_0x402f95)=>{const _0x3f7262=a2_0x1a1f,_0x52b414=_0x402f95[_0x3f7262(0x122)];return _0x402f95['value']=async function(..._0x67e86a){const _0xb094ce=_0x3f7262;!_0x568d94&&(_0x568d94=(0x0,crypto_js_1[_0xb094ce(0x12a)])(JSON[_0xb094ce(0x117)](_0x67e86a))[_0xb094ce(0x11c)]());let _0x33d8d8=await this[core_1[_0xb094ce(0x11d)]]['app']['getApplicationContext']()[_0xb094ce(0x12e)](CacheService_1[_0xb094ce(0x112)]),_0x10c9ee=await _0x33d8d8[_0xb094ce(0x126)]('Method::Decorator')[_0xb094ce(0x12c)](_0x568d94);if(_0x10c9ee)return JSON[_0xb094ce(0x121)](_0x10c9ee);else _0x10c9ee=await _0x52b414[_0xb094ce(0x119)](this,[..._0x67e86a]),await _0x33d8d8[_0xb094ce(0x126)](_0xb094ce(0x123))[_0xb094ce(0x129)](_0x568d94,JSON['stringify'](_0x10c9ee),_0x480a97);return _0x10c9ee;},_0x402f95;};}exports[a2_0x303bbd(0x116)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x276f12=a3_0x39d8;(function(_0x5d5cfa,_0x8cafcf){var _0x1139e9=a3_0x39d8,_0x40eb98=_0x5d5cfa();while(!![]){try{var _0x10a45c=parseInt(_0x1139e9(0x167))/0x1*(-parseInt(_0x1139e9(0x15b))/0x2)+-parseInt(_0x1139e9(0x166))/0x3*(parseInt(_0x1139e9(0x16a))/0x4)+parseInt(_0x1139e9(0x169))/0x5*(-parseInt(_0x1139e9(0x163))/0x6)+-parseInt(_0x1139e9(0x16b))/0x7*(parseInt(_0x1139e9(0x156))/0x8)+parseInt(_0x1139e9(0x164))/0x9+-parseInt(_0x1139e9(0x157))/0xa+parseInt(_0x1139e9(0x15f))/0xb*(parseInt(_0x1139e9(0x162))/0xc);if(_0x10a45c===_0x8cafcf)break;else _0x40eb98['push'](_0x40eb98['shift']());}catch(_0x9b7d8c){_0x40eb98['push'](_0x40eb98['shift']());}}}(a3_0x42a3,0xa1dfa));var a3_0x21f53a=(function(){var _0x27f924=!![];return function(_0xbe98,_0x401a55){var _0x38f2bc=_0x27f924?function(){if(_0x401a55){var _0x4c5310=_0x401a55['apply'](_0xbe98,arguments);return _0x401a55=null,_0x4c5310;}}:function(){};return _0x27f924=![],_0x38f2bc;};}()),a3_0x31c0fe=a3_0x21f53a(this,function(){var _0x2924b4=a3_0x39d8;return a3_0x31c0fe[_0x2924b4(0x161)]()[_0x2924b4(0x15c)](_0x2924b4(0x168))['toString']()[_0x2924b4(0x160)](a3_0x31c0fe)[_0x2924b4(0x15c)]('(((.+)+)+)+$');});a3_0x31c0fe();'use strict';Object[a3_0x276f12(0x15a)](exports,'__esModule',{'value':!![]}),exports[a3_0x276f12(0x15d)]=exports['Cache']=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x276f12(0x158));Object[a3_0x276f12(0x15a)](exports,a3_0x276f12(0x165),{'enumerable':!![],'get':function(){var _0x24e4dd=a3_0x276f12;return configuration_1[_0x24e4dd(0x159)];}});function a3_0x42a3(){var _0x34edd3=['./configuration','CustomConfiguration','defineProperty','1404484YuXUvi','search','CacheService','Cache','473pLEqrw','constructor','toString','994164NDZCLo','17406ohfKRV','4971303mqgxpH','Configuration','57iiKhab','1YXsUDr','(((.+)+)+)+$','1495jehQwb','122084GYLQGS','7KUrCcn','./decorator/Cache','3419128fciLFu','8748230ZmliYQ'];a3_0x42a3=function(){return _0x34edd3;};return a3_0x42a3();}function a3_0x39d8(_0xb1b530,_0x4667cd){var _0xb159b=a3_0x42a3();return a3_0x39d8=function(_0x31c0fe,_0x21f53a){_0x31c0fe=_0x31c0fe-0x155;var _0x42a38c=_0xb159b[_0x31c0fe];return _0x42a38c;},a3_0x39d8(_0xb1b530,_0x4667cd);}var Cache_1=require(a3_0x276f12(0x155));Object['defineProperty'](exports,a3_0x276f12(0x15e),{'enumerable':!![],'get':function(){var _0x137093=a3_0x276f12;return Cache_1[_0x137093(0x15e)];}});var CacheService_1=require('./service/CacheService');Object['defineProperty'](exports,a3_0x276f12(0x15d),{'enumerable':!![],'get':function(){var _0x18558c=a3_0x276f12;return CacheService_1[_0x18558c(0x15d)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a4_0x3b1a(_0x2ce7ca,_0x24e33e){var _0x48a822=a4_0x55e0();return a4_0x3b1a=function(_0x20e2dc,_0x254f27){_0x20e2dc=_0x20e2dc-0x9a;var _0x55e00f=_0x48a822[_0x20e2dc];return _0x55e00f;},a4_0x3b1a(_0x2ce7ca,_0x24e33e);}var a4_0xef08b0=a4_0x3b1a;(function(_0x14d769,_0x5ed43e){var _0x58924e=a4_0x3b1a,_0x2ede86=_0x14d769();while(!![]){try{var _0x3c744d=-parseInt(_0x58924e(0xbc))/0x1*(parseInt(_0x58924e(0xc5))/0x2)+-parseInt(_0x58924e(0xad))/0x3+parseInt(_0x58924e(0xb8))/0x4+parseInt(_0x58924e(0xbb))/0x5+-parseInt(_0x58924e(0xac))/0x6+-parseInt(_0x58924e(0xa4))/0x7*(-parseInt(_0x58924e(0xa8))/0x8)+parseInt(_0x58924e(0xb6))/0x9;if(_0x3c744d===_0x5ed43e)break;else _0x2ede86['push'](_0x2ede86['shift']());}catch(_0x1a4140){_0x2ede86['push'](_0x2ede86['shift']());}}}(a4_0x55e0,0x7bb4f));var a4_0x254f27=(function(){var _0x387e7e=!![];return function(_0xb008c9,_0x2b29c3){var _0x4fdfd9=_0x387e7e?function(){var _0x40815b=a4_0x3b1a;if(_0x2b29c3){var _0x3fe913=_0x2b29c3[_0x40815b(0xb5)](_0xb008c9,arguments);return _0x2b29c3=null,_0x3fe913;}}:function(){};return _0x387e7e=![],_0x4fdfd9;};}()),a4_0x20e2dc=a4_0x254f27(this,function(){var _0x50cefd=a4_0x3b1a;return a4_0x20e2dc[_0x50cefd(0xc1)]()['search'](_0x50cefd(0xc3))[_0x50cefd(0xc1)]()['constructor'](a4_0x20e2dc)[_0x50cefd(0xb7)](_0x50cefd(0xc3));});a4_0x20e2dc();'use strict';var __decorate=this&&this[a4_0xef08b0(0x9c)]||function(_0x3e95d4,_0x4c32f6,_0x49c9e3,_0xa4fbff){var _0x44cb7e=a4_0xef08b0,_0x2e9c5f=arguments['length'],_0x49b3fc=_0x2e9c5f<0x3?_0x4c32f6:_0xa4fbff===null?_0xa4fbff=Object[_0x44cb7e(0xaf)](_0x4c32f6,_0x49c9e3):_0xa4fbff,_0x18064d;if(typeof Reflect===_0x44cb7e(0xa6)&&typeof Reflect[_0x44cb7e(0xa1)]===_0x44cb7e(0xb2))_0x49b3fc=Reflect[_0x44cb7e(0xa1)](_0x3e95d4,_0x4c32f6,_0x49c9e3,_0xa4fbff);else{for(var _0x31042f=_0x3e95d4[_0x44cb7e(0xba)]-0x1;_0x31042f>=0x0;_0x31042f--)if(_0x18064d=_0x3e95d4[_0x31042f])_0x49b3fc=(_0x2e9c5f<0x3?_0x18064d(_0x49b3fc):_0x2e9c5f>0x3?_0x18064d(_0x4c32f6,_0x49c9e3,_0x49b3fc):_0x18064d(_0x4c32f6,_0x49c9e3))||_0x49b3fc;}return _0x2e9c5f>0x3&&_0x49b3fc&&Object[_0x44cb7e(0xc0)](_0x4c32f6,_0x49c9e3,_0x49b3fc),_0x49b3fc;},__metadata=this&&this[a4_0xef08b0(0xa3)]||function(_0x558db1,_0xa961){var _0x196652=a4_0xef08b0;if(typeof Reflect===_0x196652(0xa6)&&typeof Reflect[_0x196652(0xa7)]===_0x196652(0xb2))return Reflect[_0x196652(0xa7)](_0x558db1,_0xa961);};Object[a4_0xef08b0(0xc0)](exports,a4_0xef08b0(0xb1),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require(a4_0xef08b0(0xb0)),core_1=require(a4_0xef08b0(0xbf));function a4_0x55e0(){var _0xd796a7=['reset','(((.+)+)+)+$','prefix','2aawSAF','Provide','store','__decorate','Scope','use','CacheService','design:type','decorate','default','__metadata','198429txLNCF','Singleton','object','metadata','24PCipYt','get','Config','has','563400sfKKrd','16146cmdGXu','cache','getOwnPropertyDescriptor','cache-manager','__esModule','function','del','clients','apply','377757SSnLnZ','search','368956lgFHZm','set','length','3791330lRCjBb','371534uCwzRD','stores','config','@midwayjs/core','defineProperty','toString'];a4_0x55e0=function(){return _0xd796a7;};return a4_0x55e0();}let CacheService=class CacheService{constructor(){var _0x234013=a4_0xef08b0;this[_0x234013(0xae)]=undefined,this[_0x234013(0xb4)]=new Map();}[a4_0xef08b0(0x9e)](_0x54740b){var _0x11fcbc=a4_0xef08b0,_0x155db4,_0x408f4e;if(!this[_0x11fcbc(0xae)]){const _0x431ee1=((_0x155db4=this[_0x11fcbc(0xbe)][_0x11fcbc(0xbd)])===null||_0x155db4===void 0x0?void 0x0:_0x155db4[(_0x408f4e=this[_0x11fcbc(0xbe)][_0x11fcbc(0xae)])===null||_0x408f4e===void 0x0?void 0x0:_0x408f4e[_0x11fcbc(0xa2)]])||this['config'][_0x11fcbc(0xbd)]['file'];this['cache']=cacheManager['caching']({..._0x431ee1['options'],'store':_0x431ee1[_0x11fcbc(0x9b)]});}return!this[_0x11fcbc(0xb4)][_0x11fcbc(0xab)](_0x54740b)&&this[_0x11fcbc(0xb4)][_0x11fcbc(0xb9)](_0x54740b,new CacheHandler(_0x54740b,this[_0x11fcbc(0xae)])),this['clients'][_0x11fcbc(0xa9)](_0x54740b);}async[a4_0xef08b0(0xc2)](){var _0x123f90=a4_0xef08b0;return await this[_0x123f90(0xae)][_0x123f90(0xc2)]();}};__decorate([(0x0,core_1[a4_0xef08b0(0xaa)])(a4_0xef08b0(0xae)),__metadata(a4_0xef08b0(0xa0),Object)],CacheService['prototype'],'config',void 0x0),CacheService=__decorate([(0x0,core_1[a4_0xef08b0(0x9a)])(),(0x0,core_1[a4_0xef08b0(0x9d)])(core_1['ScopeEnum'][a4_0xef08b0(0xa5)])],CacheService),exports[a4_0xef08b0(0x9f)]=CacheService;class CacheHandler{constructor(_0x29d0bf,_0x1915e9){var _0x439ea1=a4_0xef08b0;this[_0x439ea1(0xae)]=_0x1915e9,this[_0x439ea1(0xc4)]=_0x29d0bf;}async[a4_0xef08b0(0xb3)](_0x457030){var _0x42bf02=a4_0xef08b0;return await this['cache'][_0x42bf02(0xb3)](this[_0x42bf02(0xc4)]+':'+_0x457030);}async[a4_0xef08b0(0xb9)](_0x1ef857,_0x47ca27,_0x41209a){var _0x13379f=a4_0xef08b0;return await this['cache'][_0x13379f(0xb9)](this[_0x13379f(0xc4)]+':'+_0x1ef857,_0x47ca27,_0x41209a);}async[a4_0xef08b0(0xa9)](_0x394fca,_0x51d69c){return new Promise((_0x695346,_0x3f3d9f)=>{var _0x4dfa26=a4_0x3b1a;this[_0x4dfa26(0xae)][_0x4dfa26(0xa9)](this[_0x4dfa26(0xc4)]+':'+_0x394fca,(_0x4e2812,_0x7f5252)=>{_0x4e2812?_0x3f3d9f(_0x4e2812):_0x695346(_0x7f5252||_0x51d69c);});});}async['hdel'](_0xb7a66a,_0x187c1c){var _0x20c5ff=a4_0xef08b0;return await this[_0x20c5ff(0xb3)](_0xb7a66a+'#'+_0x187c1c);}async['hset'](_0xac1c9d,_0x102002,_0x11e4af,_0x41d65d){return await this['set'](_0xac1c9d+'#'+_0x102002,_0x11e4af,_0x41d65d);}async['hget'](_0x52adaa,_0x4e54a6,_0xebed65){var _0x4607ab=a4_0xef08b0;return await this[_0x4607ab(0xa9)](_0x52adaa+'#'+_0x4e54a6,_0xebed65);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"javascript-obfuscator": "^4.0.0",
|
|
24
24
|
"typescript": "^4.7.4"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "01631600216047011e684cbd2aff81845e637d94"
|
|
27
27
|
}
|