@anncic-api/cache 1.1.8 → 1.1.11

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
- 'use strict';function a0_0x2abc(){const _0x5c9353=['cache-manager-ioredis','5RTCsTQ','8yILdFc','file','2178576rgnpQF','5825390ANvERq','1569122ZEGKCO','name','6634746nSRkPe','6IbDyww','1963633wvoVGp','2383425oPlQna','cache-manager-fs-hash','551785ikehcV','127.0.0.1','memory','__esModule','appDir'];a0_0x2abc=function(){return _0x5c9353;};return a0_0x2abc();}function a0_0x2cb8(_0xde294,_0x309d16){const _0x2abc19=a0_0x2abc();return a0_0x2cb8=function(_0x2cb8e5,_0x18fb72){_0x2cb8e5=_0x2cb8e5-0x1a4;let _0x25ebad=_0x2abc19[_0x2cb8e5];return _0x25ebad;},a0_0x2cb8(_0xde294,_0x309d16);}const a0_0x35f2cc=a0_0x2cb8;(function(_0x58d900,_0xc3364){const _0x1a9d84=a0_0x2cb8,_0x59eb0d=_0x58d900();while(!![]){try{const _0x4a8a74=parseInt(_0x1a9d84(0x1a6))/0x1+-parseInt(_0x1a9d84(0x1b1))/0x2+parseInt(_0x1a9d84(0x1a4))/0x3+-parseInt(_0x1a9d84(0x1af))/0x4*(parseInt(_0x1a9d84(0x1ac))/0x5)+parseInt(_0x1a9d84(0x1b4))/0x6*(parseInt(_0x1a9d84(0x1b5))/0x7)+-parseInt(_0x1a9d84(0x1ad))/0x8*(-parseInt(_0x1a9d84(0x1b3))/0x9)+-parseInt(_0x1a9d84(0x1b0))/0xa;if(_0x4a8a74===_0xc3364)break;else _0x59eb0d['push'](_0x59eb0d['shift']());}catch(_0xfbcecb){_0x59eb0d['push'](_0x59eb0d['shift']());}}}(a0_0x2abc,0x6e685));Object['defineProperty'](exports,a0_0x35f2cc(0x1a9),{'value':!![]});const fsStore=require(a0_0x35f2cc(0x1a5)),redisStore=require(a0_0x35f2cc(0x1ab));exports['default']=_0xe79da0=>{const _0x55270e=a0_0x35f2cc;return{'cache':{'default':_0x55270e(0x1ae),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0xe79da0[_0x55270e(0x1aa)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x55270e(0x1a7),'password':'','ttl':0x1e13380,'keyPrefix':_0xe79da0[_0x55270e(0x1b2)]+':'}},'memory':{'store':_0x55270e(0x1a8),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0xabe2b6=a0_0x3ecc;(function(_0x47a5c5,_0x340878){const _0x5c2ec=a0_0x3ecc,_0x25d2e2=_0x47a5c5();while(!![]){try{const _0xa89aeb=parseInt(_0x5c2ec(0x1cf))/0x1*(parseInt(_0x5c2ec(0x1dc))/0x2)+-parseInt(_0x5c2ec(0x1d5))/0x3+-parseInt(_0x5c2ec(0x1d9))/0x4*(-parseInt(_0x5c2ec(0x1d1))/0x5)+-parseInt(_0x5c2ec(0x1cb))/0x6+-parseInt(_0x5c2ec(0x1d2))/0x7+-parseInt(_0x5c2ec(0x1d8))/0x8+parseInt(_0x5c2ec(0x1d4))/0x9*(parseInt(_0x5c2ec(0x1d0))/0xa);if(_0xa89aeb===_0x340878)break;else _0x25d2e2['push'](_0x25d2e2['shift']());}catch(_0xe47f33){_0x25d2e2['push'](_0x25d2e2['shift']());}}}(a0_0x55d9,0x5061c));function a0_0x55d9(){const _0x1dc2e2=['127.0.0.1','18TOtYTg','1446630AtvnHl','defineProperty','appDir','2780584FgeYCH','833380KEifBS','cache-manager-ioredis','file','35864rKFFLW','3807516iUAHkt','/runtime/.cache','name','cache-manager-fs-hash','23mVqiiq','5570630gfyydm','10mdHagK','1047473bWLaml'];a0_0x55d9=function(){return _0x1dc2e2;};return a0_0x55d9();}function a0_0x3ecc(_0x2d0568,_0x28f02a){const _0x55d964=a0_0x55d9();return a0_0x3ecc=function(_0x3ecc99,_0x35bc72){_0x3ecc99=_0x3ecc99-0x1cb;let _0x405f4c=_0x55d964[_0x3ecc99];return _0x405f4c;},a0_0x3ecc(_0x2d0568,_0x28f02a);}Object[a0_0xabe2b6(0x1d6)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0xabe2b6(0x1ce)),redisStore=require(a0_0xabe2b6(0x1da));exports['default']=_0xf99e68=>{const _0x16c511=a0_0xabe2b6;return{'cache':{'default':_0x16c511(0x1db),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0xf99e68[_0x16c511(0x1d7)]+_0x16c511(0x1cc)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x16c511(0x1d3),'password':'','ttl':0x1e13380,'keyPrefix':_0xf99e68[_0x16c511(0x1cd)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';var a1_0x421ea2=a1_0x1434;function a1_0xe424(){var _0x4ec57b=['function','Configuration','@midwayjs/decorator','7139478YkqTph','object','decorate','9121QnYKmJ','1488200aNmLwm','./config/config.default','1765376yFWUmx','549286XKYbEJ','__decorate','5QpMjwn','13555683oBKTDm','__esModule','880725QAxDPk','CustomConfiguration','defineProperty','length','1408fdeeKa'];a1_0xe424=function(){return _0x4ec57b;};return a1_0xe424();}(function(_0x20aaf5,_0x8d4912){var _0xe1ff10=a1_0x1434,_0x3c0ed3=_0x20aaf5();while(!![]){try{var _0x307d76=-parseInt(_0xe1ff10(0x138))/0x1+-parseInt(_0xe1ff10(0x137))/0x2+-parseInt(_0xe1ff10(0x13d))/0x3+-parseInt(_0xe1ff10(0x135))/0x4+parseInt(_0xe1ff10(0x13a))/0x5*(parseInt(_0xe1ff10(0x131))/0x6)+parseInt(_0xe1ff10(0x134))/0x7*(parseInt(_0xe1ff10(0x141))/0x8)+parseInt(_0xe1ff10(0x13b))/0x9;if(_0x307d76===_0x8d4912)break;else _0x3c0ed3['push'](_0x3c0ed3['shift']());}catch(_0x49f120){_0x3c0ed3['push'](_0x3c0ed3['shift']());}}}(a1_0xe424,0xca1b5));function a1_0x1434(_0x98d40d,_0x1aae04){var _0xe424b9=a1_0xe424();return a1_0x1434=function(_0x1434b9,_0x3369e0){_0x1434b9=_0x1434b9-0x12f;var _0x219344=_0xe424b9[_0x1434b9];return _0x219344;},a1_0x1434(_0x98d40d,_0x1aae04);}var __decorate=this&&this[a1_0x421ea2(0x139)]||function(_0x8cbfce,_0x2f94a8,_0x182288,_0x30a1cb){var _0x22ebe2=a1_0x421ea2,_0x124a11=arguments[_0x22ebe2(0x140)],_0x3a5377=_0x124a11<0x3?_0x2f94a8:_0x30a1cb===null?_0x30a1cb=Object['getOwnPropertyDescriptor'](_0x2f94a8,_0x182288):_0x30a1cb,_0xb20e3f;if(typeof Reflect===_0x22ebe2(0x132)&&typeof Reflect[_0x22ebe2(0x133)]===_0x22ebe2(0x142))_0x3a5377=Reflect['decorate'](_0x8cbfce,_0x2f94a8,_0x182288,_0x30a1cb);else{for(var _0x2e0df8=_0x8cbfce[_0x22ebe2(0x140)]-0x1;_0x2e0df8>=0x0;_0x2e0df8--)if(_0xb20e3f=_0x8cbfce[_0x2e0df8])_0x3a5377=(_0x124a11<0x3?_0xb20e3f(_0x3a5377):_0x124a11>0x3?_0xb20e3f(_0x2f94a8,_0x182288,_0x3a5377):_0xb20e3f(_0x2f94a8,_0x182288))||_0x3a5377;}return _0x124a11>0x3&&_0x3a5377&&Object[_0x22ebe2(0x13f)](_0x2f94a8,_0x182288,_0x3a5377),_0x3a5377;};Object[a1_0x421ea2(0x13f)](exports,a1_0x421ea2(0x13c),{'value':!![]}),exports[a1_0x421ea2(0x13e)]=void 0x0;const decorator_1=require(a1_0x421ea2(0x130)),ConfigDefault=require(a1_0x421ea2(0x136));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x421ea2(0x12f)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x421ea2(0x13e)]=CustomConfiguration;
1
+ 'use strict';var a1_0x326b51=a1_0x44c9;(function(_0x36f921,_0x5abe9b){var _0x291291=a1_0x44c9,_0x10fb30=_0x36f921();while(!![]){try{var _0x5b762d=parseInt(_0x291291(0x15b))/0x1+-parseInt(_0x291291(0x165))/0x2*(-parseInt(_0x291291(0x156))/0x3)+parseInt(_0x291291(0x15d))/0x4+-parseInt(_0x291291(0x160))/0x5*(-parseInt(_0x291291(0x162))/0x6)+parseInt(_0x291291(0x158))/0x7*(parseInt(_0x291291(0x161))/0x8)+parseInt(_0x291291(0x154))/0x9+-parseInt(_0x291291(0x155))/0xa;if(_0x5b762d===_0x5abe9b)break;else _0x10fb30['push'](_0x10fb30['shift']());}catch(_0x4d3b66){_0x10fb30['push'](_0x10fb30['shift']());}}}(a1_0xdb40,0x6b3b1));var __decorate=this&&this[a1_0x326b51(0x159)]||function(_0x3b7d4a,_0x348051,_0x4485b2,_0x459221){var _0x133a91=a1_0x326b51,_0x4e560e=arguments['length'],_0x567a32=_0x4e560e<0x3?_0x348051:_0x459221===null?_0x459221=Object['getOwnPropertyDescriptor'](_0x348051,_0x4485b2):_0x459221,_0xa1de5e;if(typeof Reflect===_0x133a91(0x163)&&typeof Reflect['decorate']===_0x133a91(0x164))_0x567a32=Reflect['decorate'](_0x3b7d4a,_0x348051,_0x4485b2,_0x459221);else{for(var _0x128995=_0x3b7d4a[_0x133a91(0x15c)]-0x1;_0x128995>=0x0;_0x128995--)if(_0xa1de5e=_0x3b7d4a[_0x128995])_0x567a32=(_0x4e560e<0x3?_0xa1de5e(_0x567a32):_0x4e560e>0x3?_0xa1de5e(_0x348051,_0x4485b2,_0x567a32):_0xa1de5e(_0x348051,_0x4485b2))||_0x567a32;}return _0x4e560e>0x3&&_0x567a32&&Object[_0x133a91(0x15a)](_0x348051,_0x4485b2,_0x567a32),_0x567a32;};Object[a1_0x326b51(0x15a)](exports,'__esModule',{'value':!![]}),exports[a1_0x326b51(0x153)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),ConfigDefault=require(a1_0x326b51(0x157));let CustomConfiguration=class CustomConfiguration{};function a1_0x44c9(_0xd4aa19,_0x4fa603){var _0xdb4011=a1_0xdb40();return a1_0x44c9=function(_0x44c9c1,_0x244e42){_0x44c9c1=_0x44c9c1-0x153;var _0x1d5cb5=_0xdb4011[_0x44c9c1];return _0x1d5cb5;},a1_0x44c9(_0xd4aa19,_0x4fa603);}function a1_0xdb40(){var _0x44f927=['object','function','2LjXFMn','CustomConfiguration','7518879YLbcbh','28343170PhzLJz','962631pCzQOz','./config/config.default','133BXYNxb','__decorate','defineProperty','701866rBcvkc','length','1672304DHiexI','Configuration','anncic-api:cache','35vtKccA','148760OYeURC','551982bFPdVN'];a1_0xdb40=function(){return _0x44f927;};return a1_0xdb40();}CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x326b51(0x15e)])({'conflictCheck':![],'namespace':a1_0x326b51(0x15f),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x326b51(0x153)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0xe164b4=a2_0xec7a;(function(_0x312946,_0x24feda){const _0x3df892=a2_0xec7a,_0x200534=_0x312946();while(!![]){try{const _0x41db0d=parseInt(_0x3df892(0x102))/0x1*(-parseInt(_0x3df892(0xf7))/0x2)+parseInt(_0x3df892(0xfa))/0x3+-parseInt(_0x3df892(0xf8))/0x4*(parseInt(_0x3df892(0xfb))/0x5)+-parseInt(_0x3df892(0xec))/0x6+-parseInt(_0x3df892(0xea))/0x7+parseInt(_0x3df892(0xf4))/0x8*(-parseInt(_0x3df892(0xee))/0x9)+parseInt(_0x3df892(0xf2))/0xa;if(_0x41db0d===_0x24feda)break;else _0x200534['push'](_0x200534['shift']());}catch(_0x53cf87){_0x200534['push'](_0x200534['shift']());}}}(a2_0x3814,0x912b4));function a2_0xec7a(_0x3fd4de,_0x1976c9){const _0x381469=a2_0x3814();return a2_0xec7a=function(_0xec7a46,_0x33b34a){_0xec7a46=_0xec7a46-0xe7;let _0x555fd8=_0x381469[_0xec7a46];return _0x555fd8;},a2_0xec7a(_0x3fd4de,_0x1976c9);}Object[a2_0xe164b4(0x101)](exports,a2_0xe164b4(0xeb),{'value':!![]}),exports[a2_0xe164b4(0xfc)]=void 0x0;function a2_0x3814(){const _0x43c653=['defineProperty','107683nvLCMg','set','crypto-js','apply','stringify','6050982qFCVod','__esModule','3815472QfkwaU','MethodDecorator','4283073LDdBQi','value','get','parse','42220130yAHtCn','toString','8vTNPZn','REQUEST_OBJ_CTX_KEY','use','14OLjbgI','4nKXmwY','MD5','634386DQzLnd','5544235JzQMJs','Cache','@midwayjs/core','app','getApplicationContext','../service/CacheService'];a2_0x3814=function(){return _0x43c653;};return a2_0x3814();}const crypto_js_1=require(a2_0xe164b4(0xe7)),CacheService_1=require(a2_0xe164b4(0x100)),core_1=require(a2_0xe164b4(0xfd));function Cache(_0x5d8028,_0x218976){return(_0x46f200,_0x4cf6b8,_0x5b8206)=>{const _0x316b62=a2_0xec7a,_0x24986f=_0x5b8206['value'];return _0x5b8206[_0x316b62(0xef)]=async function(..._0x10f686){const _0x4b7aa7=_0x316b62;!_0x5d8028&&(_0x5d8028=(0x0,crypto_js_1[_0x4b7aa7(0xf9)])(JSON[_0x4b7aa7(0xe9)](_0x10f686))[_0x4b7aa7(0xf3)]());let _0x476047=await this[core_1[_0x4b7aa7(0xf5)]][_0x4b7aa7(0xfe)][_0x4b7aa7(0xff)]()['getAsync'](CacheService_1['CacheService']),_0x1b51b3=await _0x476047[_0x4b7aa7(0xf6)](_0x4b7aa7(0xed))[_0x4b7aa7(0xf0)](_0x5d8028);if(_0x1b51b3)return JSON[_0x4b7aa7(0xf1)](_0x1b51b3);else _0x1b51b3=await _0x24986f[_0x4b7aa7(0xe8)](this,[..._0x10f686]),await _0x476047[_0x4b7aa7(0xf6)](_0x4b7aa7(0xed))[_0x4b7aa7(0x103)](_0x5d8028,JSON['stringify'](_0x1b51b3),_0x218976);return _0x1b51b3;},_0x5b8206;};}exports['Cache']=Cache;
1
+ 'use strict';function a2_0x4a0b(_0xa4ec1,_0x546772){const _0x2a3155=a2_0x2a31();return a2_0x4a0b=function(_0x4a0bf6,_0x455808){_0x4a0bf6=_0x4a0bf6-0xa4;let _0x27d9a5=_0x2a3155[_0x4a0bf6];return _0x27d9a5;},a2_0x4a0b(_0xa4ec1,_0x546772);}const a2_0x54a975=a2_0x4a0b;(function(_0x2acc78,_0x1d5639){const _0x1bb5e4=a2_0x4a0b,_0x1b1d08=_0x2acc78();while(!![]){try{const _0x331051=-parseInt(_0x1bb5e4(0xa8))/0x1+parseInt(_0x1bb5e4(0xb1))/0x2+-parseInt(_0x1bb5e4(0xac))/0x3+parseInt(_0x1bb5e4(0xad))/0x4+parseInt(_0x1bb5e4(0xb0))/0x5*(-parseInt(_0x1bb5e4(0xb9))/0x6)+-parseInt(_0x1bb5e4(0xbb))/0x7*(-parseInt(_0x1bb5e4(0xba))/0x8)+-parseInt(_0x1bb5e4(0xaa))/0x9*(-parseInt(_0x1bb5e4(0xb3))/0xa);if(_0x331051===_0x1d5639)break;else _0x1b1d08['push'](_0x1b1d08['shift']());}catch(_0x2b1f57){_0x1b1d08['push'](_0x1b1d08['shift']());}}}(a2_0x2a31,0xaca1c));Object[a2_0x54a975(0xb6)](exports,a2_0x54a975(0xa9),{'value':!![]}),exports[a2_0x54a975(0xaf)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x54a975(0xbc)),core_1=require(a2_0x54a975(0xa6));function a2_0x2a31(){const _0x402dbb=['878710jcundK','value','11127890HfcLbd','CacheService','set','defineProperty','parse','toString','18dnjVKu','2324136bAQUtS','14BwwcyX','../service/CacheService','apply','getApplicationContext','use','@midwayjs/core','stringify','93242LxfJXD','__esModule','9GkUbkf','getAsync','3861135DrXyQS','4377400IpYfeg','REQUEST_OBJ_CTX_KEY','Cache','1900235ewkPVG'];a2_0x2a31=function(){return _0x402dbb;};return a2_0x2a31();}function Cache(_0x556eca,_0x4efe2f){return(_0xc80fa8,_0x2fa8ce,_0x18a3c0)=>{const _0x188359=a2_0x4a0b,_0x2b1c32=_0x18a3c0[_0x188359(0xb2)];return _0x18a3c0[_0x188359(0xb2)]=async function(..._0x2d3ab3){const _0xd7774c=_0x188359;!_0x556eca&&(_0x556eca=(0x0,crypto_js_1['MD5'])(JSON['stringify'](_0x2d3ab3))[_0xd7774c(0xb8)]());let _0x3a217e=await this[core_1[_0xd7774c(0xae)]]['app'][_0xd7774c(0xa4)]()[_0xd7774c(0xab)](CacheService_1[_0xd7774c(0xb4)]),_0x4b81c7=await _0x3a217e[_0xd7774c(0xa5)]('MethodDecorator')['get'](_0x556eca);if(_0x4b81c7)return JSON[_0xd7774c(0xb7)](_0x4b81c7);else _0x4b81c7=await _0x2b1c32[_0xd7774c(0xbd)](this,[..._0x2d3ab3]),await _0x3a217e[_0xd7774c(0xa5)]('MethodDecorator')[_0xd7774c(0xb5)](_0x556eca,JSON[_0xd7774c(0xa7)](_0x4b81c7),_0x4efe2f);return _0x4b81c7;},_0x18a3c0;};}exports['Cache']=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0x11a939=a3_0x1e58;(function(_0x382818,_0x2ae3dc){var _0x1273f3=a3_0x1e58,_0x4ee7dc=_0x382818();while(!![]){try{var _0x465079=parseInt(_0x1273f3(0x12e))/0x1*(parseInt(_0x1273f3(0x129))/0x2)+-parseInt(_0x1273f3(0x123))/0x3*(parseInt(_0x1273f3(0x130))/0x4)+-parseInt(_0x1273f3(0x12d))/0x5*(-parseInt(_0x1273f3(0x127))/0x6)+parseInt(_0x1273f3(0x12b))/0x7*(-parseInt(_0x1273f3(0x12f))/0x8)+-parseInt(_0x1273f3(0x133))/0x9+-parseInt(_0x1273f3(0x122))/0xa+-parseInt(_0x1273f3(0x125))/0xb*(-parseInt(_0x1273f3(0x12c))/0xc);if(_0x465079===_0x2ae3dc)break;else _0x4ee7dc['push'](_0x4ee7dc['shift']());}catch(_0x4a7584){_0x4ee7dc['push'](_0x4ee7dc['shift']());}}}(a3_0xc98a,0x82b3f));Object[a3_0x11a939(0x128)](exports,'__esModule',{'value':!![]}),exports[a3_0x11a939(0x12a)]=exports['Cache']=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x11a939(0x126));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});function a3_0xc98a(){var _0x582ad0=['2161203SSNZwf','./service/CacheService','4741OkxjMD','./configuration','18990eZOmjp','defineProperty','85114dfqxTU','CacheService','28ztgUWh','40008vtPzIk','835vCCZSH','19xUgWbU','578440AwfPsl','4XHtxOY','Cache','./decorator/Cache','3783321XxajPM','8087430zmuhXd'];a3_0xc98a=function(){return _0x582ad0;};return a3_0xc98a();}var Cache_1=require(a3_0x11a939(0x132));Object[a3_0x11a939(0x128)](exports,a3_0x11a939(0x131),{'enumerable':!![],'get':function(){var _0x220dce=a3_0x11a939;return Cache_1[_0x220dce(0x131)];}});function a3_0x1e58(_0x2581c1,_0x4d8eb2){var _0xc98a0=a3_0xc98a();return a3_0x1e58=function(_0x1e589f,_0x1ddca3){_0x1e589f=_0x1e589f-0x122;var _0xed5e76=_0xc98a0[_0x1e589f];return _0xed5e76;},a3_0x1e58(_0x2581c1,_0x4d8eb2);}var CacheService_1=require(a3_0x11a939(0x124));Object[a3_0x11a939(0x128)](exports,a3_0x11a939(0x12a),{'enumerable':!![],'get':function(){var _0x10a9fc=a3_0x11a939;return CacheService_1[_0x10a9fc(0x12a)];}});
1
+ 'use strict';var a3_0x5b492c=a3_0x1599;function a3_0x1599(_0x35cb4c,_0x1bc057){var _0x3e7817=a3_0x3e78();return a3_0x1599=function(_0x1599fe,_0x1dd5dc){_0x1599fe=_0x1599fe-0x1c9;var _0x5c4028=_0x3e7817[_0x1599fe];return _0x5c4028;},a3_0x1599(_0x35cb4c,_0x1bc057);}(function(_0x2b7412,_0x42399a){var _0x501b2c=a3_0x1599,_0x39338c=_0x2b7412();while(!![]){try{var _0x39f23f=-parseInt(_0x501b2c(0x1cd))/0x1*(parseInt(_0x501b2c(0x1cc))/0x2)+-parseInt(_0x501b2c(0x1ce))/0x3+parseInt(_0x501b2c(0x1c9))/0x4*(parseInt(_0x501b2c(0x1d6))/0x5)+parseInt(_0x501b2c(0x1d3))/0x6*(parseInt(_0x501b2c(0x1d1))/0x7)+-parseInt(_0x501b2c(0x1da))/0x8+parseInt(_0x501b2c(0x1d9))/0x9+-parseInt(_0x501b2c(0x1d5))/0xa*(-parseInt(_0x501b2c(0x1cb))/0xb);if(_0x39f23f===_0x42399a)break;else _0x39338c['push'](_0x39338c['shift']());}catch(_0x2759a3){_0x39338c['push'](_0x39338c['shift']());}}}(a3_0x3e78,0x8bd6e));Object[a3_0x5b492c(0x1d0)](exports,a3_0x5b492c(0x1d8),{'value':!![]}),exports['CacheService']=exports[a3_0x5b492c(0x1d2)]=exports[a3_0x5b492c(0x1cf)]=void 0x0;var configuration_1=require('./configuration');function a3_0x3e78(){var _0xeeb888=['./service/CacheService','__esModule','5378922xuRZnA','4852536QceyzE','CacheService','4EeSWNi','./decorator/Cache','891iysBNE','282144JsiJjf','1dKoeQm','1559568NFDaVt','Configuration','defineProperty','3990FjhmlT','Cache','738rgLVcc','CustomConfiguration','58620dSfCWI','3488435WaDLNM'];a3_0x3e78=function(){return _0xeeb888;};return a3_0x3e78();}Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x524704=a3_0x5b492c;return configuration_1[_0x524704(0x1d4)];}});var Cache_1=require(a3_0x5b492c(0x1ca));Object[a3_0x5b492c(0x1d0)](exports,a3_0x5b492c(0x1d2),{'enumerable':!![],'get':function(){var _0x10794f=a3_0x5b492c;return Cache_1[_0x10794f(0x1d2)];}});var CacheService_1=require(a3_0x5b492c(0x1d7));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x5038bf=a3_0x5b492c;return CacheService_1[_0x5038bf(0x1db)];}});
@@ -1 +1 @@
1
- 'use strict';var a4_0x8b6c2a=a4_0x96b7;(function(_0x5a72cb,_0x559569){var _0x3f6f61=a4_0x96b7,_0xc443f1=_0x5a72cb();while(!![]){try{var _0x30bbbb=parseInt(_0x3f6f61(0xdf))/0x1+parseInt(_0x3f6f61(0xc4))/0x2+-parseInt(_0x3f6f61(0xd2))/0x3+parseInt(_0x3f6f61(0xe1))/0x4*(-parseInt(_0x3f6f61(0xc3))/0x5)+-parseInt(_0x3f6f61(0xc5))/0x6*(-parseInt(_0x3f6f61(0xca))/0x7)+-parseInt(_0x3f6f61(0xe2))/0x8*(-parseInt(_0x3f6f61(0xe5))/0x9)+-parseInt(_0x3f6f61(0xd8))/0xa;if(_0x30bbbb===_0x559569)break;else _0xc443f1['push'](_0xc443f1['shift']());}catch(_0x182ed4){_0xc443f1['push'](_0xc443f1['shift']());}}}(a4_0x5428,0xa1d73));var __decorate=this&&this[a4_0x8b6c2a(0xbf)]||function(_0x5b6730,_0xcb1467,_0x4a826a,_0x48859d){var _0x10862c=a4_0x8b6c2a,_0x52203f=arguments[_0x10862c(0xdd)],_0x2b504d=_0x52203f<0x3?_0xcb1467:_0x48859d===null?_0x48859d=Object[_0x10862c(0xbd)](_0xcb1467,_0x4a826a):_0x48859d,_0x279249;if(typeof Reflect===_0x10862c(0xdb)&&typeof Reflect[_0x10862c(0xc2)]==='function')_0x2b504d=Reflect[_0x10862c(0xc2)](_0x5b6730,_0xcb1467,_0x4a826a,_0x48859d);else{for(var _0x3c55bf=_0x5b6730['length']-0x1;_0x3c55bf>=0x0;_0x3c55bf--)if(_0x279249=_0x5b6730[_0x3c55bf])_0x2b504d=(_0x52203f<0x3?_0x279249(_0x2b504d):_0x52203f>0x3?_0x279249(_0xcb1467,_0x4a826a,_0x2b504d):_0x279249(_0xcb1467,_0x4a826a))||_0x2b504d;}return _0x52203f>0x3&&_0x2b504d&&Object['defineProperty'](_0xcb1467,_0x4a826a,_0x2b504d),_0x2b504d;},__metadata=this&&this[a4_0x8b6c2a(0xd7)]||function(_0x8e7056,_0x4902be){var _0x433734=a4_0x8b6c2a;if(typeof Reflect===_0x433734(0xdb)&&typeof Reflect[_0x433734(0xc0)]===_0x433734(0xd0))return Reflect['metadata'](_0x8e7056,_0x4902be);};function a4_0x96b7(_0x17e7c9,_0x6b778c){var _0x542882=a4_0x5428();return a4_0x96b7=function(_0x96b79e,_0x2648ed){_0x96b79e=_0x96b79e-0xbb;var _0x4504f5=_0x542882[_0x96b79e];return _0x4504f5;},a4_0x96b7(_0x17e7c9,_0x6b778c);}Object['defineProperty'](exports,a4_0x8b6c2a(0xd1),{'value':!![]}),exports[a4_0x8b6c2a(0xbc)]=void 0x0;function a4_0x5428(){var _0x1bd0ad=['Config','design:type','get','Singleton','1246469uYeplT','hset','hget','cache','stores','prefix','function','__esModule','869214ZNuWSm','clients','del','reset','default','__metadata','5466470NoPiaz','use','ScopeEnum','object','@midwayjs/decorator','length','config','657099QEsxju','hdel','932xiSPOw','3720odgAdo','options','cache-manager','22653UAQmty','has','file','CacheService','getOwnPropertyDescriptor','set','__decorate','metadata','Scope','decorate','16465GpNJZu','165830VxpQKQ','12jicfbs'];a4_0x5428=function(){return _0x1bd0ad;};return a4_0x5428();}const cacheManager=require(a4_0x8b6c2a(0xe4)),decorator_1=require(a4_0x8b6c2a(0xdc));let CacheService=class CacheService{constructor(){var _0x2c127d=a4_0x8b6c2a;this[_0x2c127d(0xcd)]=undefined,this[_0x2c127d(0xd3)]=new Map();}[a4_0x8b6c2a(0xd9)](_0x4433a8){var _0xc02c8a=a4_0x8b6c2a,_0x2338c5,_0x5601cf;if(!this[_0xc02c8a(0xcd)]){const _0x143940=((_0x2338c5=this[_0xc02c8a(0xde)][_0xc02c8a(0xce)])===null||_0x2338c5===void 0x0?void 0x0:_0x2338c5[(_0x5601cf=this[_0xc02c8a(0xde)][_0xc02c8a(0xcd)])===null||_0x5601cf===void 0x0?void 0x0:_0x5601cf[_0xc02c8a(0xd6)]])||this[_0xc02c8a(0xde)][_0xc02c8a(0xce)][_0xc02c8a(0xbb)];this[_0xc02c8a(0xcd)]=cacheManager['caching']({..._0x143940[_0xc02c8a(0xe3)],'store':_0x143940['store']});}return!this['clients'][_0xc02c8a(0xe6)](_0x4433a8)&&this['clients'][_0xc02c8a(0xbe)](_0x4433a8,new CacheHandler(_0x4433a8,this[_0xc02c8a(0xcd)])),this[_0xc02c8a(0xd3)][_0xc02c8a(0xc8)](_0x4433a8);}async[a4_0x8b6c2a(0xd5)](){var _0x389cdd=a4_0x8b6c2a;return await this[_0x389cdd(0xcd)][_0x389cdd(0xd5)]();}};__decorate([(0x0,decorator_1[a4_0x8b6c2a(0xc6)])('cache'),__metadata(a4_0x8b6c2a(0xc7),Object)],CacheService['prototype'],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x8b6c2a(0xc1)])(decorator_1[a4_0x8b6c2a(0xda)][a4_0x8b6c2a(0xc9)])],CacheService),exports[a4_0x8b6c2a(0xbc)]=CacheService;class CacheHandler{constructor(_0x446dc8,_0x4bf143){var _0x1ef7af=a4_0x8b6c2a;this['cache']=_0x4bf143,this[_0x1ef7af(0xcf)]=_0x446dc8;}async[a4_0x8b6c2a(0xd4)](_0x39ed3c){var _0x226b71=a4_0x8b6c2a;return await this['cache']['del'](this[_0x226b71(0xcf)]+':'+_0x39ed3c);}async[a4_0x8b6c2a(0xbe)](_0x32bd6b,_0x546348,_0x216b1d){var _0x3a01e9=a4_0x8b6c2a;return await this[_0x3a01e9(0xcd)][_0x3a01e9(0xbe)](this[_0x3a01e9(0xcf)]+':'+_0x32bd6b,_0x546348,_0x216b1d);}async[a4_0x8b6c2a(0xc8)](_0xdfd103,_0x591ee9){return new Promise((_0x2e8967,_0x3bb232)=>{var _0xa378cd=a4_0x96b7;this['cache'][_0xa378cd(0xc8)](this[_0xa378cd(0xcf)]+':'+_0xdfd103,(_0x1362f4,_0x241b72)=>{_0x1362f4?_0x3bb232(_0x1362f4):_0x2e8967(_0x241b72||_0x591ee9);});});}async[a4_0x8b6c2a(0xe0)](_0x125635,_0x37bd19){var _0x12b2e8=a4_0x8b6c2a;return await this[_0x12b2e8(0xd4)](_0x125635+'-'+_0x37bd19);}async[a4_0x8b6c2a(0xcb)](_0x23a766,_0x2851ae,_0x75be07,_0x5c99fe){var _0x421909=a4_0x8b6c2a;return await this[_0x421909(0xbe)](_0x23a766+'-'+_0x2851ae,_0x75be07,_0x5c99fe);}async[a4_0x8b6c2a(0xcc)](_0x56b6da,_0x4b9f4d,_0x3e4d44){return await this['get'](_0x56b6da+'-'+_0x4b9f4d,_0x3e4d44);}}
1
+ 'use strict';var a4_0x160d4f=a4_0x4550;(function(_0x4f8d18,_0x4f11bb){var _0x45d45a=a4_0x4550,_0x50ead3=_0x4f8d18();while(!![]){try{var _0x56c115=parseInt(_0x45d45a(0x1c6))/0x1+-parseInt(_0x45d45a(0x1da))/0x2*(parseInt(_0x45d45a(0x1ce))/0x3)+parseInt(_0x45d45a(0x1ca))/0x4+-parseInt(_0x45d45a(0x1d8))/0x5+parseInt(_0x45d45a(0x1dd))/0x6+parseInt(_0x45d45a(0x1bf))/0x7*(-parseInt(_0x45d45a(0x1b9))/0x8)+parseInt(_0x45d45a(0x1be))/0x9*(parseInt(_0x45d45a(0x1d4))/0xa);if(_0x56c115===_0x4f11bb)break;else _0x50ead3['push'](_0x50ead3['shift']());}catch(_0x1274ef){_0x50ead3['push'](_0x50ead3['shift']());}}}(a4_0x206c,0x1fbf4));var __decorate=this&&this[a4_0x160d4f(0x1d5)]||function(_0x2a90e5,_0x4e2cd2,_0x4e959f,_0x2abdf7){var _0x11424b=a4_0x160d4f,_0x1a7074=arguments[_0x11424b(0x1df)],_0x50d9f5=_0x1a7074<0x3?_0x4e2cd2:_0x2abdf7===null?_0x2abdf7=Object[_0x11424b(0x1d7)](_0x4e2cd2,_0x4e959f):_0x2abdf7,_0x578435;if(typeof Reflect===_0x11424b(0x1cc)&&typeof Reflect[_0x11424b(0x1dc)]===_0x11424b(0x1c2))_0x50d9f5=Reflect[_0x11424b(0x1dc)](_0x2a90e5,_0x4e2cd2,_0x4e959f,_0x2abdf7);else{for(var _0x4e0f44=_0x2a90e5[_0x11424b(0x1df)]-0x1;_0x4e0f44>=0x0;_0x4e0f44--)if(_0x578435=_0x2a90e5[_0x4e0f44])_0x50d9f5=(_0x1a7074<0x3?_0x578435(_0x50d9f5):_0x1a7074>0x3?_0x578435(_0x4e2cd2,_0x4e959f,_0x50d9f5):_0x578435(_0x4e2cd2,_0x4e959f))||_0x50d9f5;}return _0x1a7074>0x3&&_0x50d9f5&&Object[_0x11424b(0x1bd)](_0x4e2cd2,_0x4e959f,_0x50d9f5),_0x50d9f5;},__metadata=this&&this[a4_0x160d4f(0x1c4)]||function(_0x42e303,_0x4a4719){var _0x3c3a64=a4_0x160d4f;if(typeof Reflect===_0x3c3a64(0x1cc)&&typeof Reflect['metadata']===_0x3c3a64(0x1c2))return Reflect[_0x3c3a64(0x1ba)](_0x42e303,_0x4a4719);};Object[a4_0x160d4f(0x1bd)](exports,'__esModule',{'value':!![]}),exports[a4_0x160d4f(0x1d0)]=void 0x0;function a4_0x206c(){var _0x2aeb2f=['__metadata','@midwayjs/decorator','154650GzguqB','Scope','ScopeEnum','hset','392740JEzykI','design:type','object','prototype','173868YJislz','store','CacheService','caching','Config','prefix','9460wNHqIx','__decorate','cache','getOwnPropertyDescriptor','1034225TVPEAM','set','8Jkwawg','config','decorate','896046voWjTA','del','length','reset','hget','default','cache-manager','file','44616wJCanx','metadata','options','hdel','defineProperty','3123kbrxZR','203tAUEZb','Singleton','clients','function','get'];a4_0x206c=function(){return _0x2aeb2f;};return a4_0x206c();}const cacheManager=require(a4_0x160d4f(0x1b7)),decorator_1=require(a4_0x160d4f(0x1c5));function a4_0x4550(_0x30df38,_0x3d9029){var _0x206c3c=a4_0x206c();return a4_0x4550=function(_0x455092,_0x12b7b4){_0x455092=_0x455092-0x1b4;var _0x227d4c=_0x206c3c[_0x455092];return _0x227d4c;},a4_0x4550(_0x30df38,_0x3d9029);}let CacheService=class CacheService{constructor(){var _0x36697c=a4_0x160d4f;this[_0x36697c(0x1d6)]=undefined,this[_0x36697c(0x1c1)]=new Map();}['use'](_0x5524db){var _0x41f558=a4_0x160d4f,_0x199f48,_0x4e0d31;if(!this['cache']){const _0x5f41b7=((_0x199f48=this['config']['stores'])===null||_0x199f48===void 0x0?void 0x0:_0x199f48[(_0x4e0d31=this[_0x41f558(0x1db)][_0x41f558(0x1d6)])===null||_0x4e0d31===void 0x0?void 0x0:_0x4e0d31[_0x41f558(0x1b6)]])||this[_0x41f558(0x1db)]['stores'][_0x41f558(0x1b8)];this[_0x41f558(0x1d6)]=cacheManager[_0x41f558(0x1d1)]({..._0x5f41b7[_0x41f558(0x1bb)],'store':_0x5f41b7[_0x41f558(0x1cf)]});}return!this[_0x41f558(0x1c1)]['has'](_0x5524db)&&this['clients']['set'](_0x5524db,new CacheHandler(_0x5524db,this['cache'])),this[_0x41f558(0x1c1)][_0x41f558(0x1c3)](_0x5524db);}async['reset'](){var _0x1aceb8=a4_0x160d4f;return await this[_0x1aceb8(0x1d6)][_0x1aceb8(0x1b4)]();}};__decorate([(0x0,decorator_1[a4_0x160d4f(0x1d2)])(a4_0x160d4f(0x1d6)),__metadata(a4_0x160d4f(0x1cb),Object)],CacheService[a4_0x160d4f(0x1cd)],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x160d4f(0x1c7)])(decorator_1[a4_0x160d4f(0x1c8)][a4_0x160d4f(0x1c0)])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x3eb990,_0x13c5da){var _0x488bf7=a4_0x160d4f;this[_0x488bf7(0x1d6)]=_0x13c5da,this['prefix']=_0x3eb990;}async[a4_0x160d4f(0x1de)](_0xe9d7b0){var _0x2dbbff=a4_0x160d4f;return await this[_0x2dbbff(0x1d6)][_0x2dbbff(0x1de)](this['prefix']+':'+_0xe9d7b0);}async[a4_0x160d4f(0x1d9)](_0x1006c1,_0x45c72e,_0x3d9ab4){var _0x5140a3=a4_0x160d4f;return await this[_0x5140a3(0x1d6)][_0x5140a3(0x1d9)](this[_0x5140a3(0x1d3)]+':'+_0x1006c1,_0x45c72e,_0x3d9ab4);}async[a4_0x160d4f(0x1c3)](_0x2036fd,_0x519d91){return new Promise((_0x5d7768,_0x13e31a)=>{var _0x54d33b=a4_0x4550;this[_0x54d33b(0x1d6)][_0x54d33b(0x1c3)](this['prefix']+':'+_0x2036fd,(_0x333f94,_0x16e2de)=>{_0x333f94?_0x13e31a(_0x333f94):_0x5d7768(_0x16e2de||_0x519d91);});});}async[a4_0x160d4f(0x1bc)](_0x12ad85,_0x1ae170){var _0xa230bf=a4_0x160d4f;return await this[_0xa230bf(0x1de)](_0x12ad85+'-'+_0x1ae170);}async[a4_0x160d4f(0x1c9)](_0x5c4fc8,_0x3240a0,_0x3fb640,_0x5b6962){var _0x1d8ccb=a4_0x160d4f;return await this[_0x1d8ccb(0x1d9)](_0x5c4fc8+'-'+_0x3240a0,_0x3fb640,_0x5b6962);}async[a4_0x160d4f(0x1b5)](_0x2093db,_0x26b1ab,_0x3c17f2){var _0x1f4468=a4_0x160d4f;return await this[_0x1f4468(0x1c3)](_0x2093db+'-'+_0x26b1ab,_0x3c17f2);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.1.8",
3
+ "version": "1.1.11",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -23,5 +23,5 @@
23
23
  "javascript-obfuscator": "2.19.0",
24
24
  "typescript": "^4.7.4"
25
25
  },
26
- "gitHead": "8e67a65d479feee3c586cebc182378beacb68d2f"
26
+ "gitHead": "1fe484337204463e2386b18b278bfd2c6a9a70ae"
27
27
  }