@anncic-api/cache 1.4.3 → 1.4.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';const
|
|
1
|
+
'use strict';const a0_0x2ce7e5=a0_0x147d;(function(_0x1b105d,_0x3837e6){const _0x4face8=a0_0x147d,_0x13b16e=_0x1b105d();while(!![]){try{const _0x1088be=parseInt(_0x4face8(0x1dd))/0x1*(parseInt(_0x4face8(0x1d6))/0x2)+-parseInt(_0x4face8(0x1da))/0x3+parseInt(_0x4face8(0x1e0))/0x4*(parseInt(_0x4face8(0x1d8))/0x5)+parseInt(_0x4face8(0x1d4))/0x6+-parseInt(_0x4face8(0x1de))/0x7+parseInt(_0x4face8(0x1d9))/0x8+-parseInt(_0x4face8(0x1db))/0x9;if(_0x1088be===_0x3837e6)break;else _0x13b16e['push'](_0x13b16e['shift']());}catch(_0x1245b2){_0x13b16e['push'](_0x13b16e['shift']());}}}(a0_0x380d,0xf34ca));function a0_0x147d(_0x9300ab,_0x1210e0){const _0x380d0e=a0_0x380d();return a0_0x147d=function(_0x147d35,_0x8ea6d){_0x147d35=_0x147d35-0x1d2;let _0x5d4ef3=_0x380d0e[_0x147d35];return _0x5d4ef3;},a0_0x147d(_0x9300ab,_0x1210e0);}function a0_0x380d(){const _0x14c7d7=['11434qraftX','127.0.0.1','247635PMYAnz','1856032xihQiz','1942524xHdluW','21709053kBQefb','appDir','116EpKLDz','4305392oYQbyU','cache-manager-ioredis','156woNANb','file','cache-manager-fs-hash','__esModule','default','11067036mDbdFS','/runtime/.cache'];a0_0x380d=function(){return _0x14c7d7;};return a0_0x380d();}Object['defineProperty'](exports,a0_0x2ce7e5(0x1d2),{'value':!![]});const fsStore=require(a0_0x2ce7e5(0x1e2)),redisStore=require(a0_0x2ce7e5(0x1df));exports[a0_0x2ce7e5(0x1d3)]=_0x372c1d=>{const _0x2bc30e=a0_0x2ce7e5;return{'cache':{'default':_0x2bc30e(0x1e1),'stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x372c1d[_0x2bc30e(0x1dc)]+_0x2bc30e(0x1d5)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x2bc30e(0x1d7),'password':'','ttl':0x1e13380,'keyPrefix':_0x372c1d['name']+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a1_0xc6c40b=a1_0x29c6;(function(_0x11f0e6,_0x380ec7){var _0x2a088b=a1_0x29c6,_0x4b47c8=_0x11f0e6();while(!![]){try{var _0x356e29=parseInt(_0x2a088b(0x1be))/0x1+-parseInt(_0x2a088b(0x1bb))/0x2+parseInt(_0x2a088b(0x1c1))/0x3+parseInt(_0x2a088b(0x1c5))/0x4+-parseInt(_0x2a088b(0x1bd))/0x5+-parseInt(_0x2a088b(0x1bf))/0x6+-parseInt(_0x2a088b(0x1c0))/0x7*(-parseInt(_0x2a088b(0x1c6))/0x8);if(_0x356e29===_0x380ec7)break;else _0x4b47c8['push'](_0x4b47c8['shift']());}catch(_0x4f69c7){_0x4b47c8['push'](_0x4b47c8['shift']());}}}(a1_0x2b86,0x44578));var __decorate=this&&this[a1_0xc6c40b(0x1c8)]||function(_0x315c46,_0x557baa,_0x22c27b,_0x505f76){var _0x225b13=a1_0xc6c40b,_0x30a570=arguments[_0x225b13(0x1bc)],_0xf63314=_0x30a570<0x3?_0x557baa:_0x505f76===null?_0x505f76=Object['getOwnPropertyDescriptor'](_0x557baa,_0x22c27b):_0x505f76,_0x3d0530;if(typeof Reflect===_0x225b13(0x1c4)&&typeof Reflect[_0x225b13(0x1c3)]==='function')_0xf63314=Reflect['decorate'](_0x315c46,_0x557baa,_0x22c27b,_0x505f76);else{for(var _0xb46718=_0x315c46[_0x225b13(0x1bc)]-0x1;_0xb46718>=0x0;_0xb46718--)if(_0x3d0530=_0x315c46[_0xb46718])_0xf63314=(_0x30a570<0x3?_0x3d0530(_0xf63314):_0x30a570>0x3?_0x3d0530(_0x557baa,_0x22c27b,_0xf63314):_0x3d0530(_0x557baa,_0x22c27b))||_0xf63314;}return _0x30a570>0x3&&_0xf63314&&Object['defineProperty'](_0x557baa,_0x22c27b,_0xf63314),_0xf63314;};Object['defineProperty'](exports,a1_0xc6c40b(0x1c2),{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x29c6(_0x1e878f,_0x4d2ad7){var _0x2b867c=a1_0x2b86();return a1_0x29c6=function(_0x29c66d,_0x474f07){_0x29c66d=_0x29c66d-0x1bb;var _0x36df77=_0x2b867c[_0x29c66d];return _0x36df77;},a1_0x29c6(_0x1e878f,_0x4d2ad7);}const core_1=require(a1_0xc6c40b(0x1c7)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};function a1_0x2b86(){var _0xf7c51e=['__decorate','823490BSKevD','length','1799620ztSjKf','192631eQPLUb','723396NabZwg','7caOnrW','359430XIiuHf','__esModule','decorate','object','311132QUIuSa','6255512zqTPne','@midwayjs/core'];a1_0x2b86=function(){return _0xf7c51e;};return a1_0x2b86();}CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':'anncic-api:cache','importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x3fc3e5=a2_0x2cd3;function a2_0x2cd3(_0x42cc42,_0x22efba){const _0x1dfe05=a2_0x1dfe();return a2_0x2cd3=function(_0x2cd308,_0x2da712){_0x2cd308=_0x2cd308-0x1da;let _0x333d15=_0x1dfe05[_0x2cd308];return _0x333d15;},a2_0x2cd3(_0x42cc42,_0x22efba);}(function(_0x3b2af6,_0x455452){const _0x27972f=a2_0x2cd3,_0x301b1e=_0x3b2af6();while(!![]){try{const _0x185028=-parseInt(_0x27972f(0x1f4))/0x1*(-parseInt(_0x27972f(0x1e6))/0x2)+-parseInt(_0x27972f(0x1f0))/0x3*(-parseInt(_0x27972f(0x1ee))/0x4)+-parseInt(_0x27972f(0x1e3))/0x5*(-parseInt(_0x27972f(0x1de))/0x6)+-parseInt(_0x27972f(0x1dc))/0x7+parseInt(_0x27972f(0x1e2))/0x8+parseInt(_0x27972f(0x1df))/0x9*(parseInt(_0x27972f(0x1e9))/0xa)+-parseInt(_0x27972f(0x1e7))/0xb;if(_0x185028===_0x455452)break;else _0x301b1e['push'](_0x301b1e['shift']());}catch(_0x469160){_0x301b1e['push'](_0x301b1e['shift']());}}}(a2_0x1dfe,0x62e40));Object['defineProperty'](exports,a2_0x3fc3e5(0x1e5),{'value':!![]}),exports[a2_0x3fc3e5(0x1e8)]=void 0x0;const crypto_js_1=require('crypto-js'),CacheService_1=require(a2_0x3fc3e5(0x1f3)),core_1=require(a2_0x3fc3e5(0x1f2));function a2_0x1dfe(){const _0x2e96e0=['REQUEST_OBJ_CTX_KEY','2501968azhlrj','79610xzrEbT','Method::Decorator','__esModule','2oVlKrS','12603217zxOxdJ','Cache','490yhAGQA','parse','value','toString','apply','127052gShjiy','set','57VYgpBD','MD5','@midwayjs/core','../service/CacheService','228601tXqqGQ','getApplicationContext','getAsync','3548174roIRuL','stringify','156bukjWH','91629PRwmpt','use'];a2_0x1dfe=function(){return _0x2e96e0;};return a2_0x1dfe();}function Cache(_0x4ccca0,_0x5ac3b1){return(_0x2c5ed8,_0x246b34,_0x48f3a1)=>{const _0x5b2309=a2_0x2cd3,_0x2cc464=_0x48f3a1[_0x5b2309(0x1eb)];return _0x48f3a1[_0x5b2309(0x1eb)]=async function(..._0x403fd4){const _0x3fae1a=_0x5b2309;!_0x4ccca0&&(_0x4ccca0=(0x0,crypto_js_1[_0x3fae1a(0x1f1)])(JSON[_0x3fae1a(0x1dd)](_0x403fd4))[_0x3fae1a(0x1ec)]());let _0x4a4121=await this[core_1[_0x3fae1a(0x1e1)]]['app'][_0x3fae1a(0x1da)]()[_0x3fae1a(0x1db)](CacheService_1['CacheService']),_0x47d22f=await _0x4a4121[_0x3fae1a(0x1e0)](_0x3fae1a(0x1e4))['get'](_0x4ccca0);if(_0x47d22f)return JSON[_0x3fae1a(0x1ea)](_0x47d22f);else _0x47d22f=await _0x2cc464[_0x3fae1a(0x1ed)](this,[..._0x403fd4]),await _0x4a4121[_0x3fae1a(0x1e0)](_0x3fae1a(0x1e4))[_0x3fae1a(0x1ef)](_0x4ccca0,JSON[_0x3fae1a(0x1dd)](_0x47d22f),_0x5ac3b1);return _0x47d22f;},_0x48f3a1;};}exports[a2_0x3fc3e5(0x1e8)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var a3_0x4b8a18=a3_0x462b;(function(_0x59090a,_0x3f2732){var _0x5c081e=a3_0x462b,_0x39e924=_0x59090a();while(!![]){try{var _0x1250a3=-parseInt(_0x5c081e(0x13d))/0x1*(-parseInt(_0x5c081e(0x131))/0x2)+-parseInt(_0x5c081e(0x12c))/0x3*(parseInt(_0x5c081e(0x134))/0x4)+parseInt(_0x5c081e(0x133))/0x5+parseInt(_0x5c081e(0x13c))/0x6*(-parseInt(_0x5c081e(0x130))/0x7)+-parseInt(_0x5c081e(0x13b))/0x8*(parseInt(_0x5c081e(0x138))/0x9)+-parseInt(_0x5c081e(0x12a))/0xa+-parseInt(_0x5c081e(0x137))/0xb*(parseInt(_0x5c081e(0x12f))/0xc);if(_0x1250a3===_0x3f2732)break;else _0x39e924['push'](_0x39e924['shift']());}catch(_0x418b88){_0x39e924['push'](_0x39e924['shift']());}}}(a3_0x393c,0xa701b));function a3_0x393c(){var _0x586ab6=['Cache','CacheService','584roviuH','134298xVwQev','4pvucmo','3233940jSIMrp','__esModule','231816LPfhnG','./configuration','./decorator/Cache','24RCHPTu','266GaBBid','664658eBHfdZ','./service/CacheService','6620540bfMbCf','12pCRAKy','defineProperty','Configuration','2497957cnZpXN','13491fajUHl'];a3_0x393c=function(){return _0x586ab6;};return a3_0x393c();}Object['defineProperty'](exports,a3_0x4b8a18(0x12b),{'value':!![]}),exports[a3_0x4b8a18(0x13a)]=exports[a3_0x4b8a18(0x139)]=exports[a3_0x4b8a18(0x136)]=void 0x0;var configuration_1=require(a3_0x4b8a18(0x12d));Object[a3_0x4b8a18(0x135)](exports,a3_0x4b8a18(0x136),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});function a3_0x462b(_0x42a0da,_0x316063){var _0x393c1f=a3_0x393c();return a3_0x462b=function(_0x462b74,_0x3b7cb3){_0x462b74=_0x462b74-0x12a;var _0x1634ad=_0x393c1f[_0x462b74];return _0x1634ad;},a3_0x462b(_0x42a0da,_0x316063);}var Cache_1=require(a3_0x4b8a18(0x12e));Object[a3_0x4b8a18(0x135)](exports,a3_0x4b8a18(0x139),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require(a3_0x4b8a18(0x132));Object[a3_0x4b8a18(0x135)](exports,a3_0x4b8a18(0x13a),{'enumerable':!![],'get':function(){var _0x14ef19=a3_0x4b8a18;return CacheService_1[_0x14ef19(0x13a)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x3f323d=a4_0x354b;(function(_0x2911a7,_0x37cab5){var _0x2fefc9=a4_0x354b,_0x5a8036=_0x2911a7();while(!![]){try{var _0x59c777=-parseInt(_0x2fefc9(0x181))/0x1*(parseInt(_0x2fefc9(0x1a0))/0x2)+-parseInt(_0x2fefc9(0x197))/0x3+parseInt(_0x2fefc9(0x188))/0x4*(-parseInt(_0x2fefc9(0x17b))/0x5)+-parseInt(_0x2fefc9(0x175))/0x6*(-parseInt(_0x2fefc9(0x185))/0x7)+parseInt(_0x2fefc9(0x189))/0x8*(-parseInt(_0x2fefc9(0x18d))/0x9)+-parseInt(_0x2fefc9(0x18b))/0xa*(-parseInt(_0x2fefc9(0x191))/0xb)+-parseInt(_0x2fefc9(0x196))/0xc*(-parseInt(_0x2fefc9(0x19e))/0xd);if(_0x59c777===_0x37cab5)break;else _0x5a8036['push'](_0x5a8036['shift']());}catch(_0x594363){_0x5a8036['push'](_0x5a8036['shift']());}}}(a4_0x39bf,0x3b6cd));var __decorate=this&&this[a4_0x3f323d(0x1a3)]||function(_0x537b1e,_0x5d96cf,_0x5647cc,_0x8e77c4){var _0x184e01=a4_0x3f323d,_0x19a04c=arguments[_0x184e01(0x179)],_0xfa2c9b=_0x19a04c<0x3?_0x5d96cf:_0x8e77c4===null?_0x8e77c4=Object[_0x184e01(0x19f)](_0x5d96cf,_0x5647cc):_0x8e77c4,_0x2c77d7;if(typeof Reflect===_0x184e01(0x199)&&typeof Reflect[_0x184e01(0x184)]===_0x184e01(0x19d))_0xfa2c9b=Reflect[_0x184e01(0x184)](_0x537b1e,_0x5d96cf,_0x5647cc,_0x8e77c4);else{for(var _0x51e906=_0x537b1e[_0x184e01(0x179)]-0x1;_0x51e906>=0x0;_0x51e906--)if(_0x2c77d7=_0x537b1e[_0x51e906])_0xfa2c9b=(_0x19a04c<0x3?_0x2c77d7(_0xfa2c9b):_0x19a04c>0x3?_0x2c77d7(_0x5d96cf,_0x5647cc,_0xfa2c9b):_0x2c77d7(_0x5d96cf,_0x5647cc))||_0xfa2c9b;}return _0x19a04c>0x3&&_0xfa2c9b&&Object[_0x184e01(0x180)](_0x5d96cf,_0x5647cc,_0xfa2c9b),_0xfa2c9b;},__metadata=this&&this[a4_0x3f323d(0x194)]||function(_0x23ff8a,_0x147216){var _0x449379=a4_0x3f323d;if(typeof Reflect===_0x449379(0x199)&&typeof Reflect[_0x449379(0x173)]==='function')return Reflect['metadata'](_0x23ff8a,_0x147216);};Object[a4_0x3f323d(0x180)](exports,a4_0x3f323d(0x178),{'value':!![]}),exports[a4_0x3f323d(0x187)]=void 0x0;const cacheManager=require(a4_0x3f323d(0x17f)),core_1=require('@midwayjs/core');let CacheService=class CacheService{constructor(){var _0x330ae5=a4_0x3f323d;this[_0x330ae5(0x19c)]=undefined,this[_0x330ae5(0x195)]=new Map();}['use'](_0x59ebe4){var _0x2de748=a4_0x3f323d,_0x123fc4,_0x3fcc5a;if(!this[_0x2de748(0x19c)]){const _0x441f46=((_0x123fc4=this['config'][_0x2de748(0x198)])===null||_0x123fc4===void 0x0?void 0x0:_0x123fc4[(_0x3fcc5a=this['config'][_0x2de748(0x19c)])===null||_0x3fcc5a===void 0x0?void 0x0:_0x3fcc5a[_0x2de748(0x193)]])||this[_0x2de748(0x18e)][_0x2de748(0x198)][_0x2de748(0x176)];this[_0x2de748(0x19c)]=cacheManager[_0x2de748(0x19b)]({..._0x441f46[_0x2de748(0x18a)],'store':_0x441f46['store']});}return!this['clients'][_0x2de748(0x19a)](_0x59ebe4)&&this[_0x2de748(0x195)]['set'](_0x59ebe4,new CacheHandler(_0x59ebe4,this['cache'])),this[_0x2de748(0x195)][_0x2de748(0x183)](_0x59ebe4);}async['reset'](){var _0x2c7a81=a4_0x3f323d;return await this[_0x2c7a81(0x19c)][_0x2c7a81(0x18c)]();}};__decorate([(0x0,core_1[a4_0x3f323d(0x192)])(a4_0x3f323d(0x19c)),__metadata(a4_0x3f323d(0x18f),Object)],CacheService[a4_0x3f323d(0x177)],a4_0x3f323d(0x18e),void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x3f323d(0x186)])(),(0x0,core_1[a4_0x3f323d(0x190)])(core_1[a4_0x3f323d(0x17e)][a4_0x3f323d(0x17d)])],CacheService),exports['CacheService']=CacheService;function a4_0x354b(_0x6c63bd,_0x5b256d){var _0x39bfed=a4_0x39bf();return a4_0x354b=function(_0x354b99,_0x4d8803){_0x354b99=_0x354b99-0x173;var _0x166320=_0x39bfed[_0x354b99];return _0x166320;},a4_0x354b(_0x6c63bd,_0x5b256d);}class CacheHandler{constructor(_0x293bad,_0x398ea7){var _0x139d6c=a4_0x3f323d;this[_0x139d6c(0x19c)]=_0x398ea7,this['prefix']=_0x293bad;}async[a4_0x3f323d(0x174)](_0x8d7338){var _0x29215c=a4_0x3f323d;return await this[_0x29215c(0x19c)]['del'](this[_0x29215c(0x182)]+':'+_0x8d7338);}async[a4_0x3f323d(0x1a2)](_0x2a7763,_0x389d5e,_0x432eaf){var _0x1ee1db=a4_0x3f323d;return await this[_0x1ee1db(0x19c)]['set'](this[_0x1ee1db(0x182)]+':'+_0x2a7763,_0x389d5e,_0x432eaf);}async[a4_0x3f323d(0x183)](_0x3af722,_0x4b13c8){return new Promise((_0x5b0092,_0x6a0ea)=>{var _0x2b3003=a4_0x354b;this['cache']['get'](this[_0x2b3003(0x182)]+':'+_0x3af722,(_0x4fd749,_0x562349)=>{_0x4fd749?_0x6a0ea(_0x4fd749):_0x5b0092(_0x562349||_0x4b13c8);});});}async[a4_0x3f323d(0x17c)](_0x1a94f4,_0x5adcde){var _0x2cdf06=a4_0x3f323d;return await this[_0x2cdf06(0x174)](_0x1a94f4+'#'+_0x5adcde);}async[a4_0x3f323d(0x17a)](_0x3a69f2,_0x37b263,_0x341e4c,_0x42dd47){return await this['set'](_0x3a69f2+'#'+_0x37b263,_0x341e4c,_0x42dd47);}async[a4_0x3f323d(0x1a1)](_0x393039,_0x10c9fa,_0x43d4ca){var _0xa29e9=a4_0x3f323d;return await this[_0xa29e9(0x183)](_0x393039+'#'+_0x10c9fa,_0x43d4ca);}}function a4_0x39bf(){var _0x439649=['1059156ChMnlR','stores','object','has','caching','cache','function','13YplMHJ','getOwnPropertyDescriptor','66SdPkoc','hget','set','__decorate','metadata','del','60VMaSZa','file','prototype','__esModule','length','hset','65pJFnjs','hdel','Singleton','ScopeEnum','cache-manager','defineProperty','5011oEAOWj','prefix','get','decorate','329105EEoZtq','Provide','CacheService','96508icsHhk','110712SrJUsE','options','1630Qvaxsz','reset','243LRhxrn','config','design:type','Scope','27973DycKLK','Config','default','__metadata','clients','6773580QAEiSJ'];a4_0x39bf=function(){return _0x439649;};return a4_0x39bf();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.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": "804809f0521c31790e9c08e84fc82c0dd2d8c9c5"
|
|
27
27
|
}
|