@anncic-api/cache 1.1.10 → 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_0x577f(_0x329d8c,_0xd8e5ff){const _0x5a8d5e=a0_0x5a8d();return a0_0x577f=function(_0x577f38,_0x42527b){_0x577f38=_0x577f38-0x11d;let _0x30574a=_0x5a8d5e[_0x577f38];return _0x30574a;},a0_0x577f(_0x329d8c,_0xd8e5ff);}const a0_0x25136e=a0_0x577f;function a0_0x5a8d(){const _0x5a3e46=['2GmKUKw','cache-manager-fs-hash','663350WnRJRF','574808oPWksg','552530yHeTig','81LlaCOt','13163843EzHaTV','appDir','867246ULRdTU','name','15iqzaVw','2272529ooFmrg','memory','cache-manager-ioredis','575096IRnRJs','default','/runtime/.cache','__esModule','18LHscGt'];a0_0x5a8d=function(){return _0x5a3e46;};return a0_0x5a8d();}(function(_0x5a95e1,_0x343c31){const _0x481e83=a0_0x577f,_0x2fc4d6=_0x5a95e1();while(!![]){try{const _0xed8da5=parseInt(_0x481e83(0x12e))/0x1*(parseInt(_0x481e83(0x12a))/0x2)+parseInt(_0x481e83(0x11f))/0x3+parseInt(_0x481e83(0x125))/0x4*(parseInt(_0x481e83(0x121))/0x5)+-parseInt(_0x481e83(0x129))/0x6*(-parseInt(_0x481e83(0x122))/0x7)+parseInt(_0x481e83(0x12d))/0x8+parseInt(_0x481e83(0x12f))/0x9*(-parseInt(_0x481e83(0x12c))/0xa)+-parseInt(_0x481e83(0x11d))/0xb;if(_0xed8da5===_0x343c31)break;else _0x2fc4d6['push'](_0x2fc4d6['shift']());}catch(_0x42727e){_0x2fc4d6['push'](_0x2fc4d6['shift']());}}}(a0_0x5a8d,0x802c6));Object['defineProperty'](exports,a0_0x25136e(0x128),{'value':!![]});const fsStore=require(a0_0x25136e(0x12b)),redisStore=require(a0_0x25136e(0x124));exports[a0_0x25136e(0x126)]=_0x15bf44=>{const _0x1403ab=a0_0x25136e;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x15bf44[_0x1403ab(0x11e)]+_0x1403ab(0x127)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0x15bf44[_0x1403ab(0x120)]+':'}},'memory':{'store':_0x1403ab(0x123),'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_0x2d4927=a1_0x170f;(function(_0x789e29,_0x4e9b8b){var _0x1e3cbd=a1_0x170f,_0x9b71f4=_0x789e29();while(!![]){try{var _0x3ab5fd=-parseInt(_0x1e3cbd(0x1ac))/0x1*(-parseInt(_0x1e3cbd(0x1aa))/0x2)+-parseInt(_0x1e3cbd(0x1a2))/0x3+parseInt(_0x1e3cbd(0x1b0))/0x4+parseInt(_0x1e3cbd(0x1a6))/0x5*(parseInt(_0x1e3cbd(0x1b1))/0x6)+parseInt(_0x1e3cbd(0x1a8))/0x7*(parseInt(_0x1e3cbd(0x1b3))/0x8)+-parseInt(_0x1e3cbd(0x1b6))/0x9+-parseInt(_0x1e3cbd(0x1b5))/0xa*(-parseInt(_0x1e3cbd(0x1a4))/0xb);if(_0x3ab5fd===_0x4e9b8b)break;else _0x9b71f4['push'](_0x9b71f4['shift']());}catch(_0xb0be37){_0x9b71f4['push'](_0x9b71f4['shift']());}}}(a1_0x30d1,0xcbb7b));function a1_0x30d1(){var _0x1f7b76=['function','20toWzFI','13891680jJRqUL','3432828zaaciN','defineProperty','3535114EWnbzv','decorate','10kBTHnU','length','979041mbqHtm','getOwnPropertyDescriptor','106696dWBoCr','object','4AfkhOF','@midwayjs/decorator','__esModule','CustomConfiguration','5285100LraFsC','3195246MpNmSI','Configuration','16HIKywk'];a1_0x30d1=function(){return _0x1f7b76;};return a1_0x30d1();}function a1_0x170f(_0x251571,_0x3dcc17){var _0x30d15e=a1_0x30d1();return a1_0x170f=function(_0x170f6c,_0x571b92){_0x170f6c=_0x170f6c-0x1a2;var _0x1112ee=_0x30d15e[_0x170f6c];return _0x1112ee;},a1_0x170f(_0x251571,_0x3dcc17);}var __decorate=this&&this['__decorate']||function(_0x441e82,_0x27bfc0,_0x16cdbc,_0x5b1297){var _0x17b831=a1_0x170f,_0x4625b5=arguments['length'],_0x57ad10=_0x4625b5<0x3?_0x27bfc0:_0x5b1297===null?_0x5b1297=Object[_0x17b831(0x1a9)](_0x27bfc0,_0x16cdbc):_0x5b1297,_0x5bb497;if(typeof Reflect===_0x17b831(0x1ab)&&typeof Reflect[_0x17b831(0x1a5)]===_0x17b831(0x1b4))_0x57ad10=Reflect[_0x17b831(0x1a5)](_0x441e82,_0x27bfc0,_0x16cdbc,_0x5b1297);else{for(var _0x4f8fda=_0x441e82[_0x17b831(0x1a7)]-0x1;_0x4f8fda>=0x0;_0x4f8fda--)if(_0x5bb497=_0x441e82[_0x4f8fda])_0x57ad10=(_0x4625b5<0x3?_0x5bb497(_0x57ad10):_0x4625b5>0x3?_0x5bb497(_0x27bfc0,_0x16cdbc,_0x57ad10):_0x5bb497(_0x27bfc0,_0x16cdbc))||_0x57ad10;}return _0x4625b5>0x3&&_0x57ad10&&Object[_0x17b831(0x1a3)](_0x27bfc0,_0x16cdbc,_0x57ad10),_0x57ad10;};Object[a1_0x2d4927(0x1a3)](exports,a1_0x2d4927(0x1ae),{'value':!![]}),exports[a1_0x2d4927(0x1af)]=void 0x0;const decorator_1=require(a1_0x2d4927(0x1ad)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x2d4927(0x1b2)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x2d4927(0x1af)]=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';function a2_0x4546(){const _0x33f9ba=['getApplicationContext','crypto-js','__esModule','CacheService','117820wwRMiF','1297935hHtqxH','155jSQbsf','use','55035tKjoTF','set','get','MethodDecorator','129173psEnpv','toString','apply','getAsync','24PtlwLP','1252809pPPKMJ','stringify','1201872ROEbxQ','value','Cache','8970WPftHR','480IvFAyN','@midwayjs/core','REQUEST_OBJ_CTX_KEY','2786GqTRjH'];a2_0x4546=function(){return _0x33f9ba;};return a2_0x4546();}const a2_0xdae728=a2_0x5741;(function(_0x30185e,_0x43775d){const _0x953fc1=a2_0x5741,_0x48ce7e=_0x30185e();while(!![]){try{const _0x2a9844=parseInt(_0x953fc1(0xa3))/0x1*(parseInt(_0x953fc1(0x90))/0x2)+-parseInt(_0x953fc1(0xa0))/0x3+parseInt(_0x953fc1(0x9f))/0x4*(parseInt(_0x953fc1(0xa1))/0x5)+-parseInt(_0x953fc1(0x96))/0x6*(parseInt(_0x953fc1(0x9a))/0x7)+-parseInt(_0x953fc1(0x93))/0x8+-parseInt(_0x953fc1(0x91))/0x9+parseInt(_0x953fc1(0x97))/0xa*(parseInt(_0x953fc1(0x8c))/0xb);if(_0x2a9844===_0x43775d)break;else _0x48ce7e['push'](_0x48ce7e['shift']());}catch(_0x298665){_0x48ce7e['push'](_0x48ce7e['shift']());}}}(a2_0x4546,0xc8383));Object['defineProperty'](exports,a2_0xdae728(0x9d),{'value':!![]}),exports[a2_0xdae728(0x95)]=void 0x0;function a2_0x5741(_0x399089,_0x1e79c1){const _0x454619=a2_0x4546();return a2_0x5741=function(_0x5741bd,_0x305d25){_0x5741bd=_0x5741bd-0x89;let _0x3ff032=_0x454619[_0x5741bd];return _0x3ff032;},a2_0x5741(_0x399089,_0x1e79c1);}const crypto_js_1=require(a2_0xdae728(0x9c)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0xdae728(0x98));function Cache(_0x42d808,_0x1d2889){return(_0x5f015b,_0x7322a3,_0x46937f)=>{const _0x159261=a2_0x5741,_0xe422e5=_0x46937f[_0x159261(0x94)];return _0x46937f[_0x159261(0x94)]=async function(..._0x3ca031){const _0x48a3b9=_0x159261;!_0x42d808&&(_0x42d808=(0x0,crypto_js_1['MD5'])(JSON['stringify'](_0x3ca031))[_0x48a3b9(0x8d)]());let _0x80b77a=await this[core_1[_0x48a3b9(0x99)]]['app'][_0x48a3b9(0x9b)]()[_0x48a3b9(0x8f)](CacheService_1[_0x48a3b9(0x9e)]),_0x5c2054=await _0x80b77a[_0x48a3b9(0xa2)](_0x48a3b9(0x8b))[_0x48a3b9(0x8a)](_0x42d808);if(_0x5c2054)return JSON['parse'](_0x5c2054);else _0x5c2054=await _0xe422e5[_0x48a3b9(0x8e)](this,[..._0x3ca031]),await _0x80b77a['use']('MethodDecorator')[_0x48a3b9(0x89)](_0x42d808,JSON[_0x48a3b9(0x92)](_0x5c2054),_0x1d2889);return _0x5c2054;},_0x46937f;};}exports[a2_0xdae728(0x95)]=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_0x333a7f=a3_0x2fc5;function a3_0x2fc5(_0x2ce9a7,_0x4a1074){var _0x45d046=a3_0x45d0();return a3_0x2fc5=function(_0x2fc57d,_0xb94843){_0x2fc57d=_0x2fc57d-0xf6;var _0x3d90fc=_0x45d046[_0x2fc57d];return _0x3d90fc;},a3_0x2fc5(_0x2ce9a7,_0x4a1074);}function a3_0x45d0(){var _0x8a9173=['./service/CacheService','./decorator/Cache','4cFpAAr','CustomConfiguration','27VhJhzk','3xFEukZ','2648129lkKVSv','2049730NSuXVu','__esModule','998516zGFGyU','50056MuxWrg','49XOjmlV','40695mGftnk','CacheService','defineProperty','163021oJyKod','Configuration','4990440jKRdxd','132vIUSNs','Cache'];a3_0x45d0=function(){return _0x8a9173;};return a3_0x45d0();}(function(_0x426b2c,_0x455d98){var _0x114378=a3_0x2fc5,_0x984490=_0x426b2c();while(!![]){try{var _0x95ddd6=parseInt(_0x114378(0x102))/0x1*(-parseInt(_0x114378(0x109))/0x2)+parseInt(_0x114378(0xf8))/0x3*(-parseInt(_0x114378(0xfc))/0x4)+parseInt(_0x114378(0xff))/0x5*(parseInt(_0x114378(0x105))/0x6)+-parseInt(_0x114378(0xfe))/0x7*(-parseInt(_0x114378(0xfd))/0x8)+-parseInt(_0x114378(0xf7))/0x9*(-parseInt(_0x114378(0xfa))/0xa)+-parseInt(_0x114378(0xf9))/0xb+parseInt(_0x114378(0x104))/0xc;if(_0x95ddd6===_0x455d98)break;else _0x984490['push'](_0x984490['shift']());}catch(_0xc370e7){_0x984490['push'](_0x984490['shift']());}}}(a3_0x45d0,0x6abf4));Object[a3_0x333a7f(0x101)](exports,a3_0x333a7f(0xfb),{'value':!![]}),exports[a3_0x333a7f(0x100)]=exports[a3_0x333a7f(0x106)]=exports[a3_0x333a7f(0x103)]=void 0x0;var configuration_1=require('./configuration');Object['defineProperty'](exports,a3_0x333a7f(0x103),{'enumerable':!![],'get':function(){var _0x67eca9=a3_0x333a7f;return configuration_1[_0x67eca9(0xf6)];}});var Cache_1=require(a3_0x333a7f(0x108));Object['defineProperty'](exports,'Cache',{'enumerable':!![],'get':function(){var _0xd4e662=a3_0x333a7f;return Cache_1[_0xd4e662(0x106)];}});var CacheService_1=require(a3_0x333a7f(0x107));Object[a3_0x333a7f(0x101)](exports,'CacheService',{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
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';function a4_0x498c(_0x45f9d9,_0x48ea2e){var _0x209387=a4_0x2093();return a4_0x498c=function(_0x498c08,_0x553933){_0x498c08=_0x498c08-0x10e;var _0x3de220=_0x209387[_0x498c08];return _0x3de220;},a4_0x498c(_0x45f9d9,_0x48ea2e);}var a4_0x3a68d0=a4_0x498c;(function(_0x31e474,_0xa43f69){var _0x5bc0b2=a4_0x498c,_0x68d9c2=_0x31e474();while(!![]){try{var _0x3be81e=-parseInt(_0x5bc0b2(0x110))/0x1+parseInt(_0x5bc0b2(0x12d))/0x2+-parseInt(_0x5bc0b2(0x12a))/0x3*(-parseInt(_0x5bc0b2(0x118))/0x4)+-parseInt(_0x5bc0b2(0x126))/0x5*(parseInt(_0x5bc0b2(0x12f))/0x6)+parseInt(_0x5bc0b2(0x10e))/0x7+-parseInt(_0x5bc0b2(0x11e))/0x8+-parseInt(_0x5bc0b2(0x12c))/0x9*(-parseInt(_0x5bc0b2(0x116))/0xa);if(_0x3be81e===_0xa43f69)break;else _0x68d9c2['push'](_0x68d9c2['shift']());}catch(_0x4dc9b4){_0x68d9c2['push'](_0x68d9c2['shift']());}}}(a4_0x2093,0x8bd81));var __decorate=this&&this['__decorate']||function(_0x42aee7,_0x709f58,_0x58fe43,_0x5a3d23){var _0x13d952=a4_0x498c,_0xc8ad00=arguments[_0x13d952(0x11b)],_0x23406e=_0xc8ad00<0x3?_0x709f58:_0x5a3d23===null?_0x5a3d23=Object[_0x13d952(0x11d)](_0x709f58,_0x58fe43):_0x5a3d23,_0x4e4483;if(typeof Reflect===_0x13d952(0x10f)&&typeof Reflect[_0x13d952(0x129)]===_0x13d952(0x115))_0x23406e=Reflect[_0x13d952(0x129)](_0x42aee7,_0x709f58,_0x58fe43,_0x5a3d23);else{for(var _0x13a45f=_0x42aee7['length']-0x1;_0x13a45f>=0x0;_0x13a45f--)if(_0x4e4483=_0x42aee7[_0x13a45f])_0x23406e=(_0xc8ad00<0x3?_0x4e4483(_0x23406e):_0xc8ad00>0x3?_0x4e4483(_0x709f58,_0x58fe43,_0x23406e):_0x4e4483(_0x709f58,_0x58fe43))||_0x23406e;}return _0xc8ad00>0x3&&_0x23406e&&Object[_0x13d952(0x136)](_0x709f58,_0x58fe43,_0x23406e),_0x23406e;},__metadata=this&&this[a4_0x3a68d0(0x11c)]||function(_0x20f4d1,_0x5970ff){var _0x581bb4=a4_0x3a68d0;if(typeof Reflect===_0x581bb4(0x10f)&&typeof Reflect['metadata']===_0x581bb4(0x115))return Reflect[_0x581bb4(0x127)](_0x20f4d1,_0x5970ff);};function a4_0x2093(){var _0x31edee=['defineProperty','4489044DuSsMJ','object','1099902nDBMsl','get','stores','caching','prefix','function','890YpanFx','config','4TPJdMe','del','design:type','length','__metadata','getOwnPropertyDescriptor','7059064sdbMfn','file','cache','hdel','clients','prototype','cache-manager','CacheService','331055mBNcRu','metadata','set','decorate','1947678fNQYho','store','211473ckAYqO','68156ExTHgZ','hset','78eScjkL','default','has','options','Provide','@midwayjs/decorator','reset'];a4_0x2093=function(){return _0x31edee;};return a4_0x2093();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require(a4_0x3a68d0(0x124)),decorator_1=require(a4_0x3a68d0(0x134));let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}['use'](_0x102a68){var _0x1cd17a=a4_0x3a68d0,_0x112d38,_0x4891c6;if(!this['cache']){const _0x6194b7=((_0x112d38=this['config'][_0x1cd17a(0x112)])===null||_0x112d38===void 0x0?void 0x0:_0x112d38[(_0x4891c6=this['config'][_0x1cd17a(0x120)])===null||_0x4891c6===void 0x0?void 0x0:_0x4891c6[_0x1cd17a(0x130)]])||this[_0x1cd17a(0x117)][_0x1cd17a(0x112)][_0x1cd17a(0x11f)];this[_0x1cd17a(0x120)]=cacheManager[_0x1cd17a(0x113)]({..._0x6194b7[_0x1cd17a(0x132)],'store':_0x6194b7[_0x1cd17a(0x12b)]});}return!this[_0x1cd17a(0x122)][_0x1cd17a(0x131)](_0x102a68)&&this[_0x1cd17a(0x122)][_0x1cd17a(0x128)](_0x102a68,new CacheHandler(_0x102a68,this[_0x1cd17a(0x120)])),this[_0x1cd17a(0x122)][_0x1cd17a(0x111)](_0x102a68);}async[a4_0x3a68d0(0x135)](){var _0x3849e4=a4_0x3a68d0;return await this[_0x3849e4(0x120)][_0x3849e4(0x135)]();}};__decorate([(0x0,decorator_1['Config'])(a4_0x3a68d0(0x120)),__metadata(a4_0x3a68d0(0x11a),Object)],CacheService[a4_0x3a68d0(0x123)],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x3a68d0(0x133)])(),(0x0,decorator_1['Scope'])(decorator_1['ScopeEnum']['Singleton'])],CacheService),exports[a4_0x3a68d0(0x125)]=CacheService;class CacheHandler{constructor(_0x319ea0,_0x55b7c1){var _0x1b4ece=a4_0x3a68d0;this[_0x1b4ece(0x120)]=_0x55b7c1,this[_0x1b4ece(0x114)]=_0x319ea0;}async[a4_0x3a68d0(0x119)](_0x240a23){return await this['cache']['del'](this['prefix']+':'+_0x240a23);}async['set'](_0x373925,_0x6af932,_0x3b0190){var _0x5e1253=a4_0x3a68d0;return await this[_0x5e1253(0x120)][_0x5e1253(0x128)](this['prefix']+':'+_0x373925,_0x6af932,_0x3b0190);}async['get'](_0x4b4d85,_0x155bb3){return new Promise((_0x305877,_0x44f262)=>{var _0x5f1c82=a4_0x498c;this['cache']['get'](this[_0x5f1c82(0x114)]+':'+_0x4b4d85,(_0xc8472b,_0x44422d)=>{_0xc8472b?_0x44f262(_0xc8472b):_0x305877(_0x44422d||_0x155bb3);});});}async[a4_0x3a68d0(0x121)](_0x4adb3,_0x2a9c91){var _0x58df98=a4_0x3a68d0;return await this[_0x58df98(0x119)](_0x4adb3+'-'+_0x2a9c91);}async[a4_0x3a68d0(0x12e)](_0x1ba682,_0x5a4ef9,_0x192708,_0x12ed73){var _0x43b82c=a4_0x3a68d0;return await this[_0x43b82c(0x128)](_0x1ba682+'-'+_0x5a4ef9,_0x192708,_0x12ed73);}async['hget'](_0x6aba8b,_0x22ba66,_0x3a387d){return await this['get'](_0x6aba8b+'-'+_0x22ba66,_0x3a387d);}}
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.10",
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": "dc48f123829af47e61c70a523fcd1c35e79e68e3"
26
+ "gitHead": "1fe484337204463e2386b18b278bfd2c6a9a70ae"
27
27
  }