@anncic-api/cache 1.4.41 → 1.5.1
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_0x194b3d=a0_0x4cc6;(function(_0x5f42b6,_0x204ac8){const _0x4ecc32=a0_0x4cc6,_0x52f852=_0x5f42b6();while(!![]){try{const _0x58b1a6=-parseInt(_0x4ecc32(0x159))/0x1+-parseInt(_0x4ecc32(0x155))/0x2+parseInt(_0x4ecc32(0x14e))/0x3+-parseInt(_0x4ecc32(0x150))/0x4*(-parseInt(_0x4ecc32(0x14f))/0x5)+-parseInt(_0x4ecc32(0x151))/0x6+parseInt(_0x4ecc32(0x15f))/0x7*(-parseInt(_0x4ecc32(0x154))/0x8)+parseInt(_0x4ecc32(0x153))/0x9*(parseInt(_0x4ecc32(0x15c))/0xa);if(_0x58b1a6===_0x204ac8)break;else _0x52f852['push'](_0x52f852['shift']());}catch(_0x362e36){_0x52f852['push'](_0x52f852['shift']());}}}(a0_0xd9b5,0x79bdc));const a0_0x4a06a9=(function(){let _0x4f980a=!![];return function(_0x1616b5,_0x78e136){const _0x392436=_0x4f980a?function(){const _0x2a1651=a0_0x4cc6;if(_0x78e136){const _0x1d4219=_0x78e136[_0x2a1651(0x15d)](_0x1616b5,arguments);return _0x78e136=null,_0x1d4219;}}:function(){};return _0x4f980a=![],_0x392436;};}()),a0_0x28fcd5=a0_0x4a06a9(this,function(){const _0x24f31f=a0_0x4cc6;return a0_0x28fcd5[_0x24f31f(0x14d)]()[_0x24f31f(0x158)](_0x24f31f(0x152))[_0x24f31f(0x14d)]()[_0x24f31f(0x157)](a0_0x28fcd5)[_0x24f31f(0x158)](_0x24f31f(0x152));});a0_0x28fcd5();'use strict';function a0_0x4cc6(_0x40fbc4,_0x52ba38){const _0x5cd217=a0_0xd9b5();return a0_0x4cc6=function(_0x28fcd5,_0x4a06a9){_0x28fcd5=_0x28fcd5-0x14b;let _0xd9b58f=_0x5cd217[_0x28fcd5];return _0xd9b58f;},a0_0x4cc6(_0x40fbc4,_0x52ba38);}Object[a0_0x194b3d(0x15e)](exports,a0_0x194b3d(0x14b),{'value':!![]});const fsStore=require(a0_0x194b3d(0x15b)),redisStore=require('cache-manager-ioredis');function a0_0xd9b5(){const _0x1a6750=['(((.+)+)+)+$','9gYbffP','560OINfZa','196456JaMvAy','/runtime/.cache','constructor','search','486704RJPipn','name','cache-manager-fs-hash','8912780MBQDIa','apply','defineProperty','50309EiktZG','__esModule','127.0.0.1','toString','1336845FXGTGh','2742595SFGttl','4EewNra','1792428SkLuYB'];a0_0xd9b5=function(){return _0x1a6750;};return a0_0xd9b5();}exports['default']=_0x5ac532=>{const _0x2b4085=a0_0x194b3d;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x5ac532['appDir']+_0x2b4085(0x156)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x2b4085(0x14c),'password':'','ttl':0x1e13380,'keyPrefix':_0x5ac532[_0x2b4085(0x15a)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x997b48=a1_0x4dda;(function(_0x4230c9,_0xe54d4a){var _0x1a8f50=a1_0x4dda,_0x1a0610=_0x4230c9();while(!![]){try{var _0x5ea17f=-parseInt(_0x1a8f50(0x114))/0x1*(parseInt(_0x1a8f50(0x122))/0x2)+parseInt(_0x1a8f50(0x125))/0x3+-parseInt(_0x1a8f50(0x11f))/0x4+parseInt(_0x1a8f50(0x117))/0x5+-parseInt(_0x1a8f50(0x116))/0x6*(parseInt(_0x1a8f50(0x11c))/0x7)+-parseInt(_0x1a8f50(0x121))/0x8*(-parseInt(_0x1a8f50(0x126))/0x9)+-parseInt(_0x1a8f50(0x115))/0xa*(parseInt(_0x1a8f50(0x129))/0xb);if(_0x5ea17f===_0xe54d4a)break;else _0x1a0610['push'](_0x1a0610['shift']());}catch(_0x4c9378){_0x1a0610['push'](_0x1a0610['shift']());}}}(a1_0x3368,0xa2769));var a1_0x5d7840=(function(){var _0x12b2c1=!![];return function(_0x49a258,_0x5d44b2){var _0xeee31d=_0x12b2c1?function(){if(_0x5d44b2){var _0x4ce00c=_0x5d44b2['apply'](_0x49a258,arguments);return _0x5d44b2=null,_0x4ce00c;}}:function(){};return _0x12b2c1=![],_0xeee31d;};}()),a1_0x56042e=a1_0x5d7840(this,function(){var _0x319d5a=a1_0x4dda;return a1_0x56042e[_0x319d5a(0x118)]()['search']('(((.+)+)+)+$')[_0x319d5a(0x118)]()[_0x319d5a(0x127)](a1_0x56042e)['search']('(((.+)+)+)+$');});a1_0x56042e();'use strict';var __decorate=this&&this[a1_0x997b48(0x123)]||function(_0x33b324,_0x12c1d9,_0x24455b,_0x1e1af8){var _0x5d9450=a1_0x997b48,_0xdbacd1=arguments[_0x5d9450(0x11d)],_0x58e3de=_0xdbacd1<0x3?_0x12c1d9:_0x1e1af8===null?_0x1e1af8=Object[_0x5d9450(0x12a)](_0x12c1d9,_0x24455b):_0x1e1af8,_0x4ac636;if(typeof Reflect===_0x5d9450(0x128)&&typeof Reflect[_0x5d9450(0x11e)]==='function')_0x58e3de=Reflect[_0x5d9450(0x11e)](_0x33b324,_0x12c1d9,_0x24455b,_0x1e1af8);else{for(var _0x1b9664=_0x33b324[_0x5d9450(0x11d)]-0x1;_0x1b9664>=0x0;_0x1b9664--)if(_0x4ac636=_0x33b324[_0x1b9664])_0x58e3de=(_0xdbacd1<0x3?_0x4ac636(_0x58e3de):_0xdbacd1>0x3?_0x4ac636(_0x12c1d9,_0x24455b,_0x58e3de):_0x4ac636(_0x12c1d9,_0x24455b))||_0x58e3de;}return _0xdbacd1>0x3&&_0x58e3de&&Object[_0x5d9450(0x11b)](_0x12c1d9,_0x24455b,_0x58e3de),_0x58e3de;};function a1_0x4dda(_0x398483,_0x189bc3){var _0x2698e2=a1_0x3368();return a1_0x4dda=function(_0x56042e,_0x5d7840){_0x56042e=_0x56042e-0x114;var _0x33689d=_0x2698e2[_0x56042e];return _0x33689d;},a1_0x4dda(_0x398483,_0x189bc3);}Object['defineProperty'](exports,a1_0x997b48(0x11a),{'value':!![]}),exports[a1_0x997b48(0x119)]=void 0x0;function a1_0x3368(){var _0x340e50=['42wNIWAZ','6196725rLTQti','toString','CustomConfiguration','__esModule','defineProperty','330526rnOtNa','length','decorate','2863436ngNhop','@midwayjs/core','1630136MWeTlu','2016758WzhcWg','__decorate','anncic-api:cache','1455471JyGjjy','45pKeIxW','constructor','object','517QrcLer','getOwnPropertyDescriptor','1BCeZmB','4920TiWKKF'];a1_0x3368=function(){return _0x340e50;};return a1_0x3368();}const core_1=require(a1_0x997b48(0x120)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x997b48(0x124),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x997b48(0x119)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a2_0x470ba9=a2_0x41e2;(function(_0xedadb8,_0xd396d1){const _0x5f4bde=a2_0x41e2,_0x5461ee=_0xedadb8();while(!![]){try{const _0x347b12=-parseInt(_0x5f4bde(0x1ae))/0x1*(parseInt(_0x5f4bde(0x1a9))/0x2)+parseInt(_0x5f4bde(0x1a2))/0x3*(-parseInt(_0x5f4bde(0x1aa))/0x4)+parseInt(_0x5f4bde(0x19d))/0x5+parseInt(_0x5f4bde(0x19e))/0x6+parseInt(_0x5f4bde(0x1ab))/0x7+parseInt(_0x5f4bde(0x1a1))/0x8+-parseInt(_0x5f4bde(0x194))/0x9*(-parseInt(_0x5f4bde(0x1a0))/0xa);if(_0x347b12===_0xd396d1)break;else _0x5461ee['push'](_0x5461ee['shift']());}catch(_0x4af92e){_0x5461ee['push'](_0x5461ee['shift']());}}}(a2_0xf046,0x99c66));const a2_0x28b9fc=(function(){let _0x231c32=!![];return function(_0x53b2a5,_0xea477d){const _0xf5855d=_0x231c32?function(){const _0x2f6b54=a2_0x41e2;if(_0xea477d){const _0x105c1f=_0xea477d[_0x2f6b54(0x1ad)](_0x53b2a5,arguments);return _0xea477d=null,_0x105c1f;}}:function(){};return _0x231c32=![],_0xf5855d;};}()),a2_0x4138f7=a2_0x28b9fc(this,function(){const _0xef127e=a2_0x41e2;return a2_0x4138f7[_0xef127e(0x1a3)]()[_0xef127e(0x19c)]('(((.+)+)+)+$')[_0xef127e(0x1a3)]()[_0xef127e(0x193)](a2_0x4138f7)[_0xef127e(0x19c)](_0xef127e(0x191));});function a2_0xf046(){const _0x10dcac=['9YOveEJ','@midwayjs/core','stringify','Method::Decorator','parse','value','defineProperty','set','search','1992445cxWonX','1670328RNwEej','get','400390RbnYZt','544000JStGFD','887811EDJGzv','toString','use','MD5','../service/CacheService','getAsync','Cache','4RhMJnp','12QJNVop','8595041SUWZwB','REQUEST_OBJ_CTX_KEY','apply','247553ofRPKK','crypto-js','(((.+)+)+)+$','getApplicationContext','constructor'];a2_0xf046=function(){return _0x10dcac;};return a2_0xf046();}a2_0x4138f7();function a2_0x41e2(_0x33fee7,_0x62d71a){const _0x9a5c2=a2_0xf046();return a2_0x41e2=function(_0x4138f7,_0x28b9fc){_0x4138f7=_0x4138f7-0x190;let _0xf046ce=_0x9a5c2[_0x4138f7];return _0xf046ce;},a2_0x41e2(_0x33fee7,_0x62d71a);}'use strict';Object[a2_0x470ba9(0x19a)](exports,'__esModule',{'value':!![]}),exports[a2_0x470ba9(0x1a8)]=void 0x0;const crypto_js_1=require(a2_0x470ba9(0x190)),CacheService_1=require(a2_0x470ba9(0x1a6)),core_1=require(a2_0x470ba9(0x195));function Cache(_0x3628b4,_0x39163e){return(_0x5b8715,_0x4332ae,_0x1cb095)=>{const _0x2481b7=a2_0x41e2,_0x4ef620=_0x1cb095[_0x2481b7(0x199)];return _0x1cb095['value']=async function(..._0x252817){const _0x51d9a6=_0x2481b7;!_0x3628b4&&(_0x3628b4=(0x0,crypto_js_1[_0x51d9a6(0x1a5)])(JSON['stringify'](_0x252817))[_0x51d9a6(0x1a3)]());let _0x49e94c=await this[core_1[_0x51d9a6(0x1ac)]]['app'][_0x51d9a6(0x192)]()[_0x51d9a6(0x1a7)](CacheService_1['CacheService']),_0x1b3b7a=await _0x49e94c[_0x51d9a6(0x1a4)](_0x51d9a6(0x197))[_0x51d9a6(0x19f)](_0x3628b4);if(_0x1b3b7a)return JSON[_0x51d9a6(0x198)](_0x1b3b7a);else _0x1b3b7a=await _0x4ef620[_0x51d9a6(0x1ad)](this,[..._0x252817]),await _0x49e94c[_0x51d9a6(0x1a4)](_0x51d9a6(0x197))[_0x51d9a6(0x19b)](_0x3628b4,JSON[_0x51d9a6(0x196)](_0x1b3b7a),_0x39163e);return _0x1b3b7a;},_0x1cb095;};}exports[a2_0x470ba9(0x1a8)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x475bed=a3_0x33af;(function(_0x2d2e79,_0x56ff0f){var _0x574181=a3_0x33af,_0x8d771c=_0x2d2e79();while(!![]){try{var _0x7facac=parseInt(_0x574181(0x1ba))/0x1*(parseInt(_0x574181(0x1bc))/0x2)+-parseInt(_0x574181(0x1c2))/0x3*(-parseInt(_0x574181(0x1c6))/0x4)+-parseInt(_0x574181(0x1b7))/0x5*(parseInt(_0x574181(0x1c7))/0x6)+-parseInt(_0x574181(0x1b1))/0x7+parseInt(_0x574181(0x1b2))/0x8+-parseInt(_0x574181(0x1be))/0x9*(parseInt(_0x574181(0x1c1))/0xa)+parseInt(_0x574181(0x1c0))/0xb*(parseInt(_0x574181(0x1bd))/0xc);if(_0x7facac===_0x56ff0f)break;else _0x8d771c['push'](_0x8d771c['shift']());}catch(_0x6e624){_0x8d771c['push'](_0x8d771c['shift']());}}}(a3_0x3bff,0xdfd99));var a3_0x5a504a=(function(){var _0xfe205f=!![];return function(_0x42c31d,_0xfbabf0){var _0xa3c14=_0xfe205f?function(){var _0x365e7c=a3_0x33af;if(_0xfbabf0){var _0x2d6222=_0xfbabf0[_0x365e7c(0x1b3)](_0x42c31d,arguments);return _0xfbabf0=null,_0x2d6222;}}:function(){};return _0xfe205f=![],_0xa3c14;};}()),a3_0x312a4b=a3_0x5a504a(this,function(){var _0x48b13a=a3_0x33af;return a3_0x312a4b[_0x48b13a(0x1b5)]()['search'](_0x48b13a(0x1b9))['toString']()['constructor'](a3_0x312a4b)['search'](_0x48b13a(0x1b9));});a3_0x312a4b();function a3_0x33af(_0x2a9e4e,_0x1f29a8){var _0x51c084=a3_0x3bff();return a3_0x33af=function(_0x312a4b,_0x5a504a){_0x312a4b=_0x312a4b-0x1b0;var _0x3bffdd=_0x51c084[_0x312a4b];return _0x3bffdd;},a3_0x33af(_0x2a9e4e,_0x1f29a8);}'use strict';Object[a3_0x475bed(0x1b4)](exports,a3_0x475bed(0x1bb),{'value':!![]}),exports[a3_0x475bed(0x1c5)]=exports[a3_0x475bed(0x1c4)]=exports[a3_0x475bed(0x1b8)]=void 0x0;var configuration_1=require(a3_0x475bed(0x1b6));function a3_0x3bff(){var _0x5a72a9=['defineProperty','toString','./configuration','4634915LcNXxI','Configuration','(((.+)+)+)+$','1WGzdmP','__esModule','2259896XxqkuG','84UkbBjj','159102mndXQx','CustomConfiguration','1688368ledwpo','50gJUBCn','52857JVHNER','./decorator/Cache','Cache','CacheService','116tXYdoF','6KjtLkL','./service/CacheService','6649797xcJGcN','1335344PERxDJ','apply'];a3_0x3bff=function(){return _0x5a72a9;};return a3_0x3bff();}Object[a3_0x475bed(0x1b4)](exports,a3_0x475bed(0x1b8),{'enumerable':!![],'get':function(){var _0x46e54c=a3_0x475bed;return configuration_1[_0x46e54c(0x1bf)];}});var Cache_1=require(a3_0x475bed(0x1c3));Object[a3_0x475bed(0x1b4)](exports,a3_0x475bed(0x1c4),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x475bed(0x1b0));Object[a3_0x475bed(0x1b4)](exports,a3_0x475bed(0x1c5),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x54919a=a4_0x50d1;(function(_0x407b56,_0x1f7d6b){var _0x206a3b=a4_0x50d1,_0x1b37b0=_0x407b56();while(!![]){try{var _0x4a49cf=-parseInt(_0x206a3b(0xc7))/0x1+parseInt(_0x206a3b(0xcf))/0x2*(parseInt(_0x206a3b(0xeb))/0x3)+-parseInt(_0x206a3b(0xf5))/0x4*(parseInt(_0x206a3b(0xe2))/0x5)+parseInt(_0x206a3b(0xc6))/0x6+parseInt(_0x206a3b(0xe8))/0x7+-parseInt(_0x206a3b(0xee))/0x8+parseInt(_0x206a3b(0xd4))/0x9*(parseInt(_0x206a3b(0xdd))/0xa);if(_0x4a49cf===_0x1f7d6b)break;else _0x1b37b0['push'](_0x1b37b0['shift']());}catch(_0x46478c){_0x1b37b0['push'](_0x1b37b0['shift']());}}}(a4_0xe05c,0x5abfe));function a4_0xe05c(){var _0x1e71bb=['has','prefix','__esModule','search','835264luiqbP','toString','2034240xGTLuO','191927lWxnRR','cache','config','design:type','Singleton','Scope','Config','Provide','2uYeogN','get','(((.+)+)+)+$','function','del','217719NjFZpU','clients','hset','constructor','file','CacheService','cache-manager','decorate','set','30SvFGwX','__decorate','default','stores','caching','5qvyjcW','object','metadata','hget','options','defineProperty','2599205KJHGdA','ScopeEnum','length','133953ZCQocT','hdel','store','441008XLIBDG','apply','reset'];a4_0xe05c=function(){return _0x1e71bb;};return a4_0xe05c();}var a4_0x51e913=(function(){var _0x1ae9b4=!![];return function(_0x184925,_0x5671e0){var _0x529104=_0x1ae9b4?function(){var _0x4e7675=a4_0x50d1;if(_0x5671e0){var _0x2643eb=_0x5671e0[_0x4e7675(0xef)](_0x184925,arguments);return _0x5671e0=null,_0x2643eb;}}:function(){};return _0x1ae9b4=![],_0x529104;};}()),a4_0x16ea93=a4_0x51e913(this,function(){var _0x1e42cc=a4_0x50d1;return a4_0x16ea93[_0x1e42cc(0xc5)]()[_0x1e42cc(0xf4)](_0x1e42cc(0xd1))[_0x1e42cc(0xc5)]()[_0x1e42cc(0xd7)](a4_0x16ea93)[_0x1e42cc(0xf4)](_0x1e42cc(0xd1));});a4_0x16ea93();'use strict';var __decorate=this&&this[a4_0x54919a(0xde)]||function(_0x181bf0,_0x291fcf,_0x295451,_0x5c467f){var _0x9ab652=a4_0x54919a,_0x17c708=arguments[_0x9ab652(0xea)],_0x125974=_0x17c708<0x3?_0x291fcf:_0x5c467f===null?_0x5c467f=Object['getOwnPropertyDescriptor'](_0x291fcf,_0x295451):_0x5c467f,_0x4f93a3;if(typeof Reflect===_0x9ab652(0xe3)&&typeof Reflect[_0x9ab652(0xdb)]===_0x9ab652(0xd2))_0x125974=Reflect[_0x9ab652(0xdb)](_0x181bf0,_0x291fcf,_0x295451,_0x5c467f);else{for(var _0x1dcdd2=_0x181bf0[_0x9ab652(0xea)]-0x1;_0x1dcdd2>=0x0;_0x1dcdd2--)if(_0x4f93a3=_0x181bf0[_0x1dcdd2])_0x125974=(_0x17c708<0x3?_0x4f93a3(_0x125974):_0x17c708>0x3?_0x4f93a3(_0x291fcf,_0x295451,_0x125974):_0x4f93a3(_0x291fcf,_0x295451))||_0x125974;}return _0x17c708>0x3&&_0x125974&&Object['defineProperty'](_0x291fcf,_0x295451,_0x125974),_0x125974;},__metadata=this&&this['__metadata']||function(_0x463b84,_0x3cc255){var _0x3217f9=a4_0x54919a;if(typeof Reflect==='object'&&typeof Reflect[_0x3217f9(0xe4)]===_0x3217f9(0xd2))return Reflect['metadata'](_0x463b84,_0x3cc255);};Object[a4_0x54919a(0xe7)](exports,a4_0x54919a(0xf3),{'value':!![]}),exports[a4_0x54919a(0xd9)]=void 0x0;const cacheManager=require(a4_0x54919a(0xda)),core_1=require('@midwayjs/core');function a4_0x50d1(_0x1d41f4,_0x2c1b7e){var _0x45a8ef=a4_0xe05c();return a4_0x50d1=function(_0x16ea93,_0x51e913){_0x16ea93=_0x16ea93-0xc5;var _0xe05ccf=_0x45a8ef[_0x16ea93];return _0xe05ccf;},a4_0x50d1(_0x1d41f4,_0x2c1b7e);}let CacheService=class CacheService{constructor(){var _0xa4983d=a4_0x54919a;this['cache']=undefined,this[_0xa4983d(0xd5)]=new Map();}['use'](_0x1bc1db){var _0x1107f9=a4_0x54919a,_0x5094b0,_0x3b200a;if(!this[_0x1107f9(0xc8)]){const _0x474c3f=((_0x5094b0=this[_0x1107f9(0xc9)]['stores'])===null||_0x5094b0===void 0x0?void 0x0:_0x5094b0[(_0x3b200a=this[_0x1107f9(0xc9)][_0x1107f9(0xc8)])===null||_0x3b200a===void 0x0?void 0x0:_0x3b200a[_0x1107f9(0xdf)]])||this[_0x1107f9(0xc9)][_0x1107f9(0xe0)][_0x1107f9(0xd8)];this[_0x1107f9(0xc8)]=cacheManager[_0x1107f9(0xe1)]({..._0x474c3f[_0x1107f9(0xe6)],'store':_0x474c3f[_0x1107f9(0xed)]});}return!this[_0x1107f9(0xd5)][_0x1107f9(0xf1)](_0x1bc1db)&&this[_0x1107f9(0xd5)][_0x1107f9(0xdc)](_0x1bc1db,new CacheHandler(_0x1bc1db,this[_0x1107f9(0xc8)])),this[_0x1107f9(0xd5)][_0x1107f9(0xd0)](_0x1bc1db);}async[a4_0x54919a(0xf0)](){var _0x3866a7=a4_0x54919a;return await this[_0x3866a7(0xc8)][_0x3866a7(0xf0)]();}};__decorate([(0x0,core_1[a4_0x54919a(0xcd)])(a4_0x54919a(0xc8)),__metadata(a4_0x54919a(0xca),Object)],CacheService['prototype'],a4_0x54919a(0xc9),void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x54919a(0xce)])(),(0x0,core_1[a4_0x54919a(0xcc)])(core_1[a4_0x54919a(0xe9)][a4_0x54919a(0xcb)])],CacheService),exports[a4_0x54919a(0xd9)]=CacheService;class CacheHandler{constructor(_0x1e7563,_0x5bdc5b){this['cache']=_0x5bdc5b,this['prefix']=_0x1e7563;}async['del'](_0x517626){var _0x4c4f23=a4_0x54919a;return await this['cache'][_0x4c4f23(0xd3)](this[_0x4c4f23(0xf2)]+':'+_0x517626);}async[a4_0x54919a(0xdc)](_0xa20e98,_0x996d87,_0x1929f7){var _0x463e6d=a4_0x54919a;return await this['cache'][_0x463e6d(0xdc)](this[_0x463e6d(0xf2)]+':'+_0xa20e98,_0x996d87,_0x1929f7);}async[a4_0x54919a(0xd0)](_0x46b338,_0x5ebbb8){return new Promise((_0x5a06e,_0xd985a5)=>{var _0x536941=a4_0x50d1;this[_0x536941(0xc8)]['get'](this[_0x536941(0xf2)]+':'+_0x46b338,(_0x1c13e9,_0x244223)=>{_0x1c13e9?_0xd985a5(_0x1c13e9):_0x5a06e(_0x244223||_0x5ebbb8);});});}async[a4_0x54919a(0xec)](_0x53efd4,_0x3b18c0){var _0x8eca1e=a4_0x54919a;return await this[_0x8eca1e(0xd3)](_0x53efd4+'#'+_0x3b18c0);}async[a4_0x54919a(0xd6)](_0x3c7126,_0x5ba452,_0x2ec55f,_0x28b95a){return await this['set'](_0x3c7126+'#'+_0x5ba452,_0x2ec55f,_0x28b95a);}async[a4_0x54919a(0xe5)](_0x108827,_0x367677,_0x53544d){var _0x1f3056=a4_0x54919a;return await this[_0x1f3056(0xd0)](_0x108827+'#'+_0x367677,_0x53544d);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
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": "c981ed37ece29f6075e5c63bd0e46850f57dbc69"
|
|
27
27
|
}
|