@anncic-api/cache 1.0.14 → 1.0.17
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_0x3febe6=a0_0x5beb;(function(_0x2a5f3c,_0x15ee8d){const _0x2c3cd4=a0_0x5beb,_0x46ea22=_0x2a5f3c();while(!![]){try{const _0x1808e0=-parseInt(_0x2c3cd4(0x130))/0x1*(parseInt(_0x2c3cd4(0x132))/0x2)+parseInt(_0x2c3cd4(0x12f))/0x3+-parseInt(_0x2c3cd4(0x12c))/0x4*(-parseInt(_0x2c3cd4(0x137))/0x5)+parseInt(_0x2c3cd4(0x139))/0x6*(-parseInt(_0x2c3cd4(0x133))/0x7)+-parseInt(_0x2c3cd4(0x134))/0x8+parseInt(_0x2c3cd4(0x12a))/0x9*(parseInt(_0x2c3cd4(0x13c))/0xa)+-parseInt(_0x2c3cd4(0x138))/0xb*(-parseInt(_0x2c3cd4(0x12e))/0xc);if(_0x1808e0===_0x15ee8d)break;else _0x46ea22['push'](_0x46ea22['shift']());}catch(_0x2918e7){_0x46ea22['push'](_0x46ea22['shift']());}}}(a0_0x1652,0x35e43));Object[a0_0x3febe6(0x13d)](exports,a0_0x3febe6(0x12b),{'value':!![]});function a0_0x5beb(_0x349f0a,_0x45502c){const _0x165252=a0_0x1652();return a0_0x5beb=function(_0x5beb9a,_0x215f8e){_0x5beb9a=_0x5beb9a-0x12a;let _0x1beb6c=_0x165252[_0x5beb9a];return _0x1beb6c;},a0_0x5beb(_0x349f0a,_0x45502c);}function a0_0x1652(){const _0x3242de=['35950ruUbIU','defineProperty','127.0.0.1','name','495PFBvZF','__esModule','413576rafyXN','appDir','938820dTeyqf','381237GvKbxA','10XYNhcr','cache-manager-ioredis','18998ptDtxq','511kdnrLs','1804408ATQWln','default','cache-manager-fs-hash','10qBsdwZ','11aPBNjQ','5634KkFwfj','/runtime/.cache','memory'];a0_0x1652=function(){return _0x3242de;};return a0_0x1652();}const fsStore=require(a0_0x3febe6(0x136)),redisStore=require(a0_0x3febe6(0x131));exports[a0_0x3febe6(0x135)]=_0x412439=>{const _0x52a926=a0_0x3febe6;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x412439[_0x52a926(0x12d)]+_0x52a926(0x13a)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x52a926(0x13e),'password':'','ttl':0x1e13380,'keyPrefix':_0x412439[_0x52a926(0x13f)]+':'}},'memory':{'store':_0x52a926(0x13b),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x59db23=a1_0x3ae5;function a1_0x3ae5(_0x207f73,_0x242377){var _0x23e1e3=a1_0x23e1();return a1_0x3ae5=function(_0x3ae535,_0x1ca8d2){_0x3ae535=_0x3ae535-0x17f;var _0x3d6636=_0x23e1e3[_0x3ae535];return _0x3d6636;},a1_0x3ae5(_0x207f73,_0x242377);}(function(_0x5be935,_0x280d9c){var _0x18b7a8=a1_0x3ae5,_0x199467=_0x5be935();while(!![]){try{var _0x4906e3=-parseInt(_0x18b7a8(0x18f))/0x1*(parseInt(_0x18b7a8(0x180))/0x2)+-parseInt(_0x18b7a8(0x185))/0x3+parseInt(_0x18b7a8(0x181))/0x4+-parseInt(_0x18b7a8(0x190))/0x5+-parseInt(_0x18b7a8(0x18d))/0x6*(-parseInt(_0x18b7a8(0x18e))/0x7)+parseInt(_0x18b7a8(0x182))/0x8*(parseInt(_0x18b7a8(0x186))/0x9)+parseInt(_0x18b7a8(0x18c))/0xa;if(_0x4906e3===_0x280d9c)break;else _0x199467['push'](_0x199467['shift']());}catch(_0x12a9f1){_0x199467['push'](_0x199467['shift']());}}}(a1_0x23e1,0x69865));var __decorate=this&&this['__decorate']||function(_0x485086,_0xffc92e,_0x3b2b03,_0x463c52){var _0xb48364=a1_0x3ae5,_0x1d67f5=arguments['length'],_0x301840=_0x1d67f5<0x3?_0xffc92e:_0x463c52===null?_0x463c52=Object['getOwnPropertyDescriptor'](_0xffc92e,_0x3b2b03):_0x463c52,_0x4a811d;if(typeof Reflect===_0xb48364(0x18a)&&typeof Reflect['decorate']===_0xb48364(0x183))_0x301840=Reflect[_0xb48364(0x191)](_0x485086,_0xffc92e,_0x3b2b03,_0x463c52);else{for(var _0x4923dd=_0x485086[_0xb48364(0x193)]-0x1;_0x4923dd>=0x0;_0x4923dd--)if(_0x4a811d=_0x485086[_0x4923dd])_0x301840=(_0x1d67f5<0x3?_0x4a811d(_0x301840):_0x1d67f5>0x3?_0x4a811d(_0xffc92e,_0x3b2b03,_0x301840):_0x4a811d(_0xffc92e,_0x3b2b03))||_0x301840;}return _0x1d67f5>0x3&&_0x301840&&Object[_0xb48364(0x184)](_0xffc92e,_0x3b2b03,_0x301840),_0x301840;};function a1_0x23e1(){var _0x4049a0=['1272765JnHeLQ','decorate','anncic-api:cache','length','CustomConfiguration','11058PjCrhp','3123880pQGjAT','3057744QPGYPC','function','defineProperty','2124255tyNVOQ','9VpnXlr','@midwayjs/decorator','./config/config.default','__esModule','object','Configuration','1398380HUtCaf','1590mAlBiJ','8414lqusYO','41jpnmSA'];a1_0x23e1=function(){return _0x4049a0;};return a1_0x23e1();}Object[a1_0x59db23(0x184)](exports,a1_0x59db23(0x189),{'value':!![]}),exports[a1_0x59db23(0x17f)]=void 0x0;const decorator_1=require(a1_0x59db23(0x187)),ConfigDefault=require(a1_0x59db23(0x188));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x59db23(0x18b)])({'conflictCheck':![],'namespace':a1_0x59db23(0x192),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x557dc7=a2_0x363b;function a2_0x363b(_0x184802,_0x212929){const _0x2b9512=a2_0x2b95();return a2_0x363b=function(_0x363bbe,_0x2f1492){_0x363bbe=_0x363bbe-0xb3;let _0x4b5564=_0x2b9512[_0x363bbe];return _0x4b5564;},a2_0x363b(_0x184802,_0x212929);}(function(_0x47d101,_0x4dfa4f){const _0x22126f=a2_0x363b,_0x45e858=_0x47d101();while(!![]){try{const _0x5445ad=-parseInt(_0x22126f(0xbd))/0x1+-parseInt(_0x22126f(0xbc))/0x2*(parseInt(_0x22126f(0xb7))/0x3)+-parseInt(_0x22126f(0xc1))/0x4+parseInt(_0x22126f(0xb4))/0x5*(parseInt(_0x22126f(0xce))/0x6)+-parseInt(_0x22126f(0xc0))/0x7*(parseInt(_0x22126f(0xc7))/0x8)+-parseInt(_0x22126f(0xb9))/0x9+-parseInt(_0x22126f(0xc6))/0xa*(-parseInt(_0x22126f(0xba))/0xb);if(_0x5445ad===_0x4dfa4f)break;else _0x45e858['push'](_0x45e858['shift']());}catch(_0x3aa4e1){_0x45e858['push'](_0x45e858['shift']());}}}(a2_0x2b95,0x7948c));Object['defineProperty'](exports,a2_0x557dc7(0xc3),{'value':!![]}),exports['Cache']=void 0x0;const crypto_js_1=require(a2_0x557dc7(0xb3)),CacheService_1=require(a2_0x557dc7(0xbf)),core_1=require(a2_0x557dc7(0xca));function Cache(_0x365c64,_0x46ea51){return(_0xcecc05,_0x5ce6a4,_0x5f4e72)=>{const _0x6fc380=a2_0x363b,_0x261b64=_0x5f4e72['value'];return _0x5f4e72[_0x6fc380(0xc5)]=async function(..._0x5b805c){const _0x13da5a=_0x6fc380;!_0x365c64&&(_0x365c64=(0x0,crypto_js_1[_0x13da5a(0xb6)])(JSON[_0x13da5a(0xc2)](_0x5b805c))[_0x13da5a(0xbe)]());let _0x3836d8=await this[core_1[_0x13da5a(0xc8)]][_0x13da5a(0xb8)][_0x13da5a(0xcc)]()[_0x13da5a(0xb5)](CacheService_1['CacheService']),_0x32c800=await _0x3836d8[_0x13da5a(0xc9)](_0x13da5a(0xbb))[_0x13da5a(0xcd)](_0x365c64);if(_0x32c800)return JSON['parse'](_0x32c800);else _0x32c800=await _0x261b64[_0x13da5a(0xcb)](this,[..._0x5b805c]),await _0x3836d8[_0x13da5a(0xc9)](_0x13da5a(0xbb))['set'](_0x365c64,JSON['stringify'](_0x32c800),_0x46ea51);return _0x32c800;},_0x5f4e72;};}exports[a2_0x557dc7(0xc4)]=Cache;function a2_0x2b95(){const _0xb96824=['crypto-js','35quTHUG','getAsync','MD5','1266BnlUxJ','app','8136783CCZDMJ','26237717rEzhgE','MethodDecorator','2382RCLbQK','230737cbDboe','toString','../service/CacheService','869491lxZFyB','3472820mLHDbe','stringify','__esModule','Cache','value','10ZjrxgY','8kQscce','REQUEST_OBJ_CTX_KEY','use','@midwayjs/core','apply','getApplicationContext','get','635466kpdCLC'];a2_0x2b95=function(){return _0xb96824;};return a2_0x2b95();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a3_0x7049(){var _0x4d9cc7=['CustomConfiguration','defineProperty','10040gbkilQ','Cache','2142412GULPQI','__esModule','384409wjuVEv','4158CScvGR','776AJThvk','2463696VvpPoq','Configuration','./decorator/Cache','5ygLacF','CacheService','1496817BqxBDN','19593oKcveE','2wWAwLo','21girAYW','1088214xlrdOb'];a3_0x7049=function(){return _0x4d9cc7;};return a3_0x7049();}var a3_0x399da8=a3_0x564d;(function(_0x5578f1,_0x8ec308){var _0x589e8f=a3_0x564d,_0xf1de10=_0x5578f1();while(!![]){try{var _0x1a666b=parseInt(_0x589e8f(0x196))/0x1*(parseInt(_0x589e8f(0x18d))/0x2)+-parseInt(_0x589e8f(0x18b))/0x3+-parseInt(_0x589e8f(0x194))/0x4*(parseInt(_0x589e8f(0x189))/0x5)+-parseInt(_0x589e8f(0x18f))/0x6*(-parseInt(_0x589e8f(0x18e))/0x7)+-parseInt(_0x589e8f(0x185))/0x8*(-parseInt(_0x589e8f(0x18c))/0x9)+-parseInt(_0x589e8f(0x192))/0xa*(-parseInt(_0x589e8f(0x184))/0xb)+-parseInt(_0x589e8f(0x186))/0xc;if(_0x1a666b===_0x8ec308)break;else _0xf1de10['push'](_0xf1de10['shift']());}catch(_0x1cd0c8){_0xf1de10['push'](_0xf1de10['shift']());}}}(a3_0x7049,0x44333));Object[a3_0x399da8(0x191)](exports,a3_0x399da8(0x195),{'value':!![]}),exports[a3_0x399da8(0x18a)]=exports['Cache']=exports[a3_0x399da8(0x187)]=void 0x0;var configuration_1=require('./configuration');Object[a3_0x399da8(0x191)](exports,a3_0x399da8(0x187),{'enumerable':!![],'get':function(){var _0xc987a8=a3_0x399da8;return configuration_1[_0xc987a8(0x190)];}});var Cache_1=require(a3_0x399da8(0x188));Object[a3_0x399da8(0x191)](exports,a3_0x399da8(0x193),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require('./service/CacheService');function a3_0x564d(_0x1b0be1,_0x23267a){var _0x7049e3=a3_0x7049();return a3_0x564d=function(_0x564db9,_0x15d4c6){_0x564db9=_0x564db9-0x184;var _0x2306eb=_0x7049e3[_0x564db9];return _0x2306eb;},a3_0x564d(_0x1b0be1,_0x23267a);}Object['defineProperty'](exports,a3_0x399da8(0x18a),{'enumerable':!![],'get':function(){var _0x27238f=a3_0x399da8;return CacheService_1[_0x27238f(0x18a)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a4_0x45d1aa=a4_0x482b;(function(_0x136c08,_0x2d1dca){var _0x24dfe0=a4_0x482b,_0xc2eb05=_0x136c08();while(!![]){try{var _0x3ad51c=-parseInt(_0x24dfe0(0x1de))/0x1+-parseInt(_0x24dfe0(0x1ef))/0x2+parseInt(_0x24dfe0(0x1fc))/0x3+-parseInt(_0x24dfe0(0x1f4))/0x4+parseInt(_0x24dfe0(0x1eb))/0x5+-parseInt(_0x24dfe0(0x1ea))/0x6*(-parseInt(_0x24dfe0(0x1df))/0x7)+parseInt(_0x24dfe0(0x1f6))/0x8*(parseInt(_0x24dfe0(0x1e1))/0x9);if(_0x3ad51c===_0x2d1dca)break;else _0xc2eb05['push'](_0xc2eb05['shift']());}catch(_0x12fc59){_0xc2eb05['push'](_0xc2eb05['shift']());}}}(a4_0x4b05,0xf0217));var __decorate=this&&this[a4_0x45d1aa(0x1e8)]||function(_0x2fe42f,_0xdc522c,_0x2035e5,_0x3adf05){var _0x5db13a=a4_0x45d1aa,_0x17370f=arguments['length'],_0x55dbf0=_0x17370f<0x3?_0xdc522c:_0x3adf05===null?_0x3adf05=Object['getOwnPropertyDescriptor'](_0xdc522c,_0x2035e5):_0x3adf05,_0x65f163;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x55dbf0=Reflect[_0x5db13a(0x1fe)](_0x2fe42f,_0xdc522c,_0x2035e5,_0x3adf05);else{for(var _0x1e1771=_0x2fe42f['length']-0x1;_0x1e1771>=0x0;_0x1e1771--)if(_0x65f163=_0x2fe42f[_0x1e1771])_0x55dbf0=(_0x17370f<0x3?_0x65f163(_0x55dbf0):_0x17370f>0x3?_0x65f163(_0xdc522c,_0x2035e5,_0x55dbf0):_0x65f163(_0xdc522c,_0x2035e5))||_0x55dbf0;}return _0x17370f>0x3&&_0x55dbf0&&Object[_0x5db13a(0x1f2)](_0xdc522c,_0x2035e5,_0x55dbf0),_0x55dbf0;},__metadata=this&&this[a4_0x45d1aa(0x1da)]||function(_0x4d935d,_0x29e59a){var _0x3c046e=a4_0x45d1aa;if(typeof Reflect===_0x3c046e(0x1ed)&&typeof Reflect[_0x3c046e(0x1db)]===_0x3c046e(0x1f7))return Reflect[_0x3c046e(0x1db)](_0x4d935d,_0x29e59a);};Object[a4_0x45d1aa(0x1f2)](exports,a4_0x45d1aa(0x1e0),{'value':!![]}),exports[a4_0x45d1aa(0x1d9)]=void 0x0;const cacheManager=require(a4_0x45d1aa(0x1f0)),decorator_1=require(a4_0x45d1aa(0x1dd));function a4_0x4b05(){var _0x2d3942=['clients','caching','design:type','Config','__decorate','default','6Tbhkky','4976360vnQTDd','hset','object','store','2289880NzAINE','cache-manager','prefix','defineProperty','config','4140416IeufIA','set','6828712gPPgFD','function','stores','use','has','cache','3082596WNWRjX','reset','decorate','del','Singleton','prototype','get','CacheService','__metadata','metadata','Scope','@midwayjs/decorator','590647fYBenw','6145111xHVKdg','__esModule','9wjlTju','hget','hdel'];a4_0x4b05=function(){return _0x2d3942;};return a4_0x4b05();}let CacheService=class CacheService{constructor(){var _0x44536d=a4_0x45d1aa;this[_0x44536d(0x1fb)]=undefined,this[_0x44536d(0x1e4)]=new Map();}[a4_0x45d1aa(0x1f9)](_0x20f861){var _0x1ddb10=a4_0x45d1aa,_0x373628,_0x5e3c13;if(!this[_0x1ddb10(0x1fb)]){const _0x494478=((_0x373628=this[_0x1ddb10(0x1f3)]['stores'])===null||_0x373628===void 0x0?void 0x0:_0x373628[(_0x5e3c13=this[_0x1ddb10(0x1f3)][_0x1ddb10(0x1fb)])===null||_0x5e3c13===void 0x0?void 0x0:_0x5e3c13[_0x1ddb10(0x1e9)]])||this[_0x1ddb10(0x1f3)][_0x1ddb10(0x1f8)]['file'];this[_0x1ddb10(0x1fb)]=cacheManager[_0x1ddb10(0x1e5)]({..._0x494478['options'],'store':_0x494478[_0x1ddb10(0x1ee)]});}return!this['clients'][_0x1ddb10(0x1fa)](_0x20f861)&&this[_0x1ddb10(0x1e4)][_0x1ddb10(0x1f5)](_0x20f861,new CacheHandler(_0x20f861,this['cache'])),this[_0x1ddb10(0x1e4)]['get'](_0x20f861);}async[a4_0x45d1aa(0x1fd)](){var _0x3944eb=a4_0x45d1aa;return await this[_0x3944eb(0x1fb)][_0x3944eb(0x1fd)]();}};__decorate([(0x0,decorator_1[a4_0x45d1aa(0x1e7)])(a4_0x45d1aa(0x1fb)),__metadata(a4_0x45d1aa(0x1e6),Object)],CacheService[a4_0x45d1aa(0x1d7)],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x45d1aa(0x1dc)])(decorator_1['ScopeEnum'][a4_0x45d1aa(0x200)])],CacheService),exports[a4_0x45d1aa(0x1d9)]=CacheService;function a4_0x482b(_0x3bbce5,_0xb07f0a){var _0x4b05a0=a4_0x4b05();return a4_0x482b=function(_0x482b49,_0x2abdd1){_0x482b49=_0x482b49-0x1d7;var _0xf36775=_0x4b05a0[_0x482b49];return _0xf36775;},a4_0x482b(_0x3bbce5,_0xb07f0a);}class CacheHandler{constructor(_0xf6d8ec,_0x198c3e){var _0x4f4b68=a4_0x45d1aa;this[_0x4f4b68(0x1fb)]=_0x198c3e,this['prefix']=_0xf6d8ec;}async[a4_0x45d1aa(0x1ff)](_0x538f73){var _0x375507=a4_0x45d1aa;return await this[_0x375507(0x1fb)][_0x375507(0x1ff)](this['prefix']+':'+_0x538f73);}async[a4_0x45d1aa(0x1f5)](_0x30f81d,_0x283ea2,_0x5259f6){var _0x4f8b72=a4_0x45d1aa;return await this[_0x4f8b72(0x1fb)][_0x4f8b72(0x1f5)](this[_0x4f8b72(0x1f1)]+':'+_0x30f81d,_0x283ea2,_0x5259f6);}async['get'](_0x3e3ed5,_0x5706b9){return new Promise((_0xa866bb,_0x7e801b)=>{var _0x2d43a2=a4_0x482b;this['cache'][_0x2d43a2(0x1d8)](this[_0x2d43a2(0x1f1)]+':'+_0x3e3ed5,(_0x43c015,_0x6f1cf6)=>{_0x43c015?_0x7e801b(_0x43c015):_0xa866bb(_0x6f1cf6||_0x5706b9);});});}async[a4_0x45d1aa(0x1e3)](_0x3b2d86,_0x282fa8){var _0x436e87=a4_0x45d1aa;return await this[_0x436e87(0x1ff)](_0x3b2d86+'-'+_0x282fa8);}async[a4_0x45d1aa(0x1ec)](_0x34b8cd,_0x4e43dd,_0x3198b0,_0x26abdc){return await this['set'](_0x34b8cd+'-'+_0x4e43dd,_0x3198b0,_0x26abdc);}async[a4_0x45d1aa(0x1e2)](_0x411dbe,_0x3e7eff,_0x4a0613){var _0x36f36e=a4_0x45d1aa;return await this[_0x36f36e(0x1d8)](_0x411dbe+'-'+_0x3e7eff,_0x4a0613);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
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": "692d5f4bc3762294c659c347454422424f57098b"
|
|
27
27
|
}
|