@anncic-api/cache 1.4.15 → 1.4.16
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_0x726ac5=a0_0x55f9;(function(_0xec8b8c,_0x37a2bd){const _0x305382=a0_0x55f9,_0x11ecd3=_0xec8b8c();while(!![]){try{const _0x255233=parseInt(_0x305382(0x8f))/0x1*(parseInt(_0x305382(0x97))/0x2)+parseInt(_0x305382(0x96))/0x3*(parseInt(_0x305382(0x93))/0x4)+parseInt(_0x305382(0x9d))/0x5+parseInt(_0x305382(0x9e))/0x6+parseInt(_0x305382(0x9c))/0x7*(parseInt(_0x305382(0x91))/0x8)+parseInt(_0x305382(0x90))/0x9*(-parseInt(_0x305382(0xa1))/0xa)+parseInt(_0x305382(0x8e))/0xb*(-parseInt(_0x305382(0xa0))/0xc);if(_0x255233===_0x37a2bd)break;else _0x11ecd3['push'](_0x11ecd3['shift']());}catch(_0x522556){_0x11ecd3['push'](_0x11ecd3['shift']());}}}(a0_0x5749,0x1c77d));function a0_0x55f9(_0x3c27c7,_0xb77757){const _0x574911=a0_0x5749();return a0_0x55f9=function(_0x55f9e4,_0x37a4f3){_0x55f9e4=_0x55f9e4-0x8d;let _0xdeef7f=_0x574911[_0x55f9e4];return _0xdeef7f;},a0_0x55f9(_0x3c27c7,_0xb77757);}function a0_0x5749(){const _0x246e2e=['default','551436BwhrNv','100550SuCHty','name','appDir','66NpIdJr','4NVznGj','63SkIaZu','24VPuegu','cache-manager-fs-hash','8pvdHTc','/runtime/.cache','defineProperty','20388fVKuxK','18022AaBCuW','cache-manager-ioredis','127.0.0.1','__esModule','memory','416731uYceVu','695500FaDIBh','572238nbfuhf'];a0_0x5749=function(){return _0x246e2e;};return a0_0x5749();}Object[a0_0x726ac5(0x95)](exports,a0_0x726ac5(0x9a),{'value':!![]});const fsStore=require(a0_0x726ac5(0x92)),redisStore=require(a0_0x726ac5(0x98));exports[a0_0x726ac5(0x9f)]=_0x1e1d82=>{const _0x4f2203=a0_0x726ac5;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x1e1d82[_0x4f2203(0x8d)]+_0x4f2203(0x94)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x4f2203(0x99),'password':'','ttl':0x1e13380,'keyPrefix':_0x1e1d82[_0x4f2203(0xa2)]+':'}},'memory':{'store':_0x4f2203(0x9b),'options':{'max':0x64,'ttl':0x1e13380}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x8836c=a1_0x3ec0;(function(_0x29452e,_0xd4420e){var _0x3cb8cd=a1_0x3ec0,_0x2d8451=_0x29452e();while(!![]){try{var _0x59d9a6=-parseInt(_0x3cb8cd(0x101))/0x1+-parseInt(_0x3cb8cd(0xfc))/0x2*(-parseInt(_0x3cb8cd(0xf6))/0x3)+parseInt(_0x3cb8cd(0xf7))/0x4*(parseInt(_0x3cb8cd(0x103))/0x5)+parseInt(_0x3cb8cd(0xfd))/0x6+parseInt(_0x3cb8cd(0x104))/0x7*(parseInt(_0x3cb8cd(0xfe))/0x8)+-parseInt(_0x3cb8cd(0xfa))/0x9*(parseInt(_0x3cb8cd(0xfb))/0xa)+parseInt(_0x3cb8cd(0x106))/0xb*(-parseInt(_0x3cb8cd(0xff))/0xc);if(_0x59d9a6===_0xd4420e)break;else _0x2d8451['push'](_0x2d8451['shift']());}catch(_0x1c1abd){_0x2d8451['push'](_0x2d8451['shift']());}}}(a1_0x25ea,0x6349c));var __decorate=this&&this[a1_0x8836c(0xf5)]||function(_0x1beaf0,_0x57dd40,_0x323008,_0x1dc40d){var _0x15fb82=a1_0x8836c,_0xedca59=arguments['length'],_0x7ffdb5=_0xedca59<0x3?_0x57dd40:_0x1dc40d===null?_0x1dc40d=Object[_0x15fb82(0x102)](_0x57dd40,_0x323008):_0x1dc40d,_0x5df10f;if(typeof Reflect===_0x15fb82(0xf4)&&typeof Reflect[_0x15fb82(0x100)]===_0x15fb82(0xf9))_0x7ffdb5=Reflect['decorate'](_0x1beaf0,_0x57dd40,_0x323008,_0x1dc40d);else{for(var _0x3e6a0a=_0x1beaf0[_0x15fb82(0x109)]-0x1;_0x3e6a0a>=0x0;_0x3e6a0a--)if(_0x5df10f=_0x1beaf0[_0x3e6a0a])_0x7ffdb5=(_0xedca59<0x3?_0x5df10f(_0x7ffdb5):_0xedca59>0x3?_0x5df10f(_0x57dd40,_0x323008,_0x7ffdb5):_0x5df10f(_0x57dd40,_0x323008))||_0x7ffdb5;}return _0xedca59>0x3&&_0x7ffdb5&&Object[_0x15fb82(0x107)](_0x57dd40,_0x323008,_0x7ffdb5),_0x7ffdb5;};Object[a1_0x8836c(0x107)](exports,a1_0x8836c(0x105),{'value':!![]}),exports[a1_0x8836c(0xf8)]=void 0x0;function a1_0x3ec0(_0xe69858,_0x5ef27e){var _0x25ea59=a1_0x25ea();return a1_0x3ec0=function(_0x3ec084,_0x3d3592){_0x3ec084=_0x3ec084-0xf4;var _0x5ae63b=_0x25ea59[_0x3ec084];return _0x5ae63b;},a1_0x3ec0(_0xe69858,_0x5ef27e);}function a1_0x25ea(){var _0x2f2c9b=['890YinDhz','969778iHZmky','76230OUXAyi','3578280SPUmDH','10320fKUihv','decorate','334842lgPOwI','getOwnPropertyDescriptor','70plFYFj','7DWsMEy','__esModule','3938wpFivo','defineProperty','anncic-api:cache','length','./config/config.default','object','__decorate','3HFaSxa','124688rPAJKJ','CustomConfiguration','function','33561dHrEYO'];a1_0x25ea=function(){return _0x2f2c9b;};return a1_0x25ea();}const core_1=require('@midwayjs/core'),ConfigDefault=require(a1_0x8836c(0x10a));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1['Configuration'])({'conflictCheck':![],'namespace':a1_0x8836c(0x108),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x17a9f6=a2_0x3eb1;(function(_0x85a1bf,_0x8fb462){const _0x1d9960=a2_0x3eb1,_0x3b1d36=_0x85a1bf();while(!![]){try{const _0x26c08b=-parseInt(_0x1d9960(0x8d))/0x1*(-parseInt(_0x1d9960(0x83))/0x2)+parseInt(_0x1d9960(0x90))/0x3+-parseInt(_0x1d9960(0x85))/0x4+-parseInt(_0x1d9960(0x88))/0x5*(-parseInt(_0x1d9960(0x8f))/0x6)+-parseInt(_0x1d9960(0x81))/0x7+-parseInt(_0x1d9960(0x8b))/0x8*(parseInt(_0x1d9960(0x96))/0x9)+parseInt(_0x1d9960(0x8c))/0xa;if(_0x26c08b===_0x8fb462)break;else _0x3b1d36['push'](_0x3b1d36['shift']());}catch(_0x3f680a){_0x3b1d36['push'](_0x3b1d36['shift']());}}}(a2_0x2f4b,0xe2518));Object[a2_0x17a9f6(0x92)](exports,a2_0x17a9f6(0x8a),{'value':!![]}),exports['Cache']=void 0x0;const crypto_js_1=require(a2_0x17a9f6(0x86)),CacheService_1=require(a2_0x17a9f6(0x95)),core_1=require(a2_0x17a9f6(0x91));function Cache(_0x291952,_0x5a3d0d){return(_0x2ac1dd,_0x593198,_0x207c49)=>{const _0x5d4256=a2_0x3eb1,_0x3df313=_0x207c49[_0x5d4256(0x8e)];return _0x207c49[_0x5d4256(0x8e)]=async function(..._0x3dcd53){const _0x1ed261=_0x5d4256;!_0x291952&&(_0x291952=(0x0,crypto_js_1['MD5'])(JSON[_0x1ed261(0x87)](_0x3dcd53))[_0x1ed261(0x98)]());let _0x81fa43=await this[core_1['REQUEST_OBJ_CTX_KEY']]['app'][_0x1ed261(0x94)]()[_0x1ed261(0x80)](CacheService_1['CacheService']),_0x28e7f8=await _0x81fa43[_0x1ed261(0x93)](_0x1ed261(0x89))[_0x1ed261(0x97)](_0x291952);if(_0x28e7f8)return JSON[_0x1ed261(0x82)](_0x28e7f8);else _0x28e7f8=await _0x3df313['apply'](this,[..._0x3dcd53]),await _0x81fa43[_0x1ed261(0x93)](_0x1ed261(0x89))[_0x1ed261(0x84)](_0x291952,JSON[_0x1ed261(0x87)](_0x28e7f8),_0x5a3d0d);return _0x28e7f8;},_0x207c49;};}function a2_0x3eb1(_0x4e34d7,_0x562d8b){const _0x2f4bf4=a2_0x2f4b();return a2_0x3eb1=function(_0x3eb1ed,_0x7c8b86){_0x3eb1ed=_0x3eb1ed-0x80;let _0x3eaa21=_0x2f4bf4[_0x3eb1ed];return _0x3eaa21;},a2_0x3eb1(_0x4e34d7,_0x562d8b);}function a2_0x2f4b(){const _0x57cf45=['use','getApplicationContext','../service/CacheService','90sgFZVu','get','toString','getAsync','10603460RCiiqH','parse','3436126DyJyrF','set','1186236oTSeqH','crypto-js','stringify','30KBlSob','Method::Decorator','__esModule','1416208cjrwsu','13476710ewdLio','1jnsYsd','value','954336YCBpLV','1465587pApDlP','@midwayjs/core','defineProperty'];a2_0x2f4b=function(){return _0x57cf45;};return a2_0x2f4b();}exports['Cache']=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x31f680=a3_0x5758;(function(_0x30da3d,_0x271e3f){var _0x4bd1cb=a3_0x5758,_0x3360aa=_0x30da3d();while(!![]){try{var _0x5b352c=parseInt(_0x4bd1cb(0x1ed))/0x1*(-parseInt(_0x4bd1cb(0x1df))/0x2)+parseInt(_0x4bd1cb(0x1de))/0x3*(-parseInt(_0x4bd1cb(0x1e4))/0x4)+-parseInt(_0x4bd1cb(0x1e0))/0x5+-parseInt(_0x4bd1cb(0x1e7))/0x6*(parseInt(_0x4bd1cb(0x1e6))/0x7)+parseInt(_0x4bd1cb(0x1ee))/0x8+parseInt(_0x4bd1cb(0x1e3))/0x9+parseInt(_0x4bd1cb(0x1ea))/0xa*(parseInt(_0x4bd1cb(0x1e2))/0xb);if(_0x5b352c===_0x271e3f)break;else _0x3360aa['push'](_0x3360aa['shift']());}catch(_0x4b279b){_0x3360aa['push'](_0x3360aa['shift']());}}}(a3_0x4aaa,0x33289));Object[a3_0x31f680(0x1e9)](exports,a3_0x31f680(0x1f0),{'value':!![]}),exports[a3_0x31f680(0x1eb)]=exports[a3_0x31f680(0x1e1)]=exports[a3_0x31f680(0x1ec)]=void 0x0;var configuration_1=require(a3_0x31f680(0x1e5));Object[a3_0x31f680(0x1e9)](exports,a3_0x31f680(0x1ec),{'enumerable':!![],'get':function(){var _0x54114a=a3_0x31f680;return configuration_1[_0x54114a(0x1ef)];}});var Cache_1=require(a3_0x31f680(0x1f1));Object['defineProperty'](exports,'Cache',{'enumerable':!![],'get':function(){return Cache_1['Cache'];}});function a3_0x5758(_0x305fae,_0x4794ae){var _0x4aaa70=a3_0x4aaa();return a3_0x5758=function(_0x5758fa,_0x5212c2){_0x5758fa=_0x5758fa-0x1de;var _0xc278b8=_0x4aaa70[_0x5758fa];return _0xc278b8;},a3_0x5758(_0x305fae,_0x4794ae);}var CacheService_1=require(a3_0x31f680(0x1e8));Object[a3_0x31f680(0x1e9)](exports,a3_0x31f680(0x1eb),{'enumerable':!![],'get':function(){var _0x24e6e8=a3_0x31f680;return CacheService_1[_0x24e6e8(0x1eb)];}});function a3_0x4aaa(){var _0x2328dd=['49jhpXzO','232230JLXbUj','./service/CacheService','defineProperty','11330qhzvpM','CacheService','Configuration','11ZXPGEB','1196088CPsmGM','CustomConfiguration','__esModule','./decorator/Cache','18PCQCZk','46810MlFYTt','1571100DFivHW','Cache','6820DThkkr','3299778wdcjzr','110972BOQyxk','./configuration'];a3_0x4aaa=function(){return _0x2328dd;};return a3_0x4aaa();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a4_0x16722e=a4_0x56c4;(function(_0x353ecc,_0x2cce56){var _0x523f94=a4_0x56c4,_0x3523c8=_0x353ecc();while(!![]){try{var _0x39617c=parseInt(_0x523f94(0xcd))/0x1+parseInt(_0x523f94(0xe4))/0x2+parseInt(_0x523f94(0xe0))/0x3*(-parseInt(_0x523f94(0xdb))/0x4)+-parseInt(_0x523f94(0xd8))/0x5+parseInt(_0x523f94(0xd4))/0x6+parseInt(_0x523f94(0xe6))/0x7*(-parseInt(_0x523f94(0xde))/0x8)+-parseInt(_0x523f94(0xcb))/0x9*(-parseInt(_0x523f94(0xd7))/0xa);if(_0x39617c===_0x2cce56)break;else _0x3523c8['push'](_0x3523c8['shift']());}catch(_0x5c3bc7){_0x3523c8['push'](_0x3523c8['shift']());}}}(a4_0x1a4d,0x98050));function a4_0x1a4d(){var _0x523ebf=['CacheService','__decorate','6590bGHTVE','1098710KRJmnU','hset','getOwnPropertyDescriptor','8IbMcCM','prototype','get','2632cwlyzC','hdel','1264863hiCfLQ','cache','prefix','Scope','121572lcBJCM','defineProperty','14343SddaGz','object','@midwayjs/core','set','__metadata','Singleton','__esModule','store','design:type','reset','Config','stores','ScopeEnum','options','decorate','19539ZsVsBl','clients','406824bHCjIe','config','function','del','length','metadata','has','2768868TsqECO'];a4_0x1a4d=function(){return _0x523ebf;};return a4_0x1a4d();}var __decorate=this&&this[a4_0x16722e(0xd6)]||function(_0x4804b7,_0x136e72,_0x19d6ee,_0x15c9b3){var _0x46821f=a4_0x16722e,_0xa060db=arguments['length'],_0xa4c484=_0xa060db<0x3?_0x136e72:_0x15c9b3===null?_0x15c9b3=Object[_0x46821f(0xda)](_0x136e72,_0x19d6ee):_0x15c9b3,_0x519f13;if(typeof Reflect===_0x46821f(0xe7)&&typeof Reflect[_0x46821f(0xca)]===_0x46821f(0xcf))_0xa4c484=Reflect[_0x46821f(0xca)](_0x4804b7,_0x136e72,_0x19d6ee,_0x15c9b3);else{for(var _0x26fc0c=_0x4804b7[_0x46821f(0xd1)]-0x1;_0x26fc0c>=0x0;_0x26fc0c--)if(_0x519f13=_0x4804b7[_0x26fc0c])_0xa4c484=(_0xa060db<0x3?_0x519f13(_0xa4c484):_0xa060db>0x3?_0x519f13(_0x136e72,_0x19d6ee,_0xa4c484):_0x519f13(_0x136e72,_0x19d6ee))||_0xa4c484;}return _0xa060db>0x3&&_0xa4c484&&Object[_0x46821f(0xe5)](_0x136e72,_0x19d6ee,_0xa4c484),_0xa4c484;},__metadata=this&&this[a4_0x16722e(0xea)]||function(_0x5bd575,_0x31d4b5){var _0x39d374=a4_0x16722e;if(typeof Reflect===_0x39d374(0xe7)&&typeof Reflect['metadata']==='function')return Reflect[_0x39d374(0xd2)](_0x5bd575,_0x31d4b5);};function a4_0x56c4(_0x95610,_0x1e59b4){var _0x1a4d0d=a4_0x1a4d();return a4_0x56c4=function(_0x56c48e,_0x348430){_0x56c48e=_0x56c48e-0xc7;var _0x54bc1e=_0x1a4d0d[_0x56c48e];return _0x54bc1e;},a4_0x56c4(_0x95610,_0x1e59b4);}Object['defineProperty'](exports,a4_0x16722e(0xec),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require('cache-manager'),core_1=require(a4_0x16722e(0xe8));let CacheService=class CacheService{constructor(){var _0x2bf4a6=a4_0x16722e;this[_0x2bf4a6(0xe1)]=undefined,this[_0x2bf4a6(0xcc)]=new Map();}['use'](_0x2c072e){var _0x2c5371=a4_0x16722e,_0x285123,_0x551022;if(!this[_0x2c5371(0xe1)]){const _0x3b8ca1=((_0x285123=this['config'][_0x2c5371(0xc7)])===null||_0x285123===void 0x0?void 0x0:_0x285123[(_0x551022=this[_0x2c5371(0xce)]['cache'])===null||_0x551022===void 0x0?void 0x0:_0x551022['default']])||this[_0x2c5371(0xce)][_0x2c5371(0xc7)]['file'];this[_0x2c5371(0xe1)]=cacheManager['caching']({..._0x3b8ca1[_0x2c5371(0xc9)],'store':_0x3b8ca1[_0x2c5371(0xed)]});}return!this[_0x2c5371(0xcc)][_0x2c5371(0xd3)](_0x2c072e)&&this['clients'][_0x2c5371(0xe9)](_0x2c072e,new CacheHandler(_0x2c072e,this[_0x2c5371(0xe1)])),this[_0x2c5371(0xcc)][_0x2c5371(0xdd)](_0x2c072e);}async[a4_0x16722e(0xef)](){var _0x2c60dd=a4_0x16722e;return await this[_0x2c60dd(0xe1)][_0x2c60dd(0xef)]();}};__decorate([(0x0,core_1[a4_0x16722e(0xf0)])(a4_0x16722e(0xe1)),__metadata(a4_0x16722e(0xee),Object)],CacheService[a4_0x16722e(0xdc)],a4_0x16722e(0xce),void 0x0),CacheService=__decorate([(0x0,core_1['Provide'])(),(0x0,core_1[a4_0x16722e(0xe3)])(core_1[a4_0x16722e(0xc8)][a4_0x16722e(0xeb)])],CacheService),exports[a4_0x16722e(0xd5)]=CacheService;class CacheHandler{constructor(_0x1c4668,_0x53252d){var _0x5d29a4=a4_0x16722e;this[_0x5d29a4(0xe1)]=_0x53252d,this['prefix']=_0x1c4668;}async[a4_0x16722e(0xd0)](_0x464339){var _0x28a348=a4_0x16722e;return await this['cache'][_0x28a348(0xd0)](this[_0x28a348(0xe2)]+':'+_0x464339);}async[a4_0x16722e(0xe9)](_0x1668b2,_0x280a53,_0x3b19ae){var _0x74e43f=a4_0x16722e;return await this[_0x74e43f(0xe1)]['set'](this[_0x74e43f(0xe2)]+':'+_0x1668b2,_0x280a53,_0x3b19ae);}async[a4_0x16722e(0xdd)](_0x35c10f,_0x33c2ff){return new Promise((_0x131a68,_0x5362ee)=>{var _0x5494c3=a4_0x56c4;this['cache'][_0x5494c3(0xdd)](this[_0x5494c3(0xe2)]+':'+_0x35c10f,(_0x1a9ebb,_0x3175bc)=>{_0x1a9ebb?_0x5362ee(_0x1a9ebb):_0x131a68(_0x3175bc||_0x33c2ff);});});}async[a4_0x16722e(0xdf)](_0x243a9d,_0x2886e6){var _0x5507ca=a4_0x16722e;return await this[_0x5507ca(0xd0)](_0x243a9d+'#'+_0x2886e6);}async[a4_0x16722e(0xd9)](_0x212aa2,_0x4e1dd1,_0xda0bee,_0x5d742c){var _0x1eae0c=a4_0x16722e;return await this[_0x1eae0c(0xe9)](_0x212aa2+'#'+_0x4e1dd1,_0xda0bee,_0x5d742c);}async['hget'](_0x247be0,_0x941377,_0x178bfb){var _0x113f95=a4_0x16722e;return await this[_0x113f95(0xdd)](_0x247be0+'#'+_0x941377,_0x178bfb);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.16",
|
|
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": "f710648b37477e0e864baa0dd8f83ad1bf337bb8"
|
|
27
27
|
}
|