@anncic-api/cache 1.1.2 → 1.1.5
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_0xf20713=a0_0x2748;(function(_0xdc437,_0x8c81b3){const _0x58a999=a0_0x2748,_0x191baa=_0xdc437();while(!![]){try{const _0x4f1651=parseInt(_0x58a999(0x143))/0x1+parseInt(_0x58a999(0x140))/0x2+parseInt(_0x58a999(0x132))/0x3+parseInt(_0x58a999(0x13a))/0x4*(-parseInt(_0x58a999(0x13c))/0x5)+-parseInt(_0x58a999(0x137))/0x6*(-parseInt(_0x58a999(0x141))/0x7)+-parseInt(_0x58a999(0x13e))/0x8*(-parseInt(_0x58a999(0x133))/0x9)+-parseInt(_0x58a999(0x13f))/0xa;if(_0x4f1651===_0x8c81b3)break;else _0x191baa['push'](_0x191baa['shift']());}catch(_0x21d565){_0x191baa['push'](_0x191baa['shift']());}}}(a0_0x43ec,0xeb0c3));Object['defineProperty'](exports,'__esModule',{'value':!![]});function a0_0x2748(_0x2dd4df,_0x387f22){const _0x43ec62=a0_0x43ec();return a0_0x2748=function(_0x2748a9,_0x5dbfbb){_0x2748a9=_0x2748a9-0x131;let _0x442ee8=_0x43ec62[_0x2748a9];return _0x442ee8;},a0_0x2748(_0x2dd4df,_0x387f22);}const fsStore=require(a0_0xf20713(0x139)),redisStore=require(a0_0xf20713(0x131));function a0_0x43ec(){const _0x3bf7ff=['1514009sBJFah','name','1087553WXxsEW','cache-manager-ioredis','1723572tguJHF','27pLrzbL','memory','appDir','default','6AyxLaS','/runtime/.cache','cache-manager-fs-hash','3784436AVcuFs','file','5NeJaDw','127.0.0.1','3963328GjkyTO','31050210hYFhCH','3298546ozILjw'];a0_0x43ec=function(){return _0x3bf7ff;};return a0_0x43ec();}exports[a0_0xf20713(0x136)]=_0x4e76ce=>{const _0x36e742=a0_0xf20713;return{'cache':{'default':_0x36e742(0x13b),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x4e76ce[_0x36e742(0x135)]+_0x36e742(0x138)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x36e742(0x13d),'password':'','ttl':0x1e13380,'keyPrefix':_0x4e76ce[_0x36e742(0x142)]+':'}},'memory':{'store':_0x36e742(0x134),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a1_0x228c(){var _0x869dee=['@midwayjs/decorator','getOwnPropertyDescriptor','__decorate','3707025UsjTYI','54ZjPcIt','length','6413886dEqkew','defineProperty','1455216BAAyoY','CustomConfiguration','6564546nLtWWW','anncic-api:cache','decorate','59544BuxUgv','3066735wIUMum','2876764vMTsDU','object','1ySfuUe','function','Configuration','./config/config.default'];a1_0x228c=function(){return _0x869dee;};return a1_0x228c();}var a1_0x2624b6=a1_0x2816;(function(_0xebb093,_0x27cb42){var _0x5cd0d6=a1_0x2816,_0x2f0bd2=_0xebb093();while(!![]){try{var _0x20af1c=parseInt(_0x5cd0d6(0x13b))/0x1*(parseInt(_0x5cd0d6(0x139))/0x2)+-parseInt(_0x5cd0d6(0x12e))/0x3*(-parseInt(_0x5cd0d6(0x137))/0x4)+-parseInt(_0x5cd0d6(0x12d))/0x5+-parseInt(_0x5cd0d6(0x130))/0x6+parseInt(_0x5cd0d6(0x138))/0x7+-parseInt(_0x5cd0d6(0x132))/0x8+parseInt(_0x5cd0d6(0x134))/0x9;if(_0x20af1c===_0x27cb42)break;else _0x2f0bd2['push'](_0x2f0bd2['shift']());}catch(_0x4f9f30){_0x2f0bd2['push'](_0x2f0bd2['shift']());}}}(a1_0x228c,0xd7385));function a1_0x2816(_0x45eaf5,_0x5cdd77){var _0x228cc1=a1_0x228c();return a1_0x2816=function(_0x2816f0,_0x5c2c05){_0x2816f0=_0x2816f0-0x12a;var _0x4a35a4=_0x228cc1[_0x2816f0];return _0x4a35a4;},a1_0x2816(_0x45eaf5,_0x5cdd77);}var __decorate=this&&this[a1_0x2624b6(0x12c)]||function(_0x5b8b74,_0xe27cec,_0x58e87b,_0x461a97){var _0x490ed8=a1_0x2624b6,_0xe736b0=arguments[_0x490ed8(0x12f)],_0x407839=_0xe736b0<0x3?_0xe27cec:_0x461a97===null?_0x461a97=Object[_0x490ed8(0x12b)](_0xe27cec,_0x58e87b):_0x461a97,_0xc8d70a;if(typeof Reflect===_0x490ed8(0x13a)&&typeof Reflect[_0x490ed8(0x136)]===_0x490ed8(0x13c))_0x407839=Reflect['decorate'](_0x5b8b74,_0xe27cec,_0x58e87b,_0x461a97);else{for(var _0x5bf49f=_0x5b8b74[_0x490ed8(0x12f)]-0x1;_0x5bf49f>=0x0;_0x5bf49f--)if(_0xc8d70a=_0x5b8b74[_0x5bf49f])_0x407839=(_0xe736b0<0x3?_0xc8d70a(_0x407839):_0xe736b0>0x3?_0xc8d70a(_0xe27cec,_0x58e87b,_0x407839):_0xc8d70a(_0xe27cec,_0x58e87b))||_0x407839;}return _0xe736b0>0x3&&_0x407839&&Object[_0x490ed8(0x131)](_0xe27cec,_0x58e87b,_0x407839),_0x407839;};Object[a1_0x2624b6(0x131)](exports,'__esModule',{'value':!![]}),exports['CustomConfiguration']=void 0x0;const decorator_1=require(a1_0x2624b6(0x12a)),ConfigDefault=require(a1_0x2624b6(0x13e));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x2624b6(0x13d)])({'conflictCheck':![],'namespace':a1_0x2624b6(0x135),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x2624b6(0x133)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x114ae6=a2_0x242d;(function(_0x3877,_0x14a55b){const _0x16ce1e=a2_0x242d,_0x1883fd=_0x3877();while(!![]){try{const _0x1183e8=-parseInt(_0x16ce1e(0x12e))/0x1+parseInt(_0x16ce1e(0x120))/0x2+parseInt(_0x16ce1e(0x134))/0x3*(-parseInt(_0x16ce1e(0x123))/0x4)+-parseInt(_0x16ce1e(0x128))/0x5*(-parseInt(_0x16ce1e(0x11e))/0x6)+-parseInt(_0x16ce1e(0x127))/0x7*(-parseInt(_0x16ce1e(0x124))/0x8)+parseInt(_0x16ce1e(0x12d))/0x9+parseInt(_0x16ce1e(0x136))/0xa;if(_0x1183e8===_0x14a55b)break;else _0x1883fd['push'](_0x1883fd['shift']());}catch(_0x2d50d3){_0x1883fd['push'](_0x1883fd['shift']());}}}(a2_0x270b,0xe94b8));function a2_0x242d(_0x2d3ff6,_0x4cfff6){const _0x270b43=a2_0x270b();return a2_0x242d=function(_0x242dd2,_0x450e2f){_0x242dd2=_0x242dd2-0x11e;let _0x3c29c5=_0x270b43[_0x242dd2];return _0x3c29c5;},a2_0x242d(_0x2d3ff6,_0x4cfff6);}Object['defineProperty'](exports,a2_0x114ae6(0x125),{'value':!![]}),exports[a2_0x114ae6(0x135)]=void 0x0;const crypto_js_1=require(a2_0x114ae6(0x12b)),CacheService_1=require(a2_0x114ae6(0x129)),core_1=require('@midwayjs/core');function Cache(_0x622923,_0x3a5b16){return(_0x2b70d3,_0x4646f2,_0x25b562)=>{const _0x2c74=a2_0x242d,_0x5af879=_0x25b562[_0x2c74(0x12a)];return _0x25b562['value']=async function(..._0x30a704){const _0xa3c510=_0x2c74;!_0x622923&&(_0x622923=(0x0,crypto_js_1[_0xa3c510(0x130)])(JSON['stringify'](_0x30a704))['toString']());let _0x39162c=await this[core_1[_0xa3c510(0x132)]][_0xa3c510(0x133)]['getApplicationContext']()[_0xa3c510(0x126)](CacheService_1[_0xa3c510(0x131)]),_0x384722=await _0x39162c[_0xa3c510(0x12c)](_0xa3c510(0x137))[_0xa3c510(0x121)](_0x622923);if(_0x384722)return JSON[_0xa3c510(0x12f)](_0x384722);else _0x384722=await _0x5af879['apply'](this,[..._0x30a704]),await _0x39162c[_0xa3c510(0x12c)](_0xa3c510(0x137))[_0xa3c510(0x11f)](_0x622923,JSON[_0xa3c510(0x122)](_0x384722),_0x3a5b16);return _0x384722;},_0x25b562;};}exports[a2_0x114ae6(0x135)]=Cache;function a2_0x270b(){const _0x21e864=['app','54gyrqNK','Cache','13409390CJbkHT','MethodDecorator','448062ESdPwZ','set','1156396Ytydpw','get','stringify','385692YMcKhs','8tmBGfS','__esModule','getAsync','1801380TIjVkx','35JnrdTs','../service/CacheService','value','crypto-js','use','4844952egYyEw','546354QaUghI','parse','MD5','CacheService','REQUEST_OBJ_CTX_KEY'];a2_0x270b=function(){return _0x21e864;};return a2_0x270b();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x1cf279=a3_0x4e8c;(function(_0x12b02f,_0x594652){var _0x324b38=a3_0x4e8c,_0x1560be=_0x12b02f();while(!![]){try{var _0xaf7016=-parseInt(_0x324b38(0xce))/0x1+-parseInt(_0x324b38(0xd1))/0x2*(-parseInt(_0x324b38(0xca))/0x3)+parseInt(_0x324b38(0xd2))/0x4+parseInt(_0x324b38(0xd3))/0x5*(-parseInt(_0x324b38(0xc7))/0x6)+-parseInt(_0x324b38(0xd5))/0x7+parseInt(_0x324b38(0xc6))/0x8*(-parseInt(_0x324b38(0xd0))/0x9)+parseInt(_0x324b38(0xcb))/0xa;if(_0xaf7016===_0x594652)break;else _0x1560be['push'](_0x1560be['shift']());}catch(_0x1af461){_0x1560be['push'](_0x1560be['shift']());}}}(a3_0x4ff8,0x984b3));Object[a3_0x1cf279(0xd4)](exports,'__esModule',{'value':!![]}),exports[a3_0x1cf279(0xc9)]=exports[a3_0x1cf279(0xcd)]=exports[a3_0x1cf279(0xc8)]=void 0x0;var configuration_1=require('./configuration');Object[a3_0x1cf279(0xd4)](exports,a3_0x1cf279(0xc8),{'enumerable':!![],'get':function(){var _0x5c9eba=a3_0x1cf279;return configuration_1[_0x5c9eba(0xcc)];}});var Cache_1=require(a3_0x1cf279(0xcf));Object[a3_0x1cf279(0xd4)](exports,a3_0x1cf279(0xcd),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});function a3_0x4e8c(_0x1aa4e9,_0x190b8e){var _0x4ff826=a3_0x4ff8();return a3_0x4e8c=function(_0x4e8c5b,_0x31631d){_0x4e8c5b=_0x4e8c5b-0xc6;var _0x537231=_0x4ff826[_0x4e8c5b];return _0x537231;},a3_0x4e8c(_0x1aa4e9,_0x190b8e);}var CacheService_1=require('./service/CacheService');Object[a3_0x1cf279(0xd4)](exports,a3_0x1cf279(0xc9),{'enumerable':!![],'get':function(){return CacheService_1['CacheService'];}});function a3_0x4ff8(){var _0x2ff95e=['18pquYiS','46JOXamw','3392016xWcaHb','680265jUsmFB','defineProperty','6258364AnavJi','4873808GPXbbq','48sPnqqO','Configuration','CacheService','133818IMsCHZ','30750260jLHovw','CustomConfiguration','Cache','1124245AjjrQB','./decorator/Cache'];a3_0x4ff8=function(){return _0x2ff95e;};return a3_0x4ff8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a4_0x5a35c5=a4_0x217e;function a4_0x217e(_0x8a572a,_0x42c486){var _0x15666e=a4_0x1566();return a4_0x217e=function(_0x217e13,_0x45d82d){_0x217e13=_0x217e13-0x18d;var _0x4a2223=_0x15666e[_0x217e13];return _0x4a2223;},a4_0x217e(_0x8a572a,_0x42c486);}(function(_0x5cb086,_0x169d6b){var _0x161b16=a4_0x217e,_0x1c0220=_0x5cb086();while(!![]){try{var _0x4c7179=parseInt(_0x161b16(0x19a))/0x1*(parseInt(_0x161b16(0x198))/0x2)+parseInt(_0x161b16(0x194))/0x3*(-parseInt(_0x161b16(0x19f))/0x4)+parseInt(_0x161b16(0x192))/0x5+parseInt(_0x161b16(0x1a8))/0x6+-parseInt(_0x161b16(0x18d))/0x7*(-parseInt(_0x161b16(0x195))/0x8)+parseInt(_0x161b16(0x18f))/0x9+-parseInt(_0x161b16(0x1a0))/0xa*(parseInt(_0x161b16(0x19b))/0xb);if(_0x4c7179===_0x169d6b)break;else _0x1c0220['push'](_0x1c0220['shift']());}catch(_0x411098){_0x1c0220['push'](_0x1c0220['shift']());}}}(a4_0x1566,0xac07d));var __decorate=this&&this['__decorate']||function(_0x27ce68,_0x397b89,_0x1d8b05,_0x325204){var _0x44c41b=a4_0x217e,_0x51aa18=arguments[_0x44c41b(0x1af)],_0x5f1887=_0x51aa18<0x3?_0x397b89:_0x325204===null?_0x325204=Object[_0x44c41b(0x1ab)](_0x397b89,_0x1d8b05):_0x325204,_0x39ca81;if(typeof Reflect==='object'&&typeof Reflect[_0x44c41b(0x197)]===_0x44c41b(0x1a2))_0x5f1887=Reflect['decorate'](_0x27ce68,_0x397b89,_0x1d8b05,_0x325204);else{for(var _0x15c741=_0x27ce68[_0x44c41b(0x1af)]-0x1;_0x15c741>=0x0;_0x15c741--)if(_0x39ca81=_0x27ce68[_0x15c741])_0x5f1887=(_0x51aa18<0x3?_0x39ca81(_0x5f1887):_0x51aa18>0x3?_0x39ca81(_0x397b89,_0x1d8b05,_0x5f1887):_0x39ca81(_0x397b89,_0x1d8b05))||_0x5f1887;}return _0x51aa18>0x3&&_0x5f1887&&Object[_0x44c41b(0x1b1)](_0x397b89,_0x1d8b05,_0x5f1887),_0x5f1887;},__metadata=this&&this['__metadata']||function(_0x3dfde0,_0xab896){var _0x4aa27a=a4_0x217e;if(typeof Reflect===_0x4aa27a(0x1b6)&&typeof Reflect[_0x4aa27a(0x1a1)]==='function')return Reflect[_0x4aa27a(0x1a1)](_0x3dfde0,_0xab896);};Object[a4_0x5a35c5(0x1b1)](exports,a4_0x5a35c5(0x199),{'value':!![]}),exports[a4_0x5a35c5(0x1b5)]=void 0x0;const cacheManager=require('cache-manager'),decorator_1=require(a4_0x5a35c5(0x19c));let CacheService=class CacheService{constructor(){var _0x56aa31=a4_0x5a35c5;this[_0x56aa31(0x1a6)]=undefined,this[_0x56aa31(0x191)]=new Map();}['use'](_0x54487c){var _0x20455c=a4_0x5a35c5,_0x3d8311,_0x144e4a;if(!this[_0x20455c(0x1a6)]){const _0x53188c=((_0x3d8311=this[_0x20455c(0x1a7)]['stores'])===null||_0x3d8311===void 0x0?void 0x0:_0x3d8311[(_0x144e4a=this['config'][_0x20455c(0x1a6)])===null||_0x144e4a===void 0x0?void 0x0:_0x144e4a[_0x20455c(0x19e)]])||this[_0x20455c(0x1a7)][_0x20455c(0x190)]['file'];this[_0x20455c(0x1a6)]=cacheManager[_0x20455c(0x1b0)]({..._0x53188c[_0x20455c(0x19d)],'store':_0x53188c[_0x20455c(0x1b4)]});}return!this[_0x20455c(0x191)]['has'](_0x54487c)&&this[_0x20455c(0x191)][_0x20455c(0x196)](_0x54487c,new CacheHandler(_0x54487c,this[_0x20455c(0x1a6)])),this[_0x20455c(0x191)]['get'](_0x54487c);}async[a4_0x5a35c5(0x1ac)](){var _0x97a282=a4_0x5a35c5;return await this[_0x97a282(0x1a6)][_0x97a282(0x1ac)]();}};function a4_0x1566(){var _0xd7b8b8=['metadata','function','del','get','hset','cache','config','8213370WrXTTI','prototype','hdel','getOwnPropertyDescriptor','reset','Scope','Singleton','length','caching','defineProperty','ScopeEnum','design:type','store','CacheService','object','903pvjHlV','prefix','1773621WmRTXb','stores','clients','3580155IPvnWP','Config','1536NQLnwi','67312uPqBgA','set','decorate','273412FadcXr','__esModule','4tfcjYv','22UpOPhv','@midwayjs/decorator','options','default','7364lNPSOS','11334980dfSQZk'];a4_0x1566=function(){return _0xd7b8b8;};return a4_0x1566();}__decorate([(0x0,decorator_1[a4_0x5a35c5(0x193)])(a4_0x5a35c5(0x1a6)),__metadata(a4_0x5a35c5(0x1b3),Object)],CacheService[a4_0x5a35c5(0x1a9)],a4_0x5a35c5(0x1a7),void 0x0),CacheService=__decorate([(0x0,decorator_1['Provide'])(),(0x0,decorator_1[a4_0x5a35c5(0x1ad)])(decorator_1[a4_0x5a35c5(0x1b2)][a4_0x5a35c5(0x1ae)])],CacheService),exports['CacheService']=CacheService;class CacheHandler{constructor(_0x3ee3bc,_0x3a76b6){var _0x120056=a4_0x5a35c5;this[_0x120056(0x1a6)]=_0x3a76b6,this[_0x120056(0x18e)]=_0x3ee3bc;}async[a4_0x5a35c5(0x1a3)](_0x1106ab){var _0x536036=a4_0x5a35c5;return await this[_0x536036(0x1a6)]['del'](this['prefix']+':'+_0x1106ab);}async[a4_0x5a35c5(0x196)](_0x451248,_0x27640f,_0x40f825){var _0x57b803=a4_0x5a35c5;return await this[_0x57b803(0x1a6)][_0x57b803(0x196)](this[_0x57b803(0x18e)]+':'+_0x451248,_0x27640f,_0x40f825);}async[a4_0x5a35c5(0x1a4)](_0x70e0dc,_0x292e7b){return new Promise((_0x2fa72a,_0x5ed2e7)=>{var _0x21cd12=a4_0x217e;this[_0x21cd12(0x1a6)][_0x21cd12(0x1a4)](this['prefix']+':'+_0x70e0dc,(_0x122d6b,_0x327f50)=>{_0x122d6b?_0x5ed2e7(_0x122d6b):_0x2fa72a(_0x327f50||_0x292e7b);});});}async[a4_0x5a35c5(0x1aa)](_0x48b3c3,_0x29309b){return await this['del'](_0x48b3c3+'-'+_0x29309b);}async[a4_0x5a35c5(0x1a5)](_0x3189b8,_0x5aee3a,_0xf440cb,_0xe3d8dd){return await this['set'](_0x3189b8+'-'+_0x5aee3a,_0xf440cb,_0xe3d8dd);}async['hget'](_0x237ab5,_0x12b83b,_0xe1a652){var _0x1e26b7=a4_0x5a35c5;return await this[_0x1e26b7(0x1a4)](_0x237ab5+'-'+_0x12b83b,_0xe1a652);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
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": "f12532c658e19791b372d2339dadd1575b0669e2"
|
|
27
27
|
}
|