@anncic-api/cache 1.5.14 → 1.5.15
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_0x3da696=a0_0x1710;(function(_0x2156e9,_0x30b72a){const _0x464597=a0_0x1710,_0x390e82=_0x2156e9();while(!![]){try{const _0x35cb8d=parseInt(_0x464597(0xfe))/0x1*(parseInt(_0x464597(0xf6))/0x2)+-parseInt(_0x464597(0xfd))/0x3*(parseInt(_0x464597(0x103))/0x4)+parseInt(_0x464597(0xf5))/0x5*(parseInt(_0x464597(0xf7))/0x6)+-parseInt(_0x464597(0xff))/0x7*(-parseInt(_0x464597(0x101))/0x8)+parseInt(_0x464597(0xfa))/0x9+parseInt(_0x464597(0xfc))/0xa*(-parseInt(_0x464597(0x102))/0xb)+parseInt(_0x464597(0xfb))/0xc*(parseInt(_0x464597(0xf4))/0xd);if(_0x35cb8d===_0x30b72a)break;else _0x390e82['push'](_0x390e82['shift']());}catch(_0x3fb295){_0x390e82['push'](_0x390e82['shift']());}}}(a0_0x34f8,0xe801c));const a0_0x4d7fc8=(function(){let _0x1c9f81=!![];return function(_0x2b58d8,_0x14e76f){const _0x280abe=_0x1c9f81?function(){const _0xff32fd=a0_0x1710;if(_0x14e76f){const _0x11ee9c=_0x14e76f[_0xff32fd(0x107)](_0x2b58d8,arguments);return _0x14e76f=null,_0x11ee9c;}}:function(){};return _0x1c9f81=![],_0x280abe;};}()),a0_0x557380=a0_0x4d7fc8(this,function(){const _0x543d3c=a0_0x1710;return a0_0x557380[_0x543d3c(0x105)]()[_0x543d3c(0xf1)](_0x543d3c(0xf0))['toString']()['constructor'](a0_0x557380)[_0x543d3c(0xf1)]('(((.+)+)+)+$');});a0_0x557380();'use strict';function a0_0x1710(_0x4348b0,_0x3ce31e){const _0x8d4ba3=a0_0x34f8();return a0_0x1710=function(_0x557380,_0x4d7fc8){_0x557380=_0x557380-0xf0;let _0x34f8ed=_0x8d4ba3[_0x557380];return _0x34f8ed;},a0_0x1710(_0x4348b0,_0x3ce31e);}Object['defineProperty'](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x3da696(0xf8)),redisStore=require(a0_0x3da696(0xf2));function a0_0x34f8(){const _0x70c649=['52429iegeRD','5TkCmwv','2TpdgpX','8527308CBrRxO','cache-manager-fs-hash','appDir','2999565igGUuv','564tkIjhj','6394370pSRUxN','1090602sUeOta','896836ryfWAr','10689tCvqFs','127.0.0.1','2968kHfpSL','11WPohSX','20sdQWoe','/runtime/.cache','toString','file','apply','(((.+)+)+)+$','search','cache-manager-ioredis','memory'];a0_0x34f8=function(){return _0x70c649;};return a0_0x34f8();}exports['default']=_0x222af2=>{const _0x4eb3cc=a0_0x3da696;return{'cache':{'default':_0x4eb3cc(0x106),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x222af2[_0x4eb3cc(0xf9)]+_0x4eb3cc(0x104)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x4eb3cc(0x100),'password':'','ttl':0x1e13380,'keyPrefix':_0x222af2['name']+':'}},'memory':{'store':_0x4eb3cc(0xf3),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x43007d=a1_0x42ca;(function(_0x4a8065,_0x23553f){var _0x27ea15=a1_0x42ca,_0x4cdb24=_0x4a8065();while(!![]){try{var _0x3ecdfa=parseInt(_0x27ea15(0xd8))/0x1*(parseInt(_0x27ea15(0xd2))/0x2)+-parseInt(_0x27ea15(0xd6))/0x3+parseInt(_0x27ea15(0xe2))/0x4*(-parseInt(_0x27ea15(0xdf))/0x5)+parseInt(_0x27ea15(0xe4))/0x6+-parseInt(_0x27ea15(0xd9))/0x7*(-parseInt(_0x27ea15(0xe7))/0x8)+parseInt(_0x27ea15(0xdb))/0x9*(parseInt(_0x27ea15(0xde))/0xa)+parseInt(_0x27ea15(0xcf))/0xb;if(_0x3ecdfa===_0x23553f)break;else _0x4cdb24['push'](_0x4cdb24['shift']());}catch(_0x462727){_0x4cdb24['push'](_0x4cdb24['shift']());}}}(a1_0x413b,0xaed4e));var a1_0x5452b4=(function(){var _0x12fc8f=!![];return function(_0x4aea63,_0x1abe33){var _0x20cba8=_0x12fc8f?function(){var _0xd6d281=a1_0x42ca;if(_0x1abe33){var _0x424d86=_0x1abe33[_0xd6d281(0xda)](_0x4aea63,arguments);return _0x1abe33=null,_0x424d86;}}:function(){};return _0x12fc8f=![],_0x20cba8;};}()),a1_0x22ba56=a1_0x5452b4(this,function(){var _0x4a17e7=a1_0x42ca;return a1_0x22ba56['toString']()[_0x4a17e7(0xd0)](_0x4a17e7(0xce))[_0x4a17e7(0xe1)]()[_0x4a17e7(0xd3)](a1_0x22ba56)[_0x4a17e7(0xd0)](_0x4a17e7(0xce));});function a1_0x42ca(_0x273020,_0x4ccedd){var _0x22bce9=a1_0x413b();return a1_0x42ca=function(_0x22ba56,_0x5452b4){_0x22ba56=_0x22ba56-0xcc;var _0x413b56=_0x22bce9[_0x22ba56];return _0x413b56;},a1_0x42ca(_0x273020,_0x4ccedd);}a1_0x22ba56();'use strict';var __decorate=this&&this[a1_0x43007d(0xe0)]||function(_0x24dfcb,_0x80d1c6,_0x44ee18,_0x5c7935){var _0x15826e=a1_0x43007d,_0x4d5472=arguments['length'],_0x5df314=_0x4d5472<0x3?_0x80d1c6:_0x5c7935===null?_0x5c7935=Object[_0x15826e(0xd5)](_0x80d1c6,_0x44ee18):_0x5c7935,_0x4053af;if(typeof Reflect==='object'&&typeof Reflect[_0x15826e(0xd4)]===_0x15826e(0xe6))_0x5df314=Reflect[_0x15826e(0xd4)](_0x24dfcb,_0x80d1c6,_0x44ee18,_0x5c7935);else{for(var _0x11a4fa=_0x24dfcb[_0x15826e(0xcd)]-0x1;_0x11a4fa>=0x0;_0x11a4fa--)if(_0x4053af=_0x24dfcb[_0x11a4fa])_0x5df314=(_0x4d5472<0x3?_0x4053af(_0x5df314):_0x4d5472>0x3?_0x4053af(_0x80d1c6,_0x44ee18,_0x5df314):_0x4053af(_0x80d1c6,_0x44ee18))||_0x5df314;}return _0x4d5472>0x3&&_0x5df314&&Object['defineProperty'](_0x80d1c6,_0x44ee18,_0x5df314),_0x5df314;};Object[a1_0x43007d(0xdc)](exports,a1_0x43007d(0xe5),{'value':!![]}),exports[a1_0x43007d(0xd7)]=void 0x0;const core_1=require(a1_0x43007d(0xd1)),ConfigDefault=require(a1_0x43007d(0xe3));let CustomConfiguration=class CustomConfiguration{};function a1_0x413b(){var _0x162e82=['@midwayjs/core','2URzykm','constructor','decorate','getOwnPropertyDescriptor','2518236dzYSye','CustomConfiguration','725369ZKbZtt','350917ShYtbH','apply','50157TIegxv','defineProperty','anncic-api:cache','510gFzyIq','231925cwPmsx','__decorate','toString','100NukEDO','./config/config.default','4989816NzVYpu','__esModule','function','104cbEKtJ','Configuration','length','(((.+)+)+)+$','2444376dWhfoC','search'];a1_0x413b=function(){return _0x162e82;};return a1_0x413b();}CustomConfiguration=__decorate([(0x0,core_1[a1_0x43007d(0xcc)])({'conflictCheck':![],'namespace':a1_0x43007d(0xdd),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x548654=a2_0x23ef;(function(_0x5ec77a,_0x59a093){const _0x56fe05=a2_0x23ef,_0x201b96=_0x5ec77a();while(!![]){try{const _0x2b201b=parseInt(_0x56fe05(0x117))/0x1+-parseInt(_0x56fe05(0x121))/0x2+-parseInt(_0x56fe05(0x113))/0x3*(parseInt(_0x56fe05(0x116))/0x4)+parseInt(_0x56fe05(0x11d))/0x5+parseInt(_0x56fe05(0x12e))/0x6+-parseInt(_0x56fe05(0x11b))/0x7*(parseInt(_0x56fe05(0x124))/0x8)+parseInt(_0x56fe05(0x114))/0x9*(parseInt(_0x56fe05(0x11a))/0xa);if(_0x2b201b===_0x59a093)break;else _0x201b96['push'](_0x201b96['shift']());}catch(_0x234619){_0x201b96['push'](_0x201b96['shift']());}}}(a2_0x46ab,0x831ee));const a2_0x248b96=(function(){let _0x510507=!![];return function(_0x48447c,_0xcab08e){const _0x2455ab=_0x510507?function(){const _0x274ef3=a2_0x23ef;if(_0xcab08e){const _0x9c0dfe=_0xcab08e[_0x274ef3(0x123)](_0x48447c,arguments);return _0xcab08e=null,_0x9c0dfe;}}:function(){};return _0x510507=![],_0x2455ab;};}()),a2_0x1e7821=a2_0x248b96(this,function(){const _0x31cc3d=a2_0x23ef;return a2_0x1e7821[_0x31cc3d(0x129)]()[_0x31cc3d(0x126)](_0x31cc3d(0x11f))[_0x31cc3d(0x129)]()[_0x31cc3d(0x125)](a2_0x1e7821)[_0x31cc3d(0x126)](_0x31cc3d(0x11f));});a2_0x1e7821();'use strict';Object[a2_0x548654(0x120)](exports,a2_0x548654(0x122),{'value':!![]}),exports[a2_0x548654(0x128)]=void 0x0;const crypto_js_1=require(a2_0x548654(0x11c)),CacheService_1=require(a2_0x548654(0x119)),core_1=require('@midwayjs/core');function Cache(_0x503398,_0x4d5cc8){return(_0x237eaa,_0x122cc7,_0x6d622e)=>{const _0x1dcffa=a2_0x23ef,_0x179571=_0x6d622e[_0x1dcffa(0x12c)];return _0x6d622e[_0x1dcffa(0x12c)]=async function(..._0x1e4d42){const _0x1f32f8=_0x1dcffa;!_0x503398&&(_0x503398=(0x0,crypto_js_1['MD5'])(JSON[_0x1f32f8(0x115)](_0x1e4d42))[_0x1f32f8(0x129)]());let _0x4a8b52=await this[core_1[_0x1f32f8(0x12d)]][_0x1f32f8(0x11e)]['getApplicationContext']()['getAsync'](CacheService_1[_0x1f32f8(0x127)]),_0xb39c6c=await _0x4a8b52[_0x1f32f8(0x118)](_0x1f32f8(0x12a))['get'](_0x503398);if(_0xb39c6c)return JSON['parse'](_0xb39c6c);else _0xb39c6c=await _0x179571[_0x1f32f8(0x123)](this,[..._0x1e4d42]),await _0x4a8b52[_0x1f32f8(0x118)](_0x1f32f8(0x12a))[_0x1f32f8(0x12b)](_0x503398,JSON[_0x1f32f8(0x115)](_0xb39c6c),_0x4d5cc8);return _0xb39c6c;},_0x6d622e;};}function a2_0x23ef(_0x5ae7f9,_0x5c6258){const _0x5d1f5e=a2_0x46ab();return a2_0x23ef=function(_0x1e7821,_0x248b96){_0x1e7821=_0x1e7821-0x113;let _0x46ab0b=_0x5d1f5e[_0x1e7821];return _0x46ab0b;},a2_0x23ef(_0x5ae7f9,_0x5c6258);}exports[a2_0x548654(0x128)]=Cache;function a2_0x46ab(){const _0x59f733=['../service/CacheService','10030rnyGKd','257243lUMkis','crypto-js','118240MVkcpB','app','(((.+)+)+)+$','defineProperty','1598064HiZoYV','__esModule','apply','88vfWrvm','constructor','search','CacheService','Cache','toString','Method::Decorator','set','value','REQUEST_OBJ_CTX_KEY','337818hDYKMk','42MsNirv','8397nuWFXG','stringify','59420jdHixk','932561VtSsfa','use'];a2_0x46ab=function(){return _0x59f733;};return a2_0x46ab();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x519529=a3_0x2aca;(function(_0x5763ff,_0x7dc627){var _0x3811a5=a3_0x2aca,_0x262c41=_0x5763ff();while(!![]){try{var _0x29bc9b=parseInt(_0x3811a5(0x1bc))/0x1*(-parseInt(_0x3811a5(0x1be))/0x2)+-parseInt(_0x3811a5(0x1c1))/0x3*(parseInt(_0x3811a5(0x1c0))/0x4)+parseInt(_0x3811a5(0x1b5))/0x5*(-parseInt(_0x3811a5(0x1bf))/0x6)+-parseInt(_0x3811a5(0x1b3))/0x7+-parseInt(_0x3811a5(0x1ae))/0x8*(-parseInt(_0x3811a5(0x1ba))/0x9)+parseInt(_0x3811a5(0x1b4))/0xa*(parseInt(_0x3811a5(0x1bd))/0xb)+parseInt(_0x3811a5(0x1b9))/0xc;if(_0x29bc9b===_0x7dc627)break;else _0x262c41['push'](_0x262c41['shift']());}catch(_0x11e354){_0x262c41['push'](_0x262c41['shift']());}}}(a3_0x2f32,0x32c2d));var a3_0x43029d=(function(){var _0x23185c=!![];return function(_0x46eea2,_0x29df2b){var _0x4af03f=_0x23185c?function(){var _0x6a5473=a3_0x2aca;if(_0x29df2b){var _0x4afcd9=_0x29df2b[_0x6a5473(0x1b8)](_0x46eea2,arguments);return _0x29df2b=null,_0x4afcd9;}}:function(){};return _0x23185c=![],_0x4af03f;};}()),a3_0x167ffc=a3_0x43029d(this,function(){var _0x486fbc=a3_0x2aca;return a3_0x167ffc[_0x486fbc(0x1b7)]()[_0x486fbc(0x1ad)](_0x486fbc(0x1ac))[_0x486fbc(0x1b7)]()[_0x486fbc(0x1ab)](a3_0x167ffc)[_0x486fbc(0x1ad)](_0x486fbc(0x1ac));});a3_0x167ffc();'use strict';Object[a3_0x519529(0x1b2)](exports,a3_0x519529(0x1bb),{'value':!![]}),exports[a3_0x519529(0x1b6)]=exports[a3_0x519529(0x1b0)]=exports[a3_0x519529(0x1af)]=void 0x0;var configuration_1=require('./configuration');function a3_0x2aca(_0x27518b,_0x294e27){var _0x46a9ab=a3_0x2f32();return a3_0x2aca=function(_0x167ffc,_0x43029d){_0x167ffc=_0x167ffc-0x1ab;var _0x2f321f=_0x46a9ab[_0x167ffc];return _0x2f321f;},a3_0x2aca(_0x27518b,_0x294e27);}Object[a3_0x519529(0x1b2)](exports,a3_0x519529(0x1af),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});function a3_0x2f32(){var _0x12ee39=['apply','6115104FubeIo','9sOfOKR','__esModule','19781iFgBpt','454817dPSbtn','38LUPQdW','7188nKmJKs','24264vMAnjj','111rqpAQJ','constructor','(((.+)+)+)+$','search','2558384WrqteI','Configuration','Cache','./decorator/Cache','defineProperty','731731ybojxE','50isPLtA','515qiDReB','CacheService','toString'];a3_0x2f32=function(){return _0x12ee39;};return a3_0x2f32();}var Cache_1=require(a3_0x519529(0x1b1));Object[a3_0x519529(0x1b2)](exports,a3_0x519529(0x1b0),{'enumerable':!![],'get':function(){var _0x42fa99=a3_0x519529;return Cache_1[_0x42fa99(0x1b0)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x519529(0x1b2)](exports,a3_0x519529(0x1b6),{'enumerable':!![],'get':function(){var _0x5a72b1=a3_0x519529;return CacheService_1[_0x5a72b1(0x1b6)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x5e17df=a4_0x136c;(function(_0x2b9a7f,_0x554913){var _0xa7ad68=a4_0x136c,_0x5ca077=_0x2b9a7f();while(!![]){try{var _0x22b5b3=parseInt(_0xa7ad68(0xae))/0x1+parseInt(_0xa7ad68(0x9f))/0x2+-parseInt(_0xa7ad68(0x95))/0x3+parseInt(_0xa7ad68(0x83))/0x4+-parseInt(_0xa7ad68(0x99))/0x5*(parseInt(_0xa7ad68(0x94))/0x6)+-parseInt(_0xa7ad68(0x98))/0x7*(parseInt(_0xa7ad68(0xa7))/0x8)+parseInt(_0xa7ad68(0x80))/0x9*(parseInt(_0xa7ad68(0xa9))/0xa);if(_0x22b5b3===_0x554913)break;else _0x5ca077['push'](_0x5ca077['shift']());}catch(_0x34a7a9){_0x5ca077['push'](_0x5ca077['shift']());}}}(a4_0x28b8,0x61dc3));var a4_0x17aeb7=(function(){var _0x3f4ebc=!![];return function(_0x416814,_0x3af254){var _0x354568=_0x3f4ebc?function(){var _0x37ee96=a4_0x136c;if(_0x3af254){var _0x3018e2=_0x3af254[_0x37ee96(0x90)](_0x416814,arguments);return _0x3af254=null,_0x3018e2;}}:function(){};return _0x3f4ebc=![],_0x354568;};}()),a4_0x4bf794=a4_0x17aeb7(this,function(){var _0x724902=a4_0x136c;return a4_0x4bf794[_0x724902(0x9b)]()[_0x724902(0xa6)](_0x724902(0xa3))[_0x724902(0x9b)]()[_0x724902(0xaa)](a4_0x4bf794)['search']('(((.+)+)+)+$');});a4_0x4bf794();'use strict';var __decorate=this&&this[a4_0x5e17df(0x8c)]||function(_0x4473c6,_0x3b29a7,_0x418ee4,_0x325e17){var _0x357e99=a4_0x5e17df,_0xdb3b7a=arguments[_0x357e99(0x8f)],_0xcc6f74=_0xdb3b7a<0x3?_0x3b29a7:_0x325e17===null?_0x325e17=Object[_0x357e99(0xa5)](_0x3b29a7,_0x418ee4):_0x325e17,_0xd2075a;if(typeof Reflect==='object'&&typeof Reflect[_0x357e99(0x91)]==='function')_0xcc6f74=Reflect[_0x357e99(0x91)](_0x4473c6,_0x3b29a7,_0x418ee4,_0x325e17);else{for(var _0xdab06d=_0x4473c6[_0x357e99(0x8f)]-0x1;_0xdab06d>=0x0;_0xdab06d--)if(_0xd2075a=_0x4473c6[_0xdab06d])_0xcc6f74=(_0xdb3b7a<0x3?_0xd2075a(_0xcc6f74):_0xdb3b7a>0x3?_0xd2075a(_0x3b29a7,_0x418ee4,_0xcc6f74):_0xd2075a(_0x3b29a7,_0x418ee4))||_0xcc6f74;}return _0xdb3b7a>0x3&&_0xcc6f74&&Object[_0x357e99(0x8b)](_0x3b29a7,_0x418ee4,_0xcc6f74),_0xcc6f74;},__metadata=this&&this[a4_0x5e17df(0x82)]||function(_0x5bf61d,_0x4b8fe0){var _0x46c8cc=a4_0x5e17df;if(typeof Reflect==='object'&&typeof Reflect['metadata']==='function')return Reflect[_0x46c8cc(0x85)](_0x5bf61d,_0x4b8fe0);};function a4_0x136c(_0x317dc9,_0x245c5c){var _0x4d49d5=a4_0x28b8();return a4_0x136c=function(_0x4bf794,_0x17aeb7){_0x4bf794=_0x4bf794-0x80;var _0x28b81c=_0x4d49d5[_0x4bf794];return _0x28b81c;},a4_0x136c(_0x317dc9,_0x245c5c);}Object[a4_0x5e17df(0x8b)](exports,a4_0x5e17df(0x87),{'value':!![]}),exports[a4_0x5e17df(0xa0)]=void 0x0;const cacheManager=require(a4_0x5e17df(0xac)),core_1=require('@midwayjs/core');function a4_0x28b8(){var _0x50f017=['hset','ScopeEnum','127662XNpsqn','CacheService','set','clients','(((.+)+)+)+$','hdel','getOwnPropertyDescriptor','search','2074712ZygmPM','design:type','10uiuFVy','constructor','prefix','cache-manager','has','641289saOKJv','8066403HgyeaK','options','__metadata','2576588KBzDAt','cache','metadata','default','__esModule','use','Provide','hget','defineProperty','__decorate','get','del','length','apply','decorate','stores','file','42ofgTaa','1856265uJMEVh','store','config','14FjIgwM','505190smfGpL','reset','toString','Config'];a4_0x28b8=function(){return _0x50f017;};return a4_0x28b8();}let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}[a4_0x5e17df(0x88)](_0x2f2478){var _0x2852d7=a4_0x5e17df,_0x410ddb,_0x5006c7;if(!this[_0x2852d7(0x84)]){const _0x2b21b3=((_0x410ddb=this[_0x2852d7(0x97)][_0x2852d7(0x92)])===null||_0x410ddb===void 0x0?void 0x0:_0x410ddb[(_0x5006c7=this['config'][_0x2852d7(0x84)])===null||_0x5006c7===void 0x0?void 0x0:_0x5006c7[_0x2852d7(0x86)]])||this[_0x2852d7(0x97)][_0x2852d7(0x92)][_0x2852d7(0x93)];this[_0x2852d7(0x84)]=cacheManager['caching']({..._0x2b21b3[_0x2852d7(0x81)],'store':_0x2b21b3[_0x2852d7(0x96)]});}return!this[_0x2852d7(0xa2)][_0x2852d7(0xad)](_0x2f2478)&&this['clients'][_0x2852d7(0xa1)](_0x2f2478,new CacheHandler(_0x2f2478,this['cache'])),this[_0x2852d7(0xa2)][_0x2852d7(0x8d)](_0x2f2478);}async[a4_0x5e17df(0x9a)](){var _0x32dfd6=a4_0x5e17df;return await this[_0x32dfd6(0x84)][_0x32dfd6(0x9a)]();}};__decorate([(0x0,core_1[a4_0x5e17df(0x9c)])(a4_0x5e17df(0x84)),__metadata(a4_0x5e17df(0xa8),Object)],CacheService['prototype'],'config',void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x5e17df(0x89)])(),(0x0,core_1['Scope'])(core_1[a4_0x5e17df(0x9e)]['Singleton'])],CacheService),exports[a4_0x5e17df(0xa0)]=CacheService;class CacheHandler{constructor(_0x4f8971,_0x347b3e){this['cache']=_0x347b3e,this['prefix']=_0x4f8971;}async[a4_0x5e17df(0x8e)](_0x5af02a){var _0x2db0e0=a4_0x5e17df;return await this['cache'][_0x2db0e0(0x8e)](this['prefix']+':'+_0x5af02a);}async[a4_0x5e17df(0xa1)](_0x473e28,_0x48b826,_0x106f4f){var _0x43451a=a4_0x5e17df;return await this[_0x43451a(0x84)][_0x43451a(0xa1)](this[_0x43451a(0xab)]+':'+_0x473e28,_0x48b826,_0x106f4f);}async['get'](_0x1f8e60,_0x5d77e3){return new Promise((_0x28a4a3,_0x1d919e)=>{var _0x586f75=a4_0x136c;this[_0x586f75(0x84)]['get'](this['prefix']+':'+_0x1f8e60,(_0x1371d2,_0x3aa6f4)=>{_0x1371d2?_0x1d919e(_0x1371d2):_0x28a4a3(_0x3aa6f4||_0x5d77e3);});});}async[a4_0x5e17df(0xa4)](_0x37753f,_0x2e58ab){var _0x536bd6=a4_0x5e17df;return await this[_0x536bd6(0x8e)](_0x37753f+'#'+_0x2e58ab);}async[a4_0x5e17df(0x9d)](_0x32b039,_0x1dab24,_0x59eb82,_0x228bca){var _0x1a5db4=a4_0x5e17df;return await this[_0x1a5db4(0xa1)](_0x32b039+'#'+_0x1dab24,_0x59eb82,_0x228bca);}async[a4_0x5e17df(0x8a)](_0x33a83a,_0x573ab6,_0x4db46f){var _0x5194d6=a4_0x5e17df;return await this[_0x5194d6(0x8d)](_0x33a83a+'#'+_0x573ab6,_0x4db46f);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.15",
|
|
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": "815c45af086b94a99004b1fa58a13612b112763e"
|
|
27
27
|
}
|