@anncic-api/cache 1.1.13 → 1.1.16

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_0x6a8a(_0x4aa0b5,_0x454141){const _0x999ba3=a0_0x999b();return a0_0x6a8a=function(_0x6a8abf,_0x5c019f){_0x6a8abf=_0x6a8abf-0x1e1;let _0xac378c=_0x999ba3[_0x6a8abf];return _0xac378c;},a0_0x6a8a(_0x4aa0b5,_0x454141);}const a0_0x222a79=a0_0x6a8a;(function(_0x52eb58,_0x51f5ee){const _0x159245=a0_0x6a8a,_0x105cbb=_0x52eb58();while(!![]){try{const _0x46fc4f=-parseInt(_0x159245(0x1ee))/0x1*(-parseInt(_0x159245(0x1ec))/0x2)+-parseInt(_0x159245(0x1f4))/0x3+-parseInt(_0x159245(0x1eb))/0x4*(-parseInt(_0x159245(0x1f0))/0x5)+parseInt(_0x159245(0x1e4))/0x6*(parseInt(_0x159245(0x1e2))/0x7)+-parseInt(_0x159245(0x1ed))/0x8*(-parseInt(_0x159245(0x1ef))/0x9)+parseInt(_0x159245(0x1ea))/0xa*(-parseInt(_0x159245(0x1e3))/0xb)+parseInt(_0x159245(0x1e1))/0xc*(-parseInt(_0x159245(0x1e5))/0xd);if(_0x46fc4f===_0x51f5ee)break;else _0x105cbb['push'](_0x105cbb['shift']());}catch(_0x35d52a){_0x105cbb['push'](_0x105cbb['shift']());}}}(a0_0x999b,0xeff62));function a0_0x999b(){const _0x30ddc9=['defineProperty','memory','appDir','/runtime/.cache','1203690xDKmFV','5555804lBZaGU','2hSJoCt','13464QdpuwC','618734PGvvNM','8712DdfiIY','5ORbFKL','default','__esModule','file','2752761kCvfqa','31248lHCFVT','5236EMTZPq','88GdKHon','1086dQEbYx','4537fRSwBC'];a0_0x999b=function(){return _0x30ddc9;};return a0_0x999b();}Object[a0_0x222a79(0x1e6)](exports,a0_0x222a79(0x1f2),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require('cache-manager-ioredis');exports[a0_0x222a79(0x1f1)]=_0x1e5cc4=>{const _0x48c819=a0_0x222a79;return{'cache':{'default':_0x48c819(0x1f3),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x1e5cc4[_0x48c819(0x1e8)]+_0x48c819(0x1e9)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0x1e5cc4['name']+':'}},'memory':{'store':_0x48c819(0x1e7),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0x347798=a0_0x526f;(function(_0x2f5f62,_0x25fa10){const _0x50a8ed=a0_0x526f,_0x2c0d2c=_0x2f5f62();while(!![]){try{const _0x23e69b=-parseInt(_0x50a8ed(0x1e6))/0x1*(parseInt(_0x50a8ed(0x1d6))/0x2)+-parseInt(_0x50a8ed(0x1da))/0x3*(-parseInt(_0x50a8ed(0x1e2))/0x4)+parseInt(_0x50a8ed(0x1de))/0x5*(parseInt(_0x50a8ed(0x1dc))/0x6)+parseInt(_0x50a8ed(0x1e1))/0x7*(-parseInt(_0x50a8ed(0x1d7))/0x8)+parseInt(_0x50a8ed(0x1e3))/0x9*(parseInt(_0x50a8ed(0x1db))/0xa)+parseInt(_0x50a8ed(0x1e0))/0xb+-parseInt(_0x50a8ed(0x1d8))/0xc;if(_0x23e69b===_0x25fa10)break;else _0x2c0d2c['push'](_0x2c0d2c['shift']());}catch(_0x2abeb7){_0x2c0d2c['push'](_0x2c0d2c['shift']());}}}(a0_0x4f07,0x54f96));function a0_0x526f(_0x351317,_0x2f3194){const _0x4f07d8=a0_0x4f07();return a0_0x526f=function(_0x526fa9,_0x3e1851){_0x526fa9=_0x526fa9-0x1d3;let _0xf9aa61=_0x4f07d8[_0x526fa9];return _0xf9aa61;},a0_0x526f(_0x351317,_0x2f3194);}Object[a0_0x347798(0x1df)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x347798(0x1d4)),redisStore=require(a0_0x347798(0x1dd));exports[a0_0x347798(0x1d5)]=_0x4e39f0=>{const _0x3eb8fc=a0_0x347798;return{'cache':{'default':_0x3eb8fc(0x1d3),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x4e39f0[_0x3eb8fc(0x1e4)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x3eb8fc(0x1e5),'password':'','ttl':0x1e13380,'keyPrefix':_0x4e39f0[_0x3eb8fc(0x1e7)]+':'}},'memory':{'store':_0x3eb8fc(0x1d9),'options':{'max':0x64,'ttl':0x1e13380}}}}};};function a0_0x4f07(){const _0x23012e=['7430anHuMo','134430ADhCuu','cache-manager-ioredis','105aUvsVH','defineProperty','2450679vRVjnR','11417PIhnBI','4PnTsGq','1440eXEDqb','appDir','127.0.0.1','9320wzftur','name','file','cache-manager-fs-hash','default','136jZxHvB','1080gFHBMB','178488BnQABp','memory','1214097pAfxGB'];a0_0x4f07=function(){return _0x23012e;};return a0_0x4f07();}
@@ -1 +1 @@
1
- 'use strict';function a1_0x57ed(){var _0x47da17=['10VfpqID','decorate','21380xupKgz','anncic-api:cache','Configuration','7rDReHS','3312GtTbgS','429592GWvmYQ','CustomConfiguration','2567460MJoTvR','./config/config.default','10656998nrRiwJ','2506jRLqxZ','__esModule','defineProperty','789212Rddups','length','object','3503696JxcgzF','1851uOnXCy'];a1_0x57ed=function(){return _0x47da17;};return a1_0x57ed();}function a1_0x4639(_0x2d0a0c,_0x1845d1){var _0x57ed8e=a1_0x57ed();return a1_0x4639=function(_0x4639ca,_0x26658d){_0x4639ca=_0x4639ca-0x124;var _0x5cf875=_0x57ed8e[_0x4639ca];return _0x5cf875;},a1_0x4639(_0x2d0a0c,_0x1845d1);}var a1_0x248d3b=a1_0x4639;(function(_0x2f4d07,_0x3f6b24){var _0x1f383d=a1_0x4639,_0x51df72=_0x2f4d07();while(!![]){try{var _0x111a6b=-parseInt(_0x1f383d(0x126))/0x1+-parseInt(_0x1f383d(0x137))/0x2*(parseInt(_0x1f383d(0x12a))/0x3)+-parseInt(_0x1f383d(0x132))/0x4*(-parseInt(_0x1f383d(0x12b))/0x5)+parseInt(_0x1f383d(0x134))/0x6*(parseInt(_0x1f383d(0x130))/0x7)+-parseInt(_0x1f383d(0x129))/0x8+-parseInt(_0x1f383d(0x131))/0x9*(-parseInt(_0x1f383d(0x12d))/0xa)+parseInt(_0x1f383d(0x136))/0xb;if(_0x111a6b===_0x3f6b24)break;else _0x51df72['push'](_0x51df72['shift']());}catch(_0x5872f1){_0x51df72['push'](_0x51df72['shift']());}}}(a1_0x57ed,0x612d1));var __decorate=this&&this['__decorate']||function(_0x12145f,_0x58c15e,_0x47d6cc,_0x2e5eac){var _0x2b411d=a1_0x4639,_0xe0026b=arguments[_0x2b411d(0x127)],_0x166837=_0xe0026b<0x3?_0x58c15e:_0x2e5eac===null?_0x2e5eac=Object['getOwnPropertyDescriptor'](_0x58c15e,_0x47d6cc):_0x2e5eac,_0x4f888f;if(typeof Reflect===_0x2b411d(0x128)&&typeof Reflect[_0x2b411d(0x12c)]==='function')_0x166837=Reflect[_0x2b411d(0x12c)](_0x12145f,_0x58c15e,_0x47d6cc,_0x2e5eac);else{for(var _0x23ea89=_0x12145f[_0x2b411d(0x127)]-0x1;_0x23ea89>=0x0;_0x23ea89--)if(_0x4f888f=_0x12145f[_0x23ea89])_0x166837=(_0xe0026b<0x3?_0x4f888f(_0x166837):_0xe0026b>0x3?_0x4f888f(_0x58c15e,_0x47d6cc,_0x166837):_0x4f888f(_0x58c15e,_0x47d6cc))||_0x166837;}return _0xe0026b>0x3&&_0x166837&&Object['defineProperty'](_0x58c15e,_0x47d6cc,_0x166837),_0x166837;};Object[a1_0x248d3b(0x125)](exports,a1_0x248d3b(0x124),{'value':!![]}),exports[a1_0x248d3b(0x133)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),ConfigDefault=require(a1_0x248d3b(0x135));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x248d3b(0x12f)])({'conflictCheck':![],'namespace':a1_0x248d3b(0x12e),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x248d3b(0x133)]=CustomConfiguration;
1
+ 'use strict';var a1_0x3a8f99=a1_0x52ce;(function(_0x40266f,_0x9b8a11){var _0x9f9755=a1_0x52ce,_0x596ebe=_0x40266f();while(!![]){try{var _0x2dd6bb=-parseInt(_0x9f9755(0xa6))/0x1+-parseInt(_0x9f9755(0x9c))/0x2*(parseInt(_0x9f9755(0xa1))/0x3)+parseInt(_0x9f9755(0xa5))/0x4+parseInt(_0x9f9755(0x9f))/0x5+-parseInt(_0x9f9755(0xa3))/0x6+parseInt(_0x9f9755(0xa2))/0x7*(parseInt(_0x9f9755(0xa8))/0x8)+parseInt(_0x9f9755(0xa4))/0x9;if(_0x2dd6bb===_0x9b8a11)break;else _0x596ebe['push'](_0x596ebe['shift']());}catch(_0x20413c){_0x596ebe['push'](_0x596ebe['shift']());}}}(a1_0x4d26,0xd98f0));function a1_0x4d26(){var _0x4f65ed=['94409VpFpTx','6868458JnIEyZ','24900894hVVkIi','2393808cSyHcD','1392194pzXnAy','decorate','344kmXjlT','Configuration','CustomConfiguration','./config/config.default','defineProperty','object','3974YRPaoj','length','@midwayjs/decorator','2868805gaiRQI','__decorate','1647VMAWDl'];a1_0x4d26=function(){return _0x4f65ed;};return a1_0x4d26();}var __decorate=this&&this[a1_0x3a8f99(0xa0)]||function(_0x3e3524,_0x558fa1,_0x2ce56e,_0x25bec5){var _0x514fd8=a1_0x3a8f99,_0x4d4467=arguments[_0x514fd8(0x9d)],_0x11152f=_0x4d4467<0x3?_0x558fa1:_0x25bec5===null?_0x25bec5=Object['getOwnPropertyDescriptor'](_0x558fa1,_0x2ce56e):_0x25bec5,_0x48440f;if(typeof Reflect===_0x514fd8(0xad)&&typeof Reflect[_0x514fd8(0xa7)]==='function')_0x11152f=Reflect[_0x514fd8(0xa7)](_0x3e3524,_0x558fa1,_0x2ce56e,_0x25bec5);else{for(var _0x19db37=_0x3e3524[_0x514fd8(0x9d)]-0x1;_0x19db37>=0x0;_0x19db37--)if(_0x48440f=_0x3e3524[_0x19db37])_0x11152f=(_0x4d4467<0x3?_0x48440f(_0x11152f):_0x4d4467>0x3?_0x48440f(_0x558fa1,_0x2ce56e,_0x11152f):_0x48440f(_0x558fa1,_0x2ce56e))||_0x11152f;}return _0x4d4467>0x3&&_0x11152f&&Object['defineProperty'](_0x558fa1,_0x2ce56e,_0x11152f),_0x11152f;};function a1_0x52ce(_0x2a75b8,_0x5437a1){var _0x4d267f=a1_0x4d26();return a1_0x52ce=function(_0x52ce93,_0xd3ae17){_0x52ce93=_0x52ce93-0x9c;var _0x3e4cff=_0x4d267f[_0x52ce93];return _0x3e4cff;},a1_0x52ce(_0x2a75b8,_0x5437a1);}Object[a1_0x3a8f99(0xac)](exports,'__esModule',{'value':!![]}),exports[a1_0x3a8f99(0xaa)]=void 0x0;const decorator_1=require(a1_0x3a8f99(0x9e)),ConfigDefault=require(a1_0x3a8f99(0xab));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x3a8f99(0xa9)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x3a8f99(0xaa)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0x124300=a2_0x3452;function a2_0x3452(_0xd2ba0c,_0x396b4d){const _0x38ab5c=a2_0x38ab();return a2_0x3452=function(_0x345219,_0x4aaf21){_0x345219=_0x345219-0x133;let _0x518a06=_0x38ab5c[_0x345219];return _0x518a06;},a2_0x3452(_0xd2ba0c,_0x396b4d);}(function(_0x5fc9e1,_0x41b189){const _0x55f152=a2_0x3452,_0x56cc9c=_0x5fc9e1();while(!![]){try{const _0x1998fb=parseInt(_0x55f152(0x134))/0x1*(-parseInt(_0x55f152(0x13d))/0x2)+-parseInt(_0x55f152(0x149))/0x3*(parseInt(_0x55f152(0x133))/0x4)+-parseInt(_0x55f152(0x148))/0x5*(parseInt(_0x55f152(0x14c))/0x6)+-parseInt(_0x55f152(0x142))/0x7*(parseInt(_0x55f152(0x137))/0x8)+parseInt(_0x55f152(0x13c))/0x9+parseInt(_0x55f152(0x13f))/0xa*(-parseInt(_0x55f152(0x14b))/0xb)+parseInt(_0x55f152(0x14a))/0xc;if(_0x1998fb===_0x41b189)break;else _0x56cc9c['push'](_0x56cc9c['shift']());}catch(_0x327e41){_0x56cc9c['push'](_0x56cc9c['shift']());}}}(a2_0x38ab,0x8df6b));Object[a2_0x124300(0x141)](exports,'__esModule',{'value':!![]}),exports['Cache']=void 0x0;function a2_0x38ab(){const _0x4c8e46=['apply','REQUEST_OBJ_CTX_KEY','get','stringify','app','25zCnpHA','3357qlJyqt','20401128fHXtdL','1992221pwdfNr','228564ruLJMg','../service/CacheService','2428BpFChp','1650NczhlS','value','Cache','40LGyuxf','getAsync','toString','use','set','2283246evbGrC','164BTVNMl','getApplicationContext','20XCDHZl','parse','defineProperty','7112ORAvfZ'];a2_0x38ab=function(){return _0x4c8e46;};return a2_0x38ab();}const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x124300(0x14d)),core_1=require('@midwayjs/core');function Cache(_0x34ecb2,_0x557554){return(_0x12dbbb,_0x374480,_0x58dafc)=>{const _0x503a45=a2_0x3452,_0x3f1721=_0x58dafc[_0x503a45(0x135)];return _0x58dafc[_0x503a45(0x135)]=async function(..._0x55ca8b){const _0x1ee9f3=_0x503a45;!_0x34ecb2&&(_0x34ecb2=(0x0,crypto_js_1['MD5'])(JSON[_0x1ee9f3(0x146)](_0x55ca8b))[_0x1ee9f3(0x139)]());let _0x472fa5=await this[core_1[_0x1ee9f3(0x144)]][_0x1ee9f3(0x147)][_0x1ee9f3(0x13e)]()[_0x1ee9f3(0x138)](CacheService_1['CacheService']),_0x17aa80=await _0x472fa5[_0x1ee9f3(0x13a)]('MethodDecorator')[_0x1ee9f3(0x145)](_0x34ecb2);if(_0x17aa80)return JSON[_0x1ee9f3(0x140)](_0x17aa80);else _0x17aa80=await _0x3f1721[_0x1ee9f3(0x143)](this,[..._0x55ca8b]),await _0x472fa5['use']('MethodDecorator')[_0x1ee9f3(0x13b)](_0x34ecb2,JSON[_0x1ee9f3(0x146)](_0x17aa80),_0x557554);return _0x17aa80;},_0x58dafc;};}exports[a2_0x124300(0x136)]=Cache;
1
+ 'use strict';const a2_0x581676=a2_0x286b;function a2_0x286b(_0x4c04a6,_0x3ce7b2){const _0x544a5e=a2_0x544a();return a2_0x286b=function(_0x286b98,_0xe265f7){_0x286b98=_0x286b98-0x199;let _0x45dc62=_0x544a5e[_0x286b98];return _0x45dc62;},a2_0x286b(_0x4c04a6,_0x3ce7b2);}(function(_0x215f65,_0x3811f4){const _0x2c7050=a2_0x286b,_0x34641e=_0x215f65();while(!![]){try{const _0x1914f5=parseInt(_0x2c7050(0x19b))/0x1*(parseInt(_0x2c7050(0x1a5))/0x2)+-parseInt(_0x2c7050(0x1ad))/0x3*(-parseInt(_0x2c7050(0x1a9))/0x4)+-parseInt(_0x2c7050(0x1a8))/0x5+-parseInt(_0x2c7050(0x1a6))/0x6*(-parseInt(_0x2c7050(0x1b3))/0x7)+-parseInt(_0x2c7050(0x1af))/0x8+parseInt(_0x2c7050(0x1ac))/0x9*(parseInt(_0x2c7050(0x1a7))/0xa)+parseInt(_0x2c7050(0x19f))/0xb*(parseInt(_0x2c7050(0x1b1))/0xc);if(_0x1914f5===_0x3811f4)break;else _0x34641e['push'](_0x34641e['shift']());}catch(_0x4d29e0){_0x34641e['push'](_0x34641e['shift']());}}}(a2_0x544a,0x565a8));Object[a2_0x581676(0x1a2)](exports,a2_0x581676(0x1a3),{'value':!![]}),exports[a2_0x581676(0x1a4)]=void 0x0;const crypto_js_1=require(a2_0x581676(0x1b2)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x581676(0x1ab));function Cache(_0x34336c,_0x4fe1ac){return(_0x4c88f2,_0x1b7101,_0x1579d3)=>{const _0x1dcc67=a2_0x286b,_0x15d0a3=_0x1579d3[_0x1dcc67(0x19d)];return _0x1579d3[_0x1dcc67(0x19d)]=async function(..._0x2c3fee){const _0x2fdec5=_0x1dcc67;!_0x34336c&&(_0x34336c=(0x0,crypto_js_1['MD5'])(JSON[_0x2fdec5(0x19c)](_0x2c3fee))[_0x2fdec5(0x1b0)]());let _0x40d400=await this[core_1[_0x2fdec5(0x1a1)]][_0x2fdec5(0x1ae)]['getApplicationContext']()[_0x2fdec5(0x199)](CacheService_1['CacheService']),_0x422fb3=await _0x40d400[_0x2fdec5(0x19a)](_0x2fdec5(0x19e))['get'](_0x34336c);if(_0x422fb3)return JSON[_0x2fdec5(0x1aa)](_0x422fb3);else _0x422fb3=await _0x15d0a3[_0x2fdec5(0x1a0)](this,[..._0x2c3fee]),await _0x40d400[_0x2fdec5(0x19a)](_0x2fdec5(0x19e))[_0x2fdec5(0x1b4)](_0x34336c,JSON[_0x2fdec5(0x19c)](_0x422fb3),_0x4fe1ac);return _0x422fb3;},_0x1579d3;};}exports[a2_0x581676(0x1a4)]=Cache;function a2_0x544a(){const _0x5e9e48=['9qHndSk','39ykxtSx','app','3276824lPVfWS','toString','2741280IWEIGf','crypto-js','14fqYgEn','set','getAsync','use','2279lAFQfu','stringify','value','MethodDecorator','22ipQxmj','apply','REQUEST_OBJ_CTX_KEY','defineProperty','__esModule','Cache','164ktrxAu','925674eFeNtp','865210nVoqDe','2709175XwPSNm','81940PllPSH','parse','@midwayjs/core'];a2_0x544a=function(){return _0x5e9e48;};return a2_0x544a();}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0x97b503=a3_0x459e;(function(_0x3dac56,_0x476f29){var _0x42e1c0=a3_0x459e,_0x758c5c=_0x3dac56();while(!![]){try{var _0x397eb7=parseInt(_0x42e1c0(0xf6))/0x1+parseInt(_0x42e1c0(0xff))/0x2+-parseInt(_0x42e1c0(0x103))/0x3+parseInt(_0x42e1c0(0x102))/0x4+-parseInt(_0x42e1c0(0xfe))/0x5+parseInt(_0x42e1c0(0xfa))/0x6+-parseInt(_0x42e1c0(0xfb))/0x7;if(_0x397eb7===_0x476f29)break;else _0x758c5c['push'](_0x758c5c['shift']());}catch(_0x3e5de2){_0x758c5c['push'](_0x758c5c['shift']());}}}(a3_0x33c9,0x2021c));function a3_0x459e(_0x22c1ae,_0x56863c){var _0x33c969=a3_0x33c9();return a3_0x459e=function(_0x459eac,_0x3ee1f6){_0x459eac=_0x459eac-0xf6;var _0x25a58b=_0x33c969[_0x459eac];return _0x25a58b;},a3_0x459e(_0x22c1ae,_0x56863c);}function a3_0x33c9(){var _0x457d81=['__esModule','1166316YgmnoB','638589VhxCat','CacheService','./configuration','220410QOsDiz','27120uLXXML','Cache','./decorator/Cache','234636jaqJUn','319677hzlrXu','106875qBJdFM','defineProperty','Configuration'];a3_0x33c9=function(){return _0x457d81;};return a3_0x33c9();}Object[a3_0x97b503(0xf7)](exports,a3_0x97b503(0xf9),{'value':!![]}),exports['CacheService']=exports[a3_0x97b503(0x100)]=exports[a3_0x97b503(0xf8)]=void 0x0;var configuration_1=require(a3_0x97b503(0xfd));Object[a3_0x97b503(0xf7)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x97b503(0x101));Object['defineProperty'](exports,a3_0x97b503(0x100),{'enumerable':!![],'get':function(){var _0x5ad36c=a3_0x97b503;return Cache_1[_0x5ad36c(0x100)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x97b503(0xf7)](exports,a3_0x97b503(0xfc),{'enumerable':!![],'get':function(){var _0x468cbc=a3_0x97b503;return CacheService_1[_0x468cbc(0xfc)];}});
1
+ 'use strict';function a3_0x73e1(_0x4d752c,_0x3d1f6b){var _0xdba62c=a3_0xdba6();return a3_0x73e1=function(_0x73e1a2,_0x3f83bd){_0x73e1a2=_0x73e1a2-0xe5;var _0xe4d315=_0xdba62c[_0x73e1a2];return _0xe4d315;},a3_0x73e1(_0x4d752c,_0x3d1f6b);}var a3_0x12ff64=a3_0x73e1;(function(_0x229d05,_0x10ce8a){var _0x46af9b=a3_0x73e1,_0x5c292d=_0x229d05();while(!![]){try{var _0x436803=-parseInt(_0x46af9b(0xf1))/0x1+parseInt(_0x46af9b(0xf4))/0x2+parseInt(_0x46af9b(0xef))/0x3+-parseInt(_0x46af9b(0xf2))/0x4+parseInt(_0x46af9b(0xe8))/0x5*(-parseInt(_0x46af9b(0xe9))/0x6)+parseInt(_0x46af9b(0xee))/0x7+-parseInt(_0x46af9b(0xea))/0x8*(-parseInt(_0x46af9b(0xf3))/0x9);if(_0x436803===_0x10ce8a)break;else _0x5c292d['push'](_0x5c292d['shift']());}catch(_0x1b3939){_0x5c292d['push'](_0x5c292d['shift']());}}}(a3_0xdba6,0xdf3f6));Object[a3_0x12ff64(0xec)](exports,a3_0x12ff64(0xe7),{'value':!![]}),exports[a3_0x12ff64(0xe6)]=exports[a3_0x12ff64(0xf0)]=exports['Configuration']=void 0x0;var configuration_1=require('./configuration');Object[a3_0x12ff64(0xec)](exports,a3_0x12ff64(0xeb),{'enumerable':!![],'get':function(){var _0x3cdc31=a3_0x12ff64;return configuration_1[_0x3cdc31(0xed)];}});var Cache_1=require(a3_0x12ff64(0xe5));Object[a3_0x12ff64(0xec)](exports,a3_0x12ff64(0xf0),{'enumerable':!![],'get':function(){var _0x113de6=a3_0x12ff64;return Cache_1[_0x113de6(0xf0)];}});var CacheService_1=require(a3_0x12ff64(0xf5));Object[a3_0x12ff64(0xec)](exports,a3_0x12ff64(0xe6),{'enumerable':!![],'get':function(){var _0x4d14ea=a3_0x12ff64;return CacheService_1[_0x4d14ea(0xe6)];}});function a3_0xdba6(){var _0x322862=['3064077Ymiawu','2671468WOYvTK','./service/CacheService','./decorator/Cache','CacheService','__esModule','1047805OrQFtc','12vgCLAk','24LsaEJS','Configuration','defineProperty','CustomConfiguration','10567788lBtDnX','390900derDaP','Cache','957012XIAlJR','6826084HPUCmm'];a3_0xdba6=function(){return _0x322862;};return a3_0xdba6();}
@@ -1 +1 @@
1
- 'use strict';function a4_0x5ad7(_0x2aaa41,_0x407e21){var _0x3fc516=a4_0x3fc5();return a4_0x5ad7=function(_0x5ad7c5,_0x51a444){_0x5ad7c5=_0x5ad7c5-0x1db;var _0x404252=_0x3fc516[_0x5ad7c5];return _0x404252;},a4_0x5ad7(_0x2aaa41,_0x407e21);}var a4_0x531bb7=a4_0x5ad7;(function(_0x5813be,_0x5dbc2b){var _0x2bfb81=a4_0x5ad7,_0x2f8442=_0x5813be();while(!![]){try{var _0x5c3796=-parseInt(_0x2bfb81(0x1f6))/0x1*(-parseInt(_0x2bfb81(0x1f8))/0x2)+parseInt(_0x2bfb81(0x1fa))/0x3*(-parseInt(_0x2bfb81(0x1fc))/0x4)+parseInt(_0x2bfb81(0x201))/0x5*(-parseInt(_0x2bfb81(0x1df))/0x6)+parseInt(_0x2bfb81(0x1dc))/0x7+-parseInt(_0x2bfb81(0x1f1))/0x8*(-parseInt(_0x2bfb81(0x1f9))/0x9)+-parseInt(_0x2bfb81(0x1e7))/0xa+parseInt(_0x2bfb81(0x204))/0xb;if(_0x5c3796===_0x5dbc2b)break;else _0x2f8442['push'](_0x2f8442['shift']());}catch(_0x5a216e){_0x2f8442['push'](_0x2f8442['shift']());}}}(a4_0x3fc5,0xa72d5));var __decorate=this&&this[a4_0x531bb7(0x1e5)]||function(_0x374041,_0x3ef7a5,_0x25ceb8,_0x1b09e9){var _0x3a9eca=a4_0x531bb7,_0x1b7356=arguments['length'],_0xb8d73f=_0x1b7356<0x3?_0x3ef7a5:_0x1b09e9===null?_0x1b09e9=Object[_0x3a9eca(0x1e0)](_0x3ef7a5,_0x25ceb8):_0x1b09e9,_0x3a1739;if(typeof Reflect===_0x3a9eca(0x1f4)&&typeof Reflect[_0x3a9eca(0x1f0)]===_0x3a9eca(0x207))_0xb8d73f=Reflect[_0x3a9eca(0x1f0)](_0x374041,_0x3ef7a5,_0x25ceb8,_0x1b09e9);else{for(var _0x1fcafa=_0x374041[_0x3a9eca(0x1e1)]-0x1;_0x1fcafa>=0x0;_0x1fcafa--)if(_0x3a1739=_0x374041[_0x1fcafa])_0xb8d73f=(_0x1b7356<0x3?_0x3a1739(_0xb8d73f):_0x1b7356>0x3?_0x3a1739(_0x3ef7a5,_0x25ceb8,_0xb8d73f):_0x3a1739(_0x3ef7a5,_0x25ceb8))||_0xb8d73f;}return _0x1b7356>0x3&&_0xb8d73f&&Object['defineProperty'](_0x3ef7a5,_0x25ceb8,_0xb8d73f),_0xb8d73f;},__metadata=this&&this[a4_0x531bb7(0x206)]||function(_0x1d88dc,_0x180a40){var _0x159d98=a4_0x531bb7;if(typeof Reflect===_0x159d98(0x1f4)&&typeof Reflect['metadata']===_0x159d98(0x207))return Reflect[_0x159d98(0x1ec)](_0x1d88dc,_0x180a40);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x531bb7(0x1ea)]=void 0x0;const cacheManager=require(a4_0x531bb7(0x1ef)),decorator_1=require('@midwayjs/decorator');let CacheService=class CacheService{constructor(){var _0x223f65=a4_0x531bb7;this['cache']=undefined,this[_0x223f65(0x1de)]=new Map();}[a4_0x531bb7(0x1eb)](_0x18f635){var _0x12a0b5=a4_0x531bb7,_0x19d16c,_0x1141da;if(!this['cache']){const _0x1aee0b=((_0x19d16c=this[_0x12a0b5(0x1e4)]['stores'])===null||_0x19d16c===void 0x0?void 0x0:_0x19d16c[(_0x1141da=this[_0x12a0b5(0x1e4)][_0x12a0b5(0x1e6)])===null||_0x1141da===void 0x0?void 0x0:_0x1141da[_0x12a0b5(0x1ed)]])||this[_0x12a0b5(0x1e4)][_0x12a0b5(0x1ff)][_0x12a0b5(0x1f3)];this[_0x12a0b5(0x1e6)]=cacheManager[_0x12a0b5(0x1e8)]({..._0x1aee0b[_0x12a0b5(0x1f7)],'store':_0x1aee0b[_0x12a0b5(0x1fb)]});}return!this['clients'][_0x12a0b5(0x202)](_0x18f635)&&this['clients'][_0x12a0b5(0x1db)](_0x18f635,new CacheHandler(_0x18f635,this[_0x12a0b5(0x1e6)])),this[_0x12a0b5(0x1de)]['get'](_0x18f635);}async[a4_0x531bb7(0x1fd)](){var _0x2392f4=a4_0x531bb7;return await this[_0x2392f4(0x1e6)][_0x2392f4(0x1fd)]();}};__decorate([(0x0,decorator_1[a4_0x531bb7(0x200)])(a4_0x531bb7(0x1e6)),__metadata('design:type',Object)],CacheService[a4_0x531bb7(0x1e9)],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x531bb7(0x1fe)])(),(0x0,decorator_1['Scope'])(decorator_1[a4_0x531bb7(0x1ee)][a4_0x531bb7(0x1dd)])],CacheService),exports[a4_0x531bb7(0x1ea)]=CacheService;function a4_0x3fc5(){var _0x49c0f4=['6fGecKR','getOwnPropertyDescriptor','length','hset','hdel','config','__decorate','cache','6070270OVuoVL','caching','prototype','CacheService','use','metadata','default','ScopeEnum','cache-manager','decorate','81296esuZSK','get','file','object','hget','28KebhQV','options','48536DJWkrL','9LGPJMk','3emhwnz','store','5106356PfRxvD','reset','Provide','stores','Config','5573545LpOiDv','has','prefix','24931456BqlDeQ','del','__metadata','function','set','5088440SxXYsy','Singleton','clients'];a4_0x3fc5=function(){return _0x49c0f4;};return a4_0x3fc5();}class CacheHandler{constructor(_0x15384c,_0x1cf3e8){var _0x1b750c=a4_0x531bb7;this[_0x1b750c(0x1e6)]=_0x1cf3e8,this['prefix']=_0x15384c;}async[a4_0x531bb7(0x205)](_0x4f6e5b){var _0x191413=a4_0x531bb7;return await this['cache']['del'](this[_0x191413(0x203)]+':'+_0x4f6e5b);}async['set'](_0x5d6a6c,_0x4ba710,_0x5c3c11){var _0x6fd5fa=a4_0x531bb7;return await this[_0x6fd5fa(0x1e6)][_0x6fd5fa(0x1db)](this[_0x6fd5fa(0x203)]+':'+_0x5d6a6c,_0x4ba710,_0x5c3c11);}async['get'](_0x5615b7,_0x23b223){return new Promise((_0x5e0d81,_0x383038)=>{var _0x2cd0e8=a4_0x5ad7;this[_0x2cd0e8(0x1e6)][_0x2cd0e8(0x1f2)](this[_0x2cd0e8(0x203)]+':'+_0x5615b7,(_0x3824a5,_0x1140b4)=>{_0x3824a5?_0x383038(_0x3824a5):_0x5e0d81(_0x1140b4||_0x23b223);});});}async[a4_0x531bb7(0x1e3)](_0x4c97d6,_0x3084fd){var _0x543d14=a4_0x531bb7;return await this[_0x543d14(0x205)](_0x4c97d6+'-'+_0x3084fd);}async[a4_0x531bb7(0x1e2)](_0x4f585c,_0x21b152,_0x5c785d,_0x4552b4){var _0x547af9=a4_0x531bb7;return await this[_0x547af9(0x1db)](_0x4f585c+'-'+_0x21b152,_0x5c785d,_0x4552b4);}async[a4_0x531bb7(0x1f5)](_0x2c2c34,_0x2090bb,_0x53a847){var _0x1e872a=a4_0x531bb7;return await this[_0x1e872a(0x1f2)](_0x2c2c34+'-'+_0x2090bb,_0x53a847);}}
1
+ 'use strict';function a4_0xb122(_0xd07d5d,_0x15b946){var _0x278a5c=a4_0x278a();return a4_0xb122=function(_0xb122b4,_0x596011){_0xb122b4=_0xb122b4-0xb1;var _0x1edc07=_0x278a5c[_0xb122b4];return _0x1edc07;},a4_0xb122(_0xd07d5d,_0x15b946);}var a4_0xfc5f91=a4_0xb122;(function(_0x26e385,_0x5eb28d){var _0x223ce0=a4_0xb122,_0x5747df=_0x26e385();while(!![]){try{var _0x41673f=parseInt(_0x223ce0(0xc9))/0x1*(parseInt(_0x223ce0(0xbd))/0x2)+-parseInt(_0x223ce0(0xcd))/0x3*(parseInt(_0x223ce0(0xbe))/0x4)+parseInt(_0x223ce0(0xb7))/0x5*(parseInt(_0x223ce0(0xc5))/0x6)+-parseInt(_0x223ce0(0xc4))/0x7*(parseInt(_0x223ce0(0xda))/0x8)+-parseInt(_0x223ce0(0xb3))/0x9+-parseInt(_0x223ce0(0xc2))/0xa+parseInt(_0x223ce0(0xb5))/0xb*(parseInt(_0x223ce0(0xb2))/0xc);if(_0x41673f===_0x5eb28d)break;else _0x5747df['push'](_0x5747df['shift']());}catch(_0x9c5e88){_0x5747df['push'](_0x5747df['shift']());}}}(a4_0x278a,0x56852));var __decorate=this&&this[a4_0xfc5f91(0xcb)]||function(_0x7cd1f6,_0x55ef6b,_0x5ccb86,_0x4983a7){var _0xac10c1=a4_0xfc5f91,_0x310f47=arguments[_0xac10c1(0xd6)],_0x418d23=_0x310f47<0x3?_0x55ef6b:_0x4983a7===null?_0x4983a7=Object[_0xac10c1(0xd0)](_0x55ef6b,_0x5ccb86):_0x4983a7,_0x454ad3;if(typeof Reflect===_0xac10c1(0xdc)&&typeof Reflect[_0xac10c1(0xd9)]===_0xac10c1(0xde))_0x418d23=Reflect[_0xac10c1(0xd9)](_0x7cd1f6,_0x55ef6b,_0x5ccb86,_0x4983a7);else{for(var _0x1ee4e6=_0x7cd1f6[_0xac10c1(0xd6)]-0x1;_0x1ee4e6>=0x0;_0x1ee4e6--)if(_0x454ad3=_0x7cd1f6[_0x1ee4e6])_0x418d23=(_0x310f47<0x3?_0x454ad3(_0x418d23):_0x310f47>0x3?_0x454ad3(_0x55ef6b,_0x5ccb86,_0x418d23):_0x454ad3(_0x55ef6b,_0x5ccb86))||_0x418d23;}return _0x310f47>0x3&&_0x418d23&&Object[_0xac10c1(0xbc)](_0x55ef6b,_0x5ccb86,_0x418d23),_0x418d23;},__metadata=this&&this[a4_0xfc5f91(0xd4)]||function(_0x2a0d7e,_0x3b2f6d){var _0x43a835=a4_0xfc5f91;if(typeof Reflect===_0x43a835(0xdc)&&typeof Reflect[_0x43a835(0xd2)]===_0x43a835(0xde))return Reflect[_0x43a835(0xd2)](_0x2a0d7e,_0x3b2f6d);};Object[a4_0xfc5f91(0xbc)](exports,a4_0xfc5f91(0xd7),{'value':!![]}),exports[a4_0xfc5f91(0xb6)]=void 0x0;const cacheManager=require(a4_0xfc5f91(0xba)),decorator_1=require(a4_0xfc5f91(0xca));let CacheService=class CacheService{constructor(){var _0x1f2206=a4_0xfc5f91;this['cache']=undefined,this[_0x1f2206(0xc0)]=new Map();}[a4_0xfc5f91(0xb9)](_0xd57ca0){var _0x55fd6a=a4_0xfc5f91,_0x552b26,_0x142ed5;if(!this[_0x55fd6a(0xbb)]){const _0x8b62b5=((_0x552b26=this[_0x55fd6a(0xc1)]['stores'])===null||_0x552b26===void 0x0?void 0x0:_0x552b26[(_0x142ed5=this['config'][_0x55fd6a(0xbb)])===null||_0x142ed5===void 0x0?void 0x0:_0x142ed5[_0x55fd6a(0xd1)]])||this['config'][_0x55fd6a(0xcc)][_0x55fd6a(0xbf)];this[_0x55fd6a(0xbb)]=cacheManager['caching']({..._0x8b62b5[_0x55fd6a(0xc6)],'store':_0x8b62b5['store']});}return!this[_0x55fd6a(0xc0)][_0x55fd6a(0xc7)](_0xd57ca0)&&this[_0x55fd6a(0xc0)][_0x55fd6a(0xd3)](_0xd57ca0,new CacheHandler(_0xd57ca0,this['cache'])),this[_0x55fd6a(0xc0)][_0x55fd6a(0xb4)](_0xd57ca0);}async[a4_0xfc5f91(0xd5)](){var _0x4c444d=a4_0xfc5f91;return await this[_0x4c444d(0xbb)][_0x4c444d(0xd5)]();}};__decorate([(0x0,decorator_1[a4_0xfc5f91(0xc8)])(a4_0xfc5f91(0xbb)),__metadata('design:type',Object)],CacheService[a4_0xfc5f91(0xd8)],a4_0xfc5f91(0xc1),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0xfc5f91(0xc3)])(),(0x0,decorator_1[a4_0xfc5f91(0xb8)])(decorator_1['ScopeEnum'][a4_0xfc5f91(0xce)])],CacheService),exports[a4_0xfc5f91(0xb6)]=CacheService;class CacheHandler{constructor(_0x91c5c9,_0x505100){var _0x3257eb=a4_0xfc5f91;this['cache']=_0x505100,this[_0x3257eb(0xdb)]=_0x91c5c9;}async[a4_0xfc5f91(0xdd)](_0x1f6a18){var _0x1c94b1=a4_0xfc5f91;return await this[_0x1c94b1(0xbb)][_0x1c94b1(0xdd)](this[_0x1c94b1(0xdb)]+':'+_0x1f6a18);}async['set'](_0x1a2d55,_0x50377c,_0x39bfee){var _0x3bd693=a4_0xfc5f91;return await this[_0x3bd693(0xbb)][_0x3bd693(0xd3)](this['prefix']+':'+_0x1a2d55,_0x50377c,_0x39bfee);}async['get'](_0x369407,_0x2b0239){return new Promise((_0xc7a62e,_0x207def)=>{var _0x310998=a4_0xb122;this['cache'][_0x310998(0xb4)](this[_0x310998(0xdb)]+':'+_0x369407,(_0x84243e,_0x4fb0ea)=>{_0x84243e?_0x207def(_0x84243e):_0xc7a62e(_0x4fb0ea||_0x2b0239);});});}async[a4_0xfc5f91(0xb1)](_0x3f2000,_0x2abd9d){var _0x30659b=a4_0xfc5f91;return await this[_0x30659b(0xdd)](_0x3f2000+'-'+_0x2abd9d);}async['hset'](_0x3d2c25,_0x636231,_0x418538,_0x1075a6){var _0x27fd5f=a4_0xfc5f91;return await this[_0x27fd5f(0xd3)](_0x3d2c25+'-'+_0x636231,_0x418538,_0x1075a6);}async[a4_0xfc5f91(0xcf)](_0x5424dc,_0x5b6c3b,_0x8e8977){var _0x57fc40=a4_0xfc5f91;return await this[_0x57fc40(0xb4)](_0x5424dc+'-'+_0x5b6c3b,_0x8e8977);}}function a4_0x278a(){var _0xda0469=['has','Config','1hnBOBf','@midwayjs/decorator','__decorate','stores','20409epXfei','Singleton','hget','getOwnPropertyDescriptor','default','metadata','set','__metadata','reset','length','__esModule','prototype','decorate','536UWwxXy','prefix','object','del','function','hdel','10247016cbcyJi','4818708rhFCMz','get','22CbMazU','CacheService','15ujQgrU','Scope','use','cache-manager','cache','defineProperty','1116842pNkcfi','316KRZhfL','file','clients','config','5647700eEOzwb','Provide','43666OZAdyF','287388zryzWM','options'];a4_0x278a=function(){return _0xda0469;};return a4_0x278a();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.1.13",
3
+ "version": "1.1.16",
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": "a0dfeba8612c37f13c4aa2f80dd718d761326c51"
26
+ "gitHead": "452564401c353c628070325c7dabca442a008f8d"
27
27
  }