@anncic-api/cache 1.1.3 → 1.1.6
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_0x3c2fa6=a0_0x38f3;(function(_0x16831c,_0x3456c7){const _0x26e524=a0_0x38f3,_0x2eb6a9=_0x16831c();while(!![]){try{const _0x447d20=parseInt(_0x26e524(0x11d))/0x1+parseInt(_0x26e524(0x129))/0x2+parseInt(_0x26e524(0x128))/0x3+-parseInt(_0x26e524(0x125))/0x4+-parseInt(_0x26e524(0x11f))/0x5+-parseInt(_0x26e524(0x124))/0x6*(parseInt(_0x26e524(0x120))/0x7)+-parseInt(_0x26e524(0x123))/0x8*(-parseInt(_0x26e524(0x127))/0x9);if(_0x447d20===_0x3456c7)break;else _0x2eb6a9['push'](_0x2eb6a9['shift']());}catch(_0x2d7f5b){_0x2eb6a9['push'](_0x2eb6a9['shift']());}}}(a0_0xebcd,0xef396));function a0_0xebcd(){const _0x2044e2=['127.0.0.1','default','111472cMtwpC','1974354YquEuV','4730332iEeTfM','cache-manager-ioredis','1602aEjriB','180411zxMqOq','1775126qYjswX','file','appDir','cache-manager-fs-hash','name','__esModule','memory','224752WdufLW','/runtime/.cache','4160705RqTImw','14FsDUVn'];a0_0xebcd=function(){return _0x2044e2;};return a0_0xebcd();}function a0_0x38f3(_0x438e22,_0x433960){const _0xebcd5e=a0_0xebcd();return a0_0x38f3=function(_0x38f33b,_0x590f79){_0x38f33b=_0x38f33b-0x119;let _0x3c811a=_0xebcd5e[_0x38f33b];return _0x3c811a;},a0_0x38f3(_0x438e22,_0x433960);}Object['defineProperty'](exports,a0_0x3c2fa6(0x11b),{'value':!![]});const fsStore=require(a0_0x3c2fa6(0x119)),redisStore=require(a0_0x3c2fa6(0x126));exports[a0_0x3c2fa6(0x122)]=_0x386556=>{const _0x445a92=a0_0x3c2fa6;return{'cache':{'default':_0x445a92(0x12a),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x386556[_0x445a92(0x12b)]+_0x445a92(0x11e)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x445a92(0x121),'password':'','ttl':0x1e13380,'keyPrefix':_0x386556[_0x445a92(0x11a)]+':'}},'memory':{'store':_0x445a92(0x11c),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var a1_0x2fa170=a1_0x113e;function a1_0x113e(_0x3b1ca9,_0x2e2842){var _0x516d2a=a1_0x516d();return a1_0x113e=function(_0x113e12,_0x4f9db0){_0x113e12=_0x113e12-0x105;var _0x517b31=_0x516d2a[_0x113e12];return _0x517b31;},a1_0x113e(_0x3b1ca9,_0x2e2842);}(function(_0x57c7fa,_0x581c93){var _0x4ec830=a1_0x113e,_0x336c80=_0x57c7fa();while(!![]){try{var _0x4b4b33=parseInt(_0x4ec830(0x10d))/0x1+parseInt(_0x4ec830(0x107))/0x2*(-parseInt(_0x4ec830(0x111))/0x3)+-parseInt(_0x4ec830(0x112))/0x4+-parseInt(_0x4ec830(0x113))/0x5*(parseInt(_0x4ec830(0x10a))/0x6)+parseInt(_0x4ec830(0x110))/0x7+-parseInt(_0x4ec830(0x109))/0x8+parseInt(_0x4ec830(0x115))/0x9;if(_0x4b4b33===_0x581c93)break;else _0x336c80['push'](_0x336c80['shift']());}catch(_0x53dd57){_0x336c80['push'](_0x336c80['shift']());}}}(a1_0x516d,0x53549));var __decorate=this&&this['__decorate']||function(_0x49ed20,_0x2187e9,_0x591a5b,_0x14fc48){var _0x27dbf2=a1_0x113e,_0x58f649=arguments[_0x27dbf2(0x10b)],_0x140d11=_0x58f649<0x3?_0x2187e9:_0x14fc48===null?_0x14fc48=Object[_0x27dbf2(0x10e)](_0x2187e9,_0x591a5b):_0x14fc48,_0xc3fdac;if(typeof Reflect==='object'&&typeof Reflect[_0x27dbf2(0x108)]===_0x27dbf2(0x10f))_0x140d11=Reflect[_0x27dbf2(0x108)](_0x49ed20,_0x2187e9,_0x591a5b,_0x14fc48);else{for(var _0x1bdcea=_0x49ed20[_0x27dbf2(0x10b)]-0x1;_0x1bdcea>=0x0;_0x1bdcea--)if(_0xc3fdac=_0x49ed20[_0x1bdcea])_0x140d11=(_0x58f649<0x3?_0xc3fdac(_0x140d11):_0x58f649>0x3?_0xc3fdac(_0x2187e9,_0x591a5b,_0x140d11):_0xc3fdac(_0x2187e9,_0x591a5b))||_0x140d11;}return _0x58f649>0x3&&_0x140d11&&Object[_0x27dbf2(0x106)](_0x2187e9,_0x591a5b,_0x140d11),_0x140d11;};function a1_0x516d(){var _0x5a5128=['anncic-api:cache','367683vNUXmX','getOwnPropertyDescriptor','function','1736679fgCFpH','69393PBkWpX','1719060YuRHih','80luvhfV','CustomConfiguration','6573402dfcKul','./config/config.default','__esModule','defineProperty','26ueHBrj','decorate','1497224qJInBt','32706EEuWqt','length'];a1_0x516d=function(){return _0x5a5128;};return a1_0x516d();}Object['defineProperty'](exports,a1_0x2fa170(0x105),{'value':!![]}),exports[a1_0x2fa170(0x114)]=void 0x0;const decorator_1=require('@midwayjs/decorator'),ConfigDefault=require(a1_0x2fa170(0x116));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,decorator_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x2fa170(0x10c),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x26eaac=a2_0x1fca;(function(_0x4f9435,_0x4f2e01){const _0x2b448c=a2_0x1fca,_0x5a3692=_0x4f9435();while(!![]){try{const _0x380835=parseInt(_0x2b448c(0xc6))/0x1*(-parseInt(_0x2b448c(0xc7))/0x2)+parseInt(_0x2b448c(0xc8))/0x3*(parseInt(_0x2b448c(0xc3))/0x4)+parseInt(_0x2b448c(0xbe))/0x5*(-parseInt(_0x2b448c(0xb7))/0x6)+parseInt(_0x2b448c(0xb8))/0x7+parseInt(_0x2b448c(0xcc))/0x8*(-parseInt(_0x2b448c(0xbb))/0x9)+-parseInt(_0x2b448c(0xd0))/0xa+-parseInt(_0x2b448c(0xce))/0xb*(-parseInt(_0x2b448c(0xc5))/0xc);if(_0x380835===_0x4f2e01)break;else _0x5a3692['push'](_0x5a3692['shift']());}catch(_0x3ef2c9){_0x5a3692['push'](_0x5a3692['shift']());}}}(a2_0x59e6,0x70a5c));Object[a2_0x26eaac(0xbf)](exports,a2_0x26eaac(0xc2),{'value':!![]}),exports[a2_0x26eaac(0xbc)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x26eaac(0xc9)),core_1=require('@midwayjs/core');function a2_0x1fca(_0x5a6a7f,_0x441784){const _0x59e658=a2_0x59e6();return a2_0x1fca=function(_0x1fca48,_0x329807){_0x1fca48=_0x1fca48-0xb6;let _0x144a13=_0x59e658[_0x1fca48];return _0x144a13;},a2_0x1fca(_0x5a6a7f,_0x441784);}function a2_0x59e6(){const _0x3a7a2f=['4GdUmxi','REQUEST_OBJ_CTX_KEY','4724844acQKjR','42793FjOjlq','4PsuPWK','2636847weZRcS','../service/CacheService','MethodDecorator','MD5','24PQCPOF','parse','22RvdZvq','app','3913250pOkAgF','get','set','getApplicationContext','33018VIHdso','1726704hPTfQy','value','apply','1950309XDhpNY','Cache','use','295gXcFjn','defineProperty','toString','stringify','__esModule'];a2_0x59e6=function(){return _0x3a7a2f;};return a2_0x59e6();}function Cache(_0x2baf93,_0x316058){return(_0x4f72f2,_0x1ea791,_0x396fe5)=>{const _0x8c25bc=a2_0x1fca,_0x5d60a3=_0x396fe5['value'];return _0x396fe5[_0x8c25bc(0xb9)]=async function(..._0xb0be5a){const _0x4cace5=_0x8c25bc;!_0x2baf93&&(_0x2baf93=(0x0,crypto_js_1[_0x4cace5(0xcb)])(JSON[_0x4cace5(0xc1)](_0xb0be5a))[_0x4cace5(0xc0)]());let _0x4bc857=await this[core_1[_0x4cace5(0xc4)]][_0x4cace5(0xcf)][_0x4cace5(0xb6)]()['getAsync'](CacheService_1['CacheService']),_0x4db936=await _0x4bc857['use'](_0x4cace5(0xca))[_0x4cace5(0xd1)](_0x2baf93);if(_0x4db936)return JSON[_0x4cace5(0xcd)](_0x4db936);else _0x4db936=await _0x5d60a3[_0x4cace5(0xba)](this,[..._0xb0be5a]),await _0x4bc857[_0x4cace5(0xbd)](_0x4cace5(0xca))[_0x4cace5(0xd2)](_0x2baf93,JSON[_0x4cace5(0xc1)](_0x4db936),_0x316058);return _0x4db936;},_0x396fe5;};}exports[a2_0x26eaac(0xbc)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0xd9b63=a3_0x92a2;function a3_0x465b(){var _0x6b6b4e=['16qgWJQh','691284SJlgUK','CacheService','779400USKmir','CustomConfiguration','21976890Dhkzsq','./decorator/Cache','./configuration','79184KBNjGn','136356ssknrD','21zGWWLa','Cache','./service/CacheService','defineProperty','5826384zcGiQm','1251BdETAR','174321FaUysV','__esModule'];a3_0x465b=function(){return _0x6b6b4e;};return a3_0x465b();}(function(_0x3107f4,_0x32f620){var _0x5cb602=a3_0x92a2,_0x505f70=_0x3107f4();while(!![]){try{var _0x4c6cd0=-parseInt(_0x5cb602(0x1ad))/0x1+parseInt(_0x5cb602(0x1ac))/0x2*(-parseInt(_0x5cb602(0x1aa))/0x3)+parseInt(_0x5cb602(0x1a8))/0x4+-parseInt(_0x5cb602(0x19d))/0x5+-parseInt(_0x5cb602(0x1a3))/0x6*(parseInt(_0x5cb602(0x1a4))/0x7)+-parseInt(_0x5cb602(0x1a2))/0x8*(parseInt(_0x5cb602(0x1a9))/0x9)+parseInt(_0x5cb602(0x19f))/0xa;if(_0x4c6cd0===_0x32f620)break;else _0x505f70['push'](_0x505f70['shift']());}catch(_0x38ff2a){_0x505f70['push'](_0x505f70['shift']());}}}(a3_0x465b,0xdb4d9));Object[a3_0xd9b63(0x1a7)](exports,a3_0xd9b63(0x1ab),{'value':!![]}),exports[a3_0xd9b63(0x1ae)]=exports[a3_0xd9b63(0x1a5)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0xd9b63(0x1a1));Object['defineProperty'](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x234790=a3_0xd9b63;return configuration_1[_0x234790(0x19e)];}});function a3_0x92a2(_0x13bfad,_0x31e516){var _0x465ba8=a3_0x465b();return a3_0x92a2=function(_0x92a299,_0x1f740d){_0x92a299=_0x92a299-0x19d;var _0x29e2f2=_0x465ba8[_0x92a299];return _0x29e2f2;},a3_0x92a2(_0x13bfad,_0x31e516);}var Cache_1=require(a3_0xd9b63(0x1a0));Object[a3_0xd9b63(0x1a7)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x319c2f=a3_0xd9b63;return Cache_1[_0x319c2f(0x1a5)];}});var CacheService_1=require(a3_0xd9b63(0x1a6));Object[a3_0xd9b63(0x1a7)](exports,'CacheService',{'enumerable':!![],'get':function(){var _0xf1eed9=a3_0xd9b63;return CacheService_1[_0xf1eed9(0x1ae)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x2d67ec=a4_0x1516;(function(_0x352d95,_0x54ddfc){var _0x31f444=a4_0x1516,_0x2c95ae=_0x352d95();while(!![]){try{var _0x2c1843=-parseInt(_0x31f444(0x1f3))/0x1*(parseInt(_0x31f444(0x1e3))/0x2)+parseInt(_0x31f444(0x1d4))/0x3+parseInt(_0x31f444(0x1e1))/0x4*(parseInt(_0x31f444(0x1da))/0x5)+parseInt(_0x31f444(0x1ea))/0x6*(parseInt(_0x31f444(0x1dd))/0x7)+-parseInt(_0x31f444(0x1ee))/0x8+-parseInt(_0x31f444(0x1ce))/0x9+parseInt(_0x31f444(0x1cc))/0xa;if(_0x2c1843===_0x54ddfc)break;else _0x2c95ae['push'](_0x2c95ae['shift']());}catch(_0x1a7d5b){_0x2c95ae['push'](_0x2c95ae['shift']());}}}(a4_0x300c,0xeffbd));function a4_0x300c(){var _0x30274b=['__metadata','1916388hgGehp','object','7834aUEGMx','design:type','getOwnPropertyDescriptor','get','del','store','options','3631854EMsUwO','metadata','prefix','__esModule','1449272xfDbdx','Provide','file','default','length','256rhCtJF','CacheService','14336760OdRZMF','ScopeEnum','16110882JhfLxr','prototype','Config','config','__decorate','function','1063482tscnsB','clients','cache','set','use','@midwayjs/decorator','10jJDSjE','has','stores','14HdtVnX','cache-manager','Singleton'];a4_0x300c=function(){return _0x30274b;};return a4_0x300c();}function a4_0x1516(_0x39e004,_0x30580a){var _0x300c47=a4_0x300c();return a4_0x1516=function(_0x151685,_0x3ebd69){_0x151685=_0x151685-0x1cc;var _0x48d738=_0x300c47[_0x151685];return _0x48d738;},a4_0x1516(_0x39e004,_0x30580a);}var __decorate=this&&this[a4_0x2d67ec(0x1d2)]||function(_0x342616,_0x1ebfd7,_0x107b17,_0x266174){var _0x41ba9e=a4_0x2d67ec,_0x15287f=arguments[_0x41ba9e(0x1f2)],_0x258635=_0x15287f<0x3?_0x1ebfd7:_0x266174===null?_0x266174=Object[_0x41ba9e(0x1e5)](_0x1ebfd7,_0x107b17):_0x266174,_0x71f9fd;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x41ba9e(0x1d3))_0x258635=Reflect['decorate'](_0x342616,_0x1ebfd7,_0x107b17,_0x266174);else{for(var _0x773ca3=_0x342616[_0x41ba9e(0x1f2)]-0x1;_0x773ca3>=0x0;_0x773ca3--)if(_0x71f9fd=_0x342616[_0x773ca3])_0x258635=(_0x15287f<0x3?_0x71f9fd(_0x258635):_0x15287f>0x3?_0x71f9fd(_0x1ebfd7,_0x107b17,_0x258635):_0x71f9fd(_0x1ebfd7,_0x107b17))||_0x258635;}return _0x15287f>0x3&&_0x258635&&Object['defineProperty'](_0x1ebfd7,_0x107b17,_0x258635),_0x258635;},__metadata=this&&this[a4_0x2d67ec(0x1e0)]||function(_0x5b23f9,_0x18f7ec){var _0x38468b=a4_0x2d67ec;if(typeof Reflect===_0x38468b(0x1e2)&&typeof Reflect[_0x38468b(0x1eb)]==='function')return Reflect[_0x38468b(0x1eb)](_0x5b23f9,_0x18f7ec);};Object['defineProperty'](exports,a4_0x2d67ec(0x1ed),{'value':!![]}),exports[a4_0x2d67ec(0x1f4)]=void 0x0;const cacheManager=require(a4_0x2d67ec(0x1de)),decorator_1=require(a4_0x2d67ec(0x1d9));let CacheService=class CacheService{constructor(){var _0x133a01=a4_0x2d67ec;this[_0x133a01(0x1d6)]=undefined,this[_0x133a01(0x1d5)]=new Map();}[a4_0x2d67ec(0x1d8)](_0x1fe4e9){var _0x9bf992=a4_0x2d67ec,_0x39914b,_0x40ce91;if(!this[_0x9bf992(0x1d6)]){const _0x47b556=((_0x39914b=this[_0x9bf992(0x1d1)][_0x9bf992(0x1dc)])===null||_0x39914b===void 0x0?void 0x0:_0x39914b[(_0x40ce91=this[_0x9bf992(0x1d1)][_0x9bf992(0x1d6)])===null||_0x40ce91===void 0x0?void 0x0:_0x40ce91[_0x9bf992(0x1f1)]])||this['config'][_0x9bf992(0x1dc)][_0x9bf992(0x1f0)];this[_0x9bf992(0x1d6)]=cacheManager['caching']({..._0x47b556[_0x9bf992(0x1e9)],'store':_0x47b556[_0x9bf992(0x1e8)]});}return!this[_0x9bf992(0x1d5)][_0x9bf992(0x1db)](_0x1fe4e9)&&this[_0x9bf992(0x1d5)]['set'](_0x1fe4e9,new CacheHandler(_0x1fe4e9,this[_0x9bf992(0x1d6)])),this['clients'][_0x9bf992(0x1e6)](_0x1fe4e9);}async['reset'](){return await this['cache']['reset']();}};__decorate([(0x0,decorator_1[a4_0x2d67ec(0x1d0)])(a4_0x2d67ec(0x1d6)),__metadata(a4_0x2d67ec(0x1e4),Object)],CacheService[a4_0x2d67ec(0x1cf)],'config',void 0x0),CacheService=__decorate([(0x0,decorator_1[a4_0x2d67ec(0x1ef)])(),(0x0,decorator_1['Scope'])(decorator_1[a4_0x2d67ec(0x1cd)][a4_0x2d67ec(0x1df)])],CacheService),exports[a4_0x2d67ec(0x1f4)]=CacheService;class CacheHandler{constructor(_0x5f245e,_0x319321){var _0x5baaac=a4_0x2d67ec;this[_0x5baaac(0x1d6)]=_0x319321,this[_0x5baaac(0x1ec)]=_0x5f245e;}async[a4_0x2d67ec(0x1e7)](_0x322349){var _0x531927=a4_0x2d67ec;return await this[_0x531927(0x1d6)][_0x531927(0x1e7)](this[_0x531927(0x1ec)]+':'+_0x322349);}async['set'](_0x5d59e1,_0xe541,_0x44939b){var _0x14f64d=a4_0x2d67ec;return await this[_0x14f64d(0x1d6)][_0x14f64d(0x1d7)](this[_0x14f64d(0x1ec)]+':'+_0x5d59e1,_0xe541,_0x44939b);}async[a4_0x2d67ec(0x1e6)](_0xae506,_0x5e9c7e){return new Promise((_0x59286a,_0x141152)=>{var _0x229bf0=a4_0x1516;this[_0x229bf0(0x1d6)]['get'](this['prefix']+':'+_0xae506,(_0x15be0b,_0x4d9a97)=>{_0x15be0b?_0x141152(_0x15be0b):_0x59286a(_0x4d9a97||_0x5e9c7e);});});}async['hdel'](_0x428f27,_0x5ef2c8){var _0x4d0ef9=a4_0x2d67ec;return await this[_0x4d0ef9(0x1e7)](_0x428f27+'-'+_0x5ef2c8);}async['hset'](_0x1d241e,_0x541117,_0x5891b5,_0x2680da){var _0x2bc686=a4_0x2d67ec;return await this[_0x2bc686(0x1d7)](_0x1d241e+'-'+_0x541117,_0x5891b5,_0x2680da);}async['hget'](_0x230b45,_0x49352f,_0x27cfd3){return await this['get'](_0x230b45+'-'+_0x49352f,_0x27cfd3);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
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": "c3515458c76e02ff95219389d6322d473eb79a9f"
|
|
27
27
|
}
|