@anncic-api/cache 1.0.28 → 1.1.0

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_0x126d(_0x1d3aa7,_0x1532d8){const _0x1d5ef6=a0_0x1d5e();return a0_0x126d=function(_0x126d97,_0x45fee2){_0x126d97=_0x126d97-0xfa;let _0xe8fcf1=_0x1d5ef6[_0x126d97];return _0xe8fcf1;},a0_0x126d(_0x1d3aa7,_0x1532d8);}function a0_0x1d5e(){const _0x9823a6=['cache-manager-fs-hash','25890zwCBXQ','name','973407czQRIW','127.0.0.1','44822349cpHpes','226upYeZE','2323912jYZXrI','appDir','7SkagFE','5673200fRsTan','4453365SEFlCH','8507778qjLFZx','/runtime/.cache'];a0_0x1d5e=function(){return _0x9823a6;};return a0_0x1d5e();}const a0_0x33b1f4=a0_0x126d;(function(_0x464c93,_0x3d6ce2){const _0x44f530=a0_0x126d,_0x578303=_0x464c93();while(!![]){try{const _0x4d7045=-parseInt(_0x44f530(0x105))/0x1+-parseInt(_0x44f530(0xfa))/0x2*(parseInt(_0x44f530(0x103))/0x3)+-parseInt(_0x44f530(0xfe))/0x4+parseInt(_0x44f530(0xff))/0x5+-parseInt(_0x44f530(0x100))/0x6+-parseInt(_0x44f530(0xfd))/0x7*(parseInt(_0x44f530(0xfb))/0x8)+parseInt(_0x44f530(0x107))/0x9;if(_0x4d7045===_0x3d6ce2)break;else _0x578303['push'](_0x578303['shift']());}catch(_0x473f35){_0x578303['push'](_0x578303['shift']());}}}(a0_0x1d5e,0xc23c1));Object['defineProperty'](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x33b1f4(0x102)),redisStore=require('cache-manager-ioredis');exports['default']=_0x90c363=>{const _0x17a0a5=a0_0x33b1f4;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x90c363[_0x17a0a5(0xfc)]+_0x17a0a5(0x101)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x17a0a5(0x106),'password':'','ttl':0x1e13380,'keyPrefix':_0x90c363[_0x17a0a5(0x104)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0x30b36d=a0_0x2377;function a0_0x2377(_0x3db92a,_0x3578ab){const _0x3d506a=a0_0x3d50();return a0_0x2377=function(_0x23773e,_0x3a8fcf){_0x23773e=_0x23773e-0x14a;let _0x37404b=_0x3d506a[_0x23773e];return _0x37404b;},a0_0x2377(_0x3db92a,_0x3578ab);}(function(_0x584494,_0x3e090e){const _0x1fff51=a0_0x2377,_0x52ed74=_0x584494();while(!![]){try{const _0xb7db94=-parseInt(_0x1fff51(0x159))/0x1*(parseInt(_0x1fff51(0x15e))/0x2)+parseInt(_0x1fff51(0x14f))/0x3*(-parseInt(_0x1fff51(0x15f))/0x4)+parseInt(_0x1fff51(0x154))/0x5*(-parseInt(_0x1fff51(0x153))/0x6)+parseInt(_0x1fff51(0x14e))/0x7+-parseInt(_0x1fff51(0x158))/0x8*(parseInt(_0x1fff51(0x14a))/0x9)+-parseInt(_0x1fff51(0x14c))/0xa+-parseInt(_0x1fff51(0x151))/0xb*(-parseInt(_0x1fff51(0x156))/0xc);if(_0xb7db94===_0x3e090e)break;else _0x52ed74['push'](_0x52ed74['shift']());}catch(_0x2f59b4){_0x52ed74['push'](_0x52ed74['shift']());}}}(a0_0x3d50,0xadf7a));function a0_0x3d50(){const _0x5bbfda=['file','11625880gUWWmt','/runtime/.cache','8144780oJPxwo','759tmPGkX','__esModule','11xoyyLT','defineProperty','142434LIhydI','190TRRJNO','memory','42717684AsWyXK','127.0.0.1','454192NROtXb','286415WjtRNI','appDir','cache-manager-fs-hash','cache-manager-ioredis','name','2MmSiVe','12776OWpWpO','135adlzPn'];a0_0x3d50=function(){return _0x5bbfda;};return a0_0x3d50();}Object[a0_0x30b36d(0x152)](exports,a0_0x30b36d(0x150),{'value':!![]});const fsStore=require(a0_0x30b36d(0x15b)),redisStore=require(a0_0x30b36d(0x15c));exports['default']=_0x3d35fd=>{const _0x5defad=a0_0x30b36d;return{'cache':{'default':_0x5defad(0x14b),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x3d35fd[_0x5defad(0x15a)]+_0x5defad(0x14d)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x5defad(0x157),'password':'','ttl':0x1e13380,'keyPrefix':_0x3d35fd[_0x5defad(0x15d)]+':'}},'memory':{'store':_0x5defad(0x155),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';function a1_0x3706(){var _0x4b05cd=['42ZXRFbJ','6690470ZHnayJ','38162214XxEWjS','Configuration','CustomConfiguration','object','getOwnPropertyDescriptor','4GxoYzV','@midwayjs/decorator','504228GAdYBw','2983408iyXUaW','1311500GANzgC','2463358NPShid','anncic-api:cache','1358694MhwHna','length','decorate','__esModule','function'];a1_0x3706=function(){return _0x4b05cd;};return a1_0x3706();}var a1_0x18ccbb=a1_0x169a;(function(_0x5ecf9f,_0x43bb10){var _0x37348=a1_0x169a,_0x150d5d=_0x5ecf9f();while(!![]){try{var _0x3f4d2c=-parseInt(_0x37348(0x1b0))/0x1+-parseInt(_0x37348(0x1b1))/0x2+parseInt(_0x37348(0x1b3))/0x3+-parseInt(_0x37348(0x1ac))/0x4*(parseInt(_0x37348(0x1b9))/0x5)+parseInt(_0x37348(0x1ae))/0x6*(-parseInt(_0x37348(0x1b8))/0x7)+parseInt(_0x37348(0x1af))/0x8+parseInt(_0x37348(0x1ba))/0x9;if(_0x3f4d2c===_0x43bb10)break;else _0x150d5d['push'](_0x150d5d['shift']());}catch(_0x12c3aa){_0x150d5d['push'](_0x150d5d['shift']());}}}(a1_0x3706,0xa6279));var __decorate=this&&this['__decorate']||function(_0x2cd78d,_0x2409d2,_0x5bbe3b,_0x1c8654){var _0x462094=a1_0x169a,_0xd18353=arguments[_0x462094(0x1b4)],_0x344d61=_0xd18353<0x3?_0x2409d2:_0x1c8654===null?_0x1c8654=Object[_0x462094(0x1ab)](_0x2409d2,_0x5bbe3b):_0x1c8654,_0x54aa8f;if(typeof Reflect===_0x462094(0x1aa)&&typeof Reflect[_0x462094(0x1b5)]===_0x462094(0x1b7))_0x344d61=Reflect[_0x462094(0x1b5)](_0x2cd78d,_0x2409d2,_0x5bbe3b,_0x1c8654);else{for(var _0x4d6494=_0x2cd78d['length']-0x1;_0x4d6494>=0x0;_0x4d6494--)if(_0x54aa8f=_0x2cd78d[_0x4d6494])_0x344d61=(_0xd18353<0x3?_0x54aa8f(_0x344d61):_0xd18353>0x3?_0x54aa8f(_0x2409d2,_0x5bbe3b,_0x344d61):_0x54aa8f(_0x2409d2,_0x5bbe3b))||_0x344d61;}return _0xd18353>0x3&&_0x344d61&&Object['defineProperty'](_0x2409d2,_0x5bbe3b,_0x344d61),_0x344d61;};Object['defineProperty'](exports,a1_0x18ccbb(0x1b6),{'value':!![]}),exports[a1_0x18ccbb(0x1bc)]=void 0x0;const decorator_1=require(a1_0x18ccbb(0x1ad)),ConfigDefault=require('./config/config.default');function a1_0x169a(_0x19cc48,_0x524be2){var _0x370677=a1_0x3706();return a1_0x169a=function(_0x169afb,_0x31170f){_0x169afb=_0x169afb-0x1aa;var _0x568563=_0x370677[_0x169afb];return _0x568563;},a1_0x169a(_0x19cc48,_0x524be2);}let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x18ccbb(0x1bb)])({'conflictCheck':![],'namespace':a1_0x18ccbb(0x1b2),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x18ccbb(0x1bc)]=CustomConfiguration;
1
+ 'use strict';var a1_0x23a4a6=a1_0x33ca;(function(_0x5e1fa9,_0x3ea804){var _0x46e3ca=a1_0x33ca,_0xca2058=_0x5e1fa9();while(!![]){try{var _0x355bb9=parseInt(_0x46e3ca(0xa0))/0x1*(-parseInt(_0x46e3ca(0xab))/0x2)+-parseInt(_0x46e3ca(0x9e))/0x3*(-parseInt(_0x46e3ca(0x9a))/0x4)+-parseInt(_0x46e3ca(0xa8))/0x5*(parseInt(_0x46e3ca(0xa1))/0x6)+-parseInt(_0x46e3ca(0x9d))/0x7+-parseInt(_0x46e3ca(0x9c))/0x8*(-parseInt(_0x46e3ca(0xac))/0x9)+parseInt(_0x46e3ca(0xa7))/0xa*(parseInt(_0x46e3ca(0x9f))/0xb)+-parseInt(_0x46e3ca(0x9b))/0xc;if(_0x355bb9===_0x3ea804)break;else _0xca2058['push'](_0xca2058['shift']());}catch(_0x290a17){_0xca2058['push'](_0xca2058['shift']());}}}(a1_0x2fb7,0x3cd2d));var __decorate=this&&this[a1_0x23a4a6(0xa9)]||function(_0x2ae960,_0x35b55e,_0x1c16d9,_0x519acd){var _0x165445=a1_0x23a4a6,_0x3a71f5=arguments[_0x165445(0x97)],_0x247932=_0x3a71f5<0x3?_0x35b55e:_0x519acd===null?_0x519acd=Object[_0x165445(0xa6)](_0x35b55e,_0x1c16d9):_0x519acd,_0x44beed;if(typeof Reflect===_0x165445(0xa4)&&typeof Reflect[_0x165445(0xaa)]===_0x165445(0x98))_0x247932=Reflect['decorate'](_0x2ae960,_0x35b55e,_0x1c16d9,_0x519acd);else{for(var _0x15ff25=_0x2ae960[_0x165445(0x97)]-0x1;_0x15ff25>=0x0;_0x15ff25--)if(_0x44beed=_0x2ae960[_0x15ff25])_0x247932=(_0x3a71f5<0x3?_0x44beed(_0x247932):_0x3a71f5>0x3?_0x44beed(_0x35b55e,_0x1c16d9,_0x247932):_0x44beed(_0x35b55e,_0x1c16d9))||_0x247932;}return _0x3a71f5>0x3&&_0x247932&&Object[_0x165445(0xa2)](_0x35b55e,_0x1c16d9,_0x247932),_0x247932;};Object[a1_0x23a4a6(0xa2)](exports,a1_0x23a4a6(0xa5),{'value':!![]}),exports[a1_0x23a4a6(0xa3)]=void 0x0;function a1_0x33ca(_0x289c03,_0x540ac9){var _0x2fb758=a1_0x2fb7();return a1_0x33ca=function(_0x33ca53,_0x594327){_0x33ca53=_0x33ca53-0x96;var _0x3336c3=_0x2fb758[_0x33ca53];return _0x3336c3;},a1_0x33ca(_0x289c03,_0x540ac9);}const decorator_1=require(a1_0x23a4a6(0x96)),ConfigDefault=require(a1_0x23a4a6(0x99));function a1_0x2fb7(){var _0x1ac397=['decorate','537154kWQVzz','9dydDmY','@midwayjs/decorator','length','function','./config/config.default','8AfzSKy','2402892yLAKhe','3698568GegejY','186858bnhVIX','168342XIFBwx','143sJfrIp','1hHhcHK','354OAeIgu','defineProperty','CustomConfiguration','object','__esModule','getOwnPropertyDescriptor','300990ukSPBB','18745GpieNQ','__decorate'];a1_0x2fb7=function(){return _0x1ac397;};return a1_0x2fb7();}let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x23a4a6(0xa3)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0x498b6d=a2_0x2c7c;(function(_0x4b93fc,_0x38bbc5){const _0x1e0a86=a2_0x2c7c,_0x66e0ca=_0x4b93fc();while(!![]){try{const _0x9ef394=-parseInt(_0x1e0a86(0xdc))/0x1*(-parseInt(_0x1e0a86(0xd6))/0x2)+-parseInt(_0x1e0a86(0xcb))/0x3+-parseInt(_0x1e0a86(0xdd))/0x4+parseInt(_0x1e0a86(0xd2))/0x5+parseInt(_0x1e0a86(0xda))/0x6*(parseInt(_0x1e0a86(0xd8))/0x7)+-parseInt(_0x1e0a86(0xcf))/0x8+parseInt(_0x1e0a86(0xdb))/0x9*(parseInt(_0x1e0a86(0xca))/0xa);if(_0x9ef394===_0x38bbc5)break;else _0x66e0ca['push'](_0x66e0ca['shift']());}catch(_0x1a44ab){_0x66e0ca['push'](_0x66e0ca['shift']());}}}(a2_0x29de,0x4de8a));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['Cache']=void 0x0;function a2_0x2c7c(_0x5af30f,_0x188d53){const _0x29de75=a2_0x29de();return a2_0x2c7c=function(_0x2c7cae,_0x385988){_0x2c7cae=_0x2c7cae-0xc6;let _0x74f9a5=_0x29de75[_0x2c7cae];return _0x74f9a5;},a2_0x2c7c(_0x5af30f,_0x188d53);}const crypto_js_1=require(a2_0x498b6d(0xc7)),CacheService_1=require(a2_0x498b6d(0xd1)),core_1=require(a2_0x498b6d(0xd3));function a2_0x29de(){const _0x82429c=['1522338TdLzSN','use','MD5','set','1917432CnWmYS','get','../service/CacheService','523035RLlLsH','@midwayjs/core','REQUEST_OBJ_CTX_KEY','app','162654aLPzqz','CacheService','7OVmhHT','getApplicationContext','120006GYbtqi','246924DDyUQg','6mfIfCb','270460TrGgMl','value','crypto-js','MethodDecorator','stringify','190KbypoZ'];a2_0x29de=function(){return _0x82429c;};return a2_0x29de();}function Cache(_0x20e78d,_0x417d41){return(_0x4e5274,_0x2a3726,_0x47da50)=>{const _0x1ef338=a2_0x2c7c,_0xd524c5=_0x47da50['value'];return _0x47da50[_0x1ef338(0xc6)]=async function(..._0xaafaab){const _0x59d0c1=_0x1ef338;!_0x20e78d&&(_0x20e78d=(0x0,crypto_js_1[_0x59d0c1(0xcd)])(JSON['stringify'](_0xaafaab))['toString']());let _0x128a8b=await this[core_1[_0x59d0c1(0xd4)]][_0x59d0c1(0xd5)][_0x59d0c1(0xd9)]()['getAsync'](CacheService_1[_0x59d0c1(0xd7)]),_0x3f12f7=await _0x128a8b['use']('MethodDecorator')[_0x59d0c1(0xd0)](_0x20e78d);if(_0x3f12f7)return JSON['parse'](_0x3f12f7);else _0x3f12f7=await _0xd524c5['apply'](this,[..._0xaafaab]),await _0x128a8b[_0x59d0c1(0xcc)](_0x59d0c1(0xc8))[_0x59d0c1(0xce)](_0x20e78d,JSON[_0x59d0c1(0xc9)](_0x3f12f7),_0x417d41);return _0x3f12f7;},_0x47da50;};}exports['Cache']=Cache;
1
+ 'use strict';function a2_0x3c85(_0x2cdff1,_0x1a9d82){const _0x1a05cd=a2_0x1a05();return a2_0x3c85=function(_0x3c8529,_0x430943){_0x3c8529=_0x3c8529-0xc8;let _0x2ae453=_0x1a05cd[_0x3c8529];return _0x2ae453;},a2_0x3c85(_0x2cdff1,_0x1a9d82);}const a2_0x86004b=a2_0x3c85;(function(_0x179771,_0x20af43){const _0x3fee56=a2_0x3c85,_0x2e6780=_0x179771();while(!![]){try{const _0x390d0c=parseInt(_0x3fee56(0xd0))/0x1+parseInt(_0x3fee56(0xd5))/0x2+-parseInt(_0x3fee56(0xce))/0x3*(-parseInt(_0x3fee56(0xe4))/0x4)+parseInt(_0x3fee56(0xdf))/0x5+parseInt(_0x3fee56(0xdd))/0x6*(parseInt(_0x3fee56(0xd2))/0x7)+-parseInt(_0x3fee56(0xd7))/0x8*(parseInt(_0x3fee56(0xcd))/0x9)+-parseInt(_0x3fee56(0xe6))/0xa;if(_0x390d0c===_0x20af43)break;else _0x2e6780['push'](_0x2e6780['shift']());}catch(_0xa4155b){_0x2e6780['push'](_0x2e6780['shift']());}}}(a2_0x1a05,0x94c7a));Object[a2_0x86004b(0xd4)](exports,a2_0x86004b(0xe3),{'value':!![]}),exports[a2_0x86004b(0xda)]=void 0x0;function a2_0x1a05(){const _0x1a8fb3=['__esModule','12KqyMXV','app','4442630tWChnQ','get','CacheService','MethodDecorator','set','@midwayjs/core','333TANdFy','39507vGoDmy','REQUEST_OBJ_CTX_KEY','224022MUGtKn','stringify','21QIBdmz','use','defineProperty','2390572LyPLhK','toString','181432SOEqoK','parse','crypto-js','Cache','apply','value','223086auGUGB','getApplicationContext','1612150HwTuKh','MD5','getAsync','../service/CacheService'];a2_0x1a05=function(){return _0x1a8fb3;};return a2_0x1a05();}const crypto_js_1=require(a2_0x86004b(0xd9)),CacheService_1=require(a2_0x86004b(0xe2)),core_1=require(a2_0x86004b(0xcc));function Cache(_0x56bade,_0x4c50cd){return(_0x4ba2fd,_0x1822e1,_0x160806)=>{const _0x3bce79=a2_0x3c85,_0x2299c4=_0x160806[_0x3bce79(0xdc)];return _0x160806['value']=async function(..._0x537f92){const _0x5b7de1=_0x3bce79;!_0x56bade&&(_0x56bade=(0x0,crypto_js_1[_0x5b7de1(0xe0)])(JSON[_0x5b7de1(0xd1)](_0x537f92))[_0x5b7de1(0xd6)]());let _0x3adcde=await this[core_1[_0x5b7de1(0xcf)]][_0x5b7de1(0xe5)][_0x5b7de1(0xde)]()[_0x5b7de1(0xe1)](CacheService_1[_0x5b7de1(0xc9)]),_0x2cb6f6=await _0x3adcde[_0x5b7de1(0xd3)](_0x5b7de1(0xca))[_0x5b7de1(0xc8)](_0x56bade);if(_0x2cb6f6)return JSON[_0x5b7de1(0xd8)](_0x2cb6f6);else _0x2cb6f6=await _0x2299c4[_0x5b7de1(0xdb)](this,[..._0x537f92]),await _0x3adcde[_0x5b7de1(0xd3)](_0x5b7de1(0xca))[_0x5b7de1(0xcb)](_0x56bade,JSON[_0x5b7de1(0xd1)](_0x2cb6f6),_0x4c50cd);return _0x2cb6f6;},_0x160806;};}exports[a2_0x86004b(0xda)]=Cache;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a3_0x134ddc=a3_0x3ad6;(function(_0x2546ed,_0x40cc3f){var _0x4d5955=a3_0x3ad6,_0x25359a=_0x2546ed();while(!![]){try{var _0x3e42d6=-parseInt(_0x4d5955(0xb2))/0x1+parseInt(_0x4d5955(0xad))/0x2*(parseInt(_0x4d5955(0xb3))/0x3)+-parseInt(_0x4d5955(0xb8))/0x4+parseInt(_0x4d5955(0xaf))/0x5*(-parseInt(_0x4d5955(0xb1))/0x6)+-parseInt(_0x4d5955(0xba))/0x7+parseInt(_0x4d5955(0xbd))/0x8*(-parseInt(_0x4d5955(0xbf))/0x9)+-parseInt(_0x4d5955(0xbc))/0xa*(-parseInt(_0x4d5955(0xbe))/0xb);if(_0x3e42d6===_0x40cc3f)break;else _0x25359a['push'](_0x25359a['shift']());}catch(_0xcdc68){_0x25359a['push'](_0x25359a['shift']());}}}(a3_0xba03,0x3c95b));function a3_0x3ad6(_0x4b484d,_0x2dd14a){var _0xba036a=a3_0xba03();return a3_0x3ad6=function(_0x3ad650,_0x1e9003){_0x3ad650=_0x3ad650-0xad;var _0x214b63=_0xba036a[_0x3ad650];return _0x214b63;},a3_0x3ad6(_0x4b484d,_0x2dd14a);}Object['defineProperty'](exports,a3_0x134ddc(0xb9),{'value':!![]}),exports[a3_0x134ddc(0xae)]=exports[a3_0x134ddc(0xb7)]=exports[a3_0x134ddc(0xb5)]=void 0x0;function a3_0xba03(){var _0x3e797b=['24420tdtBaw','86888jHESOy','6677cFVqOX','135vUCleL','94072TYzIUp','CacheService','1909015uIeshO','./decorator/Cache','6EdnsBW','260152jKJbxt','3wCboLP','./configuration','Configuration','defineProperty','Cache','1120188IawGNx','__esModule','1373806ekwuFF','CustomConfiguration'];a3_0xba03=function(){return _0x3e797b;};return a3_0xba03();}var configuration_1=require(a3_0x134ddc(0xb4));Object['defineProperty'](exports,a3_0x134ddc(0xb5),{'enumerable':!![],'get':function(){var _0x4af109=a3_0x134ddc;return configuration_1[_0x4af109(0xbb)];}});var Cache_1=require(a3_0x134ddc(0xb0));Object[a3_0x134ddc(0xb6)](exports,a3_0x134ddc(0xb7),{'enumerable':!![],'get':function(){var _0x1107d2=a3_0x134ddc;return Cache_1[_0x1107d2(0xb7)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x134ddc(0xb6)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x4658ab=a3_0x134ddc;return CacheService_1[_0x4658ab(0xae)];}});
1
+ 'use strict';var a3_0x5452c0=a3_0x5f07;(function(_0x342c26,_0x36f13d){var _0x98b088=a3_0x5f07,_0x4ba025=_0x342c26();while(!![]){try{var _0x87dfdf=-parseInt(_0x98b088(0x126))/0x1*(parseInt(_0x98b088(0x125))/0x2)+parseInt(_0x98b088(0x120))/0x3+parseInt(_0x98b088(0x128))/0x4*(parseInt(_0x98b088(0x121))/0x5)+-parseInt(_0x98b088(0x124))/0x6+-parseInt(_0x98b088(0x11d))/0x7*(-parseInt(_0x98b088(0x123))/0x8)+parseInt(_0x98b088(0x11b))/0x9+-parseInt(_0x98b088(0x127))/0xa;if(_0x87dfdf===_0x36f13d)break;else _0x4ba025['push'](_0x4ba025['shift']());}catch(_0x1df698){_0x4ba025['push'](_0x4ba025['shift']());}}}(a3_0x41e9,0x9de3e));Object['defineProperty'](exports,a3_0x5452c0(0x11e),{'value':!![]}),exports[a3_0x5452c0(0x122)]=exports[a3_0x5452c0(0x11f)]=exports[a3_0x5452c0(0x12a)]=void 0x0;function a3_0x5f07(_0x57f98c,_0x7453d1){var _0x41e975=a3_0x41e9();return a3_0x5f07=function(_0x5f07cb,_0x5b3d84){_0x5f07cb=_0x5f07cb-0x11b;var _0x55675f=_0x41e975[_0x5f07cb];return _0x55675f;},a3_0x5f07(_0x57f98c,_0x7453d1);}var configuration_1=require('./configuration');function a3_0x41e9(){var _0x1b0946=['Configuration','./decorator/Cache','CustomConfiguration','10955916hZKOab','./service/CacheService','7PTSByq','__esModule','Cache','2397432jKiCaS','40KxBvob','CacheService','4208024XWHtQd','853392BqkAka','880708AlASxi','2gwAKlk','16470850zkeIyC','387136IIJgke','defineProperty'];a3_0x41e9=function(){return _0x1b0946;};return a3_0x41e9();}Object[a3_0x5452c0(0x129)](exports,a3_0x5452c0(0x12a),{'enumerable':!![],'get':function(){var _0x531f29=a3_0x5452c0;return configuration_1[_0x531f29(0x12c)];}});var Cache_1=require(a3_0x5452c0(0x12b));Object[a3_0x5452c0(0x129)](exports,'Cache',{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x5452c0(0x11c));Object['defineProperty'](exports,a3_0x5452c0(0x122),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
@@ -1 +1 @@
1
- 'use strict';var a4_0x4754ce=a4_0x2f2c;(function(_0xb346a5,_0x33fc4d){var _0x40cb40=a4_0x2f2c,_0x156b16=_0xb346a5();while(!![]){try{var _0x495632=parseInt(_0x40cb40(0xa8))/0x1+parseInt(_0x40cb40(0xa3))/0x2*(-parseInt(_0x40cb40(0xb4))/0x3)+-parseInt(_0x40cb40(0xb0))/0x4+-parseInt(_0x40cb40(0xb1))/0x5+-parseInt(_0x40cb40(0xa2))/0x6*(parseInt(_0x40cb40(0xad))/0x7)+parseInt(_0x40cb40(0xbf))/0x8*(parseInt(_0x40cb40(0x9d))/0x9)+-parseInt(_0x40cb40(0xa4))/0xa*(-parseInt(_0x40cb40(0xc0))/0xb);if(_0x495632===_0x33fc4d)break;else _0x156b16['push'](_0x156b16['shift']());}catch(_0x4e316b){_0x156b16['push'](_0x156b16['shift']());}}}(a4_0x4e54,0x518c8));var __decorate=this&&this[a4_0x4754ce(0x9f)]||function(_0x3961ba,_0xf84ade,_0x11afa8,_0x205973){var _0x31c847=a4_0x4754ce,_0x428b88=arguments[_0x31c847(0x99)],_0x5ca43c=_0x428b88<0x3?_0xf84ade:_0x205973===null?_0x205973=Object[_0x31c847(0xc2)](_0xf84ade,_0x11afa8):_0x205973,_0x1ff5ef;if(typeof Reflect===_0x31c847(0xa1)&&typeof Reflect['decorate']==='function')_0x5ca43c=Reflect[_0x31c847(0xac)](_0x3961ba,_0xf84ade,_0x11afa8,_0x205973);else{for(var _0x2d8b98=_0x3961ba[_0x31c847(0x99)]-0x1;_0x2d8b98>=0x0;_0x2d8b98--)if(_0x1ff5ef=_0x3961ba[_0x2d8b98])_0x5ca43c=(_0x428b88<0x3?_0x1ff5ef(_0x5ca43c):_0x428b88>0x3?_0x1ff5ef(_0xf84ade,_0x11afa8,_0x5ca43c):_0x1ff5ef(_0xf84ade,_0x11afa8))||_0x5ca43c;}return _0x428b88>0x3&&_0x5ca43c&&Object[_0x31c847(0x9a)](_0xf84ade,_0x11afa8,_0x5ca43c),_0x5ca43c;},__metadata=this&&this[a4_0x4754ce(0xb8)]||function(_0x8fcb95,_0x4b50e6){var _0x3da06f=a4_0x4754ce;if(typeof Reflect==='object'&&typeof Reflect[_0x3da06f(0xb6)]===_0x3da06f(0xa9))return Reflect[_0x3da06f(0xb6)](_0x8fcb95,_0x4b50e6);};Object[a4_0x4754ce(0x9a)](exports,a4_0x4754ce(0xb3),{'value':!![]}),exports[a4_0x4754ce(0xaf)]=void 0x0;const cacheManager=require('cache-manager'),decorator_1=require(a4_0x4754ce(0xbe));let CacheService=class CacheService{constructor(){var _0x45bd53=a4_0x4754ce;this[_0x45bd53(0x96)]=undefined,this[_0x45bd53(0xb7)]=new Map();}[a4_0x4754ce(0xa7)](_0x2e73fc){var _0x558f57=a4_0x4754ce,_0x2a3538,_0x184c91;if(!this[_0x558f57(0x96)]){const _0x1f74c1=((_0x2a3538=this[_0x558f57(0xbc)][_0x558f57(0xbd)])===null||_0x2a3538===void 0x0?void 0x0:_0x2a3538[(_0x184c91=this['config'][_0x558f57(0x96)])===null||_0x184c91===void 0x0?void 0x0:_0x184c91[_0x558f57(0x9c)]])||this[_0x558f57(0xbc)][_0x558f57(0xbd)][_0x558f57(0xc1)];this[_0x558f57(0x96)]=cacheManager[_0x558f57(0xba)]({..._0x1f74c1[_0x558f57(0x98)],'store':_0x1f74c1[_0x558f57(0xae)]});}return!this[_0x558f57(0xb7)]['has'](_0x2e73fc)&&this[_0x558f57(0xb7)]['set'](_0x2e73fc,new CacheHandler(_0x2e73fc,this['cache'])),this[_0x558f57(0xb7)][_0x558f57(0xbb)](_0x2e73fc);}async[a4_0x4754ce(0xaa)](){return await this['cache']['reset']();}};__decorate([(0x0,decorator_1[a4_0x4754ce(0x97)])(a4_0x4754ce(0x96)),__metadata('design:type',Object)],CacheService[a4_0x4754ce(0x9e)],a4_0x4754ce(0xbc),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x4754ce(0xa6)])(),(0x0,decorator_1[a4_0x4754ce(0xa0)])(decorator_1[a4_0x4754ce(0xa5)]['Singleton'])],CacheService),exports[a4_0x4754ce(0xaf)]=CacheService;function a4_0x4e54(){var _0x28f08e=['store','CacheService','2190580wlWRAE','1194990jiUdec','hdel','__esModule','3gaHKwM','hset','metadata','clients','__metadata','set','caching','get','config','stores','@midwayjs/decorator','255416GbFtVj','121JnjxmN','file','getOwnPropertyDescriptor','cache','Config','options','length','defineProperty','del','default','81YdZPKx','prototype','__decorate','Scope','object','553284UMSrgd','563336svLXHO','1123870zRnuyU','ScopeEnum','Provide','use','247591CXloaF','function','reset','prefix','decorate','28xYnABx'];a4_0x4e54=function(){return _0x28f08e;};return a4_0x4e54();}function a4_0x2f2c(_0x2a0f1e,_0x42d4f3){var _0x4e54d7=a4_0x4e54();return a4_0x2f2c=function(_0x2f2cbb,_0x3f1cce){_0x2f2cbb=_0x2f2cbb-0x96;var _0x31a5c8=_0x4e54d7[_0x2f2cbb];return _0x31a5c8;},a4_0x2f2c(_0x2a0f1e,_0x42d4f3);}class CacheHandler{constructor(_0x56cd83,_0x88c124){var _0x45861d=a4_0x4754ce;this[_0x45861d(0x96)]=_0x88c124,this[_0x45861d(0xab)]=_0x56cd83;}async['del'](_0xffb6bc){var _0x568cdd=a4_0x4754ce;return await this['cache'][_0x568cdd(0x9b)](this[_0x568cdd(0xab)]+':'+_0xffb6bc);}async[a4_0x4754ce(0xb9)](_0x14c2f1,_0x14920e,_0x5eddb5){var _0x3962cc=a4_0x4754ce;return await this[_0x3962cc(0x96)][_0x3962cc(0xb9)](this[_0x3962cc(0xab)]+':'+_0x14c2f1,_0x14920e,_0x5eddb5);}async[a4_0x4754ce(0xbb)](_0x2f8233,_0x5def6a){return new Promise((_0x284ec3,_0x2f8cf0)=>{var _0x57ad4d=a4_0x2f2c;this[_0x57ad4d(0x96)]['get'](this[_0x57ad4d(0xab)]+':'+_0x2f8233,(_0x2d2573,_0x2e3bfb)=>{_0x2d2573?_0x2f8cf0(_0x2d2573):_0x284ec3(_0x2e3bfb||_0x5def6a);});});}async[a4_0x4754ce(0xb2)](_0xa4b676,_0x3340c3){return await this['del'](_0xa4b676+'-'+_0x3340c3);}async[a4_0x4754ce(0xb5)](_0x29d654,_0x3da7ac,_0x2630f4,_0x4b0d71){var _0x499312=a4_0x4754ce;return await this[_0x499312(0xb9)](_0x29d654+'-'+_0x3da7ac,_0x2630f4,_0x4b0d71);}async['hget'](_0x5770cf,_0x560d84,_0x43087c){var _0x2d21e7=a4_0x4754ce;return await this[_0x2d21e7(0xbb)](_0x5770cf+'-'+_0x560d84,_0x43087c);}}
1
+ 'use strict';function a4_0x3c10(_0x28ab17,_0x5b00b7){var _0x20e551=a4_0x20e5();return a4_0x3c10=function(_0x3c10aa,_0xc62284){_0x3c10aa=_0x3c10aa-0xdf;var _0x3f6768=_0x20e551[_0x3c10aa];return _0x3f6768;},a4_0x3c10(_0x28ab17,_0x5b00b7);}var a4_0x1d8ced=a4_0x3c10;(function(_0x54bce7,_0x11ddbc){var _0x3970c5=a4_0x3c10,_0x1180d5=_0x54bce7();while(!![]){try{var _0x430cec=parseInt(_0x3970c5(0xe2))/0x1*(-parseInt(_0x3970c5(0xea))/0x2)+parseInt(_0x3970c5(0xe4))/0x3*(-parseInt(_0x3970c5(0x102))/0x4)+parseInt(_0x3970c5(0xf1))/0x5*(parseInt(_0x3970c5(0xfa))/0x6)+-parseInt(_0x3970c5(0xef))/0x7+parseInt(_0x3970c5(0xf7))/0x8+parseInt(_0x3970c5(0xfe))/0x9+-parseInt(_0x3970c5(0x10a))/0xa*(-parseInt(_0x3970c5(0xfb))/0xb);if(_0x430cec===_0x11ddbc)break;else _0x1180d5['push'](_0x1180d5['shift']());}catch(_0x24e680){_0x1180d5['push'](_0x1180d5['shift']());}}}(a4_0x20e5,0x81fa3));var __decorate=this&&this['__decorate']||function(_0x142a04,_0x28a4de,_0x430738,_0x796c74){var _0x762a3d=a4_0x3c10,_0x435023=arguments['length'],_0x4615c3=_0x435023<0x3?_0x28a4de:_0x796c74===null?_0x796c74=Object['getOwnPropertyDescriptor'](_0x28a4de,_0x430738):_0x796c74,_0x14f59b;if(typeof Reflect===_0x762a3d(0xff)&&typeof Reflect[_0x762a3d(0xe7)]===_0x762a3d(0x107))_0x4615c3=Reflect[_0x762a3d(0xe7)](_0x142a04,_0x28a4de,_0x430738,_0x796c74);else{for(var _0x311ace=_0x142a04[_0x762a3d(0xe6)]-0x1;_0x311ace>=0x0;_0x311ace--)if(_0x14f59b=_0x142a04[_0x311ace])_0x4615c3=(_0x435023<0x3?_0x14f59b(_0x4615c3):_0x435023>0x3?_0x14f59b(_0x28a4de,_0x430738,_0x4615c3):_0x14f59b(_0x28a4de,_0x430738))||_0x4615c3;}return _0x435023>0x3&&_0x4615c3&&Object[_0x762a3d(0xf9)](_0x28a4de,_0x430738,_0x4615c3),_0x4615c3;},__metadata=this&&this[a4_0x1d8ced(0x105)]||function(_0x1aff53,_0x2043ef){var _0x31b523=a4_0x1d8ced;if(typeof Reflect===_0x31b523(0xff)&&typeof Reflect[_0x31b523(0xeb)]===_0x31b523(0x107))return Reflect['metadata'](_0x1aff53,_0x2043ef);};function a4_0x20e5(){var _0x373a81=['535jCkvtR','prefix','hset','reset','set','design:type','3645160CPqarD','options','defineProperty','21138JANiyY','68717gsdJGL','ScopeEnum','config','4388499JHStOI','object','store','stores','3669036lznyyK','del','cache','__metadata','caching','function','file','Config','860vLEkuH','use','Scope','get','1KNQZFT','Provide','3dHzvAD','hdel','length','decorate','clients','__esModule','810518ktjauR','metadata','has','prototype','default','17878rWbiOY','cache-manager'];a4_0x20e5=function(){return _0x373a81;};return a4_0x20e5();}Object[a4_0x1d8ced(0xf9)](exports,a4_0x1d8ced(0xe9),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require(a4_0x1d8ced(0xf0)),decorator_1=require('@midwayjs/decorator');let CacheService=class CacheService{constructor(){var _0x2bd96d=a4_0x1d8ced;this[_0x2bd96d(0x104)]=undefined,this['clients']=new Map();}[a4_0x1d8ced(0xdf)](_0x3c5bce){var _0x175d3a=a4_0x1d8ced,_0x5a67b5,_0x581ecd;if(!this[_0x175d3a(0x104)]){const _0x3518bc=((_0x5a67b5=this[_0x175d3a(0xfd)][_0x175d3a(0x101)])===null||_0x5a67b5===void 0x0?void 0x0:_0x5a67b5[(_0x581ecd=this[_0x175d3a(0xfd)][_0x175d3a(0x104)])===null||_0x581ecd===void 0x0?void 0x0:_0x581ecd[_0x175d3a(0xee)]])||this[_0x175d3a(0xfd)]['stores'][_0x175d3a(0x108)];this[_0x175d3a(0x104)]=cacheManager[_0x175d3a(0x106)]({..._0x3518bc[_0x175d3a(0xf8)],'store':_0x3518bc[_0x175d3a(0x100)]});}return!this[_0x175d3a(0xe8)][_0x175d3a(0xec)](_0x3c5bce)&&this[_0x175d3a(0xe8)][_0x175d3a(0xf5)](_0x3c5bce,new CacheHandler(_0x3c5bce,this[_0x175d3a(0x104)])),this[_0x175d3a(0xe8)][_0x175d3a(0xe1)](_0x3c5bce);}async['reset'](){var _0x19364d=a4_0x1d8ced;return await this[_0x19364d(0x104)][_0x19364d(0xf4)]();}};__decorate([(0x0,decorator_1[a4_0x1d8ced(0x109)])(a4_0x1d8ced(0x104)),__metadata(a4_0x1d8ced(0xf6),Object)],CacheService[a4_0x1d8ced(0xed)],a4_0x1d8ced(0xfd),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x1d8ced(0xe3)])(),(0x0,decorator_1[a4_0x1d8ced(0xe0)])(decorator_1[a4_0x1d8ced(0xfc)]['Singleton'])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x3fba4f,_0x216cd1){var _0x3c1a31=a4_0x1d8ced;this[_0x3c1a31(0x104)]=_0x216cd1,this[_0x3c1a31(0xf2)]=_0x3fba4f;}async[a4_0x1d8ced(0x103)](_0x460fcc){var _0x28f55c=a4_0x1d8ced;return await this[_0x28f55c(0x104)]['del'](this[_0x28f55c(0xf2)]+':'+_0x460fcc);}async[a4_0x1d8ced(0xf5)](_0x516796,_0x57abe1,_0x568ed2){var _0x59fde4=a4_0x1d8ced;return await this[_0x59fde4(0x104)][_0x59fde4(0xf5)](this[_0x59fde4(0xf2)]+':'+_0x516796,_0x57abe1,_0x568ed2);}async['get'](_0x5c959a,_0x2bf5ef){return new Promise((_0x11dc87,_0x16dfbf)=>{var _0x4e4b55=a4_0x3c10;this[_0x4e4b55(0x104)]['get'](this[_0x4e4b55(0xf2)]+':'+_0x5c959a,(_0x4b4b52,_0x7bb4d0)=>{_0x4b4b52?_0x16dfbf(_0x4b4b52):_0x11dc87(_0x7bb4d0||_0x2bf5ef);});});}async[a4_0x1d8ced(0xe5)](_0x6a840b,_0x58ee37){var _0xed1f6a=a4_0x1d8ced;return await this[_0xed1f6a(0x103)](_0x6a840b+'-'+_0x58ee37);}async[a4_0x1d8ced(0xf3)](_0x42b9bb,_0x23c171,_0x929099,_0xa937c1){var _0x2f18c2=a4_0x1d8ced;return await this[_0x2f18c2(0xf5)](_0x42b9bb+'-'+_0x23c171,_0x929099,_0xa937c1);}async['hget'](_0x385570,_0x44b8c7,_0x21d885){return await this['get'](_0x385570+'-'+_0x44b8c7,_0x21d885);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.0.28",
3
+ "version": "1.1.0",
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": "ae25e8ac1ad4b580181631025cb51657969fb5e8"
26
+ "gitHead": "1ff379ce4e785376983b20bd452defb97c4a3fa9"
27
27
  }