@anncic-api/cache 1.0.23 → 1.0.27
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';function
|
|
1
|
+
'use strict';const a0_0x155617=a0_0x1d3b;function a0_0x1d3b(_0x23177e,_0x4d0edc){const _0x2899ed=a0_0x2899();return a0_0x1d3b=function(_0x1d3b5a,_0x382689){_0x1d3b5a=_0x1d3b5a-0xdc;let _0x281c97=_0x2899ed[_0x1d3b5a];return _0x281c97;},a0_0x1d3b(_0x23177e,_0x4d0edc);}(function(_0x1b146b,_0x25eedd){const _0x3d9b2f=a0_0x1d3b,_0x545775=_0x1b146b();while(!![]){try{const _0x3fc221=-parseInt(_0x3d9b2f(0xea))/0x1*(parseInt(_0x3d9b2f(0xeb))/0x2)+parseInt(_0x3d9b2f(0xde))/0x3*(-parseInt(_0x3d9b2f(0xdd))/0x4)+parseInt(_0x3d9b2f(0xe1))/0x5+-parseInt(_0x3d9b2f(0xe5))/0x6+parseInt(_0x3d9b2f(0xdf))/0x7*(parseInt(_0x3d9b2f(0xed))/0x8)+-parseInt(_0x3d9b2f(0xec))/0x9*(-parseInt(_0x3d9b2f(0xe7))/0xa)+parseInt(_0x3d9b2f(0xe6))/0xb*(parseInt(_0x3d9b2f(0xdc))/0xc);if(_0x3fc221===_0x25eedd)break;else _0x545775['push'](_0x545775['shift']());}catch(_0x57e14e){_0x545775['push'](_0x545775['shift']());}}}(a0_0x2899,0x71d28));Object[a0_0x155617(0xe4)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x155617(0xe0)),redisStore=require(a0_0x155617(0xe8));exports[a0_0x155617(0xe9)]=_0x5682ca=>{const _0x2c0bcc=a0_0x155617;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x5682ca[_0x2c0bcc(0xe3)]+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':'127.0.0.1','password':'','ttl':0x1e13380,'keyPrefix':_0x5682ca['name']+':'}},'memory':{'store':_0x2c0bcc(0xe2),'options':{'max':0x64,'ttl':0x1e13380}}}}};};function a0_0x2899(){const _0x315be8=['5RdMAET','114164BUboot','90JSaanF','438448pvUdrZ','11793084BPqUry','216952WJGFZS','48cFesUG','21wXYnci','cache-manager-fs-hash','3232365WbFmFS','memory','appDir','defineProperty','5451624dKEeKO','11PmuBiC','734390HcGLdx','cache-manager-ioredis','default'];a0_0x2899=function(){return _0x315be8;};return a0_0x2899();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a1_0x2ae3(){var _0x4bf63c=['Configuration','__esModule','904048haUFhg','./config/config.default','20119221vHspdE','3045585qpXszw','decorate','9427960dataBv','CustomConfiguration','defineProperty','308FHaMWu','115752mhbyjY','length','407469LBVwRt','@midwayjs/decorator','4YHrYmT','anncic-api:cache','3122289xDmSVz'];a1_0x2ae3=function(){return _0x4bf63c;};return a1_0x2ae3();}var a1_0x55299a=a1_0x5a89;(function(_0x522d8b,_0x1cd72c){var _0x5d90f7=a1_0x5a89,_0x1e5096=_0x522d8b();while(!![]){try{var _0x3d2698=-parseInt(_0x5d90f7(0x9f))/0x1+parseInt(_0x5d90f7(0xa6))/0x2+parseInt(_0x5d90f7(0xa3))/0x3*(parseInt(_0x5d90f7(0xa1))/0x4)+-parseInt(_0x5d90f7(0xa9))/0x5+parseInt(_0x5d90f7(0x9d))/0x6*(-parseInt(_0x5d90f7(0x9c))/0x7)+-parseInt(_0x5d90f7(0xab))/0x8+parseInt(_0x5d90f7(0xa8))/0x9;if(_0x3d2698===_0x1cd72c)break;else _0x1e5096['push'](_0x1e5096['shift']());}catch(_0x2a348a){_0x1e5096['push'](_0x1e5096['shift']());}}}(a1_0x2ae3,0xa7127));function a1_0x5a89(_0x4ac81a,_0x320f53){var _0x2ae3c3=a1_0x2ae3();return a1_0x5a89=function(_0x5a8954,_0x390381){_0x5a8954=_0x5a8954-0x9a;var _0x36b91d=_0x2ae3c3[_0x5a8954];return _0x36b91d;},a1_0x5a89(_0x4ac81a,_0x320f53);}var __decorate=this&&this['__decorate']||function(_0x29221f,_0x3ce364,_0x2217f5,_0x34092a){var _0x468582=a1_0x5a89,_0x644149=arguments['length'],_0x47b388=_0x644149<0x3?_0x3ce364:_0x34092a===null?_0x34092a=Object['getOwnPropertyDescriptor'](_0x3ce364,_0x2217f5):_0x34092a,_0x3a10de;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x47b388=Reflect[_0x468582(0xaa)](_0x29221f,_0x3ce364,_0x2217f5,_0x34092a);else{for(var _0x1f2e37=_0x29221f[_0x468582(0x9e)]-0x1;_0x1f2e37>=0x0;_0x1f2e37--)if(_0x3a10de=_0x29221f[_0x1f2e37])_0x47b388=(_0x644149<0x3?_0x3a10de(_0x47b388):_0x644149>0x3?_0x3a10de(_0x3ce364,_0x2217f5,_0x47b388):_0x3a10de(_0x3ce364,_0x2217f5))||_0x47b388;}return _0x644149>0x3&&_0x47b388&&Object[_0x468582(0x9b)](_0x3ce364,_0x2217f5,_0x47b388),_0x47b388;};Object[a1_0x55299a(0x9b)](exports,a1_0x55299a(0xa5),{'value':!![]}),exports[a1_0x55299a(0x9a)]=void 0x0;const decorator_1=require(a1_0x55299a(0xa0)),ConfigDefault=require(a1_0x55299a(0xa7));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1[a1_0x55299a(0xa4)])({'conflictCheck':![],'namespace':a1_0x55299a(0xa2),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x55299a(0x9a)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a2_0x2910(_0x59c530,_0x2f93e7){const _0x596d4d=a2_0x596d();return a2_0x2910=function(_0x29106d,_0x28f984){_0x29106d=_0x29106d-0x1ad;let _0x2af53d=_0x596d4d[_0x29106d];return _0x2af53d;},a2_0x2910(_0x59c530,_0x2f93e7);}function a2_0x596d(){const _0x3ec12c=['68165TVFpUJ','MethodDecorator','defineProperty','749551MNcGBh','set','12xHpEym','MD5','get','../service/CacheService','10PjLzxN','use','24yylwRr','138MvUIGf','value','app','apply','parse','2342102MLyvyt','2166866GeqnYi','Cache','8QlUijV','__esModule','2641005KYALsh','crypto-js','36382dOxSbM','2xpjphW','197084aaWLJq','@midwayjs/core','toString','getAsync','stringify','CacheService','REQUEST_OBJ_CTX_KEY'];a2_0x596d=function(){return _0x3ec12c;};return a2_0x596d();}const a2_0x5dfd91=a2_0x2910;(function(_0x57d3a4,_0x3c5208){const _0x17675c=a2_0x2910,_0x3866fe=_0x57d3a4();while(!![]){try{const _0x2a9084=parseInt(_0x17675c(0x1ba))/0x1*(parseInt(_0x17675c(0x1b9))/0x2)+-parseInt(_0x17675c(0x1c7))/0x3*(-parseInt(_0x17675c(0x1bb))/0x4)+-parseInt(_0x17675c(0x1c2))/0x5*(parseInt(_0x17675c(0x1ad))/0x6)+-parseInt(_0x17675c(0x1b2))/0x7*(parseInt(_0x17675c(0x1b5))/0x8)+parseInt(_0x17675c(0x1b7))/0x9+parseInt(_0x17675c(0x1cb))/0xa*(parseInt(_0x17675c(0x1c5))/0xb)+-parseInt(_0x17675c(0x1cd))/0xc*(-parseInt(_0x17675c(0x1b3))/0xd);if(_0x2a9084===_0x3c5208)break;else _0x3866fe['push'](_0x3866fe['shift']());}catch(_0x1ad82c){_0x3866fe['push'](_0x3866fe['shift']());}}}(a2_0x596d,0x446cf));Object[a2_0x5dfd91(0x1c4)](exports,a2_0x5dfd91(0x1b6),{'value':!![]}),exports[a2_0x5dfd91(0x1b4)]=void 0x0;const crypto_js_1=require(a2_0x5dfd91(0x1b8)),CacheService_1=require(a2_0x5dfd91(0x1ca)),core_1=require(a2_0x5dfd91(0x1bc));function Cache(_0x3561b6,_0x27e256){return(_0x96ca6c,_0x2699c3,_0x2eeb0e)=>{const _0x24c1d4=a2_0x2910,_0x4aa3a9=_0x2eeb0e[_0x24c1d4(0x1ae)];return _0x2eeb0e['value']=async function(..._0x4d68f0){const _0x35a056=_0x24c1d4;!_0x3561b6&&(_0x3561b6=(0x0,crypto_js_1[_0x35a056(0x1c8)])(JSON[_0x35a056(0x1bf)](_0x4d68f0))[_0x35a056(0x1bd)]());let _0x2a57a8=await this[core_1[_0x35a056(0x1c1)]][_0x35a056(0x1af)]['getApplicationContext']()[_0x35a056(0x1be)](CacheService_1[_0x35a056(0x1c0)]),_0x5e8ac5=await _0x2a57a8[_0x35a056(0x1cc)](_0x35a056(0x1c3))[_0x35a056(0x1c9)](_0x3561b6);if(_0x5e8ac5)return JSON[_0x35a056(0x1b1)](_0x5e8ac5);else _0x5e8ac5=await _0x4aa3a9[_0x35a056(0x1b0)](this,[..._0x4d68f0]),await _0x2a57a8[_0x35a056(0x1cc)](_0x35a056(0x1c3))[_0x35a056(0x1c6)](_0x3561b6,JSON[_0x35a056(0x1bf)](_0x5e8ac5),_0x27e256);return _0x5e8ac5;},_0x2eeb0e;};}exports[a2_0x5dfd91(0x1b4)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x3a5665=a3_0x3a16;(function(_0x2f86a5,_0x324c66){var _0x948946=a3_0x3a16,_0x325743=_0x2f86a5();while(!![]){try{var _0x3c8a37=parseInt(_0x948946(0x1ad))/0x1*(parseInt(_0x948946(0x1b6))/0x2)+parseInt(_0x948946(0x1b8))/0x3+parseInt(_0x948946(0x1bb))/0x4*(-parseInt(_0x948946(0x1b3))/0x5)+-parseInt(_0x948946(0x1b4))/0x6+parseInt(_0x948946(0x1ba))/0x7+parseInt(_0x948946(0x1b0))/0x8+-parseInt(_0x948946(0x1bc))/0x9*(parseInt(_0x948946(0x1b2))/0xa);if(_0x3c8a37===_0x324c66)break;else _0x325743['push'](_0x325743['shift']());}catch(_0x3fa9c7){_0x325743['push'](_0x325743['shift']());}}}(a3_0x1855,0xbe0e4));Object[a3_0x3a5665(0x1b5)](exports,'__esModule',{'value':!![]}),exports[a3_0x3a5665(0x1ae)]=exports[a3_0x3a5665(0x1af)]=exports[a3_0x3a5665(0x1b7)]=void 0x0;function a3_0x3a16(_0x33c1f7,_0x36f3ec){var _0x185573=a3_0x1855();return a3_0x3a16=function(_0x3a16c2,_0x1e3201){_0x3a16c2=_0x3a16c2-0x1ad;var _0x2f6ce4=_0x185573[_0x3a16c2];return _0x2f6ce4;},a3_0x3a16(_0x33c1f7,_0x36f3ec);}var configuration_1=require('./configuration');Object[a3_0x3a5665(0x1b5)](exports,a3_0x3a5665(0x1b7),{'enumerable':!![],'get':function(){var _0x134ad4=a3_0x3a5665;return configuration_1[_0x134ad4(0x1b9)];}});var Cache_1=require(a3_0x3a5665(0x1b1));Object['defineProperty'](exports,a3_0x3a5665(0x1af),{'enumerable':!![],'get':function(){var _0x47684b=a3_0x3a5665;return Cache_1[_0x47684b(0x1af)];}});function a3_0x1855(){var _0x1db938=['6012dUutUI','9bPUcKZ','740671KamPoT','CacheService','Cache','11869904bAuVjM','./decorator/Cache','14958760RERbFS','4010UrSmVP','7585284cogCLY','defineProperty','2WlxEmI','Configuration','3188928bZCnZz','CustomConfiguration','10196053qHqvoI'];a3_0x1855=function(){return _0x1db938;};return a3_0x1855();}var CacheService_1=require('./service/CacheService');Object[a3_0x3a5665(0x1b5)](exports,a3_0x3a5665(0x1ae),{'enumerable':!![],'get':function(){var _0x1b33f9=a3_0x3a5665;return CacheService_1[_0x1b33f9(0x1ae)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a4_0x2742(){var _0x245f93=['options','get','defineProperty','reset','32285PBBQKl','cache-manager','decorate','del','object','hget','stores','prototype','use','CacheService','7452OBHLQr','1552662ChmSHW','file','ScopeEnum','7rTSXxa','222flHbJV','__metadata','store','design:type','hdel','__decorate','function','Provide','__esModule','680yQJdOV','1187996ViLjcs','cache','2031IKVsAQ','config','5720740WRAIhv','59064PvLCpl','Singleton','Scope','clients','set','metadata','prefix','@midwayjs/decorator'];a4_0x2742=function(){return _0x245f93;};return a4_0x2742();}var a4_0x53783e=a4_0x39da;(function(_0x3075b4,_0x148b7c){var _0x5b6333=a4_0x39da,_0x387449=_0x3075b4();while(!![]){try{var _0x29c5e8=parseInt(_0x5b6333(0xc5))/0x1+-parseInt(_0x5b6333(0xb6))/0x2*(-parseInt(_0x5b6333(0xc2))/0x3)+-parseInt(_0x5b6333(0xc0))/0x4+-parseInt(_0x5b6333(0xd1))/0x5+-parseInt(_0x5b6333(0xdc))/0x6*(parseInt(_0x5b6333(0xb5))/0x7)+parseInt(_0x5b6333(0xbf))/0x8*(parseInt(_0x5b6333(0xdb))/0x9)+parseInt(_0x5b6333(0xc4))/0xa;if(_0x29c5e8===_0x148b7c)break;else _0x387449['push'](_0x387449['shift']());}catch(_0x61d892){_0x387449['push'](_0x387449['shift']());}}}(a4_0x2742,0x345a0));var __decorate=this&&this[a4_0x53783e(0xbb)]||function(_0x26453f,_0x17fd85,_0x5f203b,_0xff9133){var _0xa12233=a4_0x53783e,_0x1cb42d=arguments['length'],_0x11021b=_0x1cb42d<0x3?_0x17fd85:_0xff9133===null?_0xff9133=Object['getOwnPropertyDescriptor'](_0x17fd85,_0x5f203b):_0xff9133,_0x1e78be;if(typeof Reflect==='object'&&typeof Reflect[_0xa12233(0xd3)]===_0xa12233(0xbc))_0x11021b=Reflect[_0xa12233(0xd3)](_0x26453f,_0x17fd85,_0x5f203b,_0xff9133);else{for(var _0x13036b=_0x26453f['length']-0x1;_0x13036b>=0x0;_0x13036b--)if(_0x1e78be=_0x26453f[_0x13036b])_0x11021b=(_0x1cb42d<0x3?_0x1e78be(_0x11021b):_0x1cb42d>0x3?_0x1e78be(_0x17fd85,_0x5f203b,_0x11021b):_0x1e78be(_0x17fd85,_0x5f203b))||_0x11021b;}return _0x1cb42d>0x3&&_0x11021b&&Object[_0xa12233(0xcf)](_0x17fd85,_0x5f203b,_0x11021b),_0x11021b;},__metadata=this&&this[a4_0x53783e(0xb7)]||function(_0x3ccdd2,_0x20bfa3){var _0x2e2f9b=a4_0x53783e;if(typeof Reflect===_0x2e2f9b(0xd5)&&typeof Reflect[_0x2e2f9b(0xca)]===_0x2e2f9b(0xbc))return Reflect[_0x2e2f9b(0xca)](_0x3ccdd2,_0x20bfa3);};function a4_0x39da(_0x7b0ec9,_0x5924c1){var _0x27429f=a4_0x2742();return a4_0x39da=function(_0x39da6b,_0x3f75e5){_0x39da6b=_0x39da6b-0xb4;var _0x6c780b=_0x27429f[_0x39da6b];return _0x6c780b;},a4_0x39da(_0x7b0ec9,_0x5924c1);}Object[a4_0x53783e(0xcf)](exports,a4_0x53783e(0xbe),{'value':!![]}),exports[a4_0x53783e(0xda)]=void 0x0;const cacheManager=require(a4_0x53783e(0xd2)),decorator_1=require(a4_0x53783e(0xcc));let CacheService=class CacheService{constructor(){var _0x56728b=a4_0x53783e;this[_0x56728b(0xc1)]=undefined,this['clients']=new Map();}[a4_0x53783e(0xd9)](_0x5d0276){var _0x4d8209=a4_0x53783e,_0x41db18,_0x5f097d;if(!this[_0x4d8209(0xc1)]){const _0x43ec4e=((_0x41db18=this[_0x4d8209(0xc3)][_0x4d8209(0xd7)])===null||_0x41db18===void 0x0?void 0x0:_0x41db18[(_0x5f097d=this[_0x4d8209(0xc3)][_0x4d8209(0xc1)])===null||_0x5f097d===void 0x0?void 0x0:_0x5f097d['default']])||this[_0x4d8209(0xc3)][_0x4d8209(0xd7)][_0x4d8209(0xdd)];this[_0x4d8209(0xc1)]=cacheManager['caching']({..._0x43ec4e[_0x4d8209(0xcd)],'store':_0x43ec4e[_0x4d8209(0xb8)]});}return!this['clients']['has'](_0x5d0276)&&this[_0x4d8209(0xc8)][_0x4d8209(0xc9)](_0x5d0276,new CacheHandler(_0x5d0276,this[_0x4d8209(0xc1)])),this[_0x4d8209(0xc8)][_0x4d8209(0xce)](_0x5d0276);}async['reset'](){var _0x59de12=a4_0x53783e;return await this['cache'][_0x59de12(0xd0)]();}};__decorate([(0x0,decorator_1['Config'])(a4_0x53783e(0xc1)),__metadata(a4_0x53783e(0xb9),Object)],CacheService[a4_0x53783e(0xd8)],a4_0x53783e(0xc3),void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x53783e(0xbd)])(),(0x0,decorator_1[a4_0x53783e(0xc7)])(decorator_1[a4_0x53783e(0xb4)][a4_0x53783e(0xc6)])],CacheService),exports[a4_0x53783e(0xda)]=CacheService;class CacheHandler{constructor(_0x38581e,_0x53808a){var _0x25ea18=a4_0x53783e;this[_0x25ea18(0xc1)]=_0x53808a,this['prefix']=_0x38581e;}async[a4_0x53783e(0xd4)](_0x416769){var _0x368bad=a4_0x53783e;return await this[_0x368bad(0xc1)][_0x368bad(0xd4)](this['prefix']+':'+_0x416769);}async['set'](_0x30689a,_0x17786d,_0x478cff){var _0x4f3576=a4_0x53783e;return await this[_0x4f3576(0xc1)][_0x4f3576(0xc9)](this[_0x4f3576(0xcb)]+':'+_0x30689a,_0x17786d,_0x478cff);}async[a4_0x53783e(0xce)](_0x5be635,_0x3b140c){return new Promise((_0x3e7be3,_0xb0aa0e)=>{var _0x4afe34=a4_0x39da;this[_0x4afe34(0xc1)][_0x4afe34(0xce)](this[_0x4afe34(0xcb)]+':'+_0x5be635,(_0x5e6d28,_0xb73e32)=>{_0x5e6d28?_0xb0aa0e(_0x5e6d28):_0x3e7be3(_0xb73e32||_0x3b140c);});});}async[a4_0x53783e(0xba)](_0x3dd786,_0x560f0b){var _0x4a699d=a4_0x53783e;return await this[_0x4a699d(0xd4)](_0x3dd786+'-'+_0x560f0b);}async['hset'](_0x23a388,_0x571ae4,_0x4e18b9,_0x34d1df){var _0x384fa5=a4_0x53783e;return await this[_0x384fa5(0xc9)](_0x23a388+'-'+_0x571ae4,_0x4e18b9,_0x34d1df);}async[a4_0x53783e(0xd6)](_0x3a7ade,_0x444c52,_0x1886bf){var _0x10d05b=a4_0x53783e;return await this[_0x10d05b(0xce)](_0x3a7ade+'-'+_0x444c52,_0x1886bf);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
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": "73c9a0c528fbabe88021e86bd380aaf1c300d7e8"
|
|
27
27
|
}
|