@anncic-api/cache 1.1.37 → 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_0x2c0f7b=a0_0x3584;(function(_0x5176f4,_0x5198ca){const _0x3f9ba2=a0_0x3584,_0x4ced48=_0x5176f4();while(!![]){try{const _0x391fbf=parseInt(_0x3f9ba2(0x1b9))/0x1+parseInt(_0x3f9ba2(0x1c2))/0x2*(parseInt(_0x3f9ba2(0x1c6))/0x3)+parseInt(_0x3f9ba2(0x1bc))/0x4+parseInt(_0x3f9ba2(0x1b7))/0x5+-parseInt(_0x3f9ba2(0x1c4))/0x6*(-parseInt(_0x3f9ba2(0x1be))/0x7)+parseInt(_0x3f9ba2(0x1bd))/0x8*(parseInt(_0x3f9ba2(0x1c0))/0x9)+parseInt(_0x3f9ba2(0x1c7))/0xa*(-parseInt(_0x3f9ba2(0x1c3))/0xb);if(_0x391fbf===_0x5198ca)break;else _0x4ced48['push'](_0x4ced48['shift']());}catch(_0x2f30ce){_0x4ced48['push'](_0x4ced48['shift']());}}}(a0_0x42a6,0x4a8ba));Object[a0_0x2c0f7b(0x1bf)](exports,a0_0x2c0f7b(0x1c1),{'value':!![]});function a0_0x3584(_0x82b9d9,_0x346584){const _0x42a625=a0_0x42a6();return a0_0x3584=function(_0x35845f,_0x2887b6){_0x35845f=_0x35845f-0x1b3;let _0x4d9830=_0x42a625[_0x35845f];return _0x4d9830;},a0_0x3584(_0x82b9d9,_0x346584);}const fsStore=require(a0_0x2c0f7b(0x1b4)),redisStore=require(a0_0x2c0f7b(0x1b6));exports[a0_0x2c0f7b(0x1ba)]=_0x301351=>{const _0x287e58=a0_0x2c0f7b;return{'cache':{'default':_0x287e58(0x1b3),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x301351['appDir']+_0x287e58(0x1b5)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x287e58(0x1c5),'password':'','ttl':0x1e13380,'keyPrefix':_0x301351[_0x287e58(0x1bb)]+':'}},'memory':{'store':_0x287e58(0x1b8),'options':{'max':0x64,'ttl':0x1e13380}}}}};};function a0_0x42a6(){const _0x1793d2=['18BkGJCN','__esModule','4xUIBJc','16368649sIwenT','6OaNOnD','127.0.0.1','676371zthDaz','10qQjUJy','file','cache-manager-fs-hash','/runtime/.cache','cache-manager-ioredis','2788730JMrAKh','memory','122669RaQVrb','default','name','1506568pvVKpM','503216rUwZVa','1117354JLEnjs','defineProperty'];a0_0x42a6=function(){return _0x1793d2;};return a0_0x42a6();}
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_0x1a999c=a1_0x4128;function a1_0x4128(_0x270e3e,_0xc6d366){var _0x7f7bed=a1_0x7f7b();return a1_0x4128=function(_0x4128dc,_0x560805){_0x4128dc=_0x4128dc-0xca;var _0x5cd840=_0x7f7bed[_0x4128dc];return _0x5cd840;},a1_0x4128(_0x270e3e,_0xc6d366);}(function(_0x2c6c49,_0x15d82c){var _0x1a996f=a1_0x4128,_0x3ccc83=_0x2c6c49();while(!![]){try{var _0x599b4d=-parseInt(_0x1a996f(0xdd))/0x1+parseInt(_0x1a996f(0xd9))/0x2*(parseInt(_0x1a996f(0xca))/0x3)+parseInt(_0x1a996f(0xdc))/0x4*(parseInt(_0x1a996f(0xcf))/0x5)+-parseInt(_0x1a996f(0xd2))/0x6*(-parseInt(_0x1a996f(0xde))/0x7)+-parseInt(_0x1a996f(0xce))/0x8+-parseInt(_0x1a996f(0xd0))/0x9*(parseInt(_0x1a996f(0xcd))/0xa)+parseInt(_0x1a996f(0xd6))/0xb;if(_0x599b4d===_0x15d82c)break;else _0x3ccc83['push'](_0x3ccc83['shift']());}catch(_0x2acf48){_0x3ccc83['push'](_0x3ccc83['shift']());}}}(a1_0x7f7b,0x87356));var __decorate=this&&this[a1_0x1a999c(0xcb)]||function(_0x1c7ff3,_0x533cff,_0x15bff2,_0x1bdd2c){var _0x1347c2=a1_0x1a999c,_0x36c581=arguments[_0x1347c2(0xda)],_0x545de6=_0x36c581<0x3?_0x533cff:_0x1bdd2c===null?_0x1bdd2c=Object[_0x1347c2(0xd1)](_0x533cff,_0x15bff2):_0x1bdd2c,_0x5a438c;if(typeof Reflect==='object'&&typeof Reflect[_0x1347c2(0xd4)]===_0x1347c2(0xd3))_0x545de6=Reflect[_0x1347c2(0xd4)](_0x1c7ff3,_0x533cff,_0x15bff2,_0x1bdd2c);else{for(var _0x5ad5ff=_0x1c7ff3[_0x1347c2(0xda)]-0x1;_0x5ad5ff>=0x0;_0x5ad5ff--)if(_0x5a438c=_0x1c7ff3[_0x5ad5ff])_0x545de6=(_0x36c581<0x3?_0x5a438c(_0x545de6):_0x36c581>0x3?_0x5a438c(_0x533cff,_0x15bff2,_0x545de6):_0x5a438c(_0x533cff,_0x15bff2))||_0x545de6;}return _0x36c581>0x3&&_0x545de6&&Object['defineProperty'](_0x533cff,_0x15bff2,_0x545de6),_0x545de6;};Object['defineProperty'](exports,a1_0x1a999c(0xd7),{'value':!![]}),exports[a1_0x1a999c(0xcc)]=void 0x0;function a1_0x7f7b(){var _0x410a66=['__esModule','@midwayjs/decorator','2zbpLGD','length','Configuration','4WKOWrI','764305sYkaCK','85953FYnzBV','./config/config.default','1288653JehFWG','__decorate','CustomConfiguration','215200eoJHbV','7942048FuBtxO','3269485EdBjop','117YjrRLV','getOwnPropertyDescriptor','432rVCvgs','function','decorate','anncic-api:cache','6854089hFVpga'];a1_0x7f7b=function(){return _0x410a66;};return a1_0x7f7b();}const decorator_1=require(a1_0x1a999c(0xd8)),ConfigDefault=require(a1_0x1a999c(0xdf));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x1a999c(0xdb)])({'conflictCheck':![],'namespace':a1_0x1a999c(0xd5),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x1a999c(0xcc)]=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_0x255a91=a2_0x1e9e;(function(_0x433801,_0x38e03b){const _0x5d0351=a2_0x1e9e,_0x21a18f=_0x433801();while(!![]){try{const _0x921779=-parseInt(_0x5d0351(0x171))/0x1*(parseInt(_0x5d0351(0x176))/0x2)+parseInt(_0x5d0351(0x170))/0x3+parseInt(_0x5d0351(0x16b))/0x4*(-parseInt(_0x5d0351(0x16d))/0x5)+-parseInt(_0x5d0351(0x166))/0x6+-parseInt(_0x5d0351(0x16f))/0x7*(-parseInt(_0x5d0351(0x160))/0x8)+parseInt(_0x5d0351(0x173))/0x9*(-parseInt(_0x5d0351(0x16a))/0xa)+parseInt(_0x5d0351(0x165))/0xb;if(_0x921779===_0x38e03b)break;else _0x21a18f['push'](_0x21a18f['shift']());}catch(_0xba3918){_0x21a18f['push'](_0x21a18f['shift']());}}}(a2_0x25cf,0xcd637));function a2_0x1e9e(_0x477efa,_0x230a8b){const _0x25cfc7=a2_0x25cf();return a2_0x1e9e=function(_0x1e9e93,_0xab598f){_0x1e9e93=_0x1e9e93-0x15e;let _0x4a55cf=_0x25cfc7[_0x1e9e93];return _0x4a55cf;},a2_0x1e9e(_0x477efa,_0x230a8b);}Object[a2_0x255a91(0x164)](exports,a2_0x255a91(0x162),{'value':!![]}),exports[a2_0x255a91(0x15e)]=void 0x0;function a2_0x25cf(){const _0x226dc0=['__esModule','MethodDecorator','defineProperty','47890590QFSERW','8692530sKFVbN','../service/CacheService','set','getAsync','506780dCoJGr','1533928XYgAdp','parse','5UpJflY','apply','1267lDuZzl','212484AfABJa','24259cczwrP','crypto-js','126QAYGsd','app','toString','90GoecvK','stringify','use','@midwayjs/core','Cache','REQUEST_OBJ_CTX_KEY','2216vMTsxW','get'];a2_0x25cf=function(){return _0x226dc0;};return a2_0x25cf();}const crypto_js_1=require(a2_0x255a91(0x172)),CacheService_1=require(a2_0x255a91(0x167)),core_1=require(a2_0x255a91(0x179));function Cache(_0x5c274e,_0x39d4db){return(_0x2dec45,_0x38ee60,_0x2f633a)=>{const _0x57e336=_0x2f633a['value'];return _0x2f633a['value']=async function(..._0x4752ff){const _0x2a2b8d=a2_0x1e9e;!_0x5c274e&&(_0x5c274e=(0x0,crypto_js_1['MD5'])(JSON[_0x2a2b8d(0x177)](_0x4752ff))[_0x2a2b8d(0x175)]());let _0x453539=await this[core_1[_0x2a2b8d(0x15f)]][_0x2a2b8d(0x174)]['getApplicationContext']()[_0x2a2b8d(0x169)](CacheService_1['CacheService']),_0x3b9e5c=await _0x453539[_0x2a2b8d(0x178)](_0x2a2b8d(0x163))[_0x2a2b8d(0x161)](_0x5c274e);if(_0x3b9e5c)return JSON[_0x2a2b8d(0x16c)](_0x3b9e5c);else _0x3b9e5c=await _0x57e336[_0x2a2b8d(0x16e)](this,[..._0x4752ff]),await _0x453539[_0x2a2b8d(0x178)](_0x2a2b8d(0x163))[_0x2a2b8d(0x168)](_0x5c274e,JSON[_0x2a2b8d(0x177)](_0x3b9e5c),_0x39d4db);return _0x3b9e5c;},_0x2f633a;};}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_0x35a1d2=a3_0x1e41;(function(_0x4b7379,_0x5b4ad9){var _0x163915=a3_0x1e41,_0x517f93=_0x4b7379();while(!![]){try{var _0x1ce60f=parseInt(_0x163915(0x1f8))/0x1+parseInt(_0x163915(0x1f6))/0x2+parseInt(_0x163915(0x1f4))/0x3*(-parseInt(_0x163915(0x1f3))/0x4)+-parseInt(_0x163915(0x1f7))/0x5*(parseInt(_0x163915(0x1f2))/0x6)+parseInt(_0x163915(0x1ed))/0x7+parseInt(_0x163915(0x1f9))/0x8*(-parseInt(_0x163915(0x1ef))/0x9)+parseInt(_0x163915(0x1f0))/0xa;if(_0x1ce60f===_0x5b4ad9)break;else _0x517f93['push'](_0x517f93['shift']());}catch(_0x13db8f){_0x517f93['push'](_0x517f93['shift']());}}}(a3_0x31e3,0xf238e));Object[a3_0x35a1d2(0x1fe)](exports,a3_0x35a1d2(0x1ee),{'value':!![]}),exports[a3_0x35a1d2(0x1fd)]=exports[a3_0x35a1d2(0x1fb)]=exports[a3_0x35a1d2(0x1fc)]=void 0x0;var configuration_1=require(a3_0x35a1d2(0x1f1));Object[a3_0x35a1d2(0x1fe)](exports,'Configuration',{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x35a1d2(0x1f5));Object[a3_0x35a1d2(0x1fe)](exports,a3_0x35a1d2(0x1fb),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x35a1d2(0x1fa));function a3_0x1e41(_0x1b1c45,_0x19df60){var _0x31e3f3=a3_0x31e3();return a3_0x1e41=function(_0x1e4135,_0x687600){_0x1e4135=_0x1e4135-0x1ed;var _0x2a688a=_0x31e3f3[_0x1e4135];return _0x2a688a;},a3_0x1e41(_0x1b1c45,_0x19df60);}Object[a3_0x35a1d2(0x1fe)](exports,a3_0x35a1d2(0x1fd),{'enumerable':!![],'get':function(){var _0x12f5c5=a3_0x35a1d2;return CacheService_1[_0x12f5c5(0x1fd)];}});function a3_0x31e3(){var _0x3201b3=['1891287AfrkjA','./decorator/Cache','113580ptAIGr','219475cXKaXA','269972RkAVtj','81224wxPbDm','./service/CacheService','Cache','Configuration','CacheService','defineProperty','1917580VAYTdL','__esModule','117AvpyBu','12855430xrvVzY','./configuration','18IuxNDj','4Prqbvo'];a3_0x31e3=function(){return _0x3201b3;};return a3_0x31e3();}
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_0x19df8c=a4_0x425c;function a4_0x516d(){var _0x2db4c6=['Provide','10JQMPcp','12mlFoTn','__decorate','__metadata','152772nOAqql','12554901DaNDfS','default','object','6WdjPMj','get','stores','length','hdel','2685176esUbYy','metadata','32058897chvacf','hget','design:type','decorate','3100428mbAUwt','defineProperty','function','4311215GrLaFy','use','config','set','CacheService','clients','cache','reset','Config','caching','10JUVTiK','3fRuyTZ','del','has','7UnqbDq','prefix','7822606FwPvmy'];a4_0x516d=function(){return _0x2db4c6;};return a4_0x516d();}(function(_0x3f2c65,_0x4c7659){var _0x518f5b=a4_0x425c,_0x217d5e=_0x3f2c65();while(!![]){try{var _0xef21b9=parseInt(_0x518f5b(0x1d1))/0x1*(parseInt(_0x518f5b(0x1cd))/0x2)+parseInt(_0x518f5b(0x1c6))/0x3*(-parseInt(_0x518f5b(0x1e0))/0x4)+parseInt(_0x518f5b(0x1e3))/0x5*(parseInt(_0x518f5b(0x1d5))/0x6)+parseInt(_0x518f5b(0x1c9))/0x7*(-parseInt(_0x518f5b(0x1da))/0x8)+-parseInt(_0x518f5b(0x1d2))/0x9*(parseInt(_0x518f5b(0x1c5))/0xa)+-parseInt(_0x518f5b(0x1cb))/0xb+-parseInt(_0x518f5b(0x1ce))/0xc*(-parseInt(_0x518f5b(0x1dc))/0xd);if(_0xef21b9===_0x4c7659)break;else _0x217d5e['push'](_0x217d5e['shift']());}catch(_0x16f18d){_0x217d5e['push'](_0x217d5e['shift']());}}}(a4_0x516d,0xd5b13));var __decorate=this&&this[a4_0x19df8c(0x1cf)]||function(_0x1a7eba,_0x1c1dba,_0x43ddb7,_0x5a1262){var _0x438dbc=a4_0x19df8c,_0x174c2b=arguments[_0x438dbc(0x1d8)],_0x383396=_0x174c2b<0x3?_0x1c1dba:_0x5a1262===null?_0x5a1262=Object['getOwnPropertyDescriptor'](_0x1c1dba,_0x43ddb7):_0x5a1262,_0x405004;if(typeof Reflect===_0x438dbc(0x1d4)&&typeof Reflect[_0x438dbc(0x1df)]===_0x438dbc(0x1e2))_0x383396=Reflect[_0x438dbc(0x1df)](_0x1a7eba,_0x1c1dba,_0x43ddb7,_0x5a1262);else{for(var _0x4dfb73=_0x1a7eba[_0x438dbc(0x1d8)]-0x1;_0x4dfb73>=0x0;_0x4dfb73--)if(_0x405004=_0x1a7eba[_0x4dfb73])_0x383396=(_0x174c2b<0x3?_0x405004(_0x383396):_0x174c2b>0x3?_0x405004(_0x1c1dba,_0x43ddb7,_0x383396):_0x405004(_0x1c1dba,_0x43ddb7))||_0x383396;}return _0x174c2b>0x3&&_0x383396&&Object[_0x438dbc(0x1e1)](_0x1c1dba,_0x43ddb7,_0x383396),_0x383396;},__metadata=this&&this[a4_0x19df8c(0x1d0)]||function(_0x4d753f,_0x9a3e0a){var _0x12f157=a4_0x19df8c;if(typeof Reflect===_0x12f157(0x1d4)&&typeof Reflect[_0x12f157(0x1db)]===_0x12f157(0x1e2))return Reflect['metadata'](_0x4d753f,_0x9a3e0a);};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a4_0x19df8c(0x1bf)]=void 0x0;const cacheManager=require('cache-manager'),decorator_1=require('@midwayjs/decorator');function a4_0x425c(_0x2478b7,_0x5eac44){var _0x516d1b=a4_0x516d();return a4_0x425c=function(_0x425c33,_0x6fd6dc){_0x425c33=_0x425c33-0x1bf;var _0x2fcb65=_0x516d1b[_0x425c33];return _0x2fcb65;},a4_0x425c(_0x2478b7,_0x5eac44);}let CacheService=class CacheService{constructor(){var _0x49eefc=a4_0x19df8c;this[_0x49eefc(0x1c1)]=undefined,this[_0x49eefc(0x1c0)]=new Map();}[a4_0x19df8c(0x1e4)](_0x3ca338){var _0x4a67da=a4_0x19df8c,_0x577c7c,_0x25fc44;if(!this['cache']){const _0x2bb7e8=((_0x577c7c=this['config'][_0x4a67da(0x1d7)])===null||_0x577c7c===void 0x0?void 0x0:_0x577c7c[(_0x25fc44=this[_0x4a67da(0x1e5)]['cache'])===null||_0x25fc44===void 0x0?void 0x0:_0x25fc44[_0x4a67da(0x1d3)]])||this['config'][_0x4a67da(0x1d7)]['file'];this['cache']=cacheManager[_0x4a67da(0x1c4)]({..._0x2bb7e8['options'],'store':_0x2bb7e8['store']});}return!this[_0x4a67da(0x1c0)][_0x4a67da(0x1c8)](_0x3ca338)&&this['clients'][_0x4a67da(0x1e6)](_0x3ca338,new CacheHandler(_0x3ca338,this['cache'])),this[_0x4a67da(0x1c0)][_0x4a67da(0x1d6)](_0x3ca338);}async[a4_0x19df8c(0x1c2)](){var _0x4d9eaa=a4_0x19df8c;return await this[_0x4d9eaa(0x1c1)]['reset']();}};__decorate([(0x0,decorator_1[a4_0x19df8c(0x1c3)])(a4_0x19df8c(0x1c1)),__metadata(a4_0x19df8c(0x1de),Object)],CacheService['prototype'],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x19df8c(0x1cc)])(),(0x0,decorator_1['Scope'])(decorator_1['ScopeEnum']['Singleton'])],CacheService),exports[a4_0x19df8c(0x1bf)]=CacheService;class CacheHandler{constructor(_0x24c91e,_0x41b84b){var _0x3ca2a1=a4_0x19df8c;this['cache']=_0x41b84b,this[_0x3ca2a1(0x1ca)]=_0x24c91e;}async[a4_0x19df8c(0x1c7)](_0x62544d){var _0x4598ee=a4_0x19df8c;return await this['cache'][_0x4598ee(0x1c7)](this[_0x4598ee(0x1ca)]+':'+_0x62544d);}async[a4_0x19df8c(0x1e6)](_0x41c709,_0x3c17f4,_0x495756){var _0x5c03e1=a4_0x19df8c;return await this['cache'][_0x5c03e1(0x1e6)](this[_0x5c03e1(0x1ca)]+':'+_0x41c709,_0x3c17f4,_0x495756);}async[a4_0x19df8c(0x1d6)](_0x495a49,_0x4e614a){return new Promise((_0x159396,_0x34bb51)=>{var _0x2cf4f8=a4_0x425c;this['cache']['get'](this[_0x2cf4f8(0x1ca)]+':'+_0x495a49,(_0xb90d05,_0x30f8ee)=>{_0xb90d05?_0x34bb51(_0xb90d05):_0x159396(_0x30f8ee||_0x4e614a);});});}async[a4_0x19df8c(0x1d9)](_0x1abe1d,_0x575e9e){var _0x164868=a4_0x19df8c;return await this[_0x164868(0x1c7)](_0x1abe1d+'-'+_0x575e9e);}async['hset'](_0x42c8c3,_0x1b7a83,_0x2c7229,_0x348917){var _0x287c22=a4_0x19df8c;return await this[_0x287c22(0x1e6)](_0x42c8c3+'-'+_0x1b7a83,_0x2c7229,_0x348917);}async[a4_0x19df8c(0x1dd)](_0x796b7,_0x37c10f,_0x389664){var _0xbe6d56=a4_0x19df8c;return await this[_0xbe6d56(0x1d6)](_0x796b7+'-'+_0x37c10f,_0x389664);}}
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.37",
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": "f185a8f3fc82694027a003e9890934ccb6abdb1d"
26
+ "gitHead": "6e544beb53cd608565097e8c6ce0c273a9c59b6e"
27
27
  }