@anncic-api/cache 3.4.36 → 3.4.37
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_0x50fa82=a0_0x34c7;(function(_0x3fd086,_0xb5873e){const _0x3382ee=a0_0x34c7,_0x4e480a=_0x3fd086();while(!![]){try{const _0x53bf1d=parseInt(_0x3382ee(0x192))/0x1*(-parseInt(_0x3382ee(0x183))/0x2)+-parseInt(_0x3382ee(0x191))/0x3*(parseInt(_0x3382ee(0x196))/0x4)+-parseInt(_0x3382ee(0x18f))/0x5+-parseInt(_0x3382ee(0x195))/0x6+-parseInt(_0x3382ee(0x189))/0x7*(parseInt(_0x3382ee(0x18d))/0x8)+parseInt(_0x3382ee(0x17f))/0x9*(parseInt(_0x3382ee(0x182))/0xa)+parseInt(_0x3382ee(0x184))/0xb;if(_0x53bf1d===_0xb5873e)break;else _0x4e480a['push'](_0x4e480a['shift']());}catch(_0x22b43d){_0x4e480a['push'](_0x4e480a['shift']());}}}(a0_0x1379,0xee993));const a0_0x29bdb5=(function(){let _0xa376a7=!![];return function(_0x4505a7,_0x531f4c){const _0x323a64=_0xa376a7?function(){const _0x1be7d2=a0_0x34c7;if(_0x531f4c){const _0x285517=_0x531f4c[_0x1be7d2(0x190)](_0x4505a7,arguments);return _0x531f4c=null,_0x285517;}}:function(){};return _0xa376a7=![],_0x323a64;};}()),a0_0x35ee94=a0_0x29bdb5(this,function(){const _0x30f7cb=a0_0x34c7;return a0_0x35ee94[_0x30f7cb(0x18e)]()[_0x30f7cb(0x193)](_0x30f7cb(0x17d))[_0x30f7cb(0x18e)]()[_0x30f7cb(0x186)](a0_0x35ee94)['search'](_0x30f7cb(0x17d));});a0_0x35ee94();'use strict';Object[a0_0x50fa82(0x188)](exports,'__esModule',{'value':!![]});const fsStore=require(a0_0x50fa82(0x17c)),redisStore=require(a0_0x50fa82(0x18b));function a0_0x34c7(_0x7622e4,_0x2b636b){const _0x22a0c5=a0_0x1379();return a0_0x34c7=function(_0x35ee94,_0x29bdb5){_0x35ee94=_0x35ee94-0x17c;let _0x13791b=_0x22a0c5[_0x35ee94];return _0x13791b;},a0_0x34c7(_0x7622e4,_0x2b636b);}exports[a0_0x50fa82(0x18c)]=_0x5e6b47=>{const _0x10ddf0=a0_0x50fa82;return{'cache':{'default':_0x10ddf0(0x180),'stores':{'file':{'store':fsStore,'options':{'ttl':0xed4e00,'subdirs':![],'path':_0x5e6b47[_0x10ddf0(0x187)]+_0x10ddf0(0x185)+((_0x5e6b47===null||_0x5e6b47===void 0x0?void 0x0:_0x5e6b47[_0x10ddf0(0x181)])?'-'+_0x5e6b47[_0x10ddf0(0x181)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x10ddf0(0x18a),'password':'','ttl':0xed4e00,'keyPrefix':_0x5e6b47[_0x10ddf0(0x194)]+':'+((_0x5e6b47===null||_0x5e6b47===void 0x0?void 0x0:_0x5e6b47[_0x10ddf0(0x181)])?_0x5e6b47['env']+':':'')}},'memory':{'store':_0x10ddf0(0x17e),'options':{'max':0x64,'ttl':0xed4e00}}}}};};function a0_0x1379(){const _0x31178f=['10571586Eoywih','4iGdbTz','cache-manager-fs-hash','(((.+)+)+)+$','memory','346455AoVUTA','file','env','250yJtWVr','2600854ZtrDaK','83823366aDzibZ','/runtime/.cache','constructor','appDir','defineProperty','535087ehnsxc','127.0.0.1','cache-manager-ioredis','default','136ASmzeh','toString','8391755KpQqpm','apply','4695528DJkwab','1BmOdUY','search','name'];a0_0x1379=function(){return _0x31178f;};return a0_0x1379();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x3d9694=a1_0x3bd8;(function(_0x3d2db3,_0x211173){var _0x2fcc2f=a1_0x3bd8,_0x2279b9=_0x3d2db3();while(!![]){try{var _0x4e09ca=parseInt(_0x2fcc2f(0xe4))/0x1*(-parseInt(_0x2fcc2f(0xe2))/0x2)+-parseInt(_0x2fcc2f(0xe5))/0x3+parseInt(_0x2fcc2f(0xed))/0x4+parseInt(_0x2fcc2f(0xe7))/0x5*(-parseInt(_0x2fcc2f(0xd5))/0x6)+parseInt(_0x2fcc2f(0xdc))/0x7*(parseInt(_0x2fcc2f(0xdf))/0x8)+-parseInt(_0x2fcc2f(0xe1))/0x9*(-parseInt(_0x2fcc2f(0xdb))/0xa)+-parseInt(_0x2fcc2f(0xe0))/0xb*(-parseInt(_0x2fcc2f(0xd8))/0xc);if(_0x4e09ca===_0x211173)break;else _0x2279b9['push'](_0x2279b9['shift']());}catch(_0x1dbab6){_0x2279b9['push'](_0x2279b9['shift']());}}}(a1_0x4352,0xebd9e));var a1_0x3fa23f=(function(){var _0x1165ae=!![];return function(_0x2afe60,_0x9dc3c2){var _0x520791=_0x1165ae?function(){if(_0x9dc3c2){var _0x545e75=_0x9dc3c2['apply'](_0x2afe60,arguments);return _0x9dc3c2=null,_0x545e75;}}:function(){};return _0x1165ae=![],_0x520791;};}()),a1_0x1ca6da=a1_0x3fa23f(this,function(){var _0x4107bd=a1_0x3bd8;return a1_0x1ca6da[_0x4107bd(0xdd)]()[_0x4107bd(0xd9)](_0x4107bd(0xde))[_0x4107bd(0xdd)]()['constructor'](a1_0x1ca6da)[_0x4107bd(0xd9)](_0x4107bd(0xde));});function a1_0x3bd8(_0x4922d9,_0x5042fb){var _0x30492e=a1_0x4352();return a1_0x3bd8=function(_0x1ca6da,_0x3fa23f){_0x1ca6da=_0x1ca6da-0xd5;var _0x4352b5=_0x30492e[_0x1ca6da];return _0x4352b5;},a1_0x3bd8(_0x4922d9,_0x5042fb);}a1_0x1ca6da();'use strict';var __decorate=this&&this[a1_0x3d9694(0xda)]||function(_0x164c86,_0x1f3772,_0x4ffc5c,_0x136fe1){var _0x5429b7=a1_0x3d9694,_0x5fa665=arguments[_0x5429b7(0xec)],_0x29c5e7=_0x5fa665<0x3?_0x1f3772:_0x136fe1===null?_0x136fe1=Object[_0x5429b7(0xea)](_0x1f3772,_0x4ffc5c):_0x136fe1,_0x22ccb4;if(typeof Reflect==='object'&&typeof Reflect[_0x5429b7(0xe8)]===_0x5429b7(0xd6))_0x29c5e7=Reflect['decorate'](_0x164c86,_0x1f3772,_0x4ffc5c,_0x136fe1);else{for(var _0x1aeb09=_0x164c86[_0x5429b7(0xec)]-0x1;_0x1aeb09>=0x0;_0x1aeb09--)if(_0x22ccb4=_0x164c86[_0x1aeb09])_0x29c5e7=(_0x5fa665<0x3?_0x22ccb4(_0x29c5e7):_0x5fa665>0x3?_0x22ccb4(_0x1f3772,_0x4ffc5c,_0x29c5e7):_0x22ccb4(_0x1f3772,_0x4ffc5c))||_0x29c5e7;}return _0x5fa665>0x3&&_0x29c5e7&&Object['defineProperty'](_0x1f3772,_0x4ffc5c,_0x29c5e7),_0x29c5e7;};Object['defineProperty'](exports,a1_0x3d9694(0xd7),{'value':!![]}),exports[a1_0x3d9694(0xe3)]=void 0x0;const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x3d9694(0xeb));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x3d9694(0xe9)])({'conflictCheck':![],'namespace':a1_0x3d9694(0xe6),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x3d9694(0xe3)]=CustomConfiguration;function a1_0x4352(){var _0x36d7d3=['__esModule','312KxRaUM','search','__decorate','109750VAijeq','7aEmWMY','toString','(((.+)+)+)+$','224392ldnTiY','371602lIXDVz','1206WHIzcR','6husGwG','CustomConfiguration','216564NCHlCh','2328201bvrWmw','anncic-api:cache','5xyhldY','decorate','Configuration','getOwnPropertyDescriptor','./config/config.default','length','2576804auhjJH','3776562AeEzyI','function'];a1_0x4352=function(){return _0x36d7d3;};return a1_0x4352();}
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x29cd34=a2_0x35da;function a2_0x35da(_0x7cf437,_0x3492d9){const _0xf7393a=a2_0x5589();return a2_0x35da=function(_0x5925ea,_0x4fea5f){_0x5925ea=_0x5925ea-0x119;let _0x5589b4=_0xf7393a[_0x5925ea];return _0x5589b4;},a2_0x35da(_0x7cf437,_0x3492d9);}(function(_0xf23b9a,_0x327e68){const _0xf1cbf7=a2_0x35da,_0xeacf8b=_0xf23b9a();while(!![]){try{const _0x41da1=-parseInt(_0xf1cbf7(0x126))/0x1*(parseInt(_0xf1cbf7(0x133))/0x2)+parseInt(_0xf1cbf7(0x122))/0x3+-parseInt(_0xf1cbf7(0x11c))/0x4+-parseInt(_0xf1cbf7(0x139))/0x5*(parseInt(_0xf1cbf7(0x12a))/0x6)+-parseInt(_0xf1cbf7(0x124))/0x7*(-parseInt(_0xf1cbf7(0x138))/0x8)+-parseInt(_0xf1cbf7(0x12c))/0x9*(parseInt(_0xf1cbf7(0x12b))/0xa)+parseInt(_0xf1cbf7(0x129))/0xb;if(_0x41da1===_0x327e68)break;else _0xeacf8b['push'](_0xeacf8b['shift']());}catch(_0x56b71a){_0xeacf8b['push'](_0xeacf8b['shift']());}}}(a2_0x5589,0xda392));const a2_0x4fea5f=(function(){let _0x443ae0=!![];return function(_0x574070,_0x46cfe7){const _0x2030da=_0x443ae0?function(){const _0x571191=a2_0x35da;if(_0x46cfe7){const _0x55296c=_0x46cfe7[_0x571191(0x130)](_0x574070,arguments);return _0x46cfe7=null,_0x55296c;}}:function(){};return _0x443ae0=![],_0x2030da;};}()),a2_0x5925ea=a2_0x4fea5f(this,function(){const _0x205cd4=a2_0x35da;return a2_0x5925ea[_0x205cd4(0x12d)]()[_0x205cd4(0x132)](_0x205cd4(0x125))[_0x205cd4(0x12d)]()[_0x205cd4(0x11d)](a2_0x5925ea)[_0x205cd4(0x132)]('(((.+)+)+)+$');});a2_0x5925ea();'use strict';function a2_0x5589(){const _0x32ab3c=['23062248HJnLmA','150yypMpE','20MXhNeo','332379ZCCRhJ','toString','value','REQUEST_OBJ_CTX_KEY','apply','../service/CacheService','search','8wanlYj','MD5','getAsync','use','__esModule','24rpXFzW','316775DaqtPJ','get','CacheService','set','5025192bQrTLp','constructor','crypto-js','getApplicationContext','Cache','Method::Decorator','3485277hTWCkv','@midwayjs/core','3397002LnDgIx','(((.+)+)+)+$','226577XwzJaN','app','stringify'];a2_0x5589=function(){return _0x32ab3c;};return a2_0x5589();}Object['defineProperty'](exports,a2_0x29cd34(0x137),{'value':!![]}),exports[a2_0x29cd34(0x120)]=void 0x0;const crypto_js_1=require(a2_0x29cd34(0x11e)),CacheService_1=require(a2_0x29cd34(0x131)),core_1=require(a2_0x29cd34(0x123));function Cache(_0x59820e,_0x55d33f){return(_0x6e7a27,_0x1159be,_0xe059ae)=>{const _0x109685=a2_0x35da,_0x20458c=_0xe059ae[_0x109685(0x12e)];return _0xe059ae[_0x109685(0x12e)]=async function(..._0x1d76ee){const _0x151125=_0x109685;!_0x59820e&&(_0x59820e=(0x0,crypto_js_1[_0x151125(0x134)])(JSON['stringify'](_0x1d76ee))[_0x151125(0x12d)]());let _0x31fa69=await this[core_1[_0x151125(0x12f)]][_0x151125(0x127)][_0x151125(0x11f)]()[_0x151125(0x135)](CacheService_1[_0x151125(0x11a)]),_0x22c47c=await _0x31fa69[_0x151125(0x136)](_0x151125(0x121))[_0x151125(0x119)](_0x59820e);if(_0x22c47c)return JSON['parse'](_0x22c47c);else _0x22c47c=await _0x20458c[_0x151125(0x130)](this,[..._0x1d76ee]),await _0x31fa69[_0x151125(0x136)]('Method::Decorator')[_0x151125(0x11b)](_0x59820e,JSON[_0x151125(0x128)](_0x22c47c),_0x55d33f);return _0x22c47c;},_0xe059ae;};}exports[a2_0x29cd34(0x120)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0xc03088=a3_0x3ed6;function a3_0x409e(){var _0x5cf662=['constructor','toString','(((.+)+)+)+$','__esModule','3686431GCprDJ','CacheService','6859310RYGWCW','search','273032EOnaIt','6BZbkmA','CustomConfiguration','1162491ckDzXq','apply','Cache','7931340NZceVn','./decorator/Cache','Configuration','./configuration','defineProperty','./service/CacheService','20584oSGtqe','5CyIkZn','183wlQQmt','5811816JKhXAJ'];a3_0x409e=function(){return _0x5cf662;};return a3_0x409e();}(function(_0x30f6ba,_0x183343){var _0x1c0f58=a3_0x3ed6,_0x13309d=_0x30f6ba();while(!![]){try{var _0x51beea=parseInt(_0x1c0f58(0x1ea))/0x1+parseInt(_0x1c0f58(0x1db))/0x2*(-parseInt(_0x1c0f58(0x1dd))/0x3)+-parseInt(_0x1c0f58(0x1e7))/0x4*(-parseInt(_0x1c0f58(0x1dc))/0x5)+parseInt(_0x1c0f58(0x1e8))/0x6*(parseInt(_0x1c0f58(0x1e3))/0x7)+-parseInt(_0x1c0f58(0x1de))/0x8+parseInt(_0x1c0f58(0x1d5))/0x9+-parseInt(_0x1c0f58(0x1e5))/0xa;if(_0x51beea===_0x183343)break;else _0x13309d['push'](_0x13309d['shift']());}catch(_0x14f627){_0x13309d['push'](_0x13309d['shift']());}}}(a3_0x409e,0x92196));var a3_0x4e0fb7=(function(){var _0x4b43ac=!![];return function(_0x402dc3,_0x3ff5cc){var _0x5761ad=_0x4b43ac?function(){var _0x53d825=a3_0x3ed6;if(_0x3ff5cc){var _0x20aa5c=_0x3ff5cc[_0x53d825(0x1eb)](_0x402dc3,arguments);return _0x3ff5cc=null,_0x20aa5c;}}:function(){};return _0x4b43ac=![],_0x5761ad;};}()),a3_0x45b468=a3_0x4e0fb7(this,function(){var _0x5774dc=a3_0x3ed6;return a3_0x45b468['toString']()['search'](_0x5774dc(0x1e1))[_0x5774dc(0x1e0)]()[_0x5774dc(0x1df)](a3_0x45b468)[_0x5774dc(0x1e6)](_0x5774dc(0x1e1));});function a3_0x3ed6(_0x379bd2,_0x4abc36){var _0x35a133=a3_0x409e();return a3_0x3ed6=function(_0x45b468,_0x4e0fb7){_0x45b468=_0x45b468-0x1d5;var _0x409e63=_0x35a133[_0x45b468];return _0x409e63;},a3_0x3ed6(_0x379bd2,_0x4abc36);}a3_0x45b468();'use strict';Object[a3_0xc03088(0x1d9)](exports,a3_0xc03088(0x1e2),{'value':!![]}),exports[a3_0xc03088(0x1e4)]=exports[a3_0xc03088(0x1ec)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0xc03088(0x1d8));Object[a3_0xc03088(0x1d9)](exports,a3_0xc03088(0x1d7),{'enumerable':!![],'get':function(){var _0x3e99fe=a3_0xc03088;return configuration_1[_0x3e99fe(0x1e9)];}});var Cache_1=require(a3_0xc03088(0x1d6));Object[a3_0xc03088(0x1d9)](exports,a3_0xc03088(0x1ec),{'enumerable':!![],'get':function(){var _0x490ec7=a3_0xc03088;return Cache_1[_0x490ec7(0x1ec)];}});var CacheService_1=require(a3_0xc03088(0x1da));Object[a3_0xc03088(0x1d9)](exports,a3_0xc03088(0x1e4),{'enumerable':!![],'get':function(){var _0x242082=a3_0xc03088;return CacheService_1[_0x242082(0x1e4)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x2f17c1=a4_0x4f90;(function(_0x3b099d,_0x33f433){var _0x1997f5=a4_0x4f90,_0x16d646=_0x3b099d();while(!![]){try{var _0x20d5f7=parseInt(_0x1997f5(0x11d))/0x1*(parseInt(_0x1997f5(0x126))/0x2)+-parseInt(_0x1997f5(0x131))/0x3+-parseInt(_0x1997f5(0x133))/0x4+-parseInt(_0x1997f5(0x138))/0x5+parseInt(_0x1997f5(0x11e))/0x6+-parseInt(_0x1997f5(0x11a))/0x7+-parseInt(_0x1997f5(0x135))/0x8*(-parseInt(_0x1997f5(0x140))/0x9);if(_0x20d5f7===_0x33f433)break;else _0x16d646['push'](_0x16d646['shift']());}catch(_0x1e0bf0){_0x16d646['push'](_0x16d646['shift']());}}}(a4_0x44ad,0x9d1ff));var a4_0x279c29=(function(){var _0x211884=!![];return function(_0x18a88c,_0x47bdb6){var _0x29b415=_0x211884?function(){var _0x3e14b4=a4_0x4f90;if(_0x47bdb6){var _0x403594=_0x47bdb6[_0x3e14b4(0x11b)](_0x18a88c,arguments);return _0x47bdb6=null,_0x403594;}}:function(){};return _0x211884=![],_0x29b415;};}()),a4_0x4c3e5c=a4_0x279c29(this,function(){var _0x446b24=a4_0x4f90;return a4_0x4c3e5c[_0x446b24(0x123)]()[_0x446b24(0x13c)](_0x446b24(0x130))['toString']()['constructor'](a4_0x4c3e5c)[_0x446b24(0x13c)]('(((.+)+)+)+$');});a4_0x4c3e5c();'use strict';function a4_0x4f90(_0x4f74dc,_0x5df1b4){var _0x12d89e=a4_0x44ad();return a4_0x4f90=function(_0x4c3e5c,_0x279c29){_0x4c3e5c=_0x4c3e5c-0x117;var _0x44ad3e=_0x12d89e[_0x4c3e5c];return _0x44ad3e;},a4_0x4f90(_0x4f74dc,_0x5df1b4);}var __decorate=this&&this[a4_0x2f17c1(0x141)]||function(_0x2426a3,_0x2e2e73,_0x4fae3f,_0x37dd99){var _0x5ce1ca=a4_0x2f17c1,_0x18c50f=arguments['length'],_0x182ac4=_0x18c50f<0x3?_0x2e2e73:_0x37dd99===null?_0x37dd99=Object['getOwnPropertyDescriptor'](_0x2e2e73,_0x4fae3f):_0x37dd99,_0x1ac4ad;if(typeof Reflect===_0x5ce1ca(0x117)&&typeof Reflect[_0x5ce1ca(0x13d)]===_0x5ce1ca(0x13f))_0x182ac4=Reflect[_0x5ce1ca(0x13d)](_0x2426a3,_0x2e2e73,_0x4fae3f,_0x37dd99);else{for(var _0x291785=_0x2426a3[_0x5ce1ca(0x122)]-0x1;_0x291785>=0x0;_0x291785--)if(_0x1ac4ad=_0x2426a3[_0x291785])_0x182ac4=(_0x18c50f<0x3?_0x1ac4ad(_0x182ac4):_0x18c50f>0x3?_0x1ac4ad(_0x2e2e73,_0x4fae3f,_0x182ac4):_0x1ac4ad(_0x2e2e73,_0x4fae3f))||_0x182ac4;}return _0x18c50f>0x3&&_0x182ac4&&Object[_0x5ce1ca(0x13a)](_0x2e2e73,_0x4fae3f,_0x182ac4),_0x182ac4;},__metadata=this&&this['__metadata']||function(_0x3ccef3,_0x517737){var _0x27c792=a4_0x2f17c1;if(typeof Reflect===_0x27c792(0x117)&&typeof Reflect[_0x27c792(0x11f)]==='function')return Reflect[_0x27c792(0x11f)](_0x3ccef3,_0x517737);};Object['defineProperty'](exports,a4_0x2f17c1(0x128),{'value':!![]}),exports[a4_0x2f17c1(0x139)]=exports[a4_0x2f17c1(0x125)]=void 0x0;const cacheManager=require(a4_0x2f17c1(0x119)),core_1=require(a4_0x2f17c1(0x129));function a4_0x44ad(){var _0x20c2a0=['1288566rJZNzd','__decorate','default','file','clients','object','cache','cache-manager','3340673meSJVS','apply','ScopeEnum','6yCMlVs','1743570NlSpVN','metadata','design:type','stores','length','toString','set','CacheService','54536BeGqOT','Scope','__esModule','@midwayjs/core','hdel','prefix','caching','get','reset','use','(((.+)+)+)+$','3304566DIQZBX','hget','3659724QeezCo','Config','192uUVARO','prototype','config','3765520JjtNEL','Cache','defineProperty','del','search','decorate','options','function'];a4_0x44ad=function(){return _0x20c2a0;};return a4_0x44ad();}let CacheService=class CacheService{constructor(){var _0xf4b4a6=a4_0x2f17c1;this['cache']=undefined,this[_0xf4b4a6(0x144)]=new Map();}[a4_0x2f17c1(0x12f)](_0xec37ac){var _0x5007ff=a4_0x2f17c1,_0x29dc9f,_0x448114;if(!this[_0x5007ff(0x118)]){const _0xab192b=((_0x29dc9f=this[_0x5007ff(0x137)]['stores'])===null||_0x29dc9f===void 0x0?void 0x0:_0x29dc9f[(_0x448114=this[_0x5007ff(0x137)])===null||_0x448114===void 0x0?void 0x0:_0x448114[_0x5007ff(0x142)]])||this[_0x5007ff(0x137)][_0x5007ff(0x121)][_0x5007ff(0x143)];this[_0x5007ff(0x118)]=cacheManager[_0x5007ff(0x12c)]({..._0xab192b[_0x5007ff(0x13e)],'store':_0xab192b['store']});}return!this[_0x5007ff(0x144)]['has'](_0xec37ac)&&this[_0x5007ff(0x144)]['set'](_0xec37ac,new Cache(_0xec37ac,this[_0x5007ff(0x118)])),this['clients'][_0x5007ff(0x12d)](_0xec37ac);}async['reset'](){var _0x1b9cd4=a4_0x2f17c1;return await this['cache'][_0x1b9cd4(0x12e)]();}};__decorate([(0x0,core_1[a4_0x2f17c1(0x134)])(a4_0x2f17c1(0x118)),__metadata(a4_0x2f17c1(0x120),Object)],CacheService[a4_0x2f17c1(0x136)],a4_0x2f17c1(0x137),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x2f17c1(0x127)])(core_1[a4_0x2f17c1(0x11c)]['Singleton'])],CacheService),exports['CacheService']=CacheService;class Cache{constructor(_0x4adb68,_0x2be5dd){var _0x2c6e64=a4_0x2f17c1;this[_0x2c6e64(0x118)]=_0x2be5dd,this[_0x2c6e64(0x12b)]=_0x4adb68;}async['del'](_0x598147){var _0x53a797=a4_0x2f17c1;return await this[_0x53a797(0x118)]['del'](this['prefix']+':'+_0x598147);}async[a4_0x2f17c1(0x124)](_0x168f1a,_0x2e1db2,_0x2f9a34){var _0x25bac8=a4_0x2f17c1;return await this[_0x25bac8(0x118)][_0x25bac8(0x124)](this[_0x25bac8(0x12b)]+':'+_0x168f1a,_0x2e1db2,_0x2f9a34);}async[a4_0x2f17c1(0x12d)](_0x1025d6,_0x6ff625){return new Promise((_0x4f1c8a,_0x1612f1)=>{var _0x5c84fa=a4_0x4f90;this[_0x5c84fa(0x118)][_0x5c84fa(0x12d)](this[_0x5c84fa(0x12b)]+':'+_0x1025d6,(_0x423221,_0x5dee19)=>{_0x423221?_0x1612f1(_0x423221):_0x4f1c8a(_0x5dee19||_0x6ff625);});});}async[a4_0x2f17c1(0x12a)](_0x366bf3,_0x1e7261){var _0x4d47ba=a4_0x2f17c1;return await this[_0x4d47ba(0x13b)](_0x366bf3+'#'+_0x1e7261);}async['hset'](_0x5458fa,_0x588a61,_0x39667c,_0x5b8281){var _0x110b8f=a4_0x2f17c1;return await this[_0x110b8f(0x124)](_0x5458fa+'#'+_0x588a61,_0x39667c,_0x5b8281);}async[a4_0x2f17c1(0x132)](_0x5e9254,_0x51dc70,_0x43331f){var _0x266da4=a4_0x2f17c1;return await this[_0x266da4(0x12d)](_0x5e9254+'#'+_0x51dc70,_0x43331f);}}exports[a4_0x2f17c1(0x139)]=Cache;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.37",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"javascript-obfuscator": "^4.0.2",
|
|
24
24
|
"typescript": "^5.1.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "9d9dcfc7790a3a7ad01aeaf7458384489676ec38"
|
|
27
27
|
}
|