@anncic-api/cache 1.4.24 → 1.4.26

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';const a0_0x2f7c85=a0_0x35a8;(function(_0x5710eb,_0x995461){const _0x2d07d6=a0_0x35a8,_0x35ed64=_0x5710eb();while(!![]){try{const _0x135227=-parseInt(_0x2d07d6(0xf0))/0x1*(parseInt(_0x2d07d6(0xf3))/0x2)+-parseInt(_0x2d07d6(0xfa))/0x3+parseInt(_0x2d07d6(0xf1))/0x4*(-parseInt(_0x2d07d6(0xf4))/0x5)+parseInt(_0x2d07d6(0xef))/0x6*(parseInt(_0x2d07d6(0xee))/0x7)+-parseInt(_0x2d07d6(0xec))/0x8+parseInt(_0x2d07d6(0xfb))/0x9*(parseInt(_0x2d07d6(0xf2))/0xa)+parseInt(_0x2d07d6(0xf5))/0xb*(parseInt(_0x2d07d6(0xf7))/0xc);if(_0x135227===_0x995461)break;else _0x35ed64['push'](_0x35ed64['shift']());}catch(_0x40377a){_0x35ed64['push'](_0x35ed64['shift']());}}}(a0_0x54b6,0x2af81));function a0_0x54b6(){const _0x8e890a=['name','appDir','917418AoUvqf','9qqOdkW','default','127.0.0.1','defineProperty','__esModule','2265328mDQoOw','file','7BEavRw','1521078rIzokC','23801SsdOJE','4ZqsaxX','805470Hmobix','12WEfnav','960715hQqhjP','3674wfPmdE','cache-manager-fs-hash','27516crVKIE'];a0_0x54b6=function(){return _0x8e890a;};return a0_0x54b6();}Object[a0_0x2f7c85(0xea)](exports,a0_0x2f7c85(0xeb),{'value':!![]});function a0_0x35a8(_0x132085,_0x2d2334){const _0x54b65f=a0_0x54b6();return a0_0x35a8=function(_0x35a880,_0x4d39db){_0x35a880=_0x35a880-0xea;let _0x54d4db=_0x54b65f[_0x35a880];return _0x54d4db;},a0_0x35a8(_0x132085,_0x2d2334);}const fsStore=require(a0_0x2f7c85(0xf6)),redisStore=require('cache-manager-ioredis');exports[a0_0x2f7c85(0xfc)]=_0x79dc27=>{const _0x2f9a9c=a0_0x2f7c85;return{'cache':{'default':_0x2f9a9c(0xed),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x79dc27[_0x2f9a9c(0xf9)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x2f9a9c(0xfd),'password':'','ttl':0x1e13380,'keyPrefix':_0x79dc27[_0x2f9a9c(0xf8)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0x2b8c7e=a0_0x7174;function a0_0x7174(_0x3f3218,_0x5363cc){const _0x40fa3d=a0_0x40fa();return a0_0x7174=function(_0x717469,_0x57b657){_0x717469=_0x717469-0x156;let _0x3efdf1=_0x40fa3d[_0x717469];return _0x3efdf1;},a0_0x7174(_0x3f3218,_0x5363cc);}(function(_0x2c8019,_0x4db2c7){const _0x15d457=a0_0x7174,_0x74fed5=_0x2c8019();while(!![]){try{const _0x3d3114=parseInt(_0x15d457(0x15a))/0x1+-parseInt(_0x15d457(0x167))/0x2+-parseInt(_0x15d457(0x163))/0x3*(parseInt(_0x15d457(0x165))/0x4)+-parseInt(_0x15d457(0x15b))/0x5*(parseInt(_0x15d457(0x164))/0x6)+parseInt(_0x15d457(0x168))/0x7+parseInt(_0x15d457(0x15c))/0x8+-parseInt(_0x15d457(0x15f))/0x9*(parseInt(_0x15d457(0x158))/0xa);if(_0x3d3114===_0x4db2c7)break;else _0x74fed5['push'](_0x74fed5['shift']());}catch(_0x31afce){_0x74fed5['push'](_0x74fed5['shift']());}}}(a0_0x40fa,0xd58e2));Object[a0_0x2b8c7e(0x15e)](exports,a0_0x2b8c7e(0x160),{'value':!![]});function a0_0x40fa(){const _0x494da1=['appDir','3QLNzgl','5076ccjNcn','3725308mVqZLI','/runtime/.cache','363562WCcExP','8553594IShDHj','file','name','default','50ydJffg','127.0.0.1','1139685TYIUPq','80jViZQZ','733792FSMGuI','cache-manager-ioredis','defineProperty','813573WkKBns','__esModule','memory'];a0_0x40fa=function(){return _0x494da1;};return a0_0x40fa();}const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x2b8c7e(0x15d));exports[a0_0x2b8c7e(0x157)]=_0x2b2f3f=>{const _0x54706f=a0_0x2b8c7e;return{'cache':{'default':_0x54706f(0x169),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x2b2f3f[_0x54706f(0x162)]+_0x54706f(0x166)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x54706f(0x159),'password':'','ttl':0x1e13380,'keyPrefix':_0x2b2f3f[_0x54706f(0x156)]+':'}},'memory':{'store':_0x54706f(0x161),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';function a1_0x23ac(_0x5a1433,_0x2af4fc){var _0x5f5aba=a1_0x5f5a();return a1_0x23ac=function(_0x23acdb,_0xc38a40){_0x23acdb=_0x23acdb-0x165;var _0x30199f=_0x5f5aba[_0x23acdb];return _0x30199f;},a1_0x23ac(_0x5a1433,_0x2af4fc);}var a1_0x5f2c1b=a1_0x23ac;function a1_0x5f5a(){var _0x1eea44=['length','./config/config.default','object','12sGqdCX','33086009GjnYIG','5543492Gehbsd','32nAuuNq','2484600jkDUEb','11ORhykE','15549020WusPDY','__esModule','3644178hInlwl','10738cDBOaD','9uSYvaZ','defineProperty','CustomConfiguration','5nuKnim','Configuration','@midwayjs/core','getOwnPropertyDescriptor','124276igEmnu'];a1_0x5f5a=function(){return _0x1eea44;};return a1_0x5f5a();}(function(_0x6198ff,_0x2fcb43){var _0x38f56f=a1_0x23ac,_0x27d177=_0x6198ff();while(!![]){try{var _0xba30a7=-parseInt(_0x38f56f(0x176))/0x1*(parseInt(_0x38f56f(0x16d))/0x2)+parseInt(_0x38f56f(0x175))/0x3+-parseInt(_0x38f56f(0x173))/0x4+parseInt(_0x38f56f(0x169))/0x5*(parseInt(_0x38f56f(0x179))/0x6)+-parseInt(_0x38f56f(0x165))/0x7*(parseInt(_0x38f56f(0x174))/0x8)+parseInt(_0x38f56f(0x166))/0x9*(-parseInt(_0x38f56f(0x177))/0xa)+parseInt(_0x38f56f(0x172))/0xb*(parseInt(_0x38f56f(0x171))/0xc);if(_0xba30a7===_0x2fcb43)break;else _0x27d177['push'](_0x27d177['shift']());}catch(_0x5b1027){_0x27d177['push'](_0x27d177['shift']());}}}(a1_0x5f5a,0xc6799));var __decorate=this&&this['__decorate']||function(_0x1c2008,_0x3850d7,_0x9bd75c,_0x339698){var _0x4f113a=a1_0x23ac,_0x532cb0=arguments[_0x4f113a(0x16e)],_0x69f258=_0x532cb0<0x3?_0x3850d7:_0x339698===null?_0x339698=Object[_0x4f113a(0x16c)](_0x3850d7,_0x9bd75c):_0x339698,_0x554e00;if(typeof Reflect===_0x4f113a(0x170)&&typeof Reflect['decorate']==='function')_0x69f258=Reflect['decorate'](_0x1c2008,_0x3850d7,_0x9bd75c,_0x339698);else{for(var _0x1bae50=_0x1c2008[_0x4f113a(0x16e)]-0x1;_0x1bae50>=0x0;_0x1bae50--)if(_0x554e00=_0x1c2008[_0x1bae50])_0x69f258=(_0x532cb0<0x3?_0x554e00(_0x69f258):_0x532cb0>0x3?_0x554e00(_0x3850d7,_0x9bd75c,_0x69f258):_0x554e00(_0x3850d7,_0x9bd75c))||_0x69f258;}return _0x532cb0>0x3&&_0x69f258&&Object[_0x4f113a(0x167)](_0x3850d7,_0x9bd75c,_0x69f258),_0x69f258;};Object[a1_0x5f2c1b(0x167)](exports,a1_0x5f2c1b(0x178),{'value':!![]}),exports[a1_0x5f2c1b(0x168)]=void 0x0;const core_1=require(a1_0x5f2c1b(0x16b)),ConfigDefault=require(a1_0x5f2c1b(0x16f));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x5f2c1b(0x16a)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x5f2c1b(0x168)]=CustomConfiguration;
1
+ 'use strict';var a1_0x14372b=a1_0x393b;(function(_0x2f9b2e,_0x13b097){var _0x469a5e=a1_0x393b,_0x3face8=_0x2f9b2e();while(!![]){try{var _0x3d855c=parseInt(_0x469a5e(0x201))/0x1*(-parseInt(_0x469a5e(0x200))/0x2)+parseInt(_0x469a5e(0x204))/0x3*(-parseInt(_0x469a5e(0x1f6))/0x4)+-parseInt(_0x469a5e(0x1f8))/0x5*(-parseInt(_0x469a5e(0x206))/0x6)+-parseInt(_0x469a5e(0x1f2))/0x7*(-parseInt(_0x469a5e(0x1f4))/0x8)+parseInt(_0x469a5e(0x1fb))/0x9+-parseInt(_0x469a5e(0x1f7))/0xa+parseInt(_0x469a5e(0x205))/0xb;if(_0x3d855c===_0x13b097)break;else _0x3face8['push'](_0x3face8['shift']());}catch(_0x4b88da){_0x3face8['push'](_0x3face8['shift']());}}}(a1_0x24d5,0xa3dbb));function a1_0x393b(_0xe9d055,_0x490e85){var _0x24d5f4=a1_0x24d5();return a1_0x393b=function(_0x393b9c,_0x1954bc){_0x393b9c=_0x393b9c-0x1f2;var _0x928df2=_0x24d5f4[_0x393b9c];return _0x928df2;},a1_0x393b(_0xe9d055,_0x490e85);}function a1_0x24d5(){var _0x4d748e=['9BAmlaX','4422803dyRaIa','564uhUxkn','anncic-api:cache','7cQdyil','Configuration','186472anTkpp','decorate','673212ButBMW','7072410qjlTlO','59785OpRLJH','./config/config.default','object','5973687aMwHpI','@midwayjs/core','function','__decorate','defineProperty','1346vThkHj','490EtOAFn','__esModule','CustomConfiguration'];a1_0x24d5=function(){return _0x4d748e;};return a1_0x24d5();}var __decorate=this&&this[a1_0x14372b(0x1fe)]||function(_0x517c3b,_0x5be039,_0x12771b,_0x680579){var _0x5ca04a=a1_0x14372b,_0x46683f=arguments['length'],_0x5dae19=_0x46683f<0x3?_0x5be039:_0x680579===null?_0x680579=Object['getOwnPropertyDescriptor'](_0x5be039,_0x12771b):_0x680579,_0x4b6176;if(typeof Reflect===_0x5ca04a(0x1fa)&&typeof Reflect[_0x5ca04a(0x1f5)]===_0x5ca04a(0x1fd))_0x5dae19=Reflect['decorate'](_0x517c3b,_0x5be039,_0x12771b,_0x680579);else{for(var _0x47734e=_0x517c3b['length']-0x1;_0x47734e>=0x0;_0x47734e--)if(_0x4b6176=_0x517c3b[_0x47734e])_0x5dae19=(_0x46683f<0x3?_0x4b6176(_0x5dae19):_0x46683f>0x3?_0x4b6176(_0x5be039,_0x12771b,_0x5dae19):_0x4b6176(_0x5be039,_0x12771b))||_0x5dae19;}return _0x46683f>0x3&&_0x5dae19&&Object[_0x5ca04a(0x1ff)](_0x5be039,_0x12771b,_0x5dae19),_0x5dae19;};Object['defineProperty'](exports,a1_0x14372b(0x202),{'value':!![]}),exports[a1_0x14372b(0x203)]=void 0x0;const core_1=require(a1_0x14372b(0x1fc)),ConfigDefault=require(a1_0x14372b(0x1f9));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x14372b(0x1f3)])({'conflictCheck':![],'namespace':a1_0x14372b(0x207),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x14372b(0x203)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0x80bd83=a2_0x1e81;(function(_0x5befa4,_0x3c2322){const _0x175475=a2_0x1e81,_0x46f9da=_0x5befa4();while(!![]){try{const _0x4d1af1=parseInt(_0x175475(0xd4))/0x1+-parseInt(_0x175475(0xcc))/0x2+parseInt(_0x175475(0xda))/0x3+-parseInt(_0x175475(0xc8))/0x4*(-parseInt(_0x175475(0xc6))/0x5)+parseInt(_0x175475(0xd2))/0x6+-parseInt(_0x175475(0xc5))/0x7*(-parseInt(_0x175475(0xd0))/0x8)+parseInt(_0x175475(0xd3))/0x9*(-parseInt(_0x175475(0xd8))/0xa);if(_0x4d1af1===_0x3c2322)break;else _0x46f9da['push'](_0x46f9da['shift']());}catch(_0x236817){_0x46f9da['push'](_0x46f9da['shift']());}}}(a2_0x2915,0xbfaa1));function a2_0x1e81(_0x48897f,_0x8fde9a){const _0x29152f=a2_0x2915();return a2_0x1e81=function(_0x1e81dd,_0x324f26){_0x1e81dd=_0x1e81dd-0xc1;let _0x1cdbed=_0x29152f[_0x1e81dd];return _0x1cdbed;},a2_0x1e81(_0x48897f,_0x8fde9a);}function a2_0x2915(){const _0x190c5b=['Method::Decorator','crypto-js','Cache','138766junqLn','__esModule','getApplicationContext','apply','10941688CdbQTp','get','70464lvUYjI','36GeQVmN','950794rUpRNK','defineProperty','getAsync','toString','7802210oGtGsR','MD5','1572297aZfRlu','@midwayjs/core','value','app','set','use','7jXiwXN','5lNjMpG','../service/CacheService','4483904JhQLwV'];a2_0x2915=function(){return _0x190c5b;};return a2_0x2915();}Object[a2_0x80bd83(0xd5)](exports,a2_0x80bd83(0xcd),{'value':!![]}),exports['Cache']=void 0x0;const crypto_js_1=require(a2_0x80bd83(0xca)),CacheService_1=require(a2_0x80bd83(0xc7)),core_1=require(a2_0x80bd83(0xdb));function Cache(_0xc31edd,_0xcd92db){return(_0x4f9e56,_0x1fbc4f,_0x2a6e96)=>{const _0x460776=a2_0x1e81,_0x45f6db=_0x2a6e96['value'];return _0x2a6e96[_0x460776(0xc1)]=async function(..._0x3ad054){const _0x14998a=_0x460776;!_0xc31edd&&(_0xc31edd=(0x0,crypto_js_1[_0x14998a(0xd9)])(JSON['stringify'](_0x3ad054))[_0x14998a(0xd7)]());let _0x58580d=await this[core_1['REQUEST_OBJ_CTX_KEY']][_0x14998a(0xc2)][_0x14998a(0xce)]()[_0x14998a(0xd6)](CacheService_1['CacheService']),_0x2fec6c=await _0x58580d[_0x14998a(0xc4)](_0x14998a(0xc9))[_0x14998a(0xd1)](_0xc31edd);if(_0x2fec6c)return JSON['parse'](_0x2fec6c);else _0x2fec6c=await _0x45f6db[_0x14998a(0xcf)](this,[..._0x3ad054]),await _0x58580d[_0x14998a(0xc4)](_0x14998a(0xc9))[_0x14998a(0xc3)](_0xc31edd,JSON['stringify'](_0x2fec6c),_0xcd92db);return _0x2fec6c;},_0x2a6e96;};}exports[a2_0x80bd83(0xcb)]=Cache;
1
+ 'use strict';function a2_0x5c61(_0x3c799a,_0x40f61f){const _0x55cd6b=a2_0x55cd();return a2_0x5c61=function(_0x5c61af,_0x233222){_0x5c61af=_0x5c61af-0xe5;let _0x2f42df=_0x55cd6b[_0x5c61af];return _0x2f42df;},a2_0x5c61(_0x3c799a,_0x40f61f);}const a2_0x13c279=a2_0x5c61;(function(_0x3866e8,_0x57691d){const _0xa2b4fd=a2_0x5c61,_0x69de46=_0x3866e8();while(!![]){try{const _0x1ad9de=parseInt(_0xa2b4fd(0xe6))/0x1+parseInt(_0xa2b4fd(0x100))/0x2*(-parseInt(_0xa2b4fd(0xff))/0x3)+-parseInt(_0xa2b4fd(0xe9))/0x4*(-parseInt(_0xa2b4fd(0xf8))/0x5)+-parseInt(_0xa2b4fd(0xf1))/0x6*(parseInt(_0xa2b4fd(0xee))/0x7)+parseInt(_0xa2b4fd(0xef))/0x8*(-parseInt(_0xa2b4fd(0xfa))/0x9)+-parseInt(_0xa2b4fd(0x101))/0xa*(parseInt(_0xa2b4fd(0xfb))/0xb)+parseInt(_0xa2b4fd(0xf9))/0xc*(parseInt(_0xa2b4fd(0xed))/0xd);if(_0x1ad9de===_0x57691d)break;else _0x69de46['push'](_0x69de46['shift']());}catch(_0x323989){_0x69de46['push'](_0x69de46['shift']());}}}(a2_0x55cd,0xec45d));function a2_0x55cd(){const _0xf782e4=['427948aQaWWi','get','getApplicationContext','set','13MSxXww','28qDkKYT','1952daMLRX','../service/CacheService','1269834yHckku','MD5','CacheService','app','stringify','use','__esModule','25INAWxO','51601044qLEsbL','51606nsxuoD','55OVePML','value','parse','Cache','195918pbBtGa','58VCyrZo','1624370EHYIxJ','crypto-js','getAsync','1084462HsHhge','REQUEST_OBJ_CTX_KEY','Method::Decorator'];a2_0x55cd=function(){return _0xf782e4;};return a2_0x55cd();}Object['defineProperty'](exports,a2_0x13c279(0xf7),{'value':!![]}),exports[a2_0x13c279(0xfe)]=void 0x0;const crypto_js_1=require(a2_0x13c279(0x102)),CacheService_1=require(a2_0x13c279(0xf0)),core_1=require('@midwayjs/core');function Cache(_0x3c3738,_0x1142c1){return(_0x5710b9,_0x29a5ff,_0x316530)=>{const _0x4bd50e=a2_0x5c61,_0x5aac60=_0x316530[_0x4bd50e(0xfc)];return _0x316530[_0x4bd50e(0xfc)]=async function(..._0x23ed3a){const _0xd039df=_0x4bd50e;!_0x3c3738&&(_0x3c3738=(0x0,crypto_js_1[_0xd039df(0xf2)])(JSON[_0xd039df(0xf5)](_0x23ed3a))['toString']());let _0x5ecb13=await this[core_1[_0xd039df(0xe7)]][_0xd039df(0xf4)][_0xd039df(0xeb)]()[_0xd039df(0xe5)](CacheService_1[_0xd039df(0xf3)]),_0x2ebcae=await _0x5ecb13[_0xd039df(0xf6)](_0xd039df(0xe8))[_0xd039df(0xea)](_0x3c3738);if(_0x2ebcae)return JSON[_0xd039df(0xfd)](_0x2ebcae);else _0x2ebcae=await _0x5aac60['apply'](this,[..._0x23ed3a]),await _0x5ecb13['use'](_0xd039df(0xe8))[_0xd039df(0xec)](_0x3c3738,JSON['stringify'](_0x2ebcae),_0x1142c1);return _0x2ebcae;},_0x316530;};}exports['Cache']=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0x8807a2=a3_0x5d94;function a3_0x5d94(_0x1caa24,_0x3d2b45){var _0x4e94f6=a3_0x4e94();return a3_0x5d94=function(_0x5d942a,_0x65dcad){_0x5d942a=_0x5d942a-0x1c4;var _0x26b3c7=_0x4e94f6[_0x5d942a];return _0x26b3c7;},a3_0x5d94(_0x1caa24,_0x3d2b45);}(function(_0x4f0a57,_0x327f2a){var _0x8a959c=a3_0x5d94,_0x42b893=_0x4f0a57();while(!![]){try{var _0x43634b=parseInt(_0x8a959c(0x1cc))/0x1+parseInt(_0x8a959c(0x1d5))/0x2*(-parseInt(_0x8a959c(0x1cd))/0x3)+parseInt(_0x8a959c(0x1cb))/0x4*(-parseInt(_0x8a959c(0x1c9))/0x5)+parseInt(_0x8a959c(0x1d3))/0x6+parseInt(_0x8a959c(0x1d6))/0x7+-parseInt(_0x8a959c(0x1d0))/0x8*(-parseInt(_0x8a959c(0x1cf))/0x9)+parseInt(_0x8a959c(0x1d2))/0xa*(-parseInt(_0x8a959c(0x1ce))/0xb);if(_0x43634b===_0x327f2a)break;else _0x42b893['push'](_0x42b893['shift']());}catch(_0x49a39a){_0x42b893['push'](_0x42b893['shift']());}}}(a3_0x4e94,0xb6fe9));Object[a3_0x8807a2(0x1d4)](exports,a3_0x8807a2(0x1ca),{'value':!![]}),exports['CacheService']=exports['Cache']=exports[a3_0x8807a2(0x1d1)]=void 0x0;var configuration_1=require(a3_0x8807a2(0x1c6));Object[a3_0x8807a2(0x1d4)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x2c3534=a3_0x8807a2;return configuration_1[_0x2c3534(0x1c7)];}});var Cache_1=require('./decorator/Cache');Object[a3_0x8807a2(0x1d4)](exports,a3_0x8807a2(0x1c8),{'enumerable':!![],'get':function(){var _0x476436=a3_0x8807a2;return Cache_1[_0x476436(0x1c8)];}});function a3_0x4e94(){var _0x1bdcfe=['1143bpAhmE','28744bBhgze','Configuration','20DEOeYc','6177426WzHtWF','defineProperty','56RtbcTm','4484529SQxIjo','CacheService','./service/CacheService','./configuration','CustomConfiguration','Cache','5tCQQQw','__esModule','2303372gectJc','1180427NOvjsg','59628NxbNst','7837720FLfFVo'];a3_0x4e94=function(){return _0x1bdcfe;};return a3_0x4e94();}var CacheService_1=require(a3_0x8807a2(0x1c5));Object[a3_0x8807a2(0x1d4)](exports,a3_0x8807a2(0x1c4),{'enumerable':!![],'get':function(){var _0x41d613=a3_0x8807a2;return CacheService_1[_0x41d613(0x1c4)];}});
1
+ 'use strict';function a3_0x3850(_0x5179c2,_0x1120bd){var _0x5ed691=a3_0x5ed6();return a3_0x3850=function(_0x385040,_0x29c22f){_0x385040=_0x385040-0x1a0;var _0x58d627=_0x5ed691[_0x385040];return _0x58d627;},a3_0x3850(_0x5179c2,_0x1120bd);}var a3_0x32c154=a3_0x3850;(function(_0x5ef790,_0x59943e){var _0x566b2c=a3_0x3850,_0x18f05c=_0x5ef790();while(!![]){try{var _0x305663=parseInt(_0x566b2c(0x1af))/0x1*(-parseInt(_0x566b2c(0x1ab))/0x2)+-parseInt(_0x566b2c(0x1a8))/0x3+-parseInt(_0x566b2c(0x1a2))/0x4*(-parseInt(_0x566b2c(0x1a4))/0x5)+parseInt(_0x566b2c(0x1a9))/0x6+-parseInt(_0x566b2c(0x1a0))/0x7+-parseInt(_0x566b2c(0x1ad))/0x8+parseInt(_0x566b2c(0x1a7))/0x9;if(_0x305663===_0x59943e)break;else _0x18f05c['push'](_0x18f05c['shift']());}catch(_0xfc3e6b){_0x18f05c['push'](_0x18f05c['shift']());}}}(a3_0x5ed6,0xecaa9));Object[a3_0x32c154(0x1a3)](exports,'__esModule',{'value':!![]}),exports['CacheService']=exports[a3_0x32c154(0x1a6)]=exports[a3_0x32c154(0x1ae)]=void 0x0;var configuration_1=require(a3_0x32c154(0x1ac));Object[a3_0x32c154(0x1a3)](exports,a3_0x32c154(0x1ae),{'enumerable':!![],'get':function(){var _0x59c05e=a3_0x32c154;return configuration_1[_0x59c05e(0x1a5)];}});var Cache_1=require(a3_0x32c154(0x1a1));Object[a3_0x32c154(0x1a3)](exports,a3_0x32c154(0x1a6),{'enumerable':!![],'get':function(){var _0x4fefd9=a3_0x32c154;return Cache_1[_0x4fefd9(0x1a6)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x32c154(0x1a3)](exports,a3_0x32c154(0x1aa),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});function a3_0x5ed6(){var _0x11cd19=['2JCIGUw','./configuration','13910624KlfINR','Configuration','104166AiCqFZ','9847250tSGxqp','./decorator/Cache','24IjABtl','defineProperty','1072305tHvTXT','CustomConfiguration','Cache','25138305AyYeXV','1049709DbTbLo','2934726qSIphm','CacheService'];a3_0x5ed6=function(){return _0x11cd19;};return a3_0x5ed6();}
@@ -1 +1 @@
1
- 'use strict';var a4_0x5cf614=a4_0x4bd7;function a4_0x351e(){var _0x1f0883=['del','defineProperty','metadata','reset','config','ScopeEnum','cache-manager','getOwnPropertyDescriptor','object','Singleton','1424785HIeGqD','10bStghi','__metadata','options','cache','decorate','prototype','__decorate','606039VMzwlP','file','1487280nmlyUU','get','stores','hdel','has','prefix','__esModule','Provide','10uEJpOe','set','default','1042976nhBNlo','design:type','CacheService','clients','Config','45555AZnDnK','Scope','6495030pXuIRV','hset','function','6WxTmJe','1015749mCOszP','length'];a4_0x351e=function(){return _0x1f0883;};return a4_0x351e();}function a4_0x4bd7(_0x298a79,_0x1fb965){var _0x351e9b=a4_0x351e();return a4_0x4bd7=function(_0x4bd7c5,_0x4b931b){_0x4bd7c5=_0x4bd7c5-0x1b3;var _0x4ea8eb=_0x351e9b[_0x4bd7c5];return _0x4ea8eb;},a4_0x4bd7(_0x298a79,_0x1fb965);}(function(_0x421d6f,_0x267a22){var _0x5268e7=a4_0x4bd7,_0xce80f7=_0x421d6f();while(!![]){try{var _0x215932=parseInt(_0x5268e7(0x1d9))/0x1*(parseInt(_0x5268e7(0x1c0))/0x2)+-parseInt(_0x5268e7(0x1c7))/0x3+parseInt(_0x5268e7(0x1d4))/0x4+parseInt(_0x5268e7(0x1bf))/0x5+parseInt(_0x5268e7(0x1de))/0x6*(parseInt(_0x5268e7(0x1b3))/0x7)+parseInt(_0x5268e7(0x1c9))/0x8+-parseInt(_0x5268e7(0x1db))/0x9*(parseInt(_0x5268e7(0x1d1))/0xa);if(_0x215932===_0x267a22)break;else _0xce80f7['push'](_0xce80f7['shift']());}catch(_0x3e2141){_0xce80f7['push'](_0xce80f7['shift']());}}}(a4_0x351e,0x2c24a));var __decorate=this&&this[a4_0x5cf614(0x1c6)]||function(_0x56e43b,_0x79db15,_0xa64086,_0x494103){var _0x36b854=a4_0x5cf614,_0x273d67=arguments[_0x36b854(0x1b4)],_0x1149d0=_0x273d67<0x3?_0x79db15:_0x494103===null?_0x494103=Object[_0x36b854(0x1bc)](_0x79db15,_0xa64086):_0x494103,_0x4f7af1;if(typeof Reflect==='object'&&typeof Reflect[_0x36b854(0x1c4)]===_0x36b854(0x1dd))_0x1149d0=Reflect['decorate'](_0x56e43b,_0x79db15,_0xa64086,_0x494103);else{for(var _0xfdc6de=_0x56e43b[_0x36b854(0x1b4)]-0x1;_0xfdc6de>=0x0;_0xfdc6de--)if(_0x4f7af1=_0x56e43b[_0xfdc6de])_0x1149d0=(_0x273d67<0x3?_0x4f7af1(_0x1149d0):_0x273d67>0x3?_0x4f7af1(_0x79db15,_0xa64086,_0x1149d0):_0x4f7af1(_0x79db15,_0xa64086))||_0x1149d0;}return _0x273d67>0x3&&_0x1149d0&&Object['defineProperty'](_0x79db15,_0xa64086,_0x1149d0),_0x1149d0;},__metadata=this&&this[a4_0x5cf614(0x1c1)]||function(_0x264a54,_0x5a8a31){var _0x2e18d3=a4_0x5cf614;if(typeof Reflect===_0x2e18d3(0x1bd)&&typeof Reflect[_0x2e18d3(0x1b7)]===_0x2e18d3(0x1dd))return Reflect['metadata'](_0x264a54,_0x5a8a31);};Object[a4_0x5cf614(0x1b6)](exports,a4_0x5cf614(0x1cf),{'value':!![]}),exports[a4_0x5cf614(0x1d6)]=void 0x0;const cacheManager=require(a4_0x5cf614(0x1bb)),core_1=require('@midwayjs/core');let CacheService=class CacheService{constructor(){var _0x2f558d=a4_0x5cf614;this['cache']=undefined,this[_0x2f558d(0x1d7)]=new Map();}['use'](_0x4f15bd){var _0x346c39=a4_0x5cf614,_0x2441f6,_0x1d9b30;if(!this['cache']){const _0x5d0075=((_0x2441f6=this[_0x346c39(0x1b9)][_0x346c39(0x1cb)])===null||_0x2441f6===void 0x0?void 0x0:_0x2441f6[(_0x1d9b30=this[_0x346c39(0x1b9)][_0x346c39(0x1c3)])===null||_0x1d9b30===void 0x0?void 0x0:_0x1d9b30[_0x346c39(0x1d3)]])||this['config'][_0x346c39(0x1cb)][_0x346c39(0x1c8)];this[_0x346c39(0x1c3)]=cacheManager['caching']({..._0x5d0075[_0x346c39(0x1c2)],'store':_0x5d0075['store']});}return!this[_0x346c39(0x1d7)][_0x346c39(0x1cd)](_0x4f15bd)&&this['clients']['set'](_0x4f15bd,new CacheHandler(_0x4f15bd,this[_0x346c39(0x1c3)])),this[_0x346c39(0x1d7)][_0x346c39(0x1ca)](_0x4f15bd);}async[a4_0x5cf614(0x1b8)](){var _0x34a2e7=a4_0x5cf614;return await this[_0x34a2e7(0x1c3)][_0x34a2e7(0x1b8)]();}};__decorate([(0x0,core_1[a4_0x5cf614(0x1d8)])(a4_0x5cf614(0x1c3)),__metadata(a4_0x5cf614(0x1d5),Object)],CacheService[a4_0x5cf614(0x1c5)],'config',void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x5cf614(0x1d0)])(),(0x0,core_1[a4_0x5cf614(0x1da)])(core_1[a4_0x5cf614(0x1ba)][a4_0x5cf614(0x1be)])],CacheService),exports[a4_0x5cf614(0x1d6)]=CacheService;class CacheHandler{constructor(_0x54171b,_0x58269e){var _0x4a4e40=a4_0x5cf614;this[_0x4a4e40(0x1c3)]=_0x58269e,this[_0x4a4e40(0x1ce)]=_0x54171b;}async['del'](_0x32adbb){var _0x12f051=a4_0x5cf614;return await this['cache']['del'](this[_0x12f051(0x1ce)]+':'+_0x32adbb);}async['set'](_0x3ae3fd,_0x222aa0,_0x4c8b25){var _0x14d950=a4_0x5cf614;return await this[_0x14d950(0x1c3)][_0x14d950(0x1d2)](this[_0x14d950(0x1ce)]+':'+_0x3ae3fd,_0x222aa0,_0x4c8b25);}async[a4_0x5cf614(0x1ca)](_0x5c666c,_0x2f271a){return new Promise((_0x5d8f75,_0x5adce9)=>{var _0x15bb13=a4_0x4bd7;this['cache'][_0x15bb13(0x1ca)](this[_0x15bb13(0x1ce)]+':'+_0x5c666c,(_0x5a0685,_0x2b8210)=>{_0x5a0685?_0x5adce9(_0x5a0685):_0x5d8f75(_0x2b8210||_0x2f271a);});});}async[a4_0x5cf614(0x1cc)](_0x33760a,_0x3e70b1){var _0x2a222d=a4_0x5cf614;return await this[_0x2a222d(0x1b5)](_0x33760a+'#'+_0x3e70b1);}async[a4_0x5cf614(0x1dc)](_0x2b7cd8,_0x446105,_0xc21965,_0x1ef588){var _0x4ae8b0=a4_0x5cf614;return await this[_0x4ae8b0(0x1d2)](_0x2b7cd8+'#'+_0x446105,_0xc21965,_0x1ef588);}async['hget'](_0x5ea256,_0x360909,_0x52a2c2){var _0x284494=a4_0x5cf614;return await this[_0x284494(0x1ca)](_0x5ea256+'#'+_0x360909,_0x52a2c2);}}
1
+ 'use strict';var a4_0x8b052c=a4_0x1b99;(function(_0x402620,_0x2f46fb){var _0x3d28f4=a4_0x1b99,_0x857a92=_0x402620();while(!![]){try{var _0x4273b3=-parseInt(_0x3d28f4(0xdd))/0x1*(-parseInt(_0x3d28f4(0xf2))/0x2)+-parseInt(_0x3d28f4(0xec))/0x3*(parseInt(_0x3d28f4(0xdc))/0x4)+-parseInt(_0x3d28f4(0xda))/0x5+-parseInt(_0x3d28f4(0xf7))/0x6*(-parseInt(_0x3d28f4(0xee))/0x7)+parseInt(_0x3d28f4(0x100))/0x8*(parseInt(_0x3d28f4(0xf6))/0x9)+parseInt(_0x3d28f4(0xeb))/0xa+-parseInt(_0x3d28f4(0xd7))/0xb;if(_0x4273b3===_0x2f46fb)break;else _0x857a92['push'](_0x857a92['shift']());}catch(_0x22514e){_0x857a92['push'](_0x857a92['shift']());}}}(a4_0x4f8b,0x6c19f));function a4_0x4f8b(){var _0x4f1bd8=['672850YFBpMx','Provide','4IpYlSp','17277LLLCck','object','options','hdel','cache','file','__esModule','ScopeEnum','use','getOwnPropertyDescriptor','Scope','reset','__decorate','length','8225750oeZgnR','12645JuNcDu','prefix','7oMoNEw','set','prototype','has','54ysSQXv','get','hset','decorate','9WknojC','1133178ZTcKlE','config','cache-manager','caching','function','hget','stores','defineProperty','clients','4936408PPBrMS','@midwayjs/core','Singleton','16647400dKkoPd','default','metadata'];a4_0x4f8b=function(){return _0x4f1bd8;};return a4_0x4f8b();}var __decorate=this&&this[a4_0x8b052c(0xe9)]||function(_0x37a3ae,_0x4b9b38,_0x3c8a9b,_0x3c160c){var _0x567640=a4_0x8b052c,_0x111255=arguments[_0x567640(0xea)],_0x4a65ef=_0x111255<0x3?_0x4b9b38:_0x3c160c===null?_0x3c160c=Object[_0x567640(0xe6)](_0x4b9b38,_0x3c8a9b):_0x3c160c,_0x52a011;if(typeof Reflect===_0x567640(0xde)&&typeof Reflect['decorate']===_0x567640(0xfb))_0x4a65ef=Reflect[_0x567640(0xf5)](_0x37a3ae,_0x4b9b38,_0x3c8a9b,_0x3c160c);else{for(var _0x371306=_0x37a3ae[_0x567640(0xea)]-0x1;_0x371306>=0x0;_0x371306--)if(_0x52a011=_0x37a3ae[_0x371306])_0x4a65ef=(_0x111255<0x3?_0x52a011(_0x4a65ef):_0x111255>0x3?_0x52a011(_0x4b9b38,_0x3c8a9b,_0x4a65ef):_0x52a011(_0x4b9b38,_0x3c8a9b))||_0x4a65ef;}return _0x111255>0x3&&_0x4a65ef&&Object[_0x567640(0xfe)](_0x4b9b38,_0x3c8a9b,_0x4a65ef),_0x4a65ef;},__metadata=this&&this['__metadata']||function(_0x16725d,_0xe4cdb4){var _0x43dfcc=a4_0x8b052c;if(typeof Reflect===_0x43dfcc(0xde)&&typeof Reflect[_0x43dfcc(0xd9)]==='function')return Reflect[_0x43dfcc(0xd9)](_0x16725d,_0xe4cdb4);};function a4_0x1b99(_0x23324f,_0x219951){var _0x4f8b50=a4_0x4f8b();return a4_0x1b99=function(_0x1b99fd,_0xa772d){_0x1b99fd=_0x1b99fd-0xd5;var _0x403b2e=_0x4f8b50[_0x1b99fd];return _0x403b2e;},a4_0x1b99(_0x23324f,_0x219951);}Object[a4_0x8b052c(0xfe)](exports,a4_0x8b052c(0xe3),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require(a4_0x8b052c(0xf9)),core_1=require(a4_0x8b052c(0xd5));let CacheService=class CacheService{constructor(){var _0x33e72e=a4_0x8b052c;this[_0x33e72e(0xe1)]=undefined,this[_0x33e72e(0xff)]=new Map();}[a4_0x8b052c(0xe5)](_0x2a318e){var _0x59358a=a4_0x8b052c,_0x6d5292,_0x1ff126;if(!this['cache']){const _0x10c0bd=((_0x6d5292=this[_0x59358a(0xf8)][_0x59358a(0xfd)])===null||_0x6d5292===void 0x0?void 0x0:_0x6d5292[(_0x1ff126=this[_0x59358a(0xf8)][_0x59358a(0xe1)])===null||_0x1ff126===void 0x0?void 0x0:_0x1ff126[_0x59358a(0xd8)]])||this['config']['stores'][_0x59358a(0xe2)];this['cache']=cacheManager[_0x59358a(0xfa)]({..._0x10c0bd[_0x59358a(0xdf)],'store':_0x10c0bd['store']});}return!this[_0x59358a(0xff)][_0x59358a(0xf1)](_0x2a318e)&&this[_0x59358a(0xff)][_0x59358a(0xef)](_0x2a318e,new CacheHandler(_0x2a318e,this['cache'])),this[_0x59358a(0xff)][_0x59358a(0xf3)](_0x2a318e);}async[a4_0x8b052c(0xe8)](){var _0x10e580=a4_0x8b052c;return await this[_0x10e580(0xe1)][_0x10e580(0xe8)]();}};__decorate([(0x0,core_1['Config'])(a4_0x8b052c(0xe1)),__metadata('design:type',Object)],CacheService[a4_0x8b052c(0xf0)],'config',void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x8b052c(0xdb)])(),(0x0,core_1[a4_0x8b052c(0xe7)])(core_1[a4_0x8b052c(0xe4)][a4_0x8b052c(0xd6)])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x5d29ff,_0x4e32f0){this['cache']=_0x4e32f0,this['prefix']=_0x5d29ff;}async['del'](_0x14eb85){var _0x520533=a4_0x8b052c;return await this[_0x520533(0xe1)]['del'](this[_0x520533(0xed)]+':'+_0x14eb85);}async['set'](_0x4d07f7,_0x907ec4,_0x2186e4){var _0x1556e0=a4_0x8b052c;return await this['cache'][_0x1556e0(0xef)](this[_0x1556e0(0xed)]+':'+_0x4d07f7,_0x907ec4,_0x2186e4);}async[a4_0x8b052c(0xf3)](_0xe0343,_0x500f74){return new Promise((_0x451c0c,_0x458c5f)=>{var _0x47fed8=a4_0x1b99;this[_0x47fed8(0xe1)][_0x47fed8(0xf3)](this[_0x47fed8(0xed)]+':'+_0xe0343,(_0x2617b8,_0x6f2264)=>{_0x2617b8?_0x458c5f(_0x2617b8):_0x451c0c(_0x6f2264||_0x500f74);});});}async[a4_0x8b052c(0xe0)](_0x421a10,_0x11aba1){return await this['del'](_0x421a10+'#'+_0x11aba1);}async[a4_0x8b052c(0xf4)](_0xbe8c22,_0x2a766f,_0x575aa9,_0x24ed79){return await this['set'](_0xbe8c22+'#'+_0x2a766f,_0x575aa9,_0x24ed79);}async[a4_0x8b052c(0xfc)](_0x2ec3f5,_0x3a1833,_0xb8d001){var _0x5aa23d=a4_0x8b052c;return await this[_0x5aa23d(0xf3)](_0x2ec3f5+'#'+_0x3a1833,_0xb8d001);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.4.24",
3
+ "version": "1.4.26",
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": "1e484da93119dd18e00e9fb095f477f2aee04694"
26
+ "gitHead": "2b46646a074fc14c48509aa692a16a9f012616ef"
27
27
  }