@anncic-api/cache 1.1.40 → 1.1.41
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_0x10fb20=a0_0x1c87;function a0_0x1803(){const _0x1884c5=['1170eEHWcx','4333HzXTJV','127.0.0.1','__esModule','2202712eqsUJV','defineProperty','16IITEzE','memory','849339gCmBbI','cache-manager-ioredis','cache-manager-fs-hash','2kyqGVq','default','appDir','file','1634685RYMNgi','203988KAQaEZ','270989VFHhrh','2259100INhsbx','name'];a0_0x1803=function(){return _0x1884c5;};return a0_0x1803();}(function(_0x3081c8,_0x3ce2ba){const _0x107f36=a0_0x1c87,_0x21acba=_0x3081c8();while(!![]){try{const _0x294332=parseInt(_0x107f36(0x7d))/0x1*(parseInt(_0x107f36(0x8b))/0x2)+parseInt(_0x107f36(0x7c))/0x3*(parseInt(_0x107f36(0x86))/0x4)+-parseInt(_0x107f36(0x8f))/0x5+parseInt(_0x107f36(0x80))/0x6*(parseInt(_0x107f36(0x81))/0x7)+-parseInt(_0x107f36(0x84))/0x8+-parseInt(_0x107f36(0x88))/0x9+parseInt(_0x107f36(0x7e))/0xa;if(_0x294332===_0x3ce2ba)break;else _0x21acba['push'](_0x21acba['shift']());}catch(_0x5148e7){_0x21acba['push'](_0x21acba['shift']());}}}(a0_0x1803,0x2f1ad));Object[a0_0x10fb20(0x85)](exports,a0_0x10fb20(0x83),{'value':!![]});function a0_0x1c87(_0x900747,_0x4126f8){const _0x180385=a0_0x1803();return a0_0x1c87=function(_0x1c87de,_0x3a38ff){_0x1c87de=_0x1c87de-0x7c;let _0x125139=_0x180385[_0x1c87de];return _0x125139;},a0_0x1c87(_0x900747,_0x4126f8);}const fsStore=require(a0_0x10fb20(0x8a)),redisStore=require(a0_0x10fb20(0x89));exports[a0_0x10fb20(0x8c)]=_0x46f10d=>{const _0x7f866=a0_0x10fb20;return{'cache':{'default':_0x7f866(0x8e),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x46f10d[_0x7f866(0x8d)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x7f866(0x82),'password':'','ttl':0x1e13380,'keyPrefix':_0x46f10d[_0x7f866(0x7f)]+':'}},'memory':{'store':_0x7f866(0x87),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a1_0x1f1783=a1_0x2fd8;function a1_0x2fd8(_0x2415e4,_0x2b5893){var _0x24d945=a1_0x24d9();return a1_0x2fd8=function(_0x2fd8cc,_0x2fc998){_0x2fd8cc=_0x2fd8cc-0xdc;var _0x1dd79a=_0x24d945[_0x2fd8cc];return _0x1dd79a;},a1_0x2fd8(_0x2415e4,_0x2b5893);}(function(_0x305ab8,_0x3f7f34){var _0x56196e=a1_0x2fd8,_0xf9d011=_0x305ab8();while(!![]){try{var _0x2d0352=-parseInt(_0x56196e(0xe5))/0x1*(parseInt(_0x56196e(0xeb))/0x2)+-parseInt(_0x56196e(0xed))/0x3+-parseInt(_0x56196e(0xdc))/0x4+parseInt(_0x56196e(0xe6))/0x5*(-parseInt(_0x56196e(0xee))/0x6)+parseInt(_0x56196e(0xe1))/0x7*(-parseInt(_0x56196e(0xdf))/0x8)+parseInt(_0x56196e(0xde))/0x9+parseInt(_0x56196e(0xec))/0xa;if(_0x2d0352===_0x3f7f34)break;else _0xf9d011['push'](_0xf9d011['shift']());}catch(_0x4e2f5d){_0xf9d011['push'](_0xf9d011['shift']());}}}(a1_0x24d9,0x96a7d));var __decorate=this&&this['__decorate']||function(_0x5e4e2f,_0x513679,_0x574853,_0x4e8911){var _0x55a485=a1_0x2fd8,_0xe3bdb8=arguments[_0x55a485(0xe4)],_0x30dd98=_0xe3bdb8<0x3?_0x513679:_0x4e8911===null?_0x4e8911=Object[_0x55a485(0xe3)](_0x513679,_0x574853):_0x4e8911,_0x2fda45;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x55a485(0xea))_0x30dd98=Reflect['decorate'](_0x5e4e2f,_0x513679,_0x574853,_0x4e8911);else{for(var _0x112a0b=_0x5e4e2f[_0x55a485(0xe4)]-0x1;_0x112a0b>=0x0;_0x112a0b--)if(_0x2fda45=_0x5e4e2f[_0x112a0b])_0x30dd98=(_0xe3bdb8<0x3?_0x2fda45(_0x30dd98):_0xe3bdb8>0x3?_0x2fda45(_0x513679,_0x574853,_0x30dd98):_0x2fda45(_0x513679,_0x574853))||_0x30dd98;}return _0xe3bdb8>0x3&&_0x30dd98&&Object[_0x55a485(0xe0)](_0x513679,_0x574853,_0x30dd98),_0x30dd98;};Object[a1_0x1f1783(0xe0)](exports,a1_0x1f1783(0xe2),{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x24d9(){var _0x2e5735=['24hBDxYl','defineProperty','1841224IxRwPB','__esModule','getOwnPropertyDescriptor','length','1yoGXmW','5bihRBJ','CustomConfiguration','@midwayjs/decorator','anncic-api:cache','function','1359886NhFWUC','41903170gSmklK','2273442TTGlCK','5496042pXrFHU','4185300fftnSR','./config/config.default','5543577AzYGeH'];a1_0x24d9=function(){return _0x2e5735;};return a1_0x24d9();}const decorator_1=require(a1_0x1f1783(0xe8)),ConfigDefault=require(a1_0x1f1783(0xdd));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x1f1783(0xe9),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x1f1783(0xe7)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a2_0x48d2b3=a2_0x1708;(function(_0x4dbf62,_0x4a227c){const _0x13ce27=a2_0x1708,_0x125995=_0x4dbf62();while(!![]){try{const _0x3b7320=-parseInt(_0x13ce27(0x7f))/0x1*(-parseInt(_0x13ce27(0x86))/0x2)+parseInt(_0x13ce27(0x75))/0x3*(parseInt(_0x13ce27(0x73))/0x4)+parseInt(_0x13ce27(0x74))/0x5+parseInt(_0x13ce27(0x88))/0x6*(-parseInt(_0x13ce27(0x80))/0x7)+parseInt(_0x13ce27(0x8b))/0x8*(parseInt(_0x13ce27(0x70))/0x9)+-parseInt(_0x13ce27(0x8a))/0xa*(parseInt(_0x13ce27(0x71))/0xb)+-parseInt(_0x13ce27(0x78))/0xc;if(_0x3b7320===_0x4a227c)break;else _0x125995['push'](_0x125995['shift']());}catch(_0xe04a4a){_0x125995['push'](_0x125995['shift']());}}}(a2_0x46d0,0x66994));Object[a2_0x48d2b3(0x77)](exports,'__esModule',{'value':!![]}),exports[a2_0x48d2b3(0x76)]=void 0x0;const crypto_js_1=require(a2_0x48d2b3(0x83)),CacheService_1=require(a2_0x48d2b3(0x87)),core_1=require(a2_0x48d2b3(0x89));function a2_0x1708(_0x35673a,_0x142ca5){const _0x46d0c8=a2_0x46d0();return a2_0x1708=function(_0x170875,_0x4dff1e){_0x170875=_0x170875-0x6f;let _0x4753cd=_0x46d0c8[_0x170875];return _0x4753cd;},a2_0x1708(_0x35673a,_0x142ca5);}function Cache(_0x231872,_0x286d08){return(_0x3211ab,_0x3da486,_0x3627e5)=>{const _0x336bff=a2_0x1708,_0x5143ad=_0x3627e5[_0x336bff(0x7b)];return _0x3627e5[_0x336bff(0x7b)]=async function(..._0x4bb3ac){const _0x5ebb78=_0x336bff;!_0x231872&&(_0x231872=(0x0,crypto_js_1[_0x5ebb78(0x6f)])(JSON[_0x5ebb78(0x7e)](_0x4bb3ac))[_0x5ebb78(0x84)]());let _0x292911=await this[core_1[_0x5ebb78(0x72)]]['app']['getApplicationContext']()[_0x5ebb78(0x79)](CacheService_1[_0x5ebb78(0x82)]),_0x29f42b=await _0x292911[_0x5ebb78(0x7c)](_0x5ebb78(0x85))[_0x5ebb78(0x7a)](_0x231872);if(_0x29f42b)return JSON[_0x5ebb78(0x7d)](_0x29f42b);else _0x29f42b=await _0x5143ad['apply'](this,[..._0x4bb3ac]),await _0x292911[_0x5ebb78(0x7c)]('MethodDecorator')[_0x5ebb78(0x81)](_0x231872,JSON[_0x5ebb78(0x7e)](_0x29f42b),_0x286d08);return _0x29f42b;},_0x3627e5;};}function a2_0x46d0(){const _0xf71167=['use','parse','stringify','1ALhpwE','94416DPODiD','set','CacheService','crypto-js','toString','MethodDecorator','746918NFXXcu','../service/CacheService','54XHAjdS','@midwayjs/core','1320690NhmEke','7544PCwKcE','MD5','1818xcEqoR','22PvfBWE','REQUEST_OBJ_CTX_KEY','4HsXiIB','3593630DESZgL','173067QGBslo','Cache','defineProperty','6415032AsMhXt','getAsync','get','value'];a2_0x46d0=function(){return _0xf71167;};return a2_0x46d0();}exports[a2_0x48d2b3(0x76)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a3_0x238f(){var _0x3467e6=['1447008TqTrlF','2SdsFmG','CustomConfiguration','3859986qZJBMz','Configuration','337708oIUoUS','730552qfhxTD','20uzxXUn','2921210LhxDLd','CacheService','./configuration','1586120eVmRMJ','./decorator/Cache','Cache','168GdoxXu','./service/CacheService','defineProperty','3117573RdUqnJ'];a3_0x238f=function(){return _0x3467e6;};return a3_0x238f();}var a3_0x103dca=a3_0x5b3e;(function(_0x52fd56,_0x1f0329){var _0x24d208=a3_0x5b3e,_0x14482f=_0x52fd56();while(!![]){try{var _0x21b11c=parseInt(_0x24d208(0x108))/0x1*(-parseInt(_0x24d208(0x103))/0x2)+parseInt(_0x24d208(0x102))/0x3+parseInt(_0x24d208(0xfb))/0x4+-parseInt(_0x24d208(0x10a))/0x5+parseInt(_0x24d208(0x105))/0x6+-parseInt(_0x24d208(0x107))/0x7*(-parseInt(_0x24d208(0xfe))/0x8)+-parseInt(_0x24d208(0x101))/0x9*(parseInt(_0x24d208(0x109))/0xa);if(_0x21b11c===_0x1f0329)break;else _0x14482f['push'](_0x14482f['shift']());}catch(_0x448c29){_0x14482f['push'](_0x14482f['shift']());}}}(a3_0x238f,0x80d75));Object[a3_0x103dca(0x100)](exports,'__esModule',{'value':!![]}),exports[a3_0x103dca(0x10b)]=exports[a3_0x103dca(0xfd)]=exports[a3_0x103dca(0x106)]=void 0x0;var configuration_1=require(a3_0x103dca(0xfa));function a3_0x5b3e(_0x15cc25,_0x3ca03f){var _0x238f58=a3_0x238f();return a3_0x5b3e=function(_0x5b3e1b,_0xcb0b7c){_0x5b3e1b=_0x5b3e1b-0xfa;var _0x99e92f=_0x238f58[_0x5b3e1b];return _0x99e92f;},a3_0x5b3e(_0x15cc25,_0x3ca03f);}Object['defineProperty'](exports,a3_0x103dca(0x106),{'enumerable':!![],'get':function(){var _0x274b2a=a3_0x103dca;return configuration_1[_0x274b2a(0x104)];}});var Cache_1=require(a3_0x103dca(0xfc));Object[a3_0x103dca(0x100)](exports,a3_0x103dca(0xfd),{'enumerable':!![],'get':function(){var _0x3b5c3d=a3_0x103dca;return Cache_1[_0x3b5c3d(0xfd)];}});var CacheService_1=require(a3_0x103dca(0xff));Object[a3_0x103dca(0x100)](exports,a3_0x103dca(0x10b),{'enumerable':!![],'get':function(){var _0x4a616c=a3_0x103dca;return CacheService_1[_0x4a616c(0x10b)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a4_0x5f2dde=a4_0x344b;(function(_0x212e73,_0x49ed99){var _0x5295b9=a4_0x344b,_0x421044=_0x212e73();while(!![]){try{var _0x5148b7=-parseInt(_0x5295b9(0x130))/0x1*(-parseInt(_0x5295b9(0x12a))/0x2)+-parseInt(_0x5295b9(0x127))/0x3*(parseInt(_0x5295b9(0x118))/0x4)+parseInt(_0x5295b9(0x12e))/0x5+parseInt(_0x5295b9(0x12d))/0x6+-parseInt(_0x5295b9(0x122))/0x7*(-parseInt(_0x5295b9(0x124))/0x8)+-parseInt(_0x5295b9(0x10b))/0x9*(parseInt(_0x5295b9(0x110))/0xa)+-parseInt(_0x5295b9(0x11e))/0xb;if(_0x5148b7===_0x49ed99)break;else _0x421044['push'](_0x421044['shift']());}catch(_0xbdc32a){_0x421044['push'](_0x421044['shift']());}}}(a4_0x46c4,0x795d6));var __decorate=this&&this[a4_0x5f2dde(0x123)]||function(_0x579e21,_0x443f21,_0x442125,_0x5bf7db){var _0x4e2d96=a4_0x5f2dde,_0x355099=arguments[_0x4e2d96(0x117)],_0x159002=_0x355099<0x3?_0x443f21:_0x5bf7db===null?_0x5bf7db=Object['getOwnPropertyDescriptor'](_0x443f21,_0x442125):_0x5bf7db,_0x734b9d;if(typeof Reflect===_0x4e2d96(0x108)&&typeof Reflect[_0x4e2d96(0x10a)]==='function')_0x159002=Reflect['decorate'](_0x579e21,_0x443f21,_0x442125,_0x5bf7db);else{for(var _0x13d23e=_0x579e21[_0x4e2d96(0x117)]-0x1;_0x13d23e>=0x0;_0x13d23e--)if(_0x734b9d=_0x579e21[_0x13d23e])_0x159002=(_0x355099<0x3?_0x734b9d(_0x159002):_0x355099>0x3?_0x734b9d(_0x443f21,_0x442125,_0x159002):_0x734b9d(_0x443f21,_0x442125))||_0x159002;}return _0x355099>0x3&&_0x159002&&Object['defineProperty'](_0x443f21,_0x442125,_0x159002),_0x159002;},__metadata=this&&this['__metadata']||function(_0x50336c,_0x4b8d37){var _0xbb6a46=a4_0x5f2dde;if(typeof Reflect==='object'&&typeof Reflect[_0xbb6a46(0x128)]===_0xbb6a46(0x12f))return Reflect[_0xbb6a46(0x128)](_0x50336c,_0x4b8d37);};function a4_0x46c4(){var _0x51759b=['length','152164lJtVpa','set','prefix','__esModule','Singleton','default','6475238ajdrKY','Scope','reset','file','2021327yjVbNE','__decorate','16QzmNSh','del','get','48SuFMHZ','metadata','prototype','145744QuJAAf','@midwayjs/decorator','hdel','983496AIetNk','3475980KTUFWY','function','11wISGqy','cache','config','store','object','Config','decorate','882nntqkd','hget','design:type','clients','cache-manager','55490JJhCTb','ScopeEnum','CacheService','defineProperty','has','stores','hset'];a4_0x46c4=function(){return _0x51759b;};return a4_0x46c4();}Object[a4_0x5f2dde(0x113)](exports,a4_0x5f2dde(0x11b),{'value':!![]}),exports[a4_0x5f2dde(0x112)]=void 0x0;const cacheManager=require(a4_0x5f2dde(0x10f)),decorator_1=require(a4_0x5f2dde(0x12b));let CacheService=class CacheService{constructor(){this['cache']=undefined,this['clients']=new Map();}['use'](_0x36b4de){var _0x43bc4b=a4_0x5f2dde,_0x2c2aa6,_0x2ea529;if(!this[_0x43bc4b(0x131)]){const _0x42201e=((_0x2c2aa6=this[_0x43bc4b(0x132)][_0x43bc4b(0x115)])===null||_0x2c2aa6===void 0x0?void 0x0:_0x2c2aa6[(_0x2ea529=this[_0x43bc4b(0x132)][_0x43bc4b(0x131)])===null||_0x2ea529===void 0x0?void 0x0:_0x2ea529[_0x43bc4b(0x11d)]])||this['config']['stores'][_0x43bc4b(0x121)];this[_0x43bc4b(0x131)]=cacheManager['caching']({..._0x42201e['options'],'store':_0x42201e[_0x43bc4b(0x133)]});}return!this['clients'][_0x43bc4b(0x114)](_0x36b4de)&&this[_0x43bc4b(0x10e)]['set'](_0x36b4de,new CacheHandler(_0x36b4de,this[_0x43bc4b(0x131)])),this[_0x43bc4b(0x10e)][_0x43bc4b(0x126)](_0x36b4de);}async[a4_0x5f2dde(0x120)](){var _0x1754a6=a4_0x5f2dde;return await this[_0x1754a6(0x131)][_0x1754a6(0x120)]();}};function a4_0x344b(_0x533d5f,_0x50e07f){var _0x46c431=a4_0x46c4();return a4_0x344b=function(_0x344bdf,_0x444fea){_0x344bdf=_0x344bdf-0x108;var _0x387be5=_0x46c431[_0x344bdf];return _0x387be5;},a4_0x344b(_0x533d5f,_0x50e07f);}__decorate([(0x0,decorator_1[a4_0x5f2dde(0x109)])(a4_0x5f2dde(0x131)),__metadata(a4_0x5f2dde(0x10d),Object)],CacheService[a4_0x5f2dde(0x129)],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x5f2dde(0x11f)])(decorator_1[a4_0x5f2dde(0x111)][a4_0x5f2dde(0x11c)])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x1a31d5,_0x3b5c8a){var _0x50d4e7=a4_0x5f2dde;this[_0x50d4e7(0x131)]=_0x3b5c8a,this[_0x50d4e7(0x11a)]=_0x1a31d5;}async[a4_0x5f2dde(0x125)](_0x1bd3d8){var _0x406f36=a4_0x5f2dde;return await this['cache'][_0x406f36(0x125)](this[_0x406f36(0x11a)]+':'+_0x1bd3d8);}async['set'](_0x2f3f4e,_0x129354,_0x2d5b50){var _0x16814a=a4_0x5f2dde;return await this[_0x16814a(0x131)][_0x16814a(0x119)](this[_0x16814a(0x11a)]+':'+_0x2f3f4e,_0x129354,_0x2d5b50);}async[a4_0x5f2dde(0x126)](_0x2b1454,_0x259901){return new Promise((_0x1fa72e,_0x1f5dd8)=>{var _0x119018=a4_0x344b;this['cache'][_0x119018(0x126)](this['prefix']+':'+_0x2b1454,(_0x314cb0,_0x4942bb)=>{_0x314cb0?_0x1f5dd8(_0x314cb0):_0x1fa72e(_0x4942bb||_0x259901);});});}async[a4_0x5f2dde(0x12c)](_0x4261c5,_0x3baa88){var _0x2ceef0=a4_0x5f2dde;return await this[_0x2ceef0(0x125)](_0x4261c5+'-'+_0x3baa88);}async[a4_0x5f2dde(0x116)](_0x9703b3,_0x1e28f4,_0x1f2924,_0x1a923d){var _0x37ac79=a4_0x5f2dde;return await this[_0x37ac79(0x119)](_0x9703b3+'-'+_0x1e28f4,_0x1f2924,_0x1a923d);}async[a4_0x5f2dde(0x10c)](_0x1a75f3,_0x26afbb,_0x25ec17){var _0xac2188=a4_0x5f2dde;return await this[_0xac2188(0x126)](_0x1a75f3+'-'+_0x26afbb,_0x25ec17);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.41",
|
|
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": "959ed9707257fa02512690568b73f1c8fc8d69b0"
|
|
27
27
|
}
|