@anncic-api/cache 1.4.10 → 1.4.12

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_0x2e517c=a0_0xb40e;(function(_0x59a2b2,_0x18975f){const _0x379bd1=a0_0xb40e,_0x25a1c6=_0x59a2b2();while(!![]){try{const _0x9f416a=parseInt(_0x379bd1(0x154))/0x1+-parseInt(_0x379bd1(0x153))/0x2*(-parseInt(_0x379bd1(0x152))/0x3)+parseInt(_0x379bd1(0x15b))/0x4*(parseInt(_0x379bd1(0x14f))/0x5)+parseInt(_0x379bd1(0x157))/0x6+parseInt(_0x379bd1(0x150))/0x7+-parseInt(_0x379bd1(0x156))/0x8*(parseInt(_0x379bd1(0x155))/0x9)+-parseInt(_0x379bd1(0x158))/0xa;if(_0x9f416a===_0x18975f)break;else _0x25a1c6['push'](_0x25a1c6['shift']());}catch(_0x1cf56a){_0x25a1c6['push'](_0x25a1c6['shift']());}}}(a0_0x2940,0xad07b));Object['defineProperty'](exports,'__esModule',{'value':!![]});function a0_0x2940(){const _0x2cd4f5=['1477847GXiFGo','127.0.0.1','1529124nwecQU','2PsuwpQ','702300sWrjzR','396909kobOPV','136iBxUJp','1315110IkLEol','15880790CmtCLv','/runtime/.cache','default','5616852kOItTg','cache-manager-fs-hash','appDir','5wUmEHD'];a0_0x2940=function(){return _0x2cd4f5;};return a0_0x2940();}function a0_0xb40e(_0x3bffcd,_0xc1c3e5){const _0x29406e=a0_0x2940();return a0_0xb40e=function(_0xb40ec,_0x2311d1){_0xb40ec=_0xb40ec-0x14d;let _0x166d31=_0x29406e[_0xb40ec];return _0x166d31;},a0_0xb40e(_0x3bffcd,_0xc1c3e5);}const fsStore=require(a0_0x2e517c(0x14d)),redisStore=require('cache-manager-ioredis');exports[a0_0x2e517c(0x15a)]=_0x4cc977=>{const _0x14dfc9=a0_0x2e517c;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x4cc977[_0x14dfc9(0x14e)]+_0x14dfc9(0x159)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x14dfc9(0x151),'password':'','ttl':0x1e13380,'keyPrefix':_0x4cc977['name']+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
1
+ 'use strict';const a0_0x33b242=a0_0x3d30;(function(_0x2f02e2,_0x854d01){const _0xb9a484=a0_0x3d30,_0x4b373e=_0x2f02e2();while(!![]){try{const _0x3cc13f=parseInt(_0xb9a484(0xb7))/0x1+parseInt(_0xb9a484(0xbf))/0x2+-parseInt(_0xb9a484(0xb9))/0x3+parseInt(_0xb9a484(0xc0))/0x4*(parseInt(_0xb9a484(0xc7))/0x5)+parseInt(_0xb9a484(0xc2))/0x6+parseInt(_0xb9a484(0xbe))/0x7+-parseInt(_0xb9a484(0xbb))/0x8*(parseInt(_0xb9a484(0xc3))/0x9);if(_0x3cc13f===_0x854d01)break;else _0x4b373e['push'](_0x4b373e['shift']());}catch(_0x374f40){_0x4b373e['push'](_0x4b373e['shift']());}}}(a0_0x578a,0x47015));function a0_0x3d30(_0x5c608a,_0x1a780a){const _0x578ad8=a0_0x578a();return a0_0x3d30=function(_0x3d302e,_0x2f09d1){_0x3d302e=_0x3d302e-0xb5;let _0x1cc506=_0x578ad8[_0x3d302e];return _0x1cc506;},a0_0x3d30(_0x5c608a,_0x1a780a);}Object[a0_0x33b242(0xb5)](exports,a0_0x33b242(0xb8),{'value':!![]});const fsStore=require('cache-manager-fs-hash'),redisStore=require(a0_0x33b242(0xb6));function a0_0x578a(){const _0x23c463=['9YcbzbR','default','file','memory','3505oOvKEx','defineProperty','cache-manager-ioredis','311897FrbwCL','__esModule','1208199CDfYqA','name','6267512lVDaZP','127.0.0.1','/runtime/.cache','3597496gOsrad','272680cJGnzs','1220psgYmu','appDir','1806234nZXHWA'];a0_0x578a=function(){return _0x23c463;};return a0_0x578a();}exports[a0_0x33b242(0xc4)]=_0x3c242f=>{const _0x4bf14f=a0_0x33b242;return{'cache':{'default':_0x4bf14f(0xc5),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x3c242f[_0x4bf14f(0xc1)]+_0x4bf14f(0xbd)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x4bf14f(0xbc),'password':'','ttl':0x1e13380,'keyPrefix':_0x3c242f[_0x4bf14f(0xba)]+':'}},'memory':{'store':_0x4bf14f(0xc6),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
@@ -1 +1 @@
1
- 'use strict';function a1_0x2155(_0x132cd7,_0x43f4ed){var _0x12b040=a1_0x12b0();return a1_0x2155=function(_0x21555e,_0x12f49d){_0x21555e=_0x21555e-0xf2;var _0xa7723b=_0x12b040[_0x21555e];return _0xa7723b;},a1_0x2155(_0x132cd7,_0x43f4ed);}var a1_0xf9fe12=a1_0x2155;(function(_0x14b9da,_0x26401a){var _0x10a93d=a1_0x2155,_0x5b9205=_0x14b9da();while(!![]){try{var _0x2a012c=parseInt(_0x10a93d(0x101))/0x1+-parseInt(_0x10a93d(0xf4))/0x2*(parseInt(_0x10a93d(0xf7))/0x3)+parseInt(_0x10a93d(0xf6))/0x4+-parseInt(_0x10a93d(0xf3))/0x5+parseInt(_0x10a93d(0x100))/0x6+parseInt(_0x10a93d(0xf8))/0x7+parseInt(_0x10a93d(0xf9))/0x8*(-parseInt(_0x10a93d(0xfe))/0x9);if(_0x2a012c===_0x26401a)break;else _0x5b9205['push'](_0x5b9205['shift']());}catch(_0x28298f){_0x5b9205['push'](_0x5b9205['shift']());}}}(a1_0x12b0,0x6b4cb));function a1_0x12b0(){var _0x35afd1=['./config/config.default','object','CustomConfiguration','2060901ltaAKk','defineProperty','3167592rZJErM','435411mLIMKw','__decorate','__esModule','getOwnPropertyDescriptor','3304040dktdgO','28526rVVmiN','length','3356200rVGYNZ','6LyeVRY','3299695xEdhsP','40ouwENR','decorate'];a1_0x12b0=function(){return _0x35afd1;};return a1_0x12b0();}var __decorate=this&&this[a1_0xf9fe12(0x102)]||function(_0x26f605,_0x530102,_0x4c8ae1,_0x4cacfd){var _0x337a77=a1_0xf9fe12,_0x3ea71c=arguments[_0x337a77(0xf5)],_0x1cd216=_0x3ea71c<0x3?_0x530102:_0x4cacfd===null?_0x4cacfd=Object[_0x337a77(0xf2)](_0x530102,_0x4c8ae1):_0x4cacfd,_0x5f59bd;if(typeof Reflect===_0x337a77(0xfc)&&typeof Reflect['decorate']==='function')_0x1cd216=Reflect[_0x337a77(0xfa)](_0x26f605,_0x530102,_0x4c8ae1,_0x4cacfd);else{for(var _0x5928d2=_0x26f605[_0x337a77(0xf5)]-0x1;_0x5928d2>=0x0;_0x5928d2--)if(_0x5f59bd=_0x26f605[_0x5928d2])_0x1cd216=(_0x3ea71c<0x3?_0x5f59bd(_0x1cd216):_0x3ea71c>0x3?_0x5f59bd(_0x530102,_0x4c8ae1,_0x1cd216):_0x5f59bd(_0x530102,_0x4c8ae1))||_0x1cd216;}return _0x3ea71c>0x3&&_0x1cd216&&Object[_0x337a77(0xff)](_0x530102,_0x4c8ae1,_0x1cd216),_0x1cd216;};Object[a1_0xf9fe12(0xff)](exports,a1_0xf9fe12(0x103),{'value':!![]}),exports['CustomConfiguration']=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0xf9fe12(0xfb));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0xf9fe12(0xfd)]=CustomConfiguration;
1
+ 'use strict';var a1_0x38f645=a1_0x19de;(function(_0xc23d61,_0x5beda3){var _0x32b2de=a1_0x19de,_0x5d997d=_0xc23d61();while(!![]){try{var _0x36d9cc=parseInt(_0x32b2de(0x121))/0x1*(parseInt(_0x32b2de(0x11c))/0x2)+parseInt(_0x32b2de(0x112))/0x3+parseInt(_0x32b2de(0x118))/0x4*(-parseInt(_0x32b2de(0x11f))/0x5)+parseInt(_0x32b2de(0x11e))/0x6*(-parseInt(_0x32b2de(0x113))/0x7)+-parseInt(_0x32b2de(0x114))/0x8+parseInt(_0x32b2de(0x119))/0x9*(-parseInt(_0x32b2de(0x120))/0xa)+-parseInt(_0x32b2de(0x10f))/0xb*(-parseInt(_0x32b2de(0x11d))/0xc);if(_0x36d9cc===_0x5beda3)break;else _0x5d997d['push'](_0x5d997d['shift']());}catch(_0x9c41b8){_0x5d997d['push'](_0x5d997d['shift']());}}}(a1_0x3ada,0xbce90));function a1_0x3ada(){var _0x5c9801=['4296pLkGzG','23850rBDyyU','5199445uziAhN','10870WBGZmZ','9012nJEEIV','function','decorate','./config/config.default','getOwnPropertyDescriptor','__esModule','64020ptCbSC','Configuration','length','674547EotsxG','2317zQaAoZ','3430544gYwETI','object','CustomConfiguration','__decorate','4gyYqwC','1143VFgRlI','defineProperty','@midwayjs/core','308IZmaTJ'];a1_0x3ada=function(){return _0x5c9801;};return a1_0x3ada();}var __decorate=this&&this[a1_0x38f645(0x117)]||function(_0x3da7ef,_0x94b42c,_0x35bc3a,_0x248de6){var _0x3450cf=a1_0x38f645,_0x35efea=arguments[_0x3450cf(0x111)],_0xb746c6=_0x35efea<0x3?_0x94b42c:_0x248de6===null?_0x248de6=Object[_0x3450cf(0x125)](_0x94b42c,_0x35bc3a):_0x248de6,_0x3b2409;if(typeof Reflect===_0x3450cf(0x115)&&typeof Reflect[_0x3450cf(0x123)]===_0x3450cf(0x122))_0xb746c6=Reflect[_0x3450cf(0x123)](_0x3da7ef,_0x94b42c,_0x35bc3a,_0x248de6);else{for(var _0x457840=_0x3da7ef['length']-0x1;_0x457840>=0x0;_0x457840--)if(_0x3b2409=_0x3da7ef[_0x457840])_0xb746c6=(_0x35efea<0x3?_0x3b2409(_0xb746c6):_0x35efea>0x3?_0x3b2409(_0x94b42c,_0x35bc3a,_0xb746c6):_0x3b2409(_0x94b42c,_0x35bc3a))||_0xb746c6;}return _0x35efea>0x3&&_0xb746c6&&Object[_0x3450cf(0x11a)](_0x94b42c,_0x35bc3a,_0xb746c6),_0xb746c6;};Object[a1_0x38f645(0x11a)](exports,a1_0x38f645(0x10e),{'value':!![]}),exports[a1_0x38f645(0x116)]=void 0x0;const core_1=require(a1_0x38f645(0x11b)),ConfigDefault=require(a1_0x38f645(0x124));function a1_0x19de(_0x208afd,_0x31673f){var _0x3ada62=a1_0x3ada();return a1_0x19de=function(_0x19de1e,_0x2fc829){_0x19de1e=_0x19de1e-0x10e;var _0x38baef=_0x3ada62[_0x19de1e];return _0x38baef;},a1_0x19de(_0x208afd,_0x31673f);}let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x38f645(0x110)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x38f645(0x116)]=CustomConfiguration;
@@ -1 +1 @@
1
- 'use strict';const a2_0xc5dfc0=a2_0x44f3;function a2_0x44f3(_0x1bbcfc,_0x10241f){const _0x246f4e=a2_0x246f();return a2_0x44f3=function(_0x44f310,_0x1a0fe6){_0x44f310=_0x44f310-0xda;let _0x1598e5=_0x246f4e[_0x44f310];return _0x1598e5;},a2_0x44f3(_0x1bbcfc,_0x10241f);}(function(_0x3e2cbb,_0x1fcc60){const _0x47003b=a2_0x44f3,_0x4716fe=_0x3e2cbb();while(!![]){try{const _0x17db1c=parseInt(_0x47003b(0xdd))/0x1*(parseInt(_0x47003b(0xda))/0x2)+parseInt(_0x47003b(0xf0))/0x3*(parseInt(_0x47003b(0xed))/0x4)+-parseInt(_0x47003b(0xef))/0x5+parseInt(_0x47003b(0xe2))/0x6*(parseInt(_0x47003b(0xf3))/0x7)+parseInt(_0x47003b(0xdf))/0x8*(parseInt(_0x47003b(0xdb))/0x9)+-parseInt(_0x47003b(0xf4))/0xa*(parseInt(_0x47003b(0xf2))/0xb)+-parseInt(_0x47003b(0xe3))/0xc;if(_0x17db1c===_0x1fcc60)break;else _0x4716fe['push'](_0x4716fe['shift']());}catch(_0x300033){_0x4716fe['push'](_0x4716fe['shift']());}}}(a2_0x246f,0x968f5));Object[a2_0xc5dfc0(0xee)](exports,a2_0xc5dfc0(0xeb),{'value':!![]}),exports[a2_0xc5dfc0(0xf1)]=void 0x0;const crypto_js_1=require(a2_0xc5dfc0(0xe6)),CacheService_1=require('../service/CacheService'),core_1=require(a2_0xc5dfc0(0xec));function Cache(_0x2c8c8e,_0x4e02da){return(_0x486140,_0x2731ad,_0x10f284)=>{const _0x3a14bd=a2_0x44f3,_0x35aca1=_0x10f284['value'];return _0x10f284[_0x3a14bd(0xdc)]=async function(..._0x13c103){const _0x8ac81d=_0x3a14bd;!_0x2c8c8e&&(_0x2c8c8e=(0x0,crypto_js_1[_0x8ac81d(0xe9)])(JSON[_0x8ac81d(0xe0)](_0x13c103))['toString']());let _0x5ae2e3=await this[core_1[_0x8ac81d(0xe7)]]['app'][_0x8ac81d(0xe8)]()[_0x8ac81d(0xde)](CacheService_1[_0x8ac81d(0xe1)]),_0x13e550=await _0x5ae2e3[_0x8ac81d(0xea)]('Method::Decorator')['get'](_0x2c8c8e);if(_0x13e550)return JSON[_0x8ac81d(0xe5)](_0x13e550);else _0x13e550=await _0x35aca1[_0x8ac81d(0xe4)](this,[..._0x13c103]),await _0x5ae2e3['use']('Method::Decorator')['set'](_0x2c8c8e,JSON[_0x8ac81d(0xe0)](_0x13e550),_0x4e02da);return _0x13e550;},_0x10f284;};}function a2_0x246f(){const _0x483c3d=['apply','parse','crypto-js','REQUEST_OBJ_CTX_KEY','getApplicationContext','MD5','use','__esModule','@midwayjs/core','4DPfvqM','defineProperty','5732725oAmttD','3273726qZQaqC','Cache','44cBPXix','133HuBUgi','1264820MkYXvT','482csYYWf','5317497eeMiEn','value','896KPIWMW','getAsync','16VATZzz','stringify','CacheService','196434RzOqWp','10100628BOsrVn'];a2_0x246f=function(){return _0x483c3d;};return a2_0x246f();}exports[a2_0xc5dfc0(0xf1)]=Cache;
1
+ 'use strict';const a2_0x5568d2=a2_0x4a92;(function(_0x4e65fd,_0x465395){const _0x73372a=a2_0x4a92,_0x1ba604=_0x4e65fd();while(!![]){try{const _0x2d64e6=-parseInt(_0x73372a(0x207))/0x1+parseInt(_0x73372a(0x1fb))/0x2+-parseInt(_0x73372a(0x1f8))/0x3+parseInt(_0x73372a(0x1f7))/0x4*(parseInt(_0x73372a(0x200))/0x5)+parseInt(_0x73372a(0x1f0))/0x6*(-parseInt(_0x73372a(0x203))/0x7)+parseInt(_0x73372a(0x208))/0x8+parseInt(_0x73372a(0x20b))/0x9*(parseInt(_0x73372a(0x20c))/0xa);if(_0x2d64e6===_0x465395)break;else _0x1ba604['push'](_0x1ba604['shift']());}catch(_0x3f64a9){_0x1ba604['push'](_0x1ba604['shift']());}}}(a2_0x4f8e,0xa5c72));Object['defineProperty'](exports,a2_0x5568d2(0x1f5),{'value':!![]}),exports[a2_0x5568d2(0x1fd)]=void 0x0;const crypto_js_1=require(a2_0x5568d2(0x1f9)),CacheService_1=require(a2_0x5568d2(0x209)),core_1=require('@midwayjs/core');function a2_0x4a92(_0x803b23,_0x22e609){const _0x4f8ee3=a2_0x4f8e();return a2_0x4a92=function(_0x4a9238,_0x2535cf){_0x4a9238=_0x4a9238-0x1f0;let _0x10172d=_0x4f8ee3[_0x4a9238];return _0x10172d;},a2_0x4a92(_0x803b23,_0x22e609);}function Cache(_0x3d9bbb,_0xbeab76){return(_0x43eeac,_0x5bce61,_0x348f17)=>{const _0x235334=a2_0x4a92,_0x15993d=_0x348f17[_0x235334(0x205)];return _0x348f17[_0x235334(0x205)]=async function(..._0x40bf1c){const _0x9a991=_0x235334;!_0x3d9bbb&&(_0x3d9bbb=(0x0,crypto_js_1[_0x9a991(0x1fc)])(JSON[_0x9a991(0x1f3)](_0x40bf1c))[_0x9a991(0x204)]());let _0x1c1ce6=await this[core_1[_0x9a991(0x202)]][_0x9a991(0x1f4)][_0x9a991(0x1f6)]()[_0x9a991(0x1f1)](CacheService_1[_0x9a991(0x1f2)]),_0x4325bc=await _0x1c1ce6[_0x9a991(0x1fe)](_0x9a991(0x206))[_0x9a991(0x201)](_0x3d9bbb);if(_0x4325bc)return JSON[_0x9a991(0x20a)](_0x4325bc);else _0x4325bc=await _0x15993d[_0x9a991(0x1fa)](this,[..._0x40bf1c]),await _0x1c1ce6[_0x9a991(0x1fe)](_0x9a991(0x206))[_0x9a991(0x1ff)](_0x3d9bbb,JSON[_0x9a991(0x1f3)](_0x4325bc),_0xbeab76);return _0x4325bc;},_0x348f17;};}exports[a2_0x5568d2(0x1fd)]=Cache;function a2_0x4f8e(){const _0x3d2184=['CacheService','stringify','app','__esModule','getApplicationContext','4epGJnP','1068765FrjrNq','crypto-js','apply','485368xEVKyP','MD5','Cache','use','set','854135XAxhxg','get','REQUEST_OBJ_CTX_KEY','4340PgJptT','toString','value','Method::Decorator','1263976KfdFGZ','5612864jxAWMB','../service/CacheService','parse','558yswwBR','204890yGoTnp','834zCfMBm','getAsync'];a2_0x4f8e=function(){return _0x3d2184;};return a2_0x4f8e();}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a3_0x4ff5(_0xacef2e,_0xe53239){var _0x7ec5a1=a3_0x7ec5();return a3_0x4ff5=function(_0x4ff59f,_0x385d93){_0x4ff59f=_0x4ff59f-0x108;var _0x793012=_0x7ec5a1[_0x4ff59f];return _0x793012;},a3_0x4ff5(_0xacef2e,_0xe53239);}var a3_0x56f0e7=a3_0x4ff5;(function(_0x185cca,_0x312096){var _0x1aa95e=a3_0x4ff5,_0x49eb76=_0x185cca();while(!![]){try{var _0x27f656=-parseInt(_0x1aa95e(0x108))/0x1+-parseInt(_0x1aa95e(0x10f))/0x2*(-parseInt(_0x1aa95e(0x110))/0x3)+parseInt(_0x1aa95e(0x118))/0x4+parseInt(_0x1aa95e(0x10b))/0x5+-parseInt(_0x1aa95e(0x10e))/0x6*(-parseInt(_0x1aa95e(0x10a))/0x7)+-parseInt(_0x1aa95e(0x113))/0x8*(parseInt(_0x1aa95e(0x10d))/0x9)+-parseInt(_0x1aa95e(0x10c))/0xa;if(_0x27f656===_0x312096)break;else _0x49eb76['push'](_0x49eb76['shift']());}catch(_0x3678b4){_0x49eb76['push'](_0x49eb76['shift']());}}}(a3_0x7ec5,0xe95bf));function a3_0x7ec5(){var _0x3b8339=['959022cmEmzi','Cache','1548687FKkhtn','472885mwlUMp','3359420CCYHQR','27HcPIuK','12SgxcqK','93682zRMyys','39oTJBUW','CacheService','CustomConfiguration','81728BmsYhL','Configuration','defineProperty','__esModule','./configuration','4541836DvzCBh'];a3_0x7ec5=function(){return _0x3b8339;};return a3_0x7ec5();}Object['defineProperty'](exports,a3_0x56f0e7(0x116),{'value':!![]}),exports[a3_0x56f0e7(0x111)]=exports['Cache']=exports[a3_0x56f0e7(0x114)]=void 0x0;var configuration_1=require(a3_0x56f0e7(0x117));Object[a3_0x56f0e7(0x115)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x21e422=a3_0x56f0e7;return configuration_1[_0x21e422(0x112)];}});var Cache_1=require('./decorator/Cache');Object['defineProperty'](exports,a3_0x56f0e7(0x109),{'enumerable':!![],'get':function(){var _0xc3ff90=a3_0x56f0e7;return Cache_1[_0xc3ff90(0x109)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x56f0e7(0x115)](exports,a3_0x56f0e7(0x111),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});
1
+ 'use strict';var a3_0x491674=a3_0x191e;(function(_0x552916,_0x99c4f5){var _0x2c8aed=a3_0x191e,_0x1eb811=_0x552916();while(!![]){try{var _0x56f8cb=parseInt(_0x2c8aed(0xcd))/0x1*(-parseInt(_0x2c8aed(0xca))/0x2)+parseInt(_0x2c8aed(0xd6))/0x3+-parseInt(_0x2c8aed(0xd5))/0x4+parseInt(_0x2c8aed(0xd1))/0x5+-parseInt(_0x2c8aed(0xc7))/0x6+-parseInt(_0x2c8aed(0xd0))/0x7*(parseInt(_0x2c8aed(0xce))/0x8)+parseInt(_0x2c8aed(0xcb))/0x9*(parseInt(_0x2c8aed(0xc9))/0xa);if(_0x56f8cb===_0x99c4f5)break;else _0x1eb811['push'](_0x1eb811['shift']());}catch(_0xf2d3cc){_0x1eb811['push'](_0x1eb811['shift']());}}}(a3_0x2a8b,0x2597d));Object[a3_0x491674(0xcc)](exports,'__esModule',{'value':!![]}),exports[a3_0x491674(0xd2)]=exports[a3_0x491674(0xd4)]=exports[a3_0x491674(0xd7)]=void 0x0;function a3_0x191e(_0x42b8fd,_0x4185e9){var _0x2a8bdf=a3_0x2a8b();return a3_0x191e=function(_0x191e05,_0x3c5035){_0x191e05=_0x191e05-0xc7;var _0x13fe8b=_0x2a8bdf[_0x191e05];return _0x13fe8b;},a3_0x191e(_0x42b8fd,_0x4185e9);}function a3_0x2a8b(){var _0x113eda=['./configuration','Cache','1166392ScBbVr','545643KZDCSa','Configuration','./decorator/Cache','1283082IAzVdb','./service/CacheService','5777750piCHTf','16aANWcc','9pWrJiJ','defineProperty','30841WSQYbC','40gfgSzX','CustomConfiguration','179711RMAuAk','1374315FYzLTu','CacheService'];a3_0x2a8b=function(){return _0x113eda;};return a3_0x2a8b();}var configuration_1=require(a3_0x491674(0xd3));Object[a3_0x491674(0xcc)](exports,a3_0x491674(0xd7),{'enumerable':!![],'get':function(){var _0xb2c70b=a3_0x491674;return configuration_1[_0xb2c70b(0xcf)];}});var Cache_1=require(a3_0x491674(0xd8));Object[a3_0x491674(0xcc)](exports,a3_0x491674(0xd4),{'enumerable':!![],'get':function(){var _0x2b1b8a=a3_0x491674;return Cache_1[_0x2b1b8a(0xd4)];}});var CacheService_1=require(a3_0x491674(0xc8));Object[a3_0x491674(0xcc)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x15fa9d=a3_0x491674;return CacheService_1[_0x15fa9d(0xd2)];}});
@@ -1 +1 @@
1
- 'use strict';var a4_0x5d4f99=a4_0x37cf;(function(_0x30f1e3,_0x29aa10){var _0x197798=a4_0x37cf,_0x1c408f=_0x30f1e3();while(!![]){try{var _0x22d114=parseInt(_0x197798(0x1e4))/0x1*(parseInt(_0x197798(0x1ca))/0x2)+parseInt(_0x197798(0x1e8))/0x3*(parseInt(_0x197798(0x1f2))/0x4)+parseInt(_0x197798(0x1de))/0x5+-parseInt(_0x197798(0x1da))/0x6*(-parseInt(_0x197798(0x1f1))/0x7)+parseInt(_0x197798(0x1e6))/0x8*(parseInt(_0x197798(0x1c9))/0x9)+-parseInt(_0x197798(0x1d7))/0xa+parseInt(_0x197798(0x1cc))/0xb*(-parseInt(_0x197798(0x1d5))/0xc);if(_0x22d114===_0x29aa10)break;else _0x1c408f['push'](_0x1c408f['shift']());}catch(_0x45853b){_0x1c408f['push'](_0x1c408f['shift']());}}}(a4_0x278d,0xa762b));var __decorate=this&&this[a4_0x5d4f99(0x1e3)]||function(_0xa3573e,_0x1d747a,_0x31229b,_0x522846){var _0x58ff82=a4_0x5d4f99,_0x2d7d8b=arguments['length'],_0x55d619=_0x2d7d8b<0x3?_0x1d747a:_0x522846===null?_0x522846=Object[_0x58ff82(0x1f3)](_0x1d747a,_0x31229b):_0x522846,_0x9f3a2f;if(typeof Reflect===_0x58ff82(0x1f0)&&typeof Reflect[_0x58ff82(0x1cb)]===_0x58ff82(0x1d3))_0x55d619=Reflect[_0x58ff82(0x1cb)](_0xa3573e,_0x1d747a,_0x31229b,_0x522846);else{for(var _0x55cd98=_0xa3573e[_0x58ff82(0x1dc)]-0x1;_0x55cd98>=0x0;_0x55cd98--)if(_0x9f3a2f=_0xa3573e[_0x55cd98])_0x55d619=(_0x2d7d8b<0x3?_0x9f3a2f(_0x55d619):_0x2d7d8b>0x3?_0x9f3a2f(_0x1d747a,_0x31229b,_0x55d619):_0x9f3a2f(_0x1d747a,_0x31229b))||_0x55d619;}return _0x2d7d8b>0x3&&_0x55d619&&Object[_0x58ff82(0x1db)](_0x1d747a,_0x31229b,_0x55d619),_0x55d619;},__metadata=this&&this[a4_0x5d4f99(0x1d1)]||function(_0xac2e08,_0x1e727f){var _0x4a42ff=a4_0x5d4f99;if(typeof Reflect===_0x4a42ff(0x1f0)&&typeof Reflect[_0x4a42ff(0x1ef)]==='function')return Reflect['metadata'](_0xac2e08,_0x1e727f);};function a4_0x278d(){var _0x5a3088=['36pylGsm','get','prefix','hset','caching','clients','Config','metadata','object','35DftPpO','106068LoYUPA','getOwnPropertyDescriptor','file','4603185uzTJuX','1806902hVGYvQ','decorate','11363udxSTu','has','Scope','@midwayjs/core','Singleton','__metadata','__esModule','function','ScopeEnum','26256jkmjPY','CacheService','1688120vNOlPf','reset','cache','1538886TDrLAz','defineProperty','length','set','495510awmpVc','config','stores','design:type','prototype','__decorate','1DRGdFV','options','8LDVkFQ','del'];a4_0x278d=function(){return _0x5a3088;};return a4_0x278d();}Object[a4_0x5d4f99(0x1db)](exports,a4_0x5d4f99(0x1d2),{'value':!![]}),exports['CacheService']=void 0x0;function a4_0x37cf(_0x513c7a,_0x22ea16){var _0x278dbd=a4_0x278d();return a4_0x37cf=function(_0x37cfdc,_0x3d75b9){_0x37cfdc=_0x37cfdc-0x1c8;var _0x3c9fe7=_0x278dbd[_0x37cfdc];return _0x3c9fe7;},a4_0x37cf(_0x513c7a,_0x22ea16);}const cacheManager=require('cache-manager'),core_1=require(a4_0x5d4f99(0x1cf));let CacheService=class CacheService{constructor(){var _0x96b09f=a4_0x5d4f99;this[_0x96b09f(0x1d9)]=undefined,this[_0x96b09f(0x1ed)]=new Map();}['use'](_0xe7f1be){var _0x24a498=a4_0x5d4f99,_0x2a8ee5,_0x50aded;if(!this[_0x24a498(0x1d9)]){const _0x1d5b40=((_0x2a8ee5=this[_0x24a498(0x1df)][_0x24a498(0x1e0)])===null||_0x2a8ee5===void 0x0?void 0x0:_0x2a8ee5[(_0x50aded=this[_0x24a498(0x1df)][_0x24a498(0x1d9)])===null||_0x50aded===void 0x0?void 0x0:_0x50aded['default']])||this['config'][_0x24a498(0x1e0)][_0x24a498(0x1c8)];this[_0x24a498(0x1d9)]=cacheManager[_0x24a498(0x1ec)]({..._0x1d5b40[_0x24a498(0x1e5)],'store':_0x1d5b40['store']});}return!this['clients'][_0x24a498(0x1cd)](_0xe7f1be)&&this[_0x24a498(0x1ed)][_0x24a498(0x1dd)](_0xe7f1be,new CacheHandler(_0xe7f1be,this[_0x24a498(0x1d9)])),this[_0x24a498(0x1ed)][_0x24a498(0x1e9)](_0xe7f1be);}async['reset'](){var _0x1927ae=a4_0x5d4f99;return await this[_0x1927ae(0x1d9)][_0x1927ae(0x1d8)]();}};__decorate([(0x0,core_1[a4_0x5d4f99(0x1ee)])('cache'),__metadata(a4_0x5d4f99(0x1e1),Object)],CacheService[a4_0x5d4f99(0x1e2)],a4_0x5d4f99(0x1df),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x5d4f99(0x1ce)])(core_1[a4_0x5d4f99(0x1d4)][a4_0x5d4f99(0x1d0)])],CacheService),exports[a4_0x5d4f99(0x1d6)]=CacheService;class CacheHandler{constructor(_0x20a3c5,_0x438d3a){var _0x4b3a2e=a4_0x5d4f99;this['cache']=_0x438d3a,this[_0x4b3a2e(0x1ea)]=_0x20a3c5;}async[a4_0x5d4f99(0x1e7)](_0x1f2864){var _0x53c79f=a4_0x5d4f99;return await this['cache'][_0x53c79f(0x1e7)](this[_0x53c79f(0x1ea)]+':'+_0x1f2864);}async[a4_0x5d4f99(0x1dd)](_0x34ab70,_0x1473af,_0x180c05){var _0x2fc6b4=a4_0x5d4f99;return await this[_0x2fc6b4(0x1d9)]['set'](this['prefix']+':'+_0x34ab70,_0x1473af,_0x180c05);}async['get'](_0x23943a,_0x1e832f){return new Promise((_0x891c8a,_0x27b776)=>{var _0x19bb1a=a4_0x37cf;this['cache']['get'](this[_0x19bb1a(0x1ea)]+':'+_0x23943a,(_0x1b88e4,_0x9d08c4)=>{_0x1b88e4?_0x27b776(_0x1b88e4):_0x891c8a(_0x9d08c4||_0x1e832f);});});}async['hdel'](_0x317785,_0x3f5458){var _0x1894e5=a4_0x5d4f99;return await this[_0x1894e5(0x1e7)](_0x317785+'#'+_0x3f5458);}async[a4_0x5d4f99(0x1eb)](_0x20b3eb,_0x2b2326,_0xab913,_0x4913fe){var _0xf6e970=a4_0x5d4f99;return await this[_0xf6e970(0x1dd)](_0x20b3eb+'#'+_0x2b2326,_0xab913,_0x4913fe);}async['hget'](_0x35a422,_0x258178,_0x384c8e){var _0x277ebc=a4_0x5d4f99;return await this[_0x277ebc(0x1e9)](_0x35a422+'#'+_0x258178,_0x384c8e);}}
1
+ 'use strict';var a4_0x35e5e4=a4_0x16c4;(function(_0x26a7c6,_0x8cac8f){var _0x7e94ce=a4_0x16c4,_0x874731=_0x26a7c6();while(!![]){try{var _0x57dccb=-parseInt(_0x7e94ce(0x10a))/0x1*(-parseInt(_0x7e94ce(0x100))/0x2)+parseInt(_0x7e94ce(0x106))/0x3*(parseInt(_0x7e94ce(0x117))/0x4)+parseInt(_0x7e94ce(0xfd))/0x5*(parseInt(_0x7e94ce(0x10c))/0x6)+-parseInt(_0x7e94ce(0x10f))/0x7*(-parseInt(_0x7e94ce(0x107))/0x8)+-parseInt(_0x7e94ce(0x10d))/0x9+parseInt(_0x7e94ce(0x120))/0xa+-parseInt(_0x7e94ce(0xfa))/0xb;if(_0x57dccb===_0x8cac8f)break;else _0x874731['push'](_0x874731['shift']());}catch(_0x2d194c){_0x874731['push'](_0x874731['shift']());}}}(a4_0x5ed3,0x45bac));function a4_0x16c4(_0x1f7109,_0x38be81){var _0x5ed389=a4_0x5ed3();return a4_0x16c4=function(_0x16c45a,_0x24f3b8){_0x16c45a=_0x16c45a-0xf8;var _0xf7974b=_0x5ed389[_0x16c45a];return _0xf7974b;},a4_0x16c4(_0x1f7109,_0x38be81);}var __decorate=this&&this[a4_0x35e5e4(0x10b)]||function(_0x3d68a0,_0x747a37,_0x34d198,_0x4bed63){var _0x4cc9e0=a4_0x35e5e4,_0x58324b=arguments[_0x4cc9e0(0x108)],_0x2ae2da=_0x58324b<0x3?_0x747a37:_0x4bed63===null?_0x4bed63=Object[_0x4cc9e0(0x115)](_0x747a37,_0x34d198):_0x4bed63,_0x52e05c;if(typeof Reflect===_0x4cc9e0(0xf9)&&typeof Reflect[_0x4cc9e0(0x114)]===_0x4cc9e0(0x110))_0x2ae2da=Reflect[_0x4cc9e0(0x114)](_0x3d68a0,_0x747a37,_0x34d198,_0x4bed63);else{for(var _0x14fb3a=_0x3d68a0[_0x4cc9e0(0x108)]-0x1;_0x14fb3a>=0x0;_0x14fb3a--)if(_0x52e05c=_0x3d68a0[_0x14fb3a])_0x2ae2da=(_0x58324b<0x3?_0x52e05c(_0x2ae2da):_0x58324b>0x3?_0x52e05c(_0x747a37,_0x34d198,_0x2ae2da):_0x52e05c(_0x747a37,_0x34d198))||_0x2ae2da;}return _0x58324b>0x3&&_0x2ae2da&&Object[_0x4cc9e0(0xfe)](_0x747a37,_0x34d198,_0x2ae2da),_0x2ae2da;},__metadata=this&&this[a4_0x35e5e4(0x11d)]||function(_0x241a8c,_0x2c74c2){var _0xcbe90a=a4_0x35e5e4;if(typeof Reflect===_0xcbe90a(0xf9)&&typeof Reflect[_0xcbe90a(0x103)]===_0xcbe90a(0x110))return Reflect[_0xcbe90a(0x103)](_0x241a8c,_0x2c74c2);};Object[a4_0x35e5e4(0xfe)](exports,a4_0x35e5e4(0x109),{'value':!![]}),exports[a4_0x35e5e4(0x102)]=void 0x0;function a4_0x5ed3(){var _0x4a8a3d=['4364404ENqamd','Singleton','design:type','1355qISAxh','defineProperty','file','2NdelWG','get','CacheService','metadata','Config','store','1752beHsht','3994000xfRIsf','length','__esModule','168598VnSfVY','__decorate','78MMaPcL','4886379JvohVy','stores','7WrYjVy','function','reset','Provide','@midwayjs/core','decorate','getOwnPropertyDescriptor','hset','1852wAaOEh','del','cache-manager','has','default','config','__metadata','options','ScopeEnum','2835440fWDygq','Scope','clients','prefix','cache','set','object'];a4_0x5ed3=function(){return _0x4a8a3d;};return a4_0x5ed3();}const cacheManager=require(a4_0x35e5e4(0x119)),core_1=require(a4_0x35e5e4(0x113));let CacheService=class CacheService{constructor(){var _0x73b396=a4_0x35e5e4;this[_0x73b396(0x124)]=undefined,this[_0x73b396(0x122)]=new Map();}['use'](_0x5315e4){var _0x19597e=a4_0x35e5e4,_0x2c780,_0x3f3c88;if(!this[_0x19597e(0x124)]){const _0x4b9cf1=((_0x2c780=this[_0x19597e(0x11c)][_0x19597e(0x10e)])===null||_0x2c780===void 0x0?void 0x0:_0x2c780[(_0x3f3c88=this[_0x19597e(0x11c)][_0x19597e(0x124)])===null||_0x3f3c88===void 0x0?void 0x0:_0x3f3c88[_0x19597e(0x11b)]])||this[_0x19597e(0x11c)][_0x19597e(0x10e)][_0x19597e(0xff)];this[_0x19597e(0x124)]=cacheManager['caching']({..._0x4b9cf1[_0x19597e(0x11e)],'store':_0x4b9cf1[_0x19597e(0x105)]});}return!this[_0x19597e(0x122)][_0x19597e(0x11a)](_0x5315e4)&&this[_0x19597e(0x122)][_0x19597e(0xf8)](_0x5315e4,new CacheHandler(_0x5315e4,this[_0x19597e(0x124)])),this[_0x19597e(0x122)]['get'](_0x5315e4);}async[a4_0x35e5e4(0x111)](){var _0x4954d2=a4_0x35e5e4;return await this[_0x4954d2(0x124)]['reset']();}};__decorate([(0x0,core_1[a4_0x35e5e4(0x104)])(a4_0x35e5e4(0x124)),__metadata(a4_0x35e5e4(0xfc),Object)],CacheService['prototype'],a4_0x35e5e4(0x11c),void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x35e5e4(0x112)])(),(0x0,core_1[a4_0x35e5e4(0x121)])(core_1[a4_0x35e5e4(0x11f)][a4_0x35e5e4(0xfb)])],CacheService),exports[a4_0x35e5e4(0x102)]=CacheService;class CacheHandler{constructor(_0x43b792,_0x3d219a){var _0x692692=a4_0x35e5e4;this[_0x692692(0x124)]=_0x3d219a,this[_0x692692(0x123)]=_0x43b792;}async[a4_0x35e5e4(0x118)](_0x340e9d){var _0x3ecb72=a4_0x35e5e4;return await this[_0x3ecb72(0x124)]['del'](this[_0x3ecb72(0x123)]+':'+_0x340e9d);}async[a4_0x35e5e4(0xf8)](_0x5b9427,_0x16be0d,_0x3c33fd){var _0xf7c396=a4_0x35e5e4;return await this['cache'][_0xf7c396(0xf8)](this[_0xf7c396(0x123)]+':'+_0x5b9427,_0x16be0d,_0x3c33fd);}async[a4_0x35e5e4(0x101)](_0x3b2e45,_0x48825e){return new Promise((_0x16cdf9,_0x300224)=>{var _0x14178c=a4_0x16c4;this[_0x14178c(0x124)][_0x14178c(0x101)](this['prefix']+':'+_0x3b2e45,(_0x41c501,_0x4ad8ac)=>{_0x41c501?_0x300224(_0x41c501):_0x16cdf9(_0x4ad8ac||_0x48825e);});});}async['hdel'](_0x49c03a,_0x2c0046){var _0x7c03e3=a4_0x35e5e4;return await this[_0x7c03e3(0x118)](_0x49c03a+'#'+_0x2c0046);}async[a4_0x35e5e4(0x116)](_0x491551,_0x308565,_0x136f6d,_0x52a862){return await this['set'](_0x491551+'#'+_0x308565,_0x136f6d,_0x52a862);}async['hget'](_0x2a8f96,_0x5d0bee,_0x1d58de){var _0x543392=a4_0x35e5e4;return await this[_0x543392(0x101)](_0x2a8f96+'#'+_0x5d0bee,_0x1d58de);}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anncic-api/cache",
3
- "version": "1.4.10",
3
+ "version": "1.4.12",
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": "bd9d97c22d221db7a48b93b757f194f73bba4a6e"
26
+ "gitHead": "7bdd9be96d43d085128a64bb2121ebf37696468b"
27
27
  }