@anncic-api/cache 1.4.20 → 1.4.22
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';
|
|
1
|
+
'use strict';function a0_0x74fa(){const _0x479094=['27QEmdkA','name','__esModule','cache-manager-ioredis','127.0.0.1','668358eLDJvC','memory','default','cache-manager-fs-hash','140fOnyox','197629eYgcop','936680FkxEvH','3220189bUzcxc','341410rsGAQM','8Vqbmpf','42HriEZY','defineProperty','62931Kxfxyh','117190HKSqao'];a0_0x74fa=function(){return _0x479094;};return a0_0x74fa();}const a0_0x3cf801=a0_0x463e;(function(_0x469aab,_0x2d6e79){const _0x3e4e8b=a0_0x463e,_0x2acfcc=_0x469aab();while(!![]){try{const _0x229295=parseInt(_0x3e4e8b(0xee))/0x1+-parseInt(_0x3e4e8b(0xde))/0x2+parseInt(_0x3e4e8b(0xe9))/0x3*(parseInt(_0x3e4e8b(0xdf))/0x4)+-parseInt(_0x3e4e8b(0xe3))/0x5*(parseInt(_0x3e4e8b(0xe0))/0x6)+-parseInt(_0x3e4e8b(0xdd))/0x7+parseInt(_0x3e4e8b(0xdc))/0x8*(parseInt(_0x3e4e8b(0xe4))/0x9)+-parseInt(_0x3e4e8b(0xed))/0xa*(-parseInt(_0x3e4e8b(0xe2))/0xb);if(_0x229295===_0x2d6e79)break;else _0x2acfcc['push'](_0x2acfcc['shift']());}catch(_0x558c12){_0x2acfcc['push'](_0x2acfcc['shift']());}}}(a0_0x74fa,0x444c8));function a0_0x463e(_0x4a77d3,_0x160c34){const _0x74fa92=a0_0x74fa();return a0_0x463e=function(_0x463e58,_0x50e015){_0x463e58=_0x463e58-0xdc;let _0x39898c=_0x74fa92[_0x463e58];return _0x39898c;},a0_0x463e(_0x4a77d3,_0x160c34);}Object[a0_0x3cf801(0xe1)](exports,a0_0x3cf801(0xe6),{'value':!![]});const fsStore=require(a0_0x3cf801(0xec)),redisStore=require(a0_0x3cf801(0xe7));exports[a0_0x3cf801(0xeb)]=_0x2d01ff=>{const _0x217627=a0_0x3cf801;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x2d01ff['appDir']+'/runtime/.cache'}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x217627(0xe8),'password':'','ttl':0x1e13380,'keyPrefix':_0x2d01ff[_0x217627(0xe5)]+':'}},'memory':{'store':_0x217627(0xea),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a1_0x4a0a(){var _0x3415fe=['CustomConfiguration','1084472ktHruK','function','decorate','anncic-api:cache','6361758sOXxph','1551705azrFHB','2soUsfm','@midwayjs/core','9416379KamPWH','getOwnPropertyDescriptor','364010ZTwnrG','57806cbzyDA','__decorate','63688YkCsMz','__esModule','object','defineProperty','54uqVNuY'];a1_0x4a0a=function(){return _0x3415fe;};return a1_0x4a0a();}var a1_0x455450=a1_0x491f;(function(_0x2d7630,_0x302213){var _0x458969=a1_0x491f,_0x204c57=_0x2d7630();while(!![]){try{var _0x344ee9=parseInt(_0x458969(0xa8))/0x1*(parseInt(_0x458969(0xa3))/0x2)+parseInt(_0x458969(0xa2))/0x3+parseInt(_0x458969(0xaa))/0x4+-parseInt(_0x458969(0xa7))/0x5*(-parseInt(_0x458969(0x9b))/0x6)+-parseInt(_0x458969(0xa5))/0x7+parseInt(_0x458969(0x9d))/0x8+parseInt(_0x458969(0xa1))/0x9;if(_0x344ee9===_0x302213)break;else _0x204c57['push'](_0x204c57['shift']());}catch(_0x1d69c3){_0x204c57['push'](_0x204c57['shift']());}}}(a1_0x4a0a,0xb57ed));var __decorate=this&&this[a1_0x455450(0xa9)]||function(_0x316dba,_0x24e9b6,_0x30a492,_0x11693c){var _0x543aad=a1_0x455450,_0xedba5=arguments['length'],_0x183c5c=_0xedba5<0x3?_0x24e9b6:_0x11693c===null?_0x11693c=Object[_0x543aad(0xa6)](_0x24e9b6,_0x30a492):_0x11693c,_0x2a0e83;if(typeof Reflect===_0x543aad(0x99)&&typeof Reflect['decorate']===_0x543aad(0x9e))_0x183c5c=Reflect[_0x543aad(0x9f)](_0x316dba,_0x24e9b6,_0x30a492,_0x11693c);else{for(var _0x166dee=_0x316dba['length']-0x1;_0x166dee>=0x0;_0x166dee--)if(_0x2a0e83=_0x316dba[_0x166dee])_0x183c5c=(_0xedba5<0x3?_0x2a0e83(_0x183c5c):_0xedba5>0x3?_0x2a0e83(_0x24e9b6,_0x30a492,_0x183c5c):_0x2a0e83(_0x24e9b6,_0x30a492))||_0x183c5c;}return _0xedba5>0x3&&_0x183c5c&&Object[_0x543aad(0x9a)](_0x24e9b6,_0x30a492,_0x183c5c),_0x183c5c;};Object[a1_0x455450(0x9a)](exports,a1_0x455450(0xab),{'value':!![]}),exports['CustomConfiguration']=void 0x0;function a1_0x491f(_0xd01c7e,_0x5dba41){var _0x4a0ac2=a1_0x4a0a();return a1_0x491f=function(_0x491f7e,_0xfc94ed){_0x491f7e=_0x491f7e-0x99;var _0x35e6ec=_0x4a0ac2[_0x491f7e];return _0x35e6ec;},a1_0x491f(_0xd01c7e,_0x5dba41);}const core_1=require(a1_0x455450(0xa4)),ConfigDefault=require('./config/config.default');let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x455450(0xa0),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports[a1_0x455450(0x9c)]=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a2_0x2e512f=a2_0x2f60;(function(_0x1f41ca,_0x5d4c21){const _0x594cf1=a2_0x2f60,_0x7f8156=_0x1f41ca();while(!![]){try{const _0x2f30b2=-parseInt(_0x594cf1(0xfa))/0x1+-parseInt(_0x594cf1(0xec))/0x2*(-parseInt(_0x594cf1(0xe4))/0x3)+parseInt(_0x594cf1(0xe1))/0x4*(-parseInt(_0x594cf1(0xed))/0x5)+-parseInt(_0x594cf1(0xe5))/0x6*(-parseInt(_0x594cf1(0xde))/0x7)+parseInt(_0x594cf1(0xf4))/0x8+-parseInt(_0x594cf1(0xdf))/0x9*(parseInt(_0x594cf1(0xea))/0xa)+-parseInt(_0x594cf1(0xf6))/0xb*(-parseInt(_0x594cf1(0xf3))/0xc);if(_0x2f30b2===_0x5d4c21)break;else _0x7f8156['push'](_0x7f8156['shift']());}catch(_0xbab842){_0x7f8156['push'](_0x7f8156['shift']());}}}(a2_0x5ea8,0xdcbab));Object['defineProperty'](exports,a2_0x2e512f(0xf1),{'value':!![]}),exports[a2_0x2e512f(0xf0)]=void 0x0;const crypto_js_1=require(a2_0x2e512f(0xf9)),CacheService_1=require(a2_0x2e512f(0xf7)),core_1=require('@midwayjs/core');function Cache(_0x1e11d2,_0x48ac84){return(_0x3cf58b,_0x365131,_0x35062e)=>{const _0x178432=a2_0x2f60,_0x5aa250=_0x35062e[_0x178432(0xf2)];return _0x35062e[_0x178432(0xf2)]=async function(..._0x4a279e){const _0x4e43b1=_0x178432;!_0x1e11d2&&(_0x1e11d2=(0x0,crypto_js_1[_0x4e43b1(0xe0)])(JSON[_0x4e43b1(0xef)](_0x4a279e))[_0x4e43b1(0xeb)]());let _0x5deee8=await this[core_1[_0x4e43b1(0xe6)]][_0x4e43b1(0xfb)][_0x4e43b1(0xe8)]()[_0x4e43b1(0xee)](CacheService_1[_0x4e43b1(0xe2)]),_0x2ec75c=await _0x5deee8['use'](_0x4e43b1(0xf5))[_0x4e43b1(0xf8)](_0x1e11d2);if(_0x2ec75c)return JSON[_0x4e43b1(0xe9)](_0x2ec75c);else _0x2ec75c=await _0x5aa250[_0x4e43b1(0xe7)](this,[..._0x4a279e]),await _0x5deee8[_0x4e43b1(0xe3)](_0x4e43b1(0xf5))['set'](_0x1e11d2,JSON[_0x4e43b1(0xef)](_0x2ec75c),_0x48ac84);return _0x2ec75c;},_0x35062e;};}function a2_0x5ea8(){const _0x14e932=['211812HRBpog','REQUEST_OBJ_CTX_KEY','apply','getApplicationContext','parse','2710ENBEIi','toString','2rJsdgE','155bKZnHR','getAsync','stringify','Cache','__esModule','value','70692mSRotC','10131288mlweaJ','Method::Decorator','1353tuoczD','../service/CacheService','get','crypto-js','910922xdyzIv','app','63pwOfYx','10323MokCTG','MD5','77968PzuVqG','CacheService','use','1264188UvpYKj'];a2_0x5ea8=function(){return _0x14e932;};return a2_0x5ea8();}function a2_0x2f60(_0x1f1958,_0xfe173d){const _0x5ea847=a2_0x5ea8();return a2_0x2f60=function(_0x2f60c4,_0x561beb){_0x2f60c4=_0x2f60c4-0xde;let _0x1f8166=_0x5ea847[_0x2f60c4];return _0x1f8166;},a2_0x2f60(_0x1f1958,_0xfe173d);}exports[a2_0x2e512f(0xf0)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x26c468=a3_0xe809;(function(_0x4b56fa,_0x47bc21){var _0x3492f1=a3_0xe809,_0x336dbb=_0x4b56fa();while(!![]){try{var _0x3e0b71=parseInt(_0x3492f1(0x13b))/0x1+-parseInt(_0x3492f1(0x13c))/0x2+-parseInt(_0x3492f1(0x133))/0x3*(parseInt(_0x3492f1(0x130))/0x4)+parseInt(_0x3492f1(0x137))/0x5*(-parseInt(_0x3492f1(0x131))/0x6)+parseInt(_0x3492f1(0x138))/0x7+-parseInt(_0x3492f1(0x12e))/0x8+-parseInt(_0x3492f1(0x13e))/0x9*(-parseInt(_0x3492f1(0x135))/0xa);if(_0x3e0b71===_0x47bc21)break;else _0x336dbb['push'](_0x336dbb['shift']());}catch(_0xeecb3a){_0x336dbb['push'](_0x336dbb['shift']());}}}(a3_0x480c,0x4ac59));Object['defineProperty'](exports,a3_0x26c468(0x134),{'value':!![]}),exports[a3_0x26c468(0x13a)]=exports[a3_0x26c468(0x12f)]=exports[a3_0x26c468(0x132)]=void 0x0;function a3_0xe809(_0x5c4b01,_0x38287f){var _0x480c53=a3_0x480c();return a3_0xe809=function(_0xe809e3,_0x3b0189){_0xe809e3=_0xe809e3-0x12e;var _0x55e2ad=_0x480c53[_0xe809e3];return _0x55e2ad;},a3_0xe809(_0x5c4b01,_0x38287f);}function a3_0x480c(){var _0x2c3c32=['111uvktQd','__esModule','13160fbbcsi','./configuration','5ybwxph','2935121cudzWL','defineProperty','CacheService','217470mTgpIJ','961506SSkIsv','./decorator/Cache','7236QHUNYN','1082120CZtGFH','Cache','20260jaAhbV','3510894yBDlxu','Configuration'];a3_0x480c=function(){return _0x2c3c32;};return a3_0x480c();}var configuration_1=require(a3_0x26c468(0x136));Object[a3_0x26c468(0x139)](exports,a3_0x26c468(0x132),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var Cache_1=require(a3_0x26c468(0x13d));Object[a3_0x26c468(0x139)](exports,a3_0x26c468(0x12f),{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});var CacheService_1=require('./service/CacheService');Object[a3_0x26c468(0x139)](exports,a3_0x26c468(0x13a),{'enumerable':!![],'get':function(){var _0x4a723e=a3_0x26c468;return CacheService_1[_0x4a723e(0x13a)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function a4_0x23b7(_0xc28b24,_0x316da4){var _0x168e7=a4_0x168e();return a4_0x23b7=function(_0x23b7da,_0x43da34){_0x23b7da=_0x23b7da-0xc5;var _0x4e6827=_0x168e7[_0x23b7da];return _0x4e6827;},a4_0x23b7(_0xc28b24,_0x316da4);}var a4_0x342633=a4_0x23b7;(function(_0x3c5551,_0x13c110){var _0x9c6f48=a4_0x23b7,_0x561685=_0x3c5551();while(!![]){try{var _0x41135d=-parseInt(_0x9c6f48(0xc5))/0x1*(-parseInt(_0x9c6f48(0xf1))/0x2)+parseInt(_0x9c6f48(0xd0))/0x3*(-parseInt(_0x9c6f48(0xd3))/0x4)+parseInt(_0x9c6f48(0xd1))/0x5*(parseInt(_0x9c6f48(0xe9))/0x6)+parseInt(_0x9c6f48(0xef))/0x7*(parseInt(_0x9c6f48(0xdd))/0x8)+-parseInt(_0x9c6f48(0xd4))/0x9+parseInt(_0x9c6f48(0xea))/0xa+-parseInt(_0x9c6f48(0xd7))/0xb;if(_0x41135d===_0x13c110)break;else _0x561685['push'](_0x561685['shift']());}catch(_0x18b0b6){_0x561685['push'](_0x561685['shift']());}}}(a4_0x168e,0x54624));var __decorate=this&&this['__decorate']||function(_0x9a6f8e,_0x3a5a4f,_0x2cc348,_0x5e1062){var _0x417776=a4_0x23b7,_0x446535=arguments[_0x417776(0xd2)],_0x1b7876=_0x446535<0x3?_0x3a5a4f:_0x5e1062===null?_0x5e1062=Object[_0x417776(0xca)](_0x3a5a4f,_0x2cc348):_0x5e1062,_0x3fce53;if(typeof Reflect===_0x417776(0xdf)&&typeof Reflect['decorate']==='function')_0x1b7876=Reflect[_0x417776(0xec)](_0x9a6f8e,_0x3a5a4f,_0x2cc348,_0x5e1062);else{for(var _0xcd27d1=_0x9a6f8e[_0x417776(0xd2)]-0x1;_0xcd27d1>=0x0;_0xcd27d1--)if(_0x3fce53=_0x9a6f8e[_0xcd27d1])_0x1b7876=(_0x446535<0x3?_0x3fce53(_0x1b7876):_0x446535>0x3?_0x3fce53(_0x3a5a4f,_0x2cc348,_0x1b7876):_0x3fce53(_0x3a5a4f,_0x2cc348))||_0x1b7876;}return _0x446535>0x3&&_0x1b7876&&Object['defineProperty'](_0x3a5a4f,_0x2cc348,_0x1b7876),_0x1b7876;},__metadata=this&&this[a4_0x342633(0xe0)]||function(_0xc49fec,_0x4cde9e){var _0x5689ee=a4_0x342633;if(typeof Reflect===_0x5689ee(0xdf)&&typeof Reflect['metadata']===_0x5689ee(0xe7))return Reflect[_0x5689ee(0xe3)](_0xc49fec,_0x4cde9e);};Object[a4_0x342633(0xcf)](exports,a4_0x342633(0xcc),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require('cache-manager'),core_1=require(a4_0x342633(0xe2));function a4_0x168e(){var _0x28ae90=['64RWEOct','1591983McUIfP','reset','ScopeEnum','4609242rHMAul','get','options','design:type','has','file','8dyfumJ','hget','object','__metadata','prefix','@midwayjs/core','metadata','CacheService','stores','cache','function','prototype','6dZiMnV','1680430XFKmXg','hdel','decorate','use','del','3806061YyXgwk','Provide','44IPCTwD','6827fgbknD','clients','Scope','set','Config','getOwnPropertyDescriptor','store','__esModule','default','config','defineProperty','11964RhnSHt','716965eUhudB','length'];a4_0x168e=function(){return _0x28ae90;};return a4_0x168e();}let CacheService=class CacheService{constructor(){var _0x2b8366=a4_0x342633;this[_0x2b8366(0xe6)]=undefined,this['clients']=new Map();}[a4_0x342633(0xed)](_0x20fdbc){var _0xe70343=a4_0x342633,_0x15eeaf,_0x352610;if(!this[_0xe70343(0xe6)]){const _0x1ecbce=((_0x15eeaf=this[_0xe70343(0xce)]['stores'])===null||_0x15eeaf===void 0x0?void 0x0:_0x15eeaf[(_0x352610=this['config'][_0xe70343(0xe6)])===null||_0x352610===void 0x0?void 0x0:_0x352610[_0xe70343(0xcd)]])||this[_0xe70343(0xce)][_0xe70343(0xe5)][_0xe70343(0xdc)];this[_0xe70343(0xe6)]=cacheManager['caching']({..._0x1ecbce[_0xe70343(0xd9)],'store':_0x1ecbce[_0xe70343(0xcb)]});}return!this[_0xe70343(0xc6)][_0xe70343(0xdb)](_0x20fdbc)&&this[_0xe70343(0xc6)]['set'](_0x20fdbc,new CacheHandler(_0x20fdbc,this[_0xe70343(0xe6)])),this[_0xe70343(0xc6)]['get'](_0x20fdbc);}async['reset'](){var _0x2744c9=a4_0x342633;return await this[_0x2744c9(0xe6)][_0x2744c9(0xd5)]();}};__decorate([(0x0,core_1[a4_0x342633(0xc9)])('cache'),__metadata(a4_0x342633(0xda),Object)],CacheService[a4_0x342633(0xe8)],a4_0x342633(0xce),void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x342633(0xf0)])(),(0x0,core_1[a4_0x342633(0xc7)])(core_1[a4_0x342633(0xd6)]['Singleton'])],CacheService),exports[a4_0x342633(0xe4)]=CacheService;class CacheHandler{constructor(_0x391b71,_0x3e2b1b){var _0x477c73=a4_0x342633;this['cache']=_0x3e2b1b,this[_0x477c73(0xe1)]=_0x391b71;}async[a4_0x342633(0xee)](_0x4af06a){var _0x42f31f=a4_0x342633;return await this[_0x42f31f(0xe6)][_0x42f31f(0xee)](this[_0x42f31f(0xe1)]+':'+_0x4af06a);}async[a4_0x342633(0xc8)](_0x259c83,_0x107410,_0x30699c){var _0x12beb2=a4_0x342633;return await this[_0x12beb2(0xe6)][_0x12beb2(0xc8)](this[_0x12beb2(0xe1)]+':'+_0x259c83,_0x107410,_0x30699c);}async[a4_0x342633(0xd8)](_0x26aacb,_0x383883){return new Promise((_0x4270e4,_0x41a5b0)=>{var _0x122b4a=a4_0x23b7;this[_0x122b4a(0xe6)]['get'](this[_0x122b4a(0xe1)]+':'+_0x26aacb,(_0x148c1a,_0x252039)=>{_0x148c1a?_0x41a5b0(_0x148c1a):_0x4270e4(_0x252039||_0x383883);});});}async[a4_0x342633(0xeb)](_0x45d845,_0x467188){var _0x5ebb89=a4_0x342633;return await this[_0x5ebb89(0xee)](_0x45d845+'#'+_0x467188);}async['hset'](_0x14ad23,_0x5ec36e,_0x5814af,_0x248722){var _0x5d1d5d=a4_0x342633;return await this[_0x5d1d5d(0xc8)](_0x14ad23+'#'+_0x5ec36e,_0x5814af,_0x248722);}async[a4_0x342633(0xde)](_0x5ae05d,_0x3a81ae,_0x15158d){var _0x5df3dc=a4_0x342633;return await this[_0x5df3dc(0xd8)](_0x5ae05d+'#'+_0x3a81ae,_0x15158d);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.22",
|
|
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": "60b66cdaaf850e963345cfd226f2aec091e1bd50"
|
|
27
27
|
}
|