@anncic-api/cache 1.4.9 → 1.4.10
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
|
|
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}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
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;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
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;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
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 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
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);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10",
|
|
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": "
|
|
26
|
+
"gitHead": "bd9d97c22d221db7a48b93b757f194f73bba4a6e"
|
|
27
27
|
}
|