@anncic-api/cache 1.1.36 → 1.1.38

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_0x13415d=a0_0x1816;(function(_0x1c6cdd,_0x107b4e){const _0xef4bca=a0_0x1816,_0x398e9a=_0x1c6cdd();while(!![]){try{const _0x244bd0=parseInt(_0xef4bca(0xf1))/0x1+-parseInt(_0xef4bca(0xf9))/0x2+-parseInt(_0xef4bca(0xf0))/0x3+parseInt(_0xef4bca(0xf4))/0x4+parseInt(_0xef4bca(0xfd))/0x5*(-parseInt(_0xef4bca(0xf3))/0x6)+parseInt(_0xef4bca(0xf8))/0x7*(-parseInt(_0xef4bca(0xff))/0x8)+parseInt(_0xef4bca(0x100))/0x9;if(_0x244bd0===_0x107b4e)break;else _0x398e9a['push'](_0x398e9a['shift']());}catch(_0xf1110b){_0x398e9a['push'](_0x398e9a['shift']());}}}(a0_0x19ac,0x8ec93));function a0_0x19ac(){const _0x14bd9a=['__esModule','appDir','cache-manager-ioredis','7XzxXuS','2174048rSlDjm','defineProperty','cache-manager-fs-hash','memory','35nbnTLT','file','86192aFSIdQ','18698508hNPqzG','127.0.0.1','2183460fUfXGc','458123QbecFH','name','212424JmUisM','490248cOIaWF'];a0_0x19ac=function(){return _0x14bd9a;};return a0_0x19ac();}Object[a0_0x13415d(0xfa)](exports,a0_0x13415d(0xf5),{'value':!![]});const fsStore=require(a0_0x13415d(0xfb)),redisStore=require(a0_0x13415d(0xf7));function a0_0x1816(_0x24eb47,_0x334929){const _0x19ac13=a0_0x19ac();return a0_0x1816=function(_0x1816b0,_0xd00af7){_0x1816b0=_0x1816b0-0xef;let _0x4432d0=_0x19ac13[_0x1816b0];return _0x4432d0;},a0_0x1816(_0x24eb47,_0x334929);}exports['default']=_0x1acd15=>{const _0x532ba3=a0_0x13415d;return{'cache':{'default':_0x532ba3(0xfe),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x1acd15[_0x532ba3(0xf6)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x532ba3(0xef),'password':'','ttl':0x1e13380,'keyPrefix':_0x1acd15[_0x532ba3(0xf2)]+':'}},'memory':{'store':_0x532ba3(0xfc),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0x37611c=a0_0x21b0;(function(_0x45c337,_0x342e6b){const _0x5845a4=a0_0x21b0,_0x307ee5=_0x45c337();while(!![]){try{const _0x2d2ae9=-parseInt(_0x5845a4(0xf0))/0x1*(-parseInt(_0x5845a4(0xe2))/0x2)+-parseInt(_0x5845a4(0xe7))/0x3*(parseInt(_0x5845a4(0xe1))/0x4)+-parseInt(_0x5845a4(0xec))/0x5+parseInt(_0x5845a4(0xeb))/0x6+-parseInt(_0x5845a4(0xe6))/0x7*(-parseInt(_0x5845a4(0xee))/0x8)+parseInt(_0x5845a4(0xef))/0x9+parseInt(_0x5845a4(0xe3))/0xa*(-parseInt(_0x5845a4(0xed))/0xb);if(_0x2d2ae9===_0x342e6b)break;else _0x307ee5['push'](_0x307ee5['shift']());}catch(_0x3791c3){_0x307ee5['push'](_0x307ee5['shift']());}}}(a0_0xc739,0xe20f4));function a0_0xc739(){const _0x49ad86=['cache-manager-fs-hash','4937148piEiRb','12KYXSsY','10umtBSR','appDir','127.0.0.1','23758rYXBuX','3SllJLJ','defineProperty','memory','/runtime/.cache','4766838tVXgDM','2662280YoWlnR','7437903nhdKdv','4104sbOAAq','1481643giHsYT','111439lbulVd','cache-manager-ioredis'];a0_0xc739=function(){return _0x49ad86;};return a0_0xc739();}function a0_0x21b0(_0x284b51,_0x24a4cf){const _0xc73999=a0_0xc739();return a0_0x21b0=function(_0x21b09a,_0x29cb07){_0x21b09a=_0x21b09a-0xe1;let _0x401e8a=_0xc73999[_0x21b09a];return _0x401e8a;},a0_0x21b0(_0x284b51,_0x24a4cf);}Object[a0_0x37611c(0xe8)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x37611c(0xf2)),redisStore=require(a0_0x37611c(0xf1));exports['default']=_0x5f55b3=>{const _0x31db33=a0_0x37611c;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x5f55b3[_0x31db33(0xe4)]+_0x31db33(0xea)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x31db33(0xe5),'password':'','ttl':0x1e13380,'keyPrefix':_0x5f55b3['name']+':'}},'memory':{'store':_0x31db33(0xe9),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';var a1_0x343f85=a1_0x1270;(function(_0x48cfa1,_0x5360b1){var _0x2137ac=a1_0x1270,_0x4b9559=_0x48cfa1();while(!![]){try{var _0x3d12b0=parseInt(_0x2137ac(0x19e))/0x1*(parseInt(_0x2137ac(0x195))/0x2)+-parseInt(_0x2137ac(0x18c))/0x3+-parseInt(_0x2137ac(0x191))/0x4+parseInt(_0x2137ac(0x193))/0x5+-parseInt(_0x2137ac(0x18f))/0x6*(parseInt(_0x2137ac(0x198))/0x7)+parseInt(_0x2137ac(0x19d))/0x8+parseInt(_0x2137ac(0x19b))/0x9;if(_0x3d12b0===_0x5360b1)break;else _0x4b9559['push'](_0x4b9559['shift']());}catch(_0x1dc229){_0x4b9559['push'](_0x4b9559['shift']());}}}(a1_0x2c31,0x98ef5));function a1_0x2c31(){var _0x4e4678=['length','defineProperty','54UnGMxP','__decorate','3225388CYmtkW','object','5129465FUIToJ','__esModule','4652NmzueO','decorate','getOwnPropertyDescriptor','926303ugWlNj','@midwayjs/decorator','CustomConfiguration','8247393WojbNc','anncic-api:cache','8905776pXLYMt','152HycBxI','2355945nrtMBz'];a1_0x2c31=function(){return _0x4e4678;};return a1_0x2c31();}var __decorate=this&&this[a1_0x343f85(0x190)]||function(_0x5dc5a0,_0x56f2b4,_0x4fec38,_0x25631e){var _0x8084fb=a1_0x343f85,_0x535a58=arguments[_0x8084fb(0x18d)],_0x43ce79=_0x535a58<0x3?_0x56f2b4:_0x25631e===null?_0x25631e=Object[_0x8084fb(0x197)](_0x56f2b4,_0x4fec38):_0x25631e,_0x1d3b4f;if(typeof Reflect===_0x8084fb(0x192)&&typeof Reflect[_0x8084fb(0x196)]==='function')_0x43ce79=Reflect[_0x8084fb(0x196)](_0x5dc5a0,_0x56f2b4,_0x4fec38,_0x25631e);else{for(var _0x190072=_0x5dc5a0[_0x8084fb(0x18d)]-0x1;_0x190072>=0x0;_0x190072--)if(_0x1d3b4f=_0x5dc5a0[_0x190072])_0x43ce79=(_0x535a58<0x3?_0x1d3b4f(_0x43ce79):_0x535a58>0x3?_0x1d3b4f(_0x56f2b4,_0x4fec38,_0x43ce79):_0x1d3b4f(_0x56f2b4,_0x4fec38))||_0x43ce79;}return _0x535a58>0x3&&_0x43ce79&&Object['defineProperty'](_0x56f2b4,_0x4fec38,_0x43ce79),_0x43ce79;};Object[a1_0x343f85(0x18e)](exports,a1_0x343f85(0x194),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a1_0x343f85(0x199)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};function a1_0x1270(_0x1a5a37,_0x50c7be){var _0x2c315b=a1_0x2c31();return a1_0x1270=function(_0x1270b0,_0x5c5ca9){_0x1270b0=_0x1270b0-0x18c;var _0x478ec3=_0x2c315b[_0x1270b0];return _0x478ec3;},a1_0x1270(_0x1a5a37,_0x50c7be);}CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x343f85(0x19c),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x343f85(0x19a)]=CustomConfiguration;
1
+ 'use strict';var a1_0x35b760=a1_0x1885;function a1_0x266e(){var _0x18e2b4=['859290yciywT','decorate','CustomConfiguration','length','255577JSKDud','80286PbCWFo','function','662fFOGcp','766656JTgRiF','303ZZWpEs','9jnwBPK','__esModule','__decorate','Configuration','70XkIHsv','11TjDXZe','482724KYlEdr','1259816sXSwQU','anncic-api:cache','defineProperty'];a1_0x266e=function(){return _0x18e2b4;};return a1_0x266e();}(function(_0x23fe06,_0x3dd752){var _0x294ce3=a1_0x1885,_0x202884=_0x23fe06();while(!![]){try{var _0x36792c=-parseInt(_0x294ce3(0xec))/0x1*(-parseInt(_0x294ce3(0xea))/0x2)+-parseInt(_0x294ce3(0xf3))/0x3+parseInt(_0x294ce3(0xeb))/0x4+parseInt(_0x294ce3(0xf1))/0x5*(parseInt(_0x294ce3(0xe8))/0x6)+parseInt(_0x294ce3(0xe7))/0x7+-parseInt(_0x294ce3(0xf4))/0x8*(parseInt(_0x294ce3(0xed))/0x9)+-parseInt(_0x294ce3(0xf7))/0xa*(parseInt(_0x294ce3(0xf2))/0xb);if(_0x36792c===_0x3dd752)break;else _0x202884['push'](_0x202884['shift']());}catch(_0xf0662){_0x202884['push'](_0x202884['shift']());}}}(a1_0x266e,0x1b380));var __decorate=this&&this[a1_0x35b760(0xef)]||function(_0x24f9f7,_0x1b483a,_0x31349e,_0xfe4971){var _0x3f6fd8=a1_0x35b760,_0x4ef27a=arguments[_0x3f6fd8(0xfa)],_0x284686=_0x4ef27a<0x3?_0x1b483a:_0xfe4971===null?_0xfe4971=Object['getOwnPropertyDescriptor'](_0x1b483a,_0x31349e):_0xfe4971,_0x5083c6;if(typeof Reflect==='object'&&typeof Reflect[_0x3f6fd8(0xf8)]===_0x3f6fd8(0xe9))_0x284686=Reflect[_0x3f6fd8(0xf8)](_0x24f9f7,_0x1b483a,_0x31349e,_0xfe4971);else{for(var _0x35a672=_0x24f9f7[_0x3f6fd8(0xfa)]-0x1;_0x35a672>=0x0;_0x35a672--)if(_0x5083c6=_0x24f9f7[_0x35a672])_0x284686=(_0x4ef27a<0x3?_0x5083c6(_0x284686):_0x4ef27a>0x3?_0x5083c6(_0x1b483a,_0x31349e,_0x284686):_0x5083c6(_0x1b483a,_0x31349e))||_0x284686;}return _0x4ef27a>0x3&&_0x284686&&Object[_0x3f6fd8(0xf6)](_0x1b483a,_0x31349e,_0x284686),_0x284686;};Object[a1_0x35b760(0xf6)](exports,a1_0x35b760(0xee),{'value':!![]}),exports[a1_0x35b760(0xf9)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};function a1_0x1885(_0x26362c,_0x3159fd){var _0x266eee=a1_0x266e();return a1_0x1885=function(_0x1885a9,_0x13c696){_0x1885a9=_0x1885a9-0xe7;var _0x37fb82=_0x266eee[_0x1885a9];return _0x37fb82;},a1_0x1885(_0x26362c,_0x3159fd);}CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x35b760(0xf0)])({'conflictCheck':![],'namespace':a1_0x35b760(0xf5),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x35b760(0xf9)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0x5257d9=a2_0x958a;(function(_0x420402,_0x1c748e){const _0x5d7cda=a2_0x958a,_0x4ec059=_0x420402();while(!![]){try{const _0x56d242=-parseInt(_0x5d7cda(0x8f))/0x1+-parseInt(_0x5d7cda(0x98))/0x2*(-parseInt(_0x5d7cda(0x95))/0x3)+-parseInt(_0x5d7cda(0x96))/0x4*(-parseInt(_0x5d7cda(0x8d))/0x5)+parseInt(_0x5d7cda(0x94))/0x6*(parseInt(_0x5d7cda(0x9c))/0x7)+-parseInt(_0x5d7cda(0x9d))/0x8*(parseInt(_0x5d7cda(0x9a))/0x9)+-parseInt(_0x5d7cda(0xa5))/0xa+-parseInt(_0x5d7cda(0xa2))/0xb;if(_0x56d242===_0x1c748e)break;else _0x4ec059['push'](_0x4ec059['shift']());}catch(_0x217d1d){_0x4ec059['push'](_0x4ec059['shift']());}}}(a2_0xc161,0x76784));Object[a2_0x5257d9(0xa4)](exports,a2_0x5257d9(0x99),{'value':!![]}),exports[a2_0x5257d9(0xa1)]=void 0x0;function a2_0xc161(){const _0x103694=['109225KTUObm','../service/CacheService','292287ptTpiZ','apply','@midwayjs/core','value','MD5','6gtrLsg','40926nGhiEF','60IbpuqQ','use','96EniFdn','__esModule','621EMwknz','REQUEST_OBJ_CTX_KEY','3898671vYyfMU','20392FGIBEr','CacheService','stringify','toString','Cache','746515XeeWwS','MethodDecorator','defineProperty','5181590rokQJC','getApplicationContext'];a2_0xc161=function(){return _0x103694;};return a2_0xc161();}const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x5257d9(0x8e)),core_1=require(a2_0x5257d9(0x91));function a2_0x958a(_0x20a78d,_0x361913){const _0xc16149=a2_0xc161();return a2_0x958a=function(_0x958aca,_0x131483){_0x958aca=_0x958aca-0x8d;let _0x1787ab=_0xc16149[_0x958aca];return _0x1787ab;},a2_0x958a(_0x20a78d,_0x361913);}function Cache(_0x41911d,_0x28e620){return(_0x37d94a,_0x168471,_0x19111f)=>{const _0x1ce95a=a2_0x958a,_0x13b2cf=_0x19111f[_0x1ce95a(0x92)];return _0x19111f[_0x1ce95a(0x92)]=async function(..._0x3fc8a7){const _0x54fb47=_0x1ce95a;!_0x41911d&&(_0x41911d=(0x0,crypto_js_1[_0x54fb47(0x93)])(JSON['stringify'](_0x3fc8a7))[_0x54fb47(0xa0)]());let _0x534eba=await this[core_1[_0x54fb47(0x9b)]]['app'][_0x54fb47(0xa6)]()['getAsync'](CacheService_1[_0x54fb47(0x9e)]),_0x35259a=await _0x534eba['use']('MethodDecorator')['get'](_0x41911d);if(_0x35259a)return JSON['parse'](_0x35259a);else _0x35259a=await _0x13b2cf[_0x54fb47(0x90)](this,[..._0x3fc8a7]),await _0x534eba[_0x54fb47(0x97)](_0x54fb47(0xa3))['set'](_0x41911d,JSON[_0x54fb47(0x9f)](_0x35259a),_0x28e620);return _0x35259a;},_0x19111f;};}exports['Cache']=Cache;
1
+ 'use strict';const a2_0x5d2032=a2_0x96cb;(function(_0x490782,_0x105d66){const _0x35fb5c=a2_0x96cb,_0x165c5b=_0x490782();while(!![]){try{const _0x5858d0=-parseInt(_0x35fb5c(0x9f))/0x1*(parseInt(_0x35fb5c(0xac))/0x2)+parseInt(_0x35fb5c(0xad))/0x3+parseInt(_0x35fb5c(0x9d))/0x4+-parseInt(_0x35fb5c(0x94))/0x5*(parseInt(_0x35fb5c(0xa8))/0x6)+parseInt(_0x35fb5c(0x96))/0x7*(-parseInt(_0x35fb5c(0xa1))/0x8)+-parseInt(_0x35fb5c(0x9b))/0x9+-parseInt(_0x35fb5c(0x9c))/0xa;if(_0x5858d0===_0x105d66)break;else _0x165c5b['push'](_0x165c5b['shift']());}catch(_0x22041b){_0x165c5b['push'](_0x165c5b['shift']());}}}(a2_0x8d84,0x9262f));function a2_0x96cb(_0x5eb563,_0x3694cd){const _0x8d842b=a2_0x8d84();return a2_0x96cb=function(_0x96cbbc,_0x568239){_0x96cbbc=_0x96cbbc-0x94;let _0x50b10d=_0x8d842b[_0x96cbbc];return _0x50b10d;},a2_0x96cb(_0x5eb563,_0x3694cd);}Object[a2_0x5d2032(0xab)](exports,a2_0x5d2032(0xa9),{'value':!![]}),exports[a2_0x5d2032(0xa2)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require('../service/CacheService'),core_1=require(a2_0x5d2032(0xa5));function a2_0x8d84(){const _0x1bd010=['14UFLLjV','getAsync','value','CacheService','parse','2381841FmSHka','405420sHtsCK','2168312hsfRLZ','MD5','641492MELlNk','stringify','553568NzUkpF','Cache','apply','set','@midwayjs/core','REQUEST_OBJ_CTX_KEY','use','42TMgAmm','__esModule','get','defineProperty','2OrJdiV','3551751eXVswW','29515faxRLJ','MethodDecorator'];a2_0x8d84=function(){return _0x1bd010;};return a2_0x8d84();}function Cache(_0x7973dc,_0x5aaa7b){return(_0x461da3,_0x390614,_0x1fd7c2)=>{const _0x398d09=a2_0x96cb,_0x5f4e3d=_0x1fd7c2['value'];return _0x1fd7c2[_0x398d09(0x98)]=async function(..._0x100a5d){const _0x871343=_0x398d09;!_0x7973dc&&(_0x7973dc=(0x0,crypto_js_1[_0x871343(0x9e)])(JSON[_0x871343(0xa0)](_0x100a5d))['toString']());let _0x3f96f2=await this[core_1[_0x871343(0xa6)]]['app']['getApplicationContext']()[_0x871343(0x97)](CacheService_1[_0x871343(0x99)]),_0x3017b6=await _0x3f96f2['use'](_0x871343(0x95))[_0x871343(0xaa)](_0x7973dc);if(_0x3017b6)return JSON[_0x871343(0x9a)](_0x3017b6);else _0x3017b6=await _0x5f4e3d[_0x871343(0xa3)](this,[..._0x100a5d]),await _0x3f96f2[_0x871343(0xa7)](_0x871343(0x95))[_0x871343(0xa4)](_0x7973dc,JSON[_0x871343(0xa0)](_0x3017b6),_0x5aaa7b);return _0x3017b6;},_0x1fd7c2;};}exports[a2_0x5d2032(0xa2)]=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0x47b9dc=a3_0x2a32;function a3_0x2a32(_0x34a316,_0x42c658){var _0x2cdfe4=a3_0x2cdf();return a3_0x2a32=function(_0x2a32bf,_0x253f53){_0x2a32bf=_0x2a32bf-0x7c;var _0x1f9ecb=_0x2cdfe4[_0x2a32bf];return _0x1f9ecb;},a3_0x2a32(_0x34a316,_0x42c658);}(function(_0xb69d51,_0x317274){var _0x5934a9=a3_0x2a32,_0x2ab4a9=_0xb69d51();while(!![]){try{var _0x3a2134=parseInt(_0x5934a9(0x82))/0x1*(-parseInt(_0x5934a9(0x89))/0x2)+parseInt(_0x5934a9(0x86))/0x3+parseInt(_0x5934a9(0x8d))/0x4*(-parseInt(_0x5934a9(0x80))/0x5)+parseInt(_0x5934a9(0x7f))/0x6+-parseInt(_0x5934a9(0x7c))/0x7*(parseInt(_0x5934a9(0x7d))/0x8)+parseInt(_0x5934a9(0x8e))/0x9+-parseInt(_0x5934a9(0x8f))/0xa*(parseInt(_0x5934a9(0x85))/0xb);if(_0x3a2134===_0x317274)break;else _0x2ab4a9['push'](_0x2ab4a9['shift']());}catch(_0xc826d1){_0x2ab4a9['push'](_0x2ab4a9['shift']());}}}(a3_0x2cdf,0x77d2d));Object['defineProperty'](exports,a3_0x47b9dc(0x84),{'value':!![]}),exports['CacheService']=exports[a3_0x47b9dc(0x8c)]=exports[a3_0x47b9dc(0x8b)]=void 0x0;var configuration_1=require(a3_0x47b9dc(0x81));Object[a3_0x47b9dc(0x7e)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x247d7a=a3_0x47b9dc;return configuration_1[_0x247d7a(0x87)];}});var Cache_1=require(a3_0x47b9dc(0x88));Object[a3_0x47b9dc(0x7e)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x2efbce=a3_0x47b9dc;return Cache_1[_0x2efbce(0x8c)];}});function a3_0x2cdf(){var _0x4848c6=['./service/CacheService','Configuration','Cache','12mtogDK','8289333cjzEiM','10mNDClA','56INjpZY','65864cIYocm','defineProperty','526458FbMrHf','369345LDLarP','./configuration','81101vKWRWP','CacheService','__esModule','4827383AEHEnA','1111629TyuuSo','CustomConfiguration','./decorator/Cache','4LGcnaN'];a3_0x2cdf=function(){return _0x4848c6;};return a3_0x2cdf();}var CacheService_1=require(a3_0x47b9dc(0x8a));Object[a3_0x47b9dc(0x7e)](exports,a3_0x47b9dc(0x83),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
1
+ 'use strict';function a3_0x97b0(_0x1f80e0,_0x221077){var _0x24fa2a=a3_0x24fa();return a3_0x97b0=function(_0x97b0b2,_0xcf0145){_0x97b0b2=_0x97b0b2-0xf3;var _0x142cb5=_0x24fa2a[_0x97b0b2];return _0x142cb5;},a3_0x97b0(_0x1f80e0,_0x221077);}var a3_0xac084c=a3_0x97b0;function a3_0x24fa(){var _0x3fa48b=['__esModule','4bSbqAd','CustomConfiguration','./configuration','2035430CCDIEc','CacheService','280689fhVuYS','Configuration','defineProperty','401362CBOHbW','454752JDWgxh','Cache','3738984VlcWod','./decorator/Cache','303926looNds','633682vCwmPF','./service/CacheService'];a3_0x24fa=function(){return _0x3fa48b;};return a3_0x24fa();}(function(_0x181be2,_0x1a7f15){var _0x22beec=a3_0x97b0,_0x3e941f=_0x181be2();while(!![]){try{var _0x135da7=parseInt(_0x22beec(0xfd))/0x1+-parseInt(_0x22beec(0x102))/0x2+parseInt(_0x22beec(0xfa))/0x3*(parseInt(_0x22beec(0xf5))/0x4)+-parseInt(_0x22beec(0xf8))/0x5+-parseInt(_0x22beec(0xfe))/0x6+-parseInt(_0x22beec(0x103))/0x7+parseInt(_0x22beec(0x100))/0x8;if(_0x135da7===_0x1a7f15)break;else _0x3e941f['push'](_0x3e941f['shift']());}catch(_0x316625){_0x3e941f['push'](_0x3e941f['shift']());}}}(a3_0x24fa,0x39d83));Object[a3_0xac084c(0xfc)](exports,a3_0xac084c(0xf4),{'value':!![]}),exports[a3_0xac084c(0xf9)]=exports[a3_0xac084c(0xff)]=exports[a3_0xac084c(0xfb)]=void 0x0;var configuration_1=require(a3_0xac084c(0xf7));Object['defineProperty'](exports,a3_0xac084c(0xfb),{'enumerable':!![],'get':function(){var _0x324527=a3_0xac084c;return configuration_1[_0x324527(0xf6)];}});var Cache_1=require(a3_0xac084c(0x101));Object[a3_0xac084c(0xfc)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x33f0b6=a3_0xac084c;return Cache_1[_0x33f0b6(0xff)];}});var CacheService_1=require(a3_0xac084c(0xf3));Object[a3_0xac084c(0xfc)](exports,a3_0xac084c(0xf9),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
@@ -1 +1 @@
1
- 'use strict';var a4_0x322925=a4_0x12cc;(function(_0x15fbd9,_0x47ef0c){var _0x50bb18=a4_0x12cc,_0x2d6496=_0x15fbd9();while(!![]){try{var _0x509bb3=-parseInt(_0x50bb18(0x1ef))/0x1*(parseInt(_0x50bb18(0x1f5))/0x2)+-parseInt(_0x50bb18(0x1f2))/0x3+parseInt(_0x50bb18(0x1d9))/0x4+parseInt(_0x50bb18(0x208))/0x5*(-parseInt(_0x50bb18(0x207))/0x6)+parseInt(_0x50bb18(0x1f8))/0x7*(-parseInt(_0x50bb18(0x1eb))/0x8)+-parseInt(_0x50bb18(0x1ee))/0x9+parseInt(_0x50bb18(0x1fd))/0xa*(parseInt(_0x50bb18(0x1f9))/0xb);if(_0x509bb3===_0x47ef0c)break;else _0x2d6496['push'](_0x2d6496['shift']());}catch(_0x2f4224){_0x2d6496['push'](_0x2d6496['shift']());}}}(a4_0x595d,0xe48cc));var __decorate=this&&this[a4_0x322925(0x1ed)]||function(_0x49abb6,_0x11510a,_0x94014e,_0x56ee8f){var _0x3ec7ac=a4_0x322925,_0x4f2e8c=arguments[_0x3ec7ac(0x1fa)],_0x32d909=_0x4f2e8c<0x3?_0x11510a:_0x56ee8f===null?_0x56ee8f=Object[_0x3ec7ac(0x1e6)](_0x11510a,_0x94014e):_0x56ee8f,_0x1967e9;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x3ec7ac(0x1e8))_0x32d909=Reflect[_0x3ec7ac(0x200)](_0x49abb6,_0x11510a,_0x94014e,_0x56ee8f);else{for(var _0xae0b70=_0x49abb6['length']-0x1;_0xae0b70>=0x0;_0xae0b70--)if(_0x1967e9=_0x49abb6[_0xae0b70])_0x32d909=(_0x4f2e8c<0x3?_0x1967e9(_0x32d909):_0x4f2e8c>0x3?_0x1967e9(_0x11510a,_0x94014e,_0x32d909):_0x1967e9(_0x11510a,_0x94014e))||_0x32d909;}return _0x4f2e8c>0x3&&_0x32d909&&Object[_0x3ec7ac(0x1d8)](_0x11510a,_0x94014e,_0x32d909),_0x32d909;},__metadata=this&&this[a4_0x322925(0x202)]||function(_0x5a944e,_0x410492){var _0x1024b6=a4_0x322925;if(typeof Reflect===_0x1024b6(0x1da)&&typeof Reflect[_0x1024b6(0x1df)]===_0x1024b6(0x1e8))return Reflect[_0x1024b6(0x1df)](_0x5a944e,_0x410492);};function a4_0x12cc(_0x3f9006,_0x27b336){var _0x595d4b=a4_0x595d();return a4_0x12cc=function(_0x12cc32,_0x2f7fd2){_0x12cc32=_0x12cc32-0x1d8;var _0x2b4cf6=_0x595d4b[_0x12cc32];return _0x2b4cf6;},a4_0x12cc(_0x3f9006,_0x27b336);}Object[a4_0x322925(0x1d8)](exports,a4_0x322925(0x1de),{'value':!![]}),exports[a4_0x322925(0x1e0)]=void 0x0;function a4_0x595d(){var _0x5ab635=['8192650YSAAIB','defineProperty','6072308bTuwDi','object','caching','hget','design:type','__esModule','metadata','CacheService','config','Provide','del','clients','Config','getOwnPropertyDescriptor','store','function','@midwayjs/decorator','file','8SRrwIw','hdel','__decorate','1916595YiavLS','437015cWALJd','Scope','options','3400743jsZXAJ','has','default','2yifjPq','cache-manager','prefix','10694530gzgEpT','33tJHOCq','length','ScopeEnum','reset','14559780raCuap','Singleton','set','decorate','hset','__metadata','prototype','cache','use','get','6fqyDTJ'];a4_0x595d=function(){return _0x5ab635;};return a4_0x595d();}const cacheManager=require(a4_0x322925(0x1f6)),decorator_1=require(a4_0x322925(0x1e9));let CacheService=class CacheService{constructor(){var _0x58dd64=a4_0x322925;this[_0x58dd64(0x204)]=undefined,this[_0x58dd64(0x1e4)]=new Map();}[a4_0x322925(0x205)](_0x4153c7){var _0x14d3bf=a4_0x322925,_0x3b73e3,_0x48dcb3;if(!this[_0x14d3bf(0x204)]){const _0x1bdb29=((_0x3b73e3=this[_0x14d3bf(0x1e1)]['stores'])===null||_0x3b73e3===void 0x0?void 0x0:_0x3b73e3[(_0x48dcb3=this[_0x14d3bf(0x1e1)]['cache'])===null||_0x48dcb3===void 0x0?void 0x0:_0x48dcb3[_0x14d3bf(0x1f4)]])||this[_0x14d3bf(0x1e1)]['stores'][_0x14d3bf(0x1ea)];this['cache']=cacheManager[_0x14d3bf(0x1db)]({..._0x1bdb29[_0x14d3bf(0x1f1)],'store':_0x1bdb29[_0x14d3bf(0x1e7)]});}return!this[_0x14d3bf(0x1e4)][_0x14d3bf(0x1f3)](_0x4153c7)&&this['clients'][_0x14d3bf(0x1ff)](_0x4153c7,new CacheHandler(_0x4153c7,this[_0x14d3bf(0x204)])),this[_0x14d3bf(0x1e4)][_0x14d3bf(0x206)](_0x4153c7);}async[a4_0x322925(0x1fc)](){var _0x17c015=a4_0x322925;return await this[_0x17c015(0x204)]['reset']();}};__decorate([(0x0,decorator_1[a4_0x322925(0x1e5)])(a4_0x322925(0x204)),__metadata(a4_0x322925(0x1dd),Object)],CacheService[a4_0x322925(0x203)],a4_0x322925(0x1e1),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x322925(0x1e2)])(),(0x0,decorator_1[a4_0x322925(0x1f0)])(decorator_1[a4_0x322925(0x1fb)][a4_0x322925(0x1fe)])],CacheService),exports[a4_0x322925(0x1e0)]=CacheService;class CacheHandler{constructor(_0x4eb192,_0x4704eb){var _0x17cb1e=a4_0x322925;this[_0x17cb1e(0x204)]=_0x4704eb,this[_0x17cb1e(0x1f7)]=_0x4eb192;}async[a4_0x322925(0x1e3)](_0x1b0926){var _0x101bce=a4_0x322925;return await this['cache'][_0x101bce(0x1e3)](this[_0x101bce(0x1f7)]+':'+_0x1b0926);}async[a4_0x322925(0x1ff)](_0x211187,_0x850ff6,_0x477dea){var _0x5007b4=a4_0x322925;return await this[_0x5007b4(0x204)]['set'](this[_0x5007b4(0x1f7)]+':'+_0x211187,_0x850ff6,_0x477dea);}async['get'](_0x19e27f,_0x26f5ac){return new Promise((_0x507cb6,_0x2e6be8)=>{var _0x59c095=a4_0x12cc;this[_0x59c095(0x204)]['get'](this[_0x59c095(0x1f7)]+':'+_0x19e27f,(_0x2c9801,_0x956281)=>{_0x2c9801?_0x2e6be8(_0x2c9801):_0x507cb6(_0x956281||_0x26f5ac);});});}async[a4_0x322925(0x1ec)](_0x3526d8,_0x9ce1a6){return await this['del'](_0x3526d8+'-'+_0x9ce1a6);}async[a4_0x322925(0x201)](_0x3b5b10,_0x5630a8,_0x547c7f,_0xe74743){var _0x434fc5=a4_0x322925;return await this[_0x434fc5(0x1ff)](_0x3b5b10+'-'+_0x5630a8,_0x547c7f,_0xe74743);}async[a4_0x322925(0x1dc)](_0x4c104b,_0x407aa8,_0x4e58fb){var _0x2f72c6=a4_0x322925;return await this[_0x2f72c6(0x206)](_0x4c104b+'-'+_0x407aa8,_0x4e58fb);}}
1
+ 'use strict';var a4_0xe1c3fc=a4_0xa943;(function(_0x40312f,_0x2f44b8){var _0xedfc02=a4_0xa943,_0x5089f8=_0x40312f();while(!![]){try{var _0x5c6e4a=-parseInt(_0xedfc02(0xdf))/0x1+parseInt(_0xedfc02(0xda))/0x2+parseInt(_0xedfc02(0xd8))/0x3+-parseInt(_0xedfc02(0xc7))/0x4*(parseInt(_0xedfc02(0xde))/0x5)+parseInt(_0xedfc02(0xce))/0x6+parseInt(_0xedfc02(0xd4))/0x7+parseInt(_0xedfc02(0xc2))/0x8*(-parseInt(_0xedfc02(0xc5))/0x9);if(_0x5c6e4a===_0x2f44b8)break;else _0x5089f8['push'](_0x5089f8['shift']());}catch(_0xd70fdd){_0x5089f8['push'](_0x5089f8['shift']());}}}(a4_0x39c2,0xaa598));var __decorate=this&&this[a4_0xe1c3fc(0xd6)]||function(_0x3291b8,_0x60c706,_0xcdd003,_0x82304a){var _0x36429d=a4_0xe1c3fc,_0x32f66c=arguments[_0x36429d(0xec)],_0x4de44b=_0x32f66c<0x3?_0x60c706:_0x82304a===null?_0x82304a=Object[_0x36429d(0xe6)](_0x60c706,_0xcdd003):_0x82304a,_0x1546d;if(typeof Reflect==='object'&&typeof Reflect[_0x36429d(0xd7)]===_0x36429d(0xe1))_0x4de44b=Reflect[_0x36429d(0xd7)](_0x3291b8,_0x60c706,_0xcdd003,_0x82304a);else{for(var _0x31b0b8=_0x3291b8[_0x36429d(0xec)]-0x1;_0x31b0b8>=0x0;_0x31b0b8--)if(_0x1546d=_0x3291b8[_0x31b0b8])_0x4de44b=(_0x32f66c<0x3?_0x1546d(_0x4de44b):_0x32f66c>0x3?_0x1546d(_0x60c706,_0xcdd003,_0x4de44b):_0x1546d(_0x60c706,_0xcdd003))||_0x4de44b;}return _0x32f66c>0x3&&_0x4de44b&&Object['defineProperty'](_0x60c706,_0xcdd003,_0x4de44b),_0x4de44b;},__metadata=this&&this[a4_0xe1c3fc(0xe3)]||function(_0x465e20,_0x154d89){var _0x27ddec=a4_0xe1c3fc;if(typeof Reflect===_0x27ddec(0xc3)&&typeof Reflect[_0x27ddec(0xc9)]==='function')return Reflect[_0x27ddec(0xc9)](_0x465e20,_0x154d89);};Object[a4_0xe1c3fc(0xe4)](exports,'__esModule',{'value':!![]}),exports[a4_0xe1c3fc(0xe7)]=void 0x0;function a4_0x39c2(){var _0x143af8=['Config','metadata','has','options','hdel','store','8241708Mjjvfw','hget','caching','cache','del','file','7094626sBjFUp','config','__decorate','decorate','1857813hFbimA','@midwayjs/decorator','317224HoWSbL','reset','Singleton','design:type','5wqnJtb','828217UMuQTj','get','function','hset','__metadata','defineProperty','stores','getOwnPropertyDescriptor','CacheService','clients','use','prefix','set','length','2753264gUoVrV','object','ScopeEnum','36vHQElC','Provide','1049672liWGTR'];a4_0x39c2=function(){return _0x143af8;};return a4_0x39c2();}function a4_0xa943(_0x672a4c,_0x1d924a){var _0x39c2a1=a4_0x39c2();return a4_0xa943=function(_0xa94347,_0x1565b3){_0xa94347=_0xa94347-0xc2;var _0x292da1=_0x39c2a1[_0xa94347];return _0x292da1;},a4_0xa943(_0x672a4c,_0x1d924a);}const cacheManager=require('cache-manager'),decorator_1=require(a4_0xe1c3fc(0xd9));let CacheService=class CacheService{constructor(){var _0x2edb52=a4_0xe1c3fc;this['cache']=undefined,this[_0x2edb52(0xe8)]=new Map();}[a4_0xe1c3fc(0xe9)](_0x52cbe7){var _0x23ac57=a4_0xe1c3fc,_0x541d44,_0x509609;if(!this['cache']){const _0x3b867c=((_0x541d44=this[_0x23ac57(0xd5)][_0x23ac57(0xe5)])===null||_0x541d44===void 0x0?void 0x0:_0x541d44[(_0x509609=this['config'][_0x23ac57(0xd1)])===null||_0x509609===void 0x0?void 0x0:_0x509609['default']])||this[_0x23ac57(0xd5)][_0x23ac57(0xe5)][_0x23ac57(0xd3)];this[_0x23ac57(0xd1)]=cacheManager[_0x23ac57(0xd0)]({..._0x3b867c[_0x23ac57(0xcb)],'store':_0x3b867c[_0x23ac57(0xcd)]});}return!this[_0x23ac57(0xe8)][_0x23ac57(0xca)](_0x52cbe7)&&this[_0x23ac57(0xe8)][_0x23ac57(0xeb)](_0x52cbe7,new CacheHandler(_0x52cbe7,this[_0x23ac57(0xd1)])),this['clients'][_0x23ac57(0xe0)](_0x52cbe7);}async['reset'](){var _0x33637e=a4_0xe1c3fc;return await this[_0x33637e(0xd1)][_0x33637e(0xdb)]();}};__decorate([(0x0,decorator_1[a4_0xe1c3fc(0xc8)])(a4_0xe1c3fc(0xd1)),__metadata(a4_0xe1c3fc(0xdd),Object)],CacheService['prototype'],a4_0xe1c3fc(0xd5),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0xe1c3fc(0xc6)])(),(0x0,decorator_1['Scope'])(decorator_1[a4_0xe1c3fc(0xc4)][a4_0xe1c3fc(0xdc)])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x48d58a,_0x2bec9d){var _0x33079e=a4_0xe1c3fc;this[_0x33079e(0xd1)]=_0x2bec9d,this['prefix']=_0x48d58a;}async[a4_0xe1c3fc(0xd2)](_0x28af78){var _0x2a7119=a4_0xe1c3fc;return await this['cache'][_0x2a7119(0xd2)](this[_0x2a7119(0xea)]+':'+_0x28af78);}async[a4_0xe1c3fc(0xeb)](_0x5e5113,_0x3abf34,_0x470b33){var _0x571b57=a4_0xe1c3fc;return await this[_0x571b57(0xd1)][_0x571b57(0xeb)](this['prefix']+':'+_0x5e5113,_0x3abf34,_0x470b33);}async[a4_0xe1c3fc(0xe0)](_0x333493,_0x1a6d93){return new Promise((_0x4e3aa6,_0x3b4eb8)=>{var _0x449cb3=a4_0xa943;this[_0x449cb3(0xd1)][_0x449cb3(0xe0)](this[_0x449cb3(0xea)]+':'+_0x333493,(_0x2d1c5e,_0x1b80c7)=>{_0x2d1c5e?_0x3b4eb8(_0x2d1c5e):_0x4e3aa6(_0x1b80c7||_0x1a6d93);});});}async[a4_0xe1c3fc(0xcc)](_0x564b81,_0x19db37){var _0xba26c3=a4_0xe1c3fc;return await this[_0xba26c3(0xd2)](_0x564b81+'-'+_0x19db37);}async[a4_0xe1c3fc(0xe2)](_0x1775ad,_0x1ecea3,_0x42ec7f,_0x3033ae){return await this['set'](_0x1775ad+'-'+_0x1ecea3,_0x42ec7f,_0x3033ae);}async[a4_0xe1c3fc(0xcf)](_0x3f9345,_0x1cb2da,_0x27cf8c){var _0x47bd38=a4_0xe1c3fc;return await this[_0x47bd38(0xe0)](_0x3f9345+'-'+_0x1cb2da,_0x27cf8c);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.1.36",
3
+ "version": "1.1.38",
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": "71df28e7e906f5156c7a504ccbcb439fade7ef27"
26
+ "gitHead": "6e544beb53cd608565097e8c6ce0c273a9c59b6e"
27
27
  }