@anncic-api/cache 2.1.6 → 2.1.8
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
|
-
const
|
|
1
|
+
const a0_0x375894=a0_0x6fd7;(function(_0x4ac961,_0x1448ed){const _0x2dfdba=a0_0x6fd7,_0x69dfec=_0x4ac961();while(!![]){try{const _0x36a835=-parseInt(_0x2dfdba(0x179))/0x1*(-parseInt(_0x2dfdba(0x170))/0x2)+-parseInt(_0x2dfdba(0x16e))/0x3+-parseInt(_0x2dfdba(0x173))/0x4+parseInt(_0x2dfdba(0x174))/0x5*(-parseInt(_0x2dfdba(0x17a))/0x6)+parseInt(_0x2dfdba(0x182))/0x7+-parseInt(_0x2dfdba(0x172))/0x8+parseInt(_0x2dfdba(0x17b))/0x9;if(_0x36a835===_0x1448ed)break;else _0x69dfec['push'](_0x69dfec['shift']());}catch(_0xc3231b){_0x69dfec['push'](_0x69dfec['shift']());}}}(a0_0x8108,0x64a4d));const a0_0x44a42f=(function(){let _0x2320b8=!![];return function(_0x3938db,_0x5c2fcd){const _0x4c9864=_0x2320b8?function(){const _0x17bf40=a0_0x6fd7;if(_0x5c2fcd){const _0x4f31cd=_0x5c2fcd[_0x17bf40(0x178)](_0x3938db,arguments);return _0x5c2fcd=null,_0x4f31cd;}}:function(){};return _0x2320b8=![],_0x4c9864;};}()),a0_0x560483=a0_0x44a42f(this,function(){const _0x1cff8f=a0_0x6fd7;return a0_0x560483[_0x1cff8f(0x177)]()[_0x1cff8f(0x171)](_0x1cff8f(0x17d))[_0x1cff8f(0x177)]()[_0x1cff8f(0x175)](a0_0x560483)[_0x1cff8f(0x171)]('(((.+)+)+)+$');});a0_0x560483();function a0_0x6fd7(_0x2f8057,_0x18702a){const _0x236482=a0_0x8108();return a0_0x6fd7=function(_0x560483,_0x44a42f){_0x560483=_0x560483-0x16d;let _0x8108a7=_0x236482[_0x560483];return _0x8108a7;},a0_0x6fd7(_0x2f8057,_0x18702a);}'use strict';function a0_0x8108(){const _0x5aa8fb=['__esModule','127.0.0.1','default','cache-manager-fs-hash','1936459iagyRg','/runtime/.cache','31578ztPlxW','defineProperty','3098HZXbzG','search','1623832fkLWxT','3248828HIdGMM','2285LGGRYK','constructor','name','toString','apply','114RMblhp','8436oqubRd','14645412XsFDSc','file','(((.+)+)+)+$'];a0_0x8108=function(){return _0x5aa8fb;};return a0_0x8108();}Object[a0_0x375894(0x16f)](exports,a0_0x375894(0x17e),{'value':!![]});const fsStore=require(a0_0x375894(0x181)),redisStore=require('cache-manager-ioredis');exports[a0_0x375894(0x180)]=_0x3613d2=>{const _0x3ef515=a0_0x375894;return{'cache':{'default':_0x3ef515(0x17c),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x3613d2['appDir']+_0x3ef515(0x16d)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x3ef515(0x17f),'password':'','ttl':0x1e13380,'keyPrefix':_0x3613d2[_0x3ef515(0x176)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1_0x40b4(_0x51d862,_0x5a0e1b){var _0x1046f0=a1_0x2ed3();return a1_0x40b4=function(_0x5a21b2,_0x269d4a){_0x5a21b2=_0x5a21b2-0x9d;var _0x2ed323=_0x1046f0[_0x5a21b2];return _0x2ed323;},a1_0x40b4(_0x51d862,_0x5a0e1b);}var a1_0x239d9d=a1_0x40b4;(function(_0x2cc966,_0x4ea01c){var _0x231fda=a1_0x40b4,_0x63f476=_0x2cc966();while(!![]){try{var _0x200b16=parseInt(_0x231fda(0x9f))/0x1*(-parseInt(_0x231fda(0xaa))/0x2)+parseInt(_0x231fda(0xa2))/0x3+parseInt(_0x231fda(0xb3))/0x4+-parseInt(_0x231fda(0xb1))/0x5+parseInt(_0x231fda(0xa8))/0x6*(-parseInt(_0x231fda(0xa9))/0x7)+-parseInt(_0x231fda(0x9d))/0x8+parseInt(_0x231fda(0xad))/0x9;if(_0x200b16===_0x4ea01c)break;else _0x63f476['push'](_0x63f476['shift']());}catch(_0x570bd6){_0x63f476['push'](_0x63f476['shift']());}}}(a1_0x2ed3,0x3ee59));var a1_0x269d4a=(function(){var _0x4b0e32=!![];return function(_0x10a99c,_0x5102b5){var _0x46e0d6=_0x4b0e32?function(){var _0x62df7d=a1_0x40b4;if(_0x5102b5){var _0x34e287=_0x5102b5[_0x62df7d(0xa6)](_0x10a99c,arguments);return _0x5102b5=null,_0x34e287;}}:function(){};return _0x4b0e32=![],_0x46e0d6;};}()),a1_0x5a21b2=a1_0x269d4a(this,function(){var _0x51a8b7=a1_0x40b4;return a1_0x5a21b2['toString']()[_0x51a8b7(0xb0)](_0x51a8b7(0xae))[_0x51a8b7(0xab)]()[_0x51a8b7(0xa4)](a1_0x5a21b2)[_0x51a8b7(0xb0)](_0x51a8b7(0xae));});a1_0x5a21b2();'use strict';function a1_0x2ed3(){var _0x1b330f=['CustomConfiguration','617142JebozD','14BnRSZX','118wIZTLr','toString','__decorate','4326678XwveLT','(((.+)+)+)+$','getOwnPropertyDescriptor','search','188250iKIyeD','length','42112GAFjxp','defineProperty','1175624uIsFCG','__esModule','5006bkhNUh','decorate','object','1356078DajXkw','Configuration','constructor','./config/config.default','apply'];a1_0x2ed3=function(){return _0x1b330f;};return a1_0x2ed3();}var __decorate=this&&this[a1_0x239d9d(0xac)]||function(_0x3b5ba7,_0x58c5d7,_0x13b835,_0x21e332){var _0x3c91a6=a1_0x239d9d,_0x406051=arguments[_0x3c91a6(0xb2)],_0x4ea902=_0x406051<0x3?_0x58c5d7:_0x21e332===null?_0x21e332=Object[_0x3c91a6(0xaf)](_0x58c5d7,_0x13b835):_0x21e332,_0x1d5291;if(typeof Reflect===_0x3c91a6(0xa1)&&typeof Reflect[_0x3c91a6(0xa0)]==='function')_0x4ea902=Reflect[_0x3c91a6(0xa0)](_0x3b5ba7,_0x58c5d7,_0x13b835,_0x21e332);else{for(var _0x4bef42=_0x3b5ba7[_0x3c91a6(0xb2)]-0x1;_0x4bef42>=0x0;_0x4bef42--)if(_0x1d5291=_0x3b5ba7[_0x4bef42])_0x4ea902=(_0x406051<0x3?_0x1d5291(_0x4ea902):_0x406051>0x3?_0x1d5291(_0x58c5d7,_0x13b835,_0x4ea902):_0x1d5291(_0x58c5d7,_0x13b835))||_0x4ea902;}return _0x406051>0x3&&_0x4ea902&&Object['defineProperty'](_0x58c5d7,_0x13b835,_0x4ea902),_0x4ea902;};Object[a1_0x239d9d(0xb4)](exports,a1_0x239d9d(0x9e),{'value':!![]}),exports[a1_0x239d9d(0xa7)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x239d9d(0xa5));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x239d9d(0xa3)])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x239d9d(0xa7)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0xe88013=a2_0x5c01;(function(_0xcecf7,_0x4d0770){const _0x1762c8=a2_0x5c01,_0x3d8521=_0xcecf7();while(!![]){try{const _0x548c56=parseInt(_0x1762c8(0x1e8))/0x1+parseInt(_0x1762c8(0x1e4))/0x2+parseInt(_0x1762c8(0x1e2))/0x3*(-parseInt(_0x1762c8(0x1e0))/0x4)+-parseInt(_0x1762c8(0x1d3))/0x5*(parseInt(_0x1762c8(0x1dc))/0x6)+parseInt(_0x1762c8(0x1e6))/0x7+-parseInt(_0x1762c8(0x1d6))/0x8*(-parseInt(_0x1762c8(0x1ed))/0x9)+-parseInt(_0x1762c8(0x1ee))/0xa;if(_0x548c56===_0x4d0770)break;else _0x3d8521['push'](_0x3d8521['shift']());}catch(_0x39b1df){_0x3d8521['push'](_0x3d8521['shift']());}}}(a2_0x1bc9,0x751b1));const a2_0x213fb0=(function(){let _0x2210f7=!![];return function(_0xce6cbb,_0x5c365e){const _0x19dda7=_0x2210f7?function(){const _0x4e115f=a2_0x5c01;if(_0x5c365e){const _0x2dd7bb=_0x5c365e[_0x4e115f(0x1e7)](_0xce6cbb,arguments);return _0x5c365e=null,_0x2dd7bb;}}:function(){};return _0x2210f7=![],_0x19dda7;};}()),a2_0x2870e3=a2_0x213fb0(this,function(){const _0x2eac3c=a2_0x5c01;return a2_0x2870e3[_0x2eac3c(0x1df)]()[_0x2eac3c(0x1d5)](_0x2eac3c(0x1d4))[_0x2eac3c(0x1df)]()[_0x2eac3c(0x1e5)](a2_0x2870e3)[_0x2eac3c(0x1d5)]('(((.+)+)+)+$');});function a2_0x5c01(_0x35d916,_0x52d38f){const _0x58253e=a2_0x1bc9();return a2_0x5c01=function(_0x2870e3,_0x213fb0){_0x2870e3=_0x2870e3-0x1d2;let _0x1bc9cb=_0x58253e[_0x2870e3];return _0x1bc9cb;},a2_0x5c01(_0x35d916,_0x52d38f);}a2_0x2870e3();function a2_0x1bc9(){const _0xdafd4e=['1221957KRMQTk','Cache','1794472HecgJu','constructor','4877614jVOvDV','apply','577470jUuTlA','parse','../service/CacheService','CacheService','stringify','12897PNgyOs','8653410QNDFWR','use','3491355rZobeh','(((.+)+)+)+$','search','3832SQywds','get','value','getAsync','getApplicationContext','Method::Decorator','6SxRXUY','set','@midwayjs/core','toString','8FVFTOP','REQUEST_OBJ_CTX_KEY'];a2_0x1bc9=function(){return _0xdafd4e;};return a2_0x1bc9();}'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a2_0xe88013(0x1e3)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0xe88013(0x1ea)),core_1=require(a2_0xe88013(0x1de));function Cache(_0x413a56,_0x1668b7){return(_0x10819d,_0x23b9b5,_0x132968)=>{const _0x571fb4=a2_0x5c01,_0x48db1d=_0x132968[_0x571fb4(0x1d8)];return _0x132968['value']=async function(..._0x5e1cfe){const _0x550bf9=_0x571fb4;!_0x413a56&&(_0x413a56=(0x0,crypto_js_1['MD5'])(JSON['stringify'](_0x5e1cfe))[_0x550bf9(0x1df)]());let _0x4bc060=await this[core_1[_0x550bf9(0x1e1)]]['app'][_0x550bf9(0x1da)]()[_0x550bf9(0x1d9)](CacheService_1[_0x550bf9(0x1eb)]),_0x19b61a=await _0x4bc060[_0x550bf9(0x1d2)](_0x550bf9(0x1db))[_0x550bf9(0x1d7)](_0x413a56);if(_0x19b61a)return JSON[_0x550bf9(0x1e9)](_0x19b61a);else _0x19b61a=await _0x48db1d[_0x550bf9(0x1e7)](this,[..._0x5e1cfe]),await _0x4bc060[_0x550bf9(0x1d2)](_0x550bf9(0x1db))[_0x550bf9(0x1dd)](_0x413a56,JSON[_0x550bf9(0x1ec)](_0x19b61a),_0x1668b7);return _0x19b61a;},_0x132968;};}exports[a2_0xe88013(0x1e3)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a3_0x244bc8=a3_0x36dc;(function(_0x38d8ce,_0x229b8f){var _0x288c51=a3_0x36dc,_0x5ddac0=_0x38d8ce();while(!![]){try{var _0x363278=-parseInt(_0x288c51(0xc8))/0x1*(-parseInt(_0x288c51(0xd6))/0x2)+-parseInt(_0x288c51(0xce))/0x3*(-parseInt(_0x288c51(0xd0))/0x4)+-parseInt(_0x288c51(0xca))/0x5+parseInt(_0x288c51(0xcf))/0x6*(parseInt(_0x288c51(0xcc))/0x7)+parseInt(_0x288c51(0xd3))/0x8*(-parseInt(_0x288c51(0xde))/0x9)+-parseInt(_0x288c51(0xcd))/0xa*(parseInt(_0x288c51(0xdc))/0xb)+parseInt(_0x288c51(0xd2))/0xc;if(_0x363278===_0x229b8f)break;else _0x5ddac0['push'](_0x5ddac0['shift']());}catch(_0x24b573){_0x5ddac0['push'](_0x5ddac0['shift']());}}}(a3_0x27a7,0x1c0b0));var a3_0x1f8ebb=(function(){var _0x5d5c8d=!![];return function(_0x15968c,_0x785e06){var _0x4eb687=_0x5d5c8d?function(){var _0x4dbe71=a3_0x36dc;if(_0x785e06){var _0x6ddb93=_0x785e06[_0x4dbe71(0xd5)](_0x15968c,arguments);return _0x785e06=null,_0x6ddb93;}}:function(){};return _0x5d5c8d=![],_0x4eb687;};}()),a3_0x412076=a3_0x1f8ebb(this,function(){var _0x25ab71=a3_0x36dc;return a3_0x412076[_0x25ab71(0xd8)]()[_0x25ab71(0xdd)](_0x25ab71(0xd1))[_0x25ab71(0xd8)]()['constructor'](a3_0x412076)[_0x25ab71(0xdd)](_0x25ab71(0xd1));});a3_0x412076();function a3_0x27a7(){var _0x5c1219=['230rMXarr','3KutHZj','6sZKlKq','599644YLPQso','(((.+)+)+)+$','647904AHXTWD','20200RwTbkA','Configuration','apply','100238WEeTCr','Cache','toString','defineProperty','CustomConfiguration','__esModule','36751TsJwAo','search','603FolOcH','1PdIiFh','CacheService','517525LOxGlJ','./configuration','1472555QtmijV'];a3_0x27a7=function(){return _0x5c1219;};return a3_0x27a7();}'use strict';Object[a3_0x244bc8(0xd9)](exports,a3_0x244bc8(0xdb),{'value':!![]}),exports[a3_0x244bc8(0xc9)]=exports[a3_0x244bc8(0xd7)]=exports[a3_0x244bc8(0xd4)]=void 0x0;var configuration_1=require(a3_0x244bc8(0xcb));function a3_0x36dc(_0x5539e3,_0xe410f9){var _0x16927f=a3_0x27a7();return a3_0x36dc=function(_0x412076,_0x1f8ebb){_0x412076=_0x412076-0xc8;var _0x27a74c=_0x16927f[_0x412076];return _0x27a74c;},a3_0x36dc(_0x5539e3,_0xe410f9);}Object[a3_0x244bc8(0xd9)](exports,a3_0x244bc8(0xd4),{'enumerable':!![],'get':function(){var _0x287bf7=a3_0x244bc8;return configuration_1[_0x287bf7(0xda)];}});var Cache_1=require('./decorator/Cache');Object[a3_0x244bc8(0xd9)](exports,a3_0x244bc8(0xd7),{'enumerable':!![],'get':function(){var _0x3fe953=a3_0x244bc8;return Cache_1[_0x3fe953(0xd7)];}});var CacheService_1=require('./service/CacheService');Object[a3_0x244bc8(0xd9)](exports,a3_0x244bc8(0xc9),{'enumerable':!![],'get':function(){var _0x16f62e=a3_0x244bc8;return CacheService_1[_0x16f62e(0xc9)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x1cc5f1=a4_0x58da;function a4_0x17ed(){var _0x4e7ff0=['224352rjNlaO','use','store','cache-manager','Singleton','object','clients','cache','length','caching','search','3983168DPMhzx','set','defineProperty','stores','hdel','ScopeEnum','4DfTLik','reset','hset','(((.+)+)+)+$','del','has','options','Provide','constructor','140946XYgzqK','toString','1080576WOrxRa','1654665fCzZGY','152198xjtUQZ','@midwayjs/core','__esModule','design:type','get','config','8pKmlgV','file','CacheService','function','__metadata','prototype','metadata','prefix','getOwnPropertyDescriptor','9699552JDIJBU'];a4_0x17ed=function(){return _0x4e7ff0;};return a4_0x17ed();}(function(_0x5859fb,_0x400a93){var _0x4bc329=a4_0x58da,_0x1a7234=_0x5859fb();while(!![]){try{var _0x2ca208=parseInt(_0x4bc329(0xd3))/0x1+parseInt(_0x4bc329(0xc6))/0x2*(parseInt(_0x4bc329(0xb5))/0x3)+parseInt(_0x4bc329(0xd1))/0x4+parseInt(_0x4bc329(0xd2))/0x5+parseInt(_0x4bc329(0xcf))/0x6+-parseInt(_0x4bc329(0xc0))/0x7*(-parseInt(_0x4bc329(0xd9))/0x8)+-parseInt(_0x4bc329(0xb4))/0x9;if(_0x2ca208===_0x400a93)break;else _0x1a7234['push'](_0x1a7234['shift']());}catch(_0x5a9222){_0x1a7234['push'](_0x1a7234['shift']());}}}(a4_0x17ed,0x65f5e));function a4_0x58da(_0x12f032,_0x2af227){var _0x1c75ed=a4_0x17ed();return a4_0x58da=function(_0x4beafb,_0x282036){_0x4beafb=_0x4beafb-0xb0;var _0x17ed9a=_0x1c75ed[_0x4beafb];return _0x17ed9a;},a4_0x58da(_0x12f032,_0x2af227);}var a4_0x282036=(function(){var _0x2f67c0=!![];return function(_0xdab7db,_0xca8aee){var _0x4f5bec=_0x2f67c0?function(){if(_0xca8aee){var _0x56febd=_0xca8aee['apply'](_0xdab7db,arguments);return _0xca8aee=null,_0x56febd;}}:function(){};return _0x2f67c0=![],_0x4f5bec;};}()),a4_0x4beafb=a4_0x282036(this,function(){var _0x15361a=a4_0x58da;return a4_0x4beafb[_0x15361a(0xd0)]()[_0x15361a(0xbf)](_0x15361a(0xc9))[_0x15361a(0xd0)]()[_0x15361a(0xce)](a4_0x4beafb)['search'](_0x15361a(0xc9));});a4_0x4beafb();'use strict';var __decorate=this&&this['__decorate']||function(_0x2e6569,_0x4ac44a,_0x3968b,_0x14714c){var _0x491b20=a4_0x58da,_0x4f6a64=arguments[_0x491b20(0xbd)],_0x43dd02=_0x4f6a64<0x3?_0x4ac44a:_0x14714c===null?_0x14714c=Object[_0x491b20(0xb3)](_0x4ac44a,_0x3968b):_0x14714c,_0x95e52f;if(typeof Reflect===_0x491b20(0xba)&&typeof Reflect['decorate']===_0x491b20(0xdc))_0x43dd02=Reflect['decorate'](_0x2e6569,_0x4ac44a,_0x3968b,_0x14714c);else{for(var _0x250267=_0x2e6569[_0x491b20(0xbd)]-0x1;_0x250267>=0x0;_0x250267--)if(_0x95e52f=_0x2e6569[_0x250267])_0x43dd02=(_0x4f6a64<0x3?_0x95e52f(_0x43dd02):_0x4f6a64>0x3?_0x95e52f(_0x4ac44a,_0x3968b,_0x43dd02):_0x95e52f(_0x4ac44a,_0x3968b))||_0x43dd02;}return _0x4f6a64>0x3&&_0x43dd02&&Object[_0x491b20(0xc2)](_0x4ac44a,_0x3968b,_0x43dd02),_0x43dd02;},__metadata=this&&this[a4_0x1cc5f1(0xdd)]||function(_0x4f6668,_0x3cd1cd){var _0x36c2a6=a4_0x1cc5f1;if(typeof Reflect===_0x36c2a6(0xba)&&typeof Reflect[_0x36c2a6(0xb1)]===_0x36c2a6(0xdc))return Reflect[_0x36c2a6(0xb1)](_0x4f6668,_0x3cd1cd);};Object['defineProperty'](exports,a4_0x1cc5f1(0xd5),{'value':!![]}),exports[a4_0x1cc5f1(0xdb)]=void 0x0;const cacheManager=require(a4_0x1cc5f1(0xb8)),core_1=require(a4_0x1cc5f1(0xd4));let CacheService=class CacheService{constructor(){var _0xe5714a=a4_0x1cc5f1;this[_0xe5714a(0xbc)]=undefined,this[_0xe5714a(0xbb)]=new Map();}[a4_0x1cc5f1(0xb6)](_0x58954a){var _0x35c8ed=a4_0x1cc5f1,_0x3f7ff4,_0x147931;if(!this[_0x35c8ed(0xbc)]){const _0x1e1071=((_0x3f7ff4=this[_0x35c8ed(0xd8)][_0x35c8ed(0xc3)])===null||_0x3f7ff4===void 0x0?void 0x0:_0x3f7ff4[(_0x147931=this[_0x35c8ed(0xd8)][_0x35c8ed(0xbc)])===null||_0x147931===void 0x0?void 0x0:_0x147931['default']])||this[_0x35c8ed(0xd8)]['stores'][_0x35c8ed(0xda)];this['cache']=cacheManager[_0x35c8ed(0xbe)]({..._0x1e1071[_0x35c8ed(0xcc)],'store':_0x1e1071[_0x35c8ed(0xb7)]});}return!this[_0x35c8ed(0xbb)][_0x35c8ed(0xcb)](_0x58954a)&&this[_0x35c8ed(0xbb)][_0x35c8ed(0xc1)](_0x58954a,new CacheHandler(_0x58954a,this['cache'])),this[_0x35c8ed(0xbb)]['get'](_0x58954a);}async[a4_0x1cc5f1(0xc7)](){var _0x4d622d=a4_0x1cc5f1;return await this[_0x4d622d(0xbc)]['reset']();}};__decorate([(0x0,core_1['Config'])(a4_0x1cc5f1(0xbc)),__metadata(a4_0x1cc5f1(0xd6),Object)],CacheService[a4_0x1cc5f1(0xb0)],a4_0x1cc5f1(0xd8),void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x1cc5f1(0xcd)])(),(0x0,core_1['Scope'])(core_1[a4_0x1cc5f1(0xc5)][a4_0x1cc5f1(0xb9)])],CacheService),exports[a4_0x1cc5f1(0xdb)]=CacheService;class CacheHandler{constructor(_0x47d99c,_0x5cac49){var _0x36f793=a4_0x1cc5f1;this[_0x36f793(0xbc)]=_0x5cac49,this[_0x36f793(0xb2)]=_0x47d99c;}async[a4_0x1cc5f1(0xca)](_0x2e0c80){return await this['cache']['del'](this['prefix']+':'+_0x2e0c80);}async['set'](_0x366690,_0xcfb35b,_0x4bfbbc){var _0x33c4f1=a4_0x1cc5f1;return await this['cache']['set'](this[_0x33c4f1(0xb2)]+':'+_0x366690,_0xcfb35b,_0x4bfbbc);}async[a4_0x1cc5f1(0xd7)](_0x2292c4,_0x52ffd1){return new Promise((_0x17d436,_0x3eec30)=>{var _0x19d53b=a4_0x58da;this[_0x19d53b(0xbc)][_0x19d53b(0xd7)](this[_0x19d53b(0xb2)]+':'+_0x2292c4,(_0x4a539a,_0x592348)=>{_0x4a539a?_0x3eec30(_0x4a539a):_0x17d436(_0x592348||_0x52ffd1);});});}async[a4_0x1cc5f1(0xc4)](_0x5d797a,_0x54159f){var _0xa806b=a4_0x1cc5f1;return await this[_0xa806b(0xca)](_0x5d797a+'#'+_0x54159f);}async[a4_0x1cc5f1(0xc8)](_0x346c41,_0x3588fc,_0x34ebb7,_0x59d9c5){var _0x26849b=a4_0x1cc5f1;return await this[_0x26849b(0xc1)](_0x346c41+'#'+_0x3588fc,_0x34ebb7,_0x59d9c5);}async['hget'](_0x2f3215,_0x52e673,_0x16390b){return await this['get'](_0x2f3215+'#'+_0x52e673,_0x16390b);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"javascript-obfuscator": "^4.0.0",
|
|
24
24
|
"typescript": "^4.7.4"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "e20719127061fb55499510e86a2915671e79ffab"
|
|
27
27
|
}
|