@anncic-api/cache 1.1.8 → 1.1.11
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';
|
|
1
|
+
'use strict';const a0_0xabe2b6=a0_0x3ecc;(function(_0x47a5c5,_0x340878){const _0x5c2ec=a0_0x3ecc,_0x25d2e2=_0x47a5c5();while(!![]){try{const _0xa89aeb=parseInt(_0x5c2ec(0x1cf))/0x1*(parseInt(_0x5c2ec(0x1dc))/0x2)+-parseInt(_0x5c2ec(0x1d5))/0x3+-parseInt(_0x5c2ec(0x1d9))/0x4*(-parseInt(_0x5c2ec(0x1d1))/0x5)+-parseInt(_0x5c2ec(0x1cb))/0x6+-parseInt(_0x5c2ec(0x1d2))/0x7+-parseInt(_0x5c2ec(0x1d8))/0x8+parseInt(_0x5c2ec(0x1d4))/0x9*(parseInt(_0x5c2ec(0x1d0))/0xa);if(_0xa89aeb===_0x340878)break;else _0x25d2e2['push'](_0x25d2e2['shift']());}catch(_0xe47f33){_0x25d2e2['push'](_0x25d2e2['shift']());}}}(a0_0x55d9,0x5061c));function a0_0x55d9(){const _0x1dc2e2=['127.0.0.1','18TOtYTg','1446630AtvnHl','defineProperty','appDir','2780584FgeYCH','833380KEifBS','cache-manager-ioredis','file','35864rKFFLW','3807516iUAHkt','/runtime/.cache','name','cache-manager-fs-hash','23mVqiiq','5570630gfyydm','10mdHagK','1047473bWLaml'];a0_0x55d9=function(){return _0x1dc2e2;};return a0_0x55d9();}function a0_0x3ecc(_0x2d0568,_0x28f02a){const _0x55d964=a0_0x55d9();return a0_0x3ecc=function(_0x3ecc99,_0x35bc72){_0x3ecc99=_0x3ecc99-0x1cb;let _0x405f4c=_0x55d964[_0x3ecc99];return _0x405f4c;},a0_0x3ecc(_0x2d0568,_0x28f02a);}Object[a0_0xabe2b6(0x1d6)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0xabe2b6(0x1ce)),redisStore=require(a0_0xabe2b6(0x1da));exports['default']=_0xf99e68=>{const _0x16c511=a0_0xabe2b6;return{'cache':{'default':_0x16c511(0x1db),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0xf99e68[_0x16c511(0x1d7)]+_0x16c511(0x1cc)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x16c511(0x1d3),'password':'','ttl':0x1e13380,'keyPrefix':_0xf99e68[_0x16c511(0x1cd)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x326b51=a1_0x44c9;(function(_0x36f921,_0x5abe9b){var _0x291291=a1_0x44c9,_0x10fb30=_0x36f921();while(!![]){try{var _0x5b762d=parseInt(_0x291291(0x15b))/0x1+-parseInt(_0x291291(0x165))/0x2*(-parseInt(_0x291291(0x156))/0x3)+parseInt(_0x291291(0x15d))/0x4+-parseInt(_0x291291(0x160))/0x5*(-parseInt(_0x291291(0x162))/0x6)+parseInt(_0x291291(0x158))/0x7*(parseInt(_0x291291(0x161))/0x8)+parseInt(_0x291291(0x154))/0x9+-parseInt(_0x291291(0x155))/0xa;if(_0x5b762d===_0x5abe9b)break;else _0x10fb30['push'](_0x10fb30['shift']());}catch(_0x4d3b66){_0x10fb30['push'](_0x10fb30['shift']());}}}(a1_0xdb40,0x6b3b1));var __decorate=this&&this[a1_0x326b51(0x159)]||function(_0x3b7d4a,_0x348051,_0x4485b2,_0x459221){var _0x133a91=a1_0x326b51,_0x4e560e=arguments['length'],_0x567a32=_0x4e560e<0x3?_0x348051:_0x459221===null?_0x459221=Object['getOwnPropertyDescriptor'](_0x348051,_0x4485b2):_0x459221,_0xa1de5e;if(typeof Reflect===_0x133a91(0x163)&&typeof Reflect['decorate']===_0x133a91(0x164))_0x567a32=Reflect['decorate'](_0x3b7d4a,_0x348051,_0x4485b2,_0x459221);else{for(var _0x128995=_0x3b7d4a[_0x133a91(0x15c)]-0x1;_0x128995>=0x0;_0x128995--)if(_0xa1de5e=_0x3b7d4a[_0x128995])_0x567a32=(_0x4e560e<0x3?_0xa1de5e(_0x567a32):_0x4e560e>0x3?_0xa1de5e(_0x348051,_0x4485b2,_0x567a32):_0xa1de5e(_0x348051,_0x4485b2))||_0x567a32;}return _0x4e560e>0x3&&_0x567a32&&Object[_0x133a91(0x15a)](_0x348051,_0x4485b2,_0x567a32),_0x567a32;};Object[a1_0x326b51(0x15a)](exports,'__esModule',{'value':!![]}),exports[a1_0x326b51(0x153)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),ConfigDefault=require(a1_0x326b51(0x157));let CustomConfiguration=class CustomConfiguration{};function a1_0x44c9(_0xd4aa19,_0x4fa603){var _0xdb4011=a1_0xdb40();return a1_0x44c9=function(_0x44c9c1,_0x244e42){_0x44c9c1=_0x44c9c1-0x153;var _0x1d5cb5=_0xdb4011[_0x44c9c1];return _0x1d5cb5;},a1_0x44c9(_0xd4aa19,_0x4fa603);}function a1_0xdb40(){var _0x44f927=['object','function','2LjXFMn','CustomConfiguration','7518879YLbcbh','28343170PhzLJz','962631pCzQOz','./config/config.default','133BXYNxb','__decorate','defineProperty','701866rBcvkc','length','1672304DHiexI','Configuration','anncic-api:cache','35vtKccA','148760OYeURC','551982bFPdVN'];a1_0xdb40=function(){return _0x44f927;};return a1_0xdb40();}CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x326b51(0x15e)])({'conflictCheck':![],'namespace':a1_0x326b51(0x15f),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x326b51(0x153)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a2_0x4a0b(_0xa4ec1,_0x546772){const _0x2a3155=a2_0x2a31();return a2_0x4a0b=function(_0x4a0bf6,_0x455808){_0x4a0bf6=_0x4a0bf6-0xa4;let _0x27d9a5=_0x2a3155[_0x4a0bf6];return _0x27d9a5;},a2_0x4a0b(_0xa4ec1,_0x546772);}const a2_0x54a975=a2_0x4a0b;(function(_0x2acc78,_0x1d5639){const _0x1bb5e4=a2_0x4a0b,_0x1b1d08=_0x2acc78();while(!![]){try{const _0x331051=-parseInt(_0x1bb5e4(0xa8))/0x1+parseInt(_0x1bb5e4(0xb1))/0x2+-parseInt(_0x1bb5e4(0xac))/0x3+parseInt(_0x1bb5e4(0xad))/0x4+parseInt(_0x1bb5e4(0xb0))/0x5*(-parseInt(_0x1bb5e4(0xb9))/0x6)+-parseInt(_0x1bb5e4(0xbb))/0x7*(-parseInt(_0x1bb5e4(0xba))/0x8)+-parseInt(_0x1bb5e4(0xaa))/0x9*(-parseInt(_0x1bb5e4(0xb3))/0xa);if(_0x331051===_0x1d5639)break;else _0x1b1d08['push'](_0x1b1d08['shift']());}catch(_0x2b1f57){_0x1b1d08['push'](_0x1b1d08['shift']());}}}(a2_0x2a31,0xaca1c));Object[a2_0x54a975(0xb6)](exports,a2_0x54a975(0xa9),{'value':!![]}),exports[a2_0x54a975(0xaf)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x54a975(0xbc)),core_1=require(a2_0x54a975(0xa6));function a2_0x2a31(){const _0x402dbb=['878710jcundK','value','11127890HfcLbd','CacheService','set','defineProperty','parse','toString','18dnjVKu','2324136bAQUtS','14BwwcyX','../service/CacheService','apply','getApplicationContext','use','@midwayjs/core','stringify','93242LxfJXD','__esModule','9GkUbkf','getAsync','3861135DrXyQS','4377400IpYfeg','REQUEST_OBJ_CTX_KEY','Cache','1900235ewkPVG'];a2_0x2a31=function(){return _0x402dbb;};return a2_0x2a31();}function Cache(_0x556eca,_0x4efe2f){return(_0xc80fa8,_0x2fa8ce,_0x18a3c0)=>{const _0x188359=a2_0x4a0b,_0x2b1c32=_0x18a3c0[_0x188359(0xb2)];return _0x18a3c0[_0x188359(0xb2)]=async function(..._0x2d3ab3){const _0xd7774c=_0x188359;!_0x556eca&&(_0x556eca=(0x0,crypto_js_1['MD5'])(JSON['stringify'](_0x2d3ab3))[_0xd7774c(0xb8)]());let _0x3a217e=await this[core_1[_0xd7774c(0xae)]]['app'][_0xd7774c(0xa4)]()[_0xd7774c(0xab)](CacheService_1[_0xd7774c(0xb4)]),_0x4b81c7=await _0x3a217e[_0xd7774c(0xa5)]('MethodDecorator')['get'](_0x556eca);if(_0x4b81c7)return JSON[_0xd7774c(0xb7)](_0x4b81c7);else _0x4b81c7=await _0x2b1c32[_0xd7774c(0xbd)](this,[..._0x2d3ab3]),await _0x3a217e[_0xd7774c(0xa5)]('MethodDecorator')[_0xd7774c(0xb5)](_0x556eca,JSON[_0xd7774c(0xa7)](_0x4b81c7),_0x4efe2f);return _0x4b81c7;},_0x18a3c0;};}exports['Cache']=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x5b492c=a3_0x1599;function a3_0x1599(_0x35cb4c,_0x1bc057){var _0x3e7817=a3_0x3e78();return a3_0x1599=function(_0x1599fe,_0x1dd5dc){_0x1599fe=_0x1599fe-0x1c9;var _0x5c4028=_0x3e7817[_0x1599fe];return _0x5c4028;},a3_0x1599(_0x35cb4c,_0x1bc057);}(function(_0x2b7412,_0x42399a){var _0x501b2c=a3_0x1599,_0x39338c=_0x2b7412();while(!![]){try{var _0x39f23f=-parseInt(_0x501b2c(0x1cd))/0x1*(parseInt(_0x501b2c(0x1cc))/0x2)+-parseInt(_0x501b2c(0x1ce))/0x3+parseInt(_0x501b2c(0x1c9))/0x4*(parseInt(_0x501b2c(0x1d6))/0x5)+parseInt(_0x501b2c(0x1d3))/0x6*(parseInt(_0x501b2c(0x1d1))/0x7)+-parseInt(_0x501b2c(0x1da))/0x8+parseInt(_0x501b2c(0x1d9))/0x9+-parseInt(_0x501b2c(0x1d5))/0xa*(-parseInt(_0x501b2c(0x1cb))/0xb);if(_0x39f23f===_0x42399a)break;else _0x39338c['push'](_0x39338c['shift']());}catch(_0x2759a3){_0x39338c['push'](_0x39338c['shift']());}}}(a3_0x3e78,0x8bd6e));Object[a3_0x5b492c(0x1d0)](exports,a3_0x5b492c(0x1d8),{'value':!![]}),exports['CacheService']=exports[a3_0x5b492c(0x1d2)]=exports[a3_0x5b492c(0x1cf)]=void 0x0;var configuration_1=require('./configuration');function a3_0x3e78(){var _0xeeb888=['./service/CacheService','__esModule','5378922xuRZnA','4852536QceyzE','CacheService','4EeSWNi','./decorator/Cache','891iysBNE','282144JsiJjf','1dKoeQm','1559568NFDaVt','Configuration','defineProperty','3990FjhmlT','Cache','738rgLVcc','CustomConfiguration','58620dSfCWI','3488435WaDLNM'];a3_0x3e78=function(){return _0xeeb888;};return a3_0x3e78();}Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x524704=a3_0x5b492c;return configuration_1[_0x524704(0x1d4)];}});var Cache_1=require(a3_0x5b492c(0x1ca));Object[a3_0x5b492c(0x1d0)](exports,a3_0x5b492c(0x1d2),{'enumerable':!![],'get':function(){var _0x10794f=a3_0x5b492c;return Cache_1[_0x10794f(0x1d2)];}});var CacheService_1=require(a3_0x5b492c(0x1d7));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x5038bf=a3_0x5b492c;return CacheService_1[_0x5038bf(0x1db)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x160d4f=a4_0x4550;(function(_0x4f8d18,_0x4f11bb){var _0x45d45a=a4_0x4550,_0x50ead3=_0x4f8d18();while(!![]){try{var _0x56c115=parseInt(_0x45d45a(0x1c6))/0x1+-parseInt(_0x45d45a(0x1da))/0x2*(parseInt(_0x45d45a(0x1ce))/0x3)+parseInt(_0x45d45a(0x1ca))/0x4+-parseInt(_0x45d45a(0x1d8))/0x5+parseInt(_0x45d45a(0x1dd))/0x6+parseInt(_0x45d45a(0x1bf))/0x7*(-parseInt(_0x45d45a(0x1b9))/0x8)+parseInt(_0x45d45a(0x1be))/0x9*(parseInt(_0x45d45a(0x1d4))/0xa);if(_0x56c115===_0x4f11bb)break;else _0x50ead3['push'](_0x50ead3['shift']());}catch(_0x1274ef){_0x50ead3['push'](_0x50ead3['shift']());}}}(a4_0x206c,0x1fbf4));var __decorate=this&&this[a4_0x160d4f(0x1d5)]||function(_0x2a90e5,_0x4e2cd2,_0x4e959f,_0x2abdf7){var _0x11424b=a4_0x160d4f,_0x1a7074=arguments[_0x11424b(0x1df)],_0x50d9f5=_0x1a7074<0x3?_0x4e2cd2:_0x2abdf7===null?_0x2abdf7=Object[_0x11424b(0x1d7)](_0x4e2cd2,_0x4e959f):_0x2abdf7,_0x578435;if(typeof Reflect===_0x11424b(0x1cc)&&typeof Reflect[_0x11424b(0x1dc)]===_0x11424b(0x1c2))_0x50d9f5=Reflect[_0x11424b(0x1dc)](_0x2a90e5,_0x4e2cd2,_0x4e959f,_0x2abdf7);else{for(var _0x4e0f44=_0x2a90e5[_0x11424b(0x1df)]-0x1;_0x4e0f44>=0x0;_0x4e0f44--)if(_0x578435=_0x2a90e5[_0x4e0f44])_0x50d9f5=(_0x1a7074<0x3?_0x578435(_0x50d9f5):_0x1a7074>0x3?_0x578435(_0x4e2cd2,_0x4e959f,_0x50d9f5):_0x578435(_0x4e2cd2,_0x4e959f))||_0x50d9f5;}return _0x1a7074>0x3&&_0x50d9f5&&Object[_0x11424b(0x1bd)](_0x4e2cd2,_0x4e959f,_0x50d9f5),_0x50d9f5;},__metadata=this&&this[a4_0x160d4f(0x1c4)]||function(_0x42e303,_0x4a4719){var _0x3c3a64=a4_0x160d4f;if(typeof Reflect===_0x3c3a64(0x1cc)&&typeof Reflect['metadata']===_0x3c3a64(0x1c2))return Reflect[_0x3c3a64(0x1ba)](_0x42e303,_0x4a4719);};Object[a4_0x160d4f(0x1bd)](exports,'__esModule',{'value':!![]}),exports[a4_0x160d4f(0x1d0)]=void 0x0;function a4_0x206c(){var _0x2aeb2f=['__metadata','@midwayjs/decorator','154650GzguqB','Scope','ScopeEnum','hset','392740JEzykI','design:type','object','prototype','173868YJislz','store','CacheService','caching','Config','prefix','9460wNHqIx','__decorate','cache','getOwnPropertyDescriptor','1034225TVPEAM','set','8Jkwawg','config','decorate','896046voWjTA','del','length','reset','hget','default','cache-manager','file','44616wJCanx','metadata','options','hdel','defineProperty','3123kbrxZR','203tAUEZb','Singleton','clients','function','get'];a4_0x206c=function(){return _0x2aeb2f;};return a4_0x206c();}const cacheManager=require(a4_0x160d4f(0x1b7)),decorator_1=require(a4_0x160d4f(0x1c5));function a4_0x4550(_0x30df38,_0x3d9029){var _0x206c3c=a4_0x206c();return a4_0x4550=function(_0x455092,_0x12b7b4){_0x455092=_0x455092-0x1b4;var _0x227d4c=_0x206c3c[_0x455092];return _0x227d4c;},a4_0x4550(_0x30df38,_0x3d9029);}let CacheService=class CacheService{constructor(){var _0x36697c=a4_0x160d4f;this[_0x36697c(0x1d6)]=undefined,this[_0x36697c(0x1c1)]=new Map();}['use'](_0x5524db){var _0x41f558=a4_0x160d4f,_0x199f48,_0x4e0d31;if(!this['cache']){const _0x5f41b7=((_0x199f48=this['config']['stores'])===null||_0x199f48===void 0x0?void 0x0:_0x199f48[(_0x4e0d31=this[_0x41f558(0x1db)][_0x41f558(0x1d6)])===null||_0x4e0d31===void 0x0?void 0x0:_0x4e0d31[_0x41f558(0x1b6)]])||this[_0x41f558(0x1db)]['stores'][_0x41f558(0x1b8)];this[_0x41f558(0x1d6)]=cacheManager[_0x41f558(0x1d1)]({..._0x5f41b7[_0x41f558(0x1bb)],'store':_0x5f41b7[_0x41f558(0x1cf)]});}return!this[_0x41f558(0x1c1)]['has'](_0x5524db)&&this['clients']['set'](_0x5524db,new CacheHandler(_0x5524db,this['cache'])),this[_0x41f558(0x1c1)][_0x41f558(0x1c3)](_0x5524db);}async['reset'](){var _0x1aceb8=a4_0x160d4f;return await this[_0x1aceb8(0x1d6)][_0x1aceb8(0x1b4)]();}};__decorate([(0x0,decorator_1[a4_0x160d4f(0x1d2)])(a4_0x160d4f(0x1d6)),__metadata(a4_0x160d4f(0x1cb),Object)],CacheService[a4_0x160d4f(0x1cd)],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x160d4f(0x1c7)])(decorator_1[a4_0x160d4f(0x1c8)][a4_0x160d4f(0x1c0)])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x3eb990,_0x13c5da){var _0x488bf7=a4_0x160d4f;this[_0x488bf7(0x1d6)]=_0x13c5da,this['prefix']=_0x3eb990;}async[a4_0x160d4f(0x1de)](_0xe9d7b0){var _0x2dbbff=a4_0x160d4f;return await this[_0x2dbbff(0x1d6)][_0x2dbbff(0x1de)](this['prefix']+':'+_0xe9d7b0);}async[a4_0x160d4f(0x1d9)](_0x1006c1,_0x45c72e,_0x3d9ab4){var _0x5140a3=a4_0x160d4f;return await this[_0x5140a3(0x1d6)][_0x5140a3(0x1d9)](this[_0x5140a3(0x1d3)]+':'+_0x1006c1,_0x45c72e,_0x3d9ab4);}async[a4_0x160d4f(0x1c3)](_0x2036fd,_0x519d91){return new Promise((_0x5d7768,_0x13e31a)=>{var _0x54d33b=a4_0x4550;this[_0x54d33b(0x1d6)][_0x54d33b(0x1c3)](this['prefix']+':'+_0x2036fd,(_0x333f94,_0x16e2de)=>{_0x333f94?_0x13e31a(_0x333f94):_0x5d7768(_0x16e2de||_0x519d91);});});}async[a4_0x160d4f(0x1bc)](_0x12ad85,_0x1ae170){var _0xa230bf=a4_0x160d4f;return await this[_0xa230bf(0x1de)](_0x12ad85+'-'+_0x1ae170);}async[a4_0x160d4f(0x1c9)](_0x5c4fc8,_0x3240a0,_0x3fb640,_0x5b6962){var _0x1d8ccb=a4_0x160d4f;return await this[_0x1d8ccb(0x1d9)](_0x5c4fc8+'-'+_0x3240a0,_0x3fb640,_0x5b6962);}async[a4_0x160d4f(0x1b5)](_0x2093db,_0x26b1ab,_0x3c17f2){var _0x1f4468=a4_0x160d4f;return await this[_0x1f4468(0x1c3)](_0x2093db+'-'+_0x26b1ab,_0x3c17f2);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
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": "1fe484337204463e2386b18b278bfd2c6a9a70ae"
|
|
27
27
|
}
|