@anncic-api/cache 1.3.12 → 1.3.15
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';const a0_0x5dab39=a0_0x4932;(function(_0x236dbd,_0x22ba46){const _0x13c4cc=a0_0x4932,_0x311f34=_0x236dbd();while(!![]){try{const _0xec9dd0=-parseInt(_0x13c4cc(0x83))/0x1*(-parseInt(_0x13c4cc(0x77))/0x2)+parseInt(_0x13c4cc(0x84))/0x3*(parseInt(_0x13c4cc(0x79))/0x4)+-parseInt(_0x13c4cc(0x76))/0x5*(-parseInt(_0x13c4cc(0x7b))/0x6)+parseInt(_0x13c4cc(0x73))/0x7+parseInt(_0x13c4cc(0x71))/0x8*(-parseInt(_0x13c4cc(0x85))/0x9)+-parseInt(_0x13c4cc(0x7c))/0xa*(-parseInt(_0x13c4cc(0x72))/0xb)+parseInt(_0x13c4cc(0x7f))/0xc*(-parseInt(_0x13c4cc(0x75))/0xd);if(_0xec9dd0===_0x22ba46)break;else _0x311f34['push'](_0x311f34['shift']());}catch(_0x27c2f3){_0x311f34['push'](_0x311f34['shift']());}}}(a0_0x2ede,0xa2be8));function a0_0x4932(_0x18106d,_0x4280cb){const _0x2ede50=a0_0x2ede();return a0_0x4932=function(_0x4932e9,_0x410aee){_0x4932e9=_0x4932e9-0x71;let _0x402724=_0x2ede50[_0x4932e9];return _0x402724;},a0_0x4932(_0x18106d,_0x4280cb);}Object[a0_0x5dab39(0x7a)](exports,a0_0x5dab39(0x74),{'value':!![]});const fsStore=require(a0_0x5dab39(0x7d)),redisStore=require(a0_0x5dab39(0x7e));exports['default']=_0x26f419=>{const _0x5049e9=a0_0x5dab39;return{'cache':{'default':'file','stores':{'file':{'store':fsStore,'options':{'ttl':0x1e13380,'subdirs':![],'path':_0x26f419[_0x5049e9(0x82)]+_0x5049e9(0x81)}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0x5049e9(0x80),'password':'','ttl':0x1e13380,'keyPrefix':_0x26f419[_0x5049e9(0x78)]+':'}},'memory':{'store':'memory','options':{'max':0x64,'ttl':0x1e13380}}}}};};function a0_0x2ede(){const _0x44399b=['appDir','39629ZCodwe','9whTZbH','46818ZoIZFr','568OoWQtc','11mgfMWq','5315667MkCOrs','__esModule','65BmaWAS','4445dvDUUq','34DQzyeI','name','1270356bDsuMK','defineProperty','978moNYrd','9086190DuVixg','cache-manager-fs-hash','cache-manager-ioredis','5768220wouuiQ','127.0.0.1','/runtime/.cache'];a0_0x2ede=function(){return _0x44399b;};return a0_0x2ede();}
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x2ebf6a=a1_0x4859;function a1_0x4859(_0x151720,_0x273a25){var _0x36c2eb=a1_0x36c2();return a1_0x4859=function(_0x485986,_0x402d64){_0x485986=_0x485986-0x78;var _0x2b6947=_0x36c2eb[_0x485986];return _0x2b6947;},a1_0x4859(_0x151720,_0x273a25);}(function(_0x4947f5,_0x410fb1){var _0x338da3=a1_0x4859,_0x46d062=_0x4947f5();while(!![]){try{var _0x190001=parseInt(_0x338da3(0x81))/0x1+parseInt(_0x338da3(0x83))/0x2*(parseInt(_0x338da3(0x84))/0x3)+-parseInt(_0x338da3(0x89))/0x4+parseInt(_0x338da3(0x78))/0x5*(parseInt(_0x338da3(0x8c))/0x6)+-parseInt(_0x338da3(0x8b))/0x7+-parseInt(_0x338da3(0x7a))/0x8*(-parseInt(_0x338da3(0x7c))/0x9)+parseInt(_0x338da3(0x79))/0xa*(-parseInt(_0x338da3(0x82))/0xb);if(_0x190001===_0x410fb1)break;else _0x46d062['push'](_0x46d062['shift']());}catch(_0x2ccdcf){_0x46d062['push'](_0x46d062['shift']());}}}(a1_0x36c2,0x33c54));function a1_0x36c2(){var _0x1ccc82=['defineProperty','@midwayjs/core','418075uAAqTG','11aPrjml','8186sfkXyL','276nXaxmv','anncic-api:cache','__decorate','CustomConfiguration','Configuration','1059272jsLnqR','length','2764468lcmNfU','134250NxESWG','40nZxOyu','4057270lHSGEn','2431120USFRVr','decorate','9MHICvV','object','./config/config.default'];a1_0x36c2=function(){return _0x1ccc82;};return a1_0x36c2();}var __decorate=this&&this[a1_0x2ebf6a(0x86)]||function(_0x5ee139,_0x48c128,_0x22b322,_0x4e9c2d){var _0x4ca6ba=a1_0x2ebf6a,_0x4585b2=arguments[_0x4ca6ba(0x8a)],_0x1e4ba0=_0x4585b2<0x3?_0x48c128:_0x4e9c2d===null?_0x4e9c2d=Object['getOwnPropertyDescriptor'](_0x48c128,_0x22b322):_0x4e9c2d,_0x18fab7;if(typeof Reflect===_0x4ca6ba(0x7d)&&typeof Reflect[_0x4ca6ba(0x7b)]==='function')_0x1e4ba0=Reflect[_0x4ca6ba(0x7b)](_0x5ee139,_0x48c128,_0x22b322,_0x4e9c2d);else{for(var _0x2a748b=_0x5ee139[_0x4ca6ba(0x8a)]-0x1;_0x2a748b>=0x0;_0x2a748b--)if(_0x18fab7=_0x5ee139[_0x2a748b])_0x1e4ba0=(_0x4585b2<0x3?_0x18fab7(_0x1e4ba0):_0x4585b2>0x3?_0x18fab7(_0x48c128,_0x22b322,_0x1e4ba0):_0x18fab7(_0x48c128,_0x22b322))||_0x1e4ba0;}return _0x4585b2>0x3&&_0x1e4ba0&&Object[_0x4ca6ba(0x7f)](_0x48c128,_0x22b322,_0x1e4ba0),_0x1e4ba0;};Object[a1_0x2ebf6a(0x7f)](exports,'__esModule',{'value':!![]}),exports[a1_0x2ebf6a(0x87)]=void 0x0;const core_1=require(a1_0x2ebf6a(0x80)),ConfigDefault=require(a1_0x2ebf6a(0x7e));let CustomConfiguration=class CustomConfiguration{};CustomConfiguration=__decorate([(0x0,core_1[a1_0x2ebf6a(0x88)])({'conflictCheck':![],'namespace':a1_0x2ebf6a(0x85),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration),exports['CustomConfiguration']=CustomConfiguration;
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a2_0x194d25=a2_0x5e36;(function(_0x213be6,_0x207d8a){const _0x1f80a0=a2_0x5e36,_0x2643b2=_0x213be6();while(!![]){try{const _0x543929=-parseInt(_0x1f80a0(0xf5))/0x1+parseInt(_0x1f80a0(0xe1))/0x2+parseInt(_0x1f80a0(0xe3))/0x3+-parseInt(_0x1f80a0(0xea))/0x4*(-parseInt(_0x1f80a0(0xe2))/0x5)+-parseInt(_0x1f80a0(0xf2))/0x6*(-parseInt(_0x1f80a0(0xdc))/0x7)+parseInt(_0x1f80a0(0xf1))/0x8*(-parseInt(_0x1f80a0(0xec))/0x9)+parseInt(_0x1f80a0(0xeb))/0xa*(-parseInt(_0x1f80a0(0xf4))/0xb);if(_0x543929===_0x207d8a)break;else _0x2643b2['push'](_0x2643b2['shift']());}catch(_0x43e9b7){_0x2643b2['push'](_0x2643b2['shift']());}}}(a2_0x3153,0xe64fa));Object[a2_0x194d25(0xf0)](exports,'__esModule',{'value':!![]}),exports[a2_0x194d25(0xe5)]=void 0x0;function a2_0x3153(){const _0x3bdce1=['814441WIWerR','203sowAnF','REQUEST_OBJ_CTX_KEY','toString','getApplicationContext','app','2121736bogcXL','545AJgCPn','4168842YRSfaC','set','Cache','value','use','stringify','Method::Decorator','11612qQRjVh','301380eJJquF','963sicbgT','parse','CacheService','getAsync','defineProperty','58352MVbbwf','357996kKacEF','get','715VlHmpX'];a2_0x3153=function(){return _0x3bdce1;};return a2_0x3153();}const crypto_js_1=require('crypto-js'),CacheService_1=require('../service/CacheService'),core_1=require('@midwayjs/core');function a2_0x5e36(_0x6d8f35,_0x6eca39){const _0x3153e2=a2_0x3153();return a2_0x5e36=function(_0x5e3662,_0x47f4ca){_0x5e3662=_0x5e3662-0xdc;let _0x200853=_0x3153e2[_0x5e3662];return _0x200853;},a2_0x5e36(_0x6d8f35,_0x6eca39);}function Cache(_0x22aca9,_0x585471){return(_0x2cd43f,_0x4987d1,_0x51131e)=>{const _0x5bcfd4=a2_0x5e36,_0x45bbb9=_0x51131e[_0x5bcfd4(0xe6)];return _0x51131e[_0x5bcfd4(0xe6)]=async function(..._0x29b84c){const _0x1d84a7=_0x5bcfd4;!_0x22aca9&&(_0x22aca9=(0x0,crypto_js_1['MD5'])(JSON['stringify'](_0x29b84c))[_0x1d84a7(0xde)]());let _0x12fbf2=await this[core_1[_0x1d84a7(0xdd)]][_0x1d84a7(0xe0)][_0x1d84a7(0xdf)]()[_0x1d84a7(0xef)](CacheService_1[_0x1d84a7(0xee)]),_0x29b2d0=await _0x12fbf2[_0x1d84a7(0xe7)](_0x1d84a7(0xe9))[_0x1d84a7(0xf3)](_0x22aca9);if(_0x29b2d0)return JSON[_0x1d84a7(0xed)](_0x29b2d0);else _0x29b2d0=await _0x45bbb9['apply'](this,[..._0x29b84c]),await _0x12fbf2[_0x1d84a7(0xe7)](_0x1d84a7(0xe9))[_0x1d84a7(0xe4)](_0x22aca9,JSON[_0x1d84a7(0xe8)](_0x29b2d0),_0x585471);return _0x29b2d0;},_0x51131e;};}exports[a2_0x194d25(0xe5)]=Cache;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a3_0x2a4e1b=a3_0xf938;(function(_0x1c61a1,_0x360a50){var _0x57ae3b=a3_0xf938,_0x239bf2=_0x1c61a1();while(!![]){try{var _0x1bac41=-parseInt(_0x57ae3b(0x1ab))/0x1+-parseInt(_0x57ae3b(0x1a2))/0x2*(parseInt(_0x57ae3b(0x19e))/0x3)+-parseInt(_0x57ae3b(0x1aa))/0x4+-parseInt(_0x57ae3b(0x1a7))/0x5+-parseInt(_0x57ae3b(0x1a1))/0x6+-parseInt(_0x57ae3b(0x1a9))/0x7+-parseInt(_0x57ae3b(0x1a4))/0x8*(-parseInt(_0x57ae3b(0x1ac))/0x9);if(_0x1bac41===_0x360a50)break;else _0x239bf2['push'](_0x239bf2['shift']());}catch(_0x4efcc){_0x239bf2['push'](_0x239bf2['shift']());}}}(a3_0x1c5e,0x87ceb));Object[a3_0x2a4e1b(0x1a0)](exports,a3_0x2a4e1b(0x19c),{'value':!![]}),exports[a3_0x2a4e1b(0x19f)]=exports[a3_0x2a4e1b(0x1a5)]=exports[a3_0x2a4e1b(0x1a3)]=void 0x0;function a3_0xf938(_0x5a3ae0,_0x4488bb){var _0x1c5eee=a3_0x1c5e();return a3_0xf938=function(_0xf93861,_0x42ee3b){_0xf93861=_0xf93861-0x19c;var _0x58022d=_0x1c5eee[_0xf93861];return _0x58022d;},a3_0xf938(_0x5a3ae0,_0x4488bb);}var configuration_1=require(a3_0x2a4e1b(0x1a8));function a3_0x1c5e(){var _0x56fe80=['6659952UTwKey','1440012nHbwaM','Configuration','736952krIEGj','Cache','./service/CacheService','4559380xFzTXc','./configuration','6162380fVpySW','803224tEuRVS','503020EAgoRT','477GnzpOj','CustomConfiguration','__esModule','./decorator/Cache','3qxZwUE','CacheService','defineProperty'];a3_0x1c5e=function(){return _0x56fe80;};return a3_0x1c5e();}Object[a3_0x2a4e1b(0x1a0)](exports,'Configuration',{'enumerable':!![],'get':function(){var _0x1018be=a3_0x2a4e1b;return configuration_1[_0x1018be(0x1ad)];}});var Cache_1=require(a3_0x2a4e1b(0x19d));Object[a3_0x2a4e1b(0x1a0)](exports,'Cache',{'enumerable':!![],'get':function(){var _0x5e1ee0=a3_0x2a4e1b;return Cache_1[_0x5e1ee0(0x1a5)];}});var CacheService_1=require(a3_0x2a4e1b(0x1a6));Object[a3_0x2a4e1b(0x1a0)](exports,a3_0x2a4e1b(0x19f),{'enumerable':!![],'get':function(){var _0x17429c=a3_0x2a4e1b;return CacheService_1[_0x17429c(0x19f)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a4_0x3803(){var _0x2846f2=['ScopeEnum','7bvehtS','config','stores','design:type','object','176HkkMHt','Singleton','length','1qWCHrK','615388vLgIFG','Provide','getOwnPropertyDescriptor','decorate','get','default','set','Config','file','prototype','9IqYTka','use','hdel','prefix','1737310ThALet','__decorate','10192638kLVfMF','function','options','1372682FeeWds','metadata','caching','store','has','CacheService','clients','cache','defineProperty','hset','@midwayjs/core','404635qWyMCf','cache-manager','__esModule','5141118NrtSHZ','6392288fcGDOt'];a4_0x3803=function(){return _0x2846f2;};return a4_0x3803();}var a4_0x4de1c5=a4_0x3e37;(function(_0x3db47d,_0x23a04d){var _0x230640=a4_0x3e37,_0x2c6955=_0x3db47d();while(!![]){try{var _0x33fffb=-parseInt(_0x230640(0x1da))/0x1*(parseInt(_0x230640(0x1ee))/0x2)+parseInt(_0x230640(0x1cf))/0x3+parseInt(_0x230640(0x1db))/0x4+parseInt(_0x230640(0x1cc))/0x5+parseInt(_0x230640(0x1eb))/0x6*(parseInt(_0x230640(0x1d2))/0x7)+parseInt(_0x230640(0x1d0))/0x8*(parseInt(_0x230640(0x1e5))/0x9)+parseInt(_0x230640(0x1e9))/0xa*(-parseInt(_0x230640(0x1d7))/0xb);if(_0x33fffb===_0x23a04d)break;else _0x2c6955['push'](_0x2c6955['shift']());}catch(_0x32d7c6){_0x2c6955['push'](_0x2c6955['shift']());}}}(a4_0x3803,0xef51c));var __decorate=this&&this[a4_0x4de1c5(0x1ea)]||function(_0x5a2632,_0x24c8d3,_0x18825b,_0x2033a7){var _0x46bffc=a4_0x4de1c5,_0x410767=arguments[_0x46bffc(0x1d9)],_0x389722=_0x410767<0x3?_0x24c8d3:_0x2033a7===null?_0x2033a7=Object[_0x46bffc(0x1dd)](_0x24c8d3,_0x18825b):_0x2033a7,_0x333e8c;if(typeof Reflect===_0x46bffc(0x1d6)&&typeof Reflect[_0x46bffc(0x1de)]===_0x46bffc(0x1ec))_0x389722=Reflect['decorate'](_0x5a2632,_0x24c8d3,_0x18825b,_0x2033a7);else{for(var _0x15ffe0=_0x5a2632[_0x46bffc(0x1d9)]-0x1;_0x15ffe0>=0x0;_0x15ffe0--)if(_0x333e8c=_0x5a2632[_0x15ffe0])_0x389722=(_0x410767<0x3?_0x333e8c(_0x389722):_0x410767>0x3?_0x333e8c(_0x24c8d3,_0x18825b,_0x389722):_0x333e8c(_0x24c8d3,_0x18825b))||_0x389722;}return _0x410767>0x3&&_0x389722&&Object[_0x46bffc(0x1f6)](_0x24c8d3,_0x18825b,_0x389722),_0x389722;},__metadata=this&&this['__metadata']||function(_0x315161,_0x278ece){var _0x2cca65=a4_0x4de1c5;if(typeof Reflect==='object'&&typeof Reflect[_0x2cca65(0x1ef)]===_0x2cca65(0x1ec))return Reflect[_0x2cca65(0x1ef)](_0x315161,_0x278ece);};Object[a4_0x4de1c5(0x1f6)](exports,a4_0x4de1c5(0x1ce),{'value':!![]}),exports['CacheService']=void 0x0;const cacheManager=require(a4_0x4de1c5(0x1cd)),core_1=require(a4_0x4de1c5(0x1cb));function a4_0x3e37(_0x2f28f0,_0x14aafb){var _0x38030b=a4_0x3803();return a4_0x3e37=function(_0x3e3709,_0x382d08){_0x3e3709=_0x3e3709-0x1ca;var _0x3c5e12=_0x38030b[_0x3e3709];return _0x3c5e12;},a4_0x3e37(_0x2f28f0,_0x14aafb);}let CacheService=class CacheService{constructor(){var _0x3544df=a4_0x4de1c5;this[_0x3544df(0x1f5)]=undefined,this[_0x3544df(0x1f4)]=new Map();}[a4_0x4de1c5(0x1e6)](_0x3826b9){var _0x72e1b=a4_0x4de1c5,_0x57436a,_0x112161;if(!this[_0x72e1b(0x1f5)]){const _0x33667c=((_0x57436a=this['config'][_0x72e1b(0x1d4)])===null||_0x57436a===void 0x0?void 0x0:_0x57436a[(_0x112161=this['config'][_0x72e1b(0x1f5)])===null||_0x112161===void 0x0?void 0x0:_0x112161[_0x72e1b(0x1e0)]])||this[_0x72e1b(0x1d3)][_0x72e1b(0x1d4)][_0x72e1b(0x1e3)];this[_0x72e1b(0x1f5)]=cacheManager[_0x72e1b(0x1f0)]({..._0x33667c[_0x72e1b(0x1ed)],'store':_0x33667c[_0x72e1b(0x1f1)]});}return!this[_0x72e1b(0x1f4)][_0x72e1b(0x1f2)](_0x3826b9)&&this[_0x72e1b(0x1f4)][_0x72e1b(0x1e1)](_0x3826b9,new CacheHandler(_0x3826b9,this[_0x72e1b(0x1f5)])),this['clients']['get'](_0x3826b9);}async['reset'](){return await this['cache']['reset']();}};__decorate([(0x0,core_1[a4_0x4de1c5(0x1e2)])(a4_0x4de1c5(0x1f5)),__metadata(a4_0x4de1c5(0x1d5),Object)],CacheService[a4_0x4de1c5(0x1e4)],'config',void 0x0),CacheService=__decorate([(0x0,core_1[a4_0x4de1c5(0x1dc)])(),(0x0,core_1['Scope'])(core_1[a4_0x4de1c5(0x1d1)][a4_0x4de1c5(0x1d8)])],CacheService),exports[a4_0x4de1c5(0x1f3)]=CacheService;class CacheHandler{constructor(_0x43e300,_0xa2ca65){var _0x53e13b=a4_0x4de1c5;this[_0x53e13b(0x1f5)]=_0xa2ca65,this['prefix']=_0x43e300;}async['del'](_0xbaad21){var _0x19ae13=a4_0x4de1c5;return await this[_0x19ae13(0x1f5)]['del'](this['prefix']+':'+_0xbaad21);}async['set'](_0x1fb34a,_0x313a8a,_0x87ded4){var _0x4f6a04=a4_0x4de1c5;return await this['cache'][_0x4f6a04(0x1e1)](this[_0x4f6a04(0x1e8)]+':'+_0x1fb34a,_0x313a8a,_0x87ded4);}async[a4_0x4de1c5(0x1df)](_0x1445b8,_0x58465d){return new Promise((_0x2f2b98,_0xe384cc)=>{var _0x4d6208=a4_0x3e37;this['cache'][_0x4d6208(0x1df)](this[_0x4d6208(0x1e8)]+':'+_0x1445b8,(_0x467a61,_0x554b39)=>{_0x467a61?_0xe384cc(_0x467a61):_0x2f2b98(_0x554b39||_0x58465d);});});}async[a4_0x4de1c5(0x1e7)](_0x3874b8,_0x1562bf){return await this['del'](_0x3874b8+'#'+_0x1562bf);}async[a4_0x4de1c5(0x1ca)](_0x3a02de,_0x48face,_0x6e7739,_0x30395d){var _0x273f75=a4_0x4de1c5;return await this[_0x273f75(0x1e1)](_0x3a02de+'#'+_0x48face,_0x6e7739,_0x30395d);}async['hget'](_0x53a512,_0x55421a,_0x4584d0){return await this['get'](_0x53a512+'#'+_0x55421a,_0x4584d0);}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.15",
|
|
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": "4b9c8704e5134828f0821da7ba0a4b5acfe076b0"
|
|
27
27
|
}
|