@anncic-api/cache 3.4.82 → 3.4.83
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_0x1efc73=a0_0x5366;function a0_0x52a9(){const _0x15620f=['127.0.0.1','search','115YDSrxl','189fYdYEN','3868494OYMJdI','298Xsuscf','175768qWmWSw','defineProperty','constructor','file','name','345030gHdwXn','env','toString','apply','appDir','11064bMdBXt','24918eVTiSi','memory','__esModule','1442290soLrbE','(((.+)+)+)+$','cache-manager-fs-hash','2121616GfbHII','cache-manager-ioredis'];a0_0x52a9=function(){return _0x15620f;};return a0_0x52a9();}(function(_0xcb78d9,_0x38540d){const _0xd65ef8=a0_0x5366,_0x4900ef=_0xcb78d9();while(!![]){try{const _0x4ca3be=parseInt(_0xd65ef8(0x6f))/0x1+-parseInt(_0xd65ef8(0x82))/0x2*(-parseInt(_0xd65ef8(0x74))/0x3)+parseInt(_0xd65ef8(0x7b))/0x4+parseInt(_0xd65ef8(0x7f))/0x5*(parseInt(_0xd65ef8(0x75))/0x6)+-parseInt(_0xd65ef8(0x81))/0x7+parseInt(_0xd65ef8(0x6a))/0x8*(-parseInt(_0xd65ef8(0x80))/0x9)+-parseInt(_0xd65ef8(0x78))/0xa;if(_0x4ca3be===_0x38540d)break;else _0x4900ef['push'](_0x4900ef['shift']());}catch(_0x418542){_0x4900ef['push'](_0x4900ef['shift']());}}}(a0_0x52a9,0x586db));const a0_0x2b1ce3=(function(){let _0x4eb965=!![];return function(_0x1e1d5a,_0x5ea578){const _0x14809d=_0x4eb965?function(){const _0x3d89f6=a0_0x5366;if(_0x5ea578){const _0x56d71a=_0x5ea578[_0x3d89f6(0x72)](_0x1e1d5a,arguments);return _0x5ea578=null,_0x56d71a;}}:function(){};return _0x4eb965=![],_0x14809d;};}()),a0_0x4a9262=a0_0x2b1ce3(this,function(){const _0x399ef9=a0_0x5366;return a0_0x4a9262['toString']()[_0x399ef9(0x7e)](_0x399ef9(0x79))[_0x399ef9(0x71)]()[_0x399ef9(0x6c)](a0_0x4a9262)[_0x399ef9(0x7e)](_0x399ef9(0x79));});a0_0x4a9262();'use strict';function a0_0x5366(_0x57511c,_0x5e5de7){const _0x24323a=a0_0x52a9();return a0_0x5366=function(_0x4a9262,_0x2b1ce3){_0x4a9262=_0x4a9262-0x6a;let _0x52a9e9=_0x24323a[_0x4a9262];return _0x52a9e9;},a0_0x5366(_0x57511c,_0x5e5de7);}Object[a0_0x1efc73(0x6b)](exports,a0_0x1efc73(0x77),{'value':!![]});const fsStore=require(a0_0x1efc73(0x7a)),redisStore=require(a0_0x1efc73(0x7c));exports['default']=_0x180b9a=>{const _0xf54916=a0_0x1efc73;return{'cache':{'default':_0xf54916(0x6d),'stores':{'file':{'store':fsStore,'options':{'subdirs':![],'path':_0x180b9a[_0xf54916(0x73)]+'/runtime/.cache'+((_0x180b9a===null||_0x180b9a===void 0x0?void 0x0:_0x180b9a[_0xf54916(0x70)])?'-'+_0x180b9a[_0xf54916(0x70)]:'')}},'redis':{'store':redisStore,'options':{'port':0x18eb,'host':_0xf54916(0x7d),'password':'','keyPrefix':_0x180b9a[_0xf54916(0x6e)]+':'+((_0x180b9a===null||_0x180b9a===void 0x0?void 0x0:_0x180b9a[_0xf54916(0x70)])?_0x180b9a[_0xf54916(0x70)]+':':'')}},'memory':{'store':_0xf54916(0x76),'options':{'max':0x64}}}}};};
|
package/dist/configuration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x1a1b5f=a1_0x4aca;(function(_0xa0597d,_0x196a99){var _0x29e44c=a1_0x4aca,_0x136c3c=_0xa0597d();while(!![]){try{var _0xbdb52e=-parseInt(_0x29e44c(0x202))/0x1*(parseInt(_0x29e44c(0x1ff))/0x2)+parseInt(_0x29e44c(0x1f7))/0x3*(-parseInt(_0x29e44c(0x204))/0x4)+parseInt(_0x29e44c(0x1f3))/0x5+-parseInt(_0x29e44c(0x1f1))/0x6*(parseInt(_0x29e44c(0x1f5))/0x7)+parseInt(_0x29e44c(0x1f9))/0x8+parseInt(_0x29e44c(0x207))/0x9+parseInt(_0x29e44c(0x1f2))/0xa*(parseInt(_0x29e44c(0x203))/0xb);if(_0xbdb52e===_0x196a99)break;else _0x136c3c['push'](_0x136c3c['shift']());}catch(_0x11c43b){_0x136c3c['push'](_0x136c3c['shift']());}}}(a1_0x4aac,0x8a9fb));function a1_0x4aca(_0x5ca12c,_0x50b4d7){var _0x53cd35=a1_0x4aac();return a1_0x4aca=function(_0x48f82d,_0x2668c6){_0x48f82d=_0x48f82d-0x1f0;var _0x4aace5=_0x53cd35[_0x48f82d];return _0x4aace5;},a1_0x4aca(_0x5ca12c,_0x50b4d7);}var a1_0x2668c6=(function(){var _0x2195db=!![];return function(_0x4c34e2,_0x5cf686){var _0x4099c2=_0x2195db?function(){var _0x596f7e=a1_0x4aca;if(_0x5cf686){var _0x4e0171=_0x5cf686[_0x596f7e(0x1fa)](_0x4c34e2,arguments);return _0x5cf686=null,_0x4e0171;}}:function(){};return _0x2195db=![],_0x4099c2;};}()),a1_0x48f82d=a1_0x2668c6(this,function(){var _0x255b2a=a1_0x4aca;return a1_0x48f82d[_0x255b2a(0x205)]()[_0x255b2a(0x20a)]('(((.+)+)+)+$')['toString']()[_0x255b2a(0x1fb)](a1_0x48f82d)['search']('(((.+)+)+)+$');});a1_0x48f82d();'use strict';var __decorate=this&&this[a1_0x1a1b5f(0x201)]||function(_0x58dcad,_0x753091,_0x24c648,_0x32e267){var _0x1092b7=a1_0x1a1b5f,_0x20b9c2=arguments['length'],_0x2b7812=_0x20b9c2<0x3?_0x753091:_0x32e267===null?_0x32e267=Object[_0x1092b7(0x209)](_0x753091,_0x24c648):_0x32e267,_0x3800b1;if(typeof Reflect==='object'&&typeof Reflect[_0x1092b7(0x1f0)]===_0x1092b7(0x206))_0x2b7812=Reflect[_0x1092b7(0x1f0)](_0x58dcad,_0x753091,_0x24c648,_0x32e267);else{for(var _0x563d2e=_0x58dcad[_0x1092b7(0x1fd)]-0x1;_0x563d2e>=0x0;_0x563d2e--)if(_0x3800b1=_0x58dcad[_0x563d2e])_0x2b7812=(_0x20b9c2<0x3?_0x3800b1(_0x2b7812):_0x20b9c2>0x3?_0x3800b1(_0x753091,_0x24c648,_0x2b7812):_0x3800b1(_0x753091,_0x24c648))||_0x2b7812;}return _0x20b9c2>0x3&&_0x2b7812&&Object[_0x1092b7(0x1fc)](_0x753091,_0x24c648,_0x2b7812),_0x2b7812;};Object[a1_0x1a1b5f(0x1fc)](exports,a1_0x1a1b5f(0x1f6),{'value':!![]}),exports[a1_0x1a1b5f(0x208)]=void 0x0;const core_1=require(a1_0x1a1b5f(0x200)),ConfigDefault=require(a1_0x1a1b5f(0x1fe));let CustomConfiguration=class CustomConfiguration{};function a1_0x4aac(){var _0x315917=['./config/config.default','5786IsRQeP','@midwayjs/core','__decorate','267kVvGMT','16533hmnspw','367428tPzBme','toString','function','646758OfzDNH','CustomConfiguration','getOwnPropertyDescriptor','search','decorate','54wpENlN','5870Ysjlng','4264930ZywvyN','anncic-api:cache','602651acabbb','__esModule','27pjcMQb','Configuration','9077400SYeRqS','apply','constructor','defineProperty','length'];a1_0x4aac=function(){return _0x315917;};return a1_0x4aac();}exports[a1_0x1a1b5f(0x208)]=CustomConfiguration,exports[a1_0x1a1b5f(0x208)]=CustomConfiguration=__decorate([(0x0,core_1[a1_0x1a1b5f(0x1f8)])({'conflictCheck':![],'namespace':a1_0x1a1b5f(0x1f4),'importConfigs':[{'default':ConfigDefault}]})],CustomConfiguration);
|
package/dist/decorator/Cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x5c94ba=a2_0x2c7d;function a2_0x2c7d(_0xab89f5,_0x4aa342){const _0xc4b454=a2_0x2083();return a2_0x2c7d=function(_0x17c71c,_0x39630b){_0x17c71c=_0x17c71c-0x184;let _0x2083b1=_0xc4b454[_0x17c71c];return _0x2083b1;},a2_0x2c7d(_0xab89f5,_0x4aa342);}(function(_0x37e71f,_0x11ce78){const _0x1d3385=a2_0x2c7d,_0xffc0f5=_0x37e71f();while(!![]){try{const _0x4460e1=-parseInt(_0x1d3385(0x189))/0x1+parseInt(_0x1d3385(0x18e))/0x2*(parseInt(_0x1d3385(0x19a))/0x3)+parseInt(_0x1d3385(0x184))/0x4+parseInt(_0x1d3385(0x193))/0x5*(parseInt(_0x1d3385(0x198))/0x6)+parseInt(_0x1d3385(0x192))/0x7*(-parseInt(_0x1d3385(0x19b))/0x8)+parseInt(_0x1d3385(0x1a4))/0x9*(-parseInt(_0x1d3385(0x19e))/0xa)+-parseInt(_0x1d3385(0x1a2))/0xb*(-parseInt(_0x1d3385(0x190))/0xc);if(_0x4460e1===_0x11ce78)break;else _0xffc0f5['push'](_0xffc0f5['shift']());}catch(_0x9adb40){_0xffc0f5['push'](_0xffc0f5['shift']());}}}(a2_0x2083,0x58574));const a2_0x39630b=(function(){let _0x4c9633=!![];return function(_0x43d91f,_0x22018f){const _0x4ed192=_0x4c9633?function(){if(_0x22018f){const _0x523f19=_0x22018f['apply'](_0x43d91f,arguments);return _0x22018f=null,_0x523f19;}}:function(){};return _0x4c9633=![],_0x4ed192;};}()),a2_0x17c71c=a2_0x39630b(this,function(){const _0x1e7ccc=a2_0x2c7d;return a2_0x17c71c[_0x1e7ccc(0x188)]()[_0x1e7ccc(0x18f)](_0x1e7ccc(0x195))[_0x1e7ccc(0x188)]()[_0x1e7ccc(0x1a1)](a2_0x17c71c)[_0x1e7ccc(0x18f)](_0x1e7ccc(0x195));});a2_0x17c71c();'use strict';function a2_0x2083(){const _0x53764c=['constructor','5687qApDpZ','getAsync','131715JZzRbR','291220ZtccHH','crypto-js','parse','apply','toString','318026AqWyQD','MD5','../service/CacheService','get','use','58pjivEz','search','15012kkEjUB','Method::Decorator','7sdEZoP','25eLAJpB','defineProperty','(((.+)+)+)+$','app','REQUEST_OBJ_CTX_KEY','118362PCfDQH','getApplicationContext','53373cqVYYt','3946328kWFpTK','stringify','value','110mJbkuk','__esModule','set'];a2_0x2083=function(){return _0x53764c;};return a2_0x2083();}Object[a2_0x5c94ba(0x194)](exports,a2_0x5c94ba(0x19f),{'value':!![]}),exports['Cache']=Cache;const crypto_js_1=require(a2_0x5c94ba(0x185)),CacheService_1=require(a2_0x5c94ba(0x18b)),core_1=require('@midwayjs/core');function json_encode(_0x117fe3){const _0x2da55f=a2_0x5c94ba;try{return JSON[_0x2da55f(0x19c)](_0x117fe3);}catch(_0x5109af){return undefined;}}function Cache(_0x4d17f2,_0x53f7c5){return(_0x10f7fd,_0x1071e7,_0x2036ff)=>{const _0x4dd580=a2_0x2c7d,_0x3ee98d=_0x2036ff[_0x4dd580(0x19d)];return _0x2036ff[_0x4dd580(0x19d)]=async function(..._0x261e06){const _0x301a50=_0x4dd580;_0x4d17f2=(_0x4d17f2?''+_0x4d17f2:''+(_0x1071e7||''))+'.'+(0x0,crypto_js_1[_0x301a50(0x18a)])(json_encode(_0x261e06))[_0x301a50(0x188)]();let _0x451fe7=await this[core_1[_0x301a50(0x197)]][_0x301a50(0x196)][_0x301a50(0x199)]()[_0x301a50(0x1a3)](CacheService_1['CacheService']),_0x3310c9=await _0x451fe7[_0x301a50(0x18d)](_0x301a50(0x191))[_0x301a50(0x18c)](_0x4d17f2);if(_0x3310c9)return JSON[_0x301a50(0x186)](_0x3310c9);else _0x3310c9=await _0x3ee98d[_0x301a50(0x187)](this,[..._0x261e06]),await _0x451fe7['use'](_0x301a50(0x191))[_0x301a50(0x1a0)](_0x4d17f2,JSON['stringify'](_0x3310c9),_0x53f7c5);return _0x3310c9;},_0x2036ff;};}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a3_0x133a(){var _0x2de008=['defineProperty','7243159zRxoDb','(((.+)+)+)+$','CacheService','./service/CacheService','212977dbBDIU','838464vMtmnF','search','./decorator/Cache','Configuration','4137765RjCkLK','6gQCBjh','toString','__esModule','./configuration','667964YioXYg','Cache','constructor','CustomConfiguration','1850520lzoOdx','30367864AYgONP','apply'];a3_0x133a=function(){return _0x2de008;};return a3_0x133a();}var a3_0x3ebd19=a3_0x3ff1;(function(_0x22dc99,_0x257121){var _0x420eb8=a3_0x3ff1,_0x1361b5=_0x22dc99();while(!![]){try{var _0x45e340=-parseInt(_0x420eb8(0x149))/0x1+-parseInt(_0x420eb8(0x153))/0x2+-parseInt(_0x420eb8(0x141))/0x3+-parseInt(_0x420eb8(0x14a))/0x4+-parseInt(_0x420eb8(0x14e))/0x5+-parseInt(_0x420eb8(0x14f))/0x6*(parseInt(_0x420eb8(0x145))/0x7)+parseInt(_0x420eb8(0x142))/0x8;if(_0x45e340===_0x257121)break;else _0x1361b5['push'](_0x1361b5['shift']());}catch(_0x54c108){_0x1361b5['push'](_0x1361b5['shift']());}}}(a3_0x133a,0x88c96));function a3_0x3ff1(_0x4b071f,_0x1da92a){var _0x4d370e=a3_0x133a();return a3_0x3ff1=function(_0xb2aafc,_0x96453f){_0xb2aafc=_0xb2aafc-0x13e;var _0x133a5c=_0x4d370e[_0xb2aafc];return _0x133a5c;},a3_0x3ff1(_0x4b071f,_0x1da92a);}var a3_0x96453f=(function(){var _0x3a3b91=!![];return function(_0x4757d3,_0x704c9c){var _0xb1ff28=_0x3a3b91?function(){var _0x558af9=a3_0x3ff1;if(_0x704c9c){var _0x46ae28=_0x704c9c[_0x558af9(0x143)](_0x4757d3,arguments);return _0x704c9c=null,_0x46ae28;}}:function(){};return _0x3a3b91=![],_0xb1ff28;};}()),a3_0xb2aafc=a3_0x96453f(this,function(){var _0x14ae35=a3_0x3ff1;return a3_0xb2aafc[_0x14ae35(0x150)]()[_0x14ae35(0x14b)](_0x14ae35(0x146))[_0x14ae35(0x150)]()[_0x14ae35(0x13f)](a3_0xb2aafc)[_0x14ae35(0x14b)](_0x14ae35(0x146));});a3_0xb2aafc();'use strict';Object[a3_0x3ebd19(0x144)](exports,a3_0x3ebd19(0x151),{'value':!![]}),exports[a3_0x3ebd19(0x147)]=exports[a3_0x3ebd19(0x13e)]=exports['Configuration']=void 0x0;var configuration_1=require(a3_0x3ebd19(0x152));Object[a3_0x3ebd19(0x144)](exports,a3_0x3ebd19(0x14d),{'enumerable':!![],'get':function(){var _0x559f9a=a3_0x3ebd19;return configuration_1[_0x559f9a(0x140)];}});var Cache_1=require(a3_0x3ebd19(0x14c));Object[a3_0x3ebd19(0x144)](exports,'Cache',{'enumerable':!![],'get':function(){var _0xdd25bc=a3_0x3ebd19;return Cache_1[_0xdd25bc(0x13e)];}});var CacheService_1=require(a3_0x3ebd19(0x148));Object['defineProperty'](exports,'CacheService',{'enumerable':!![],'get':function(){var _0x4cab9f=a3_0x3ebd19;return CacheService_1[_0x4cab9f(0x147)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a4_0x106e0c=a4_0x1b48;(function(_0x33167c,_0x1d1b45){var _0x588c7c=a4_0x1b48,_0x1c97cc=_0x33167c();while(!![]){try{var _0x1ae9ca=-parseInt(_0x588c7c(0x1ea))/0x1+parseInt(_0x588c7c(0x1dd))/0x2+parseInt(_0x588c7c(0x1d8))/0x3*(parseInt(_0x588c7c(0x1cc))/0x4)+parseInt(_0x588c7c(0x1c2))/0x5+-parseInt(_0x588c7c(0x1d3))/0x6*(parseInt(_0x588c7c(0x1ca))/0x7)+parseInt(_0x588c7c(0x1be))/0x8+-parseInt(_0x588c7c(0x1bc))/0x9;if(_0x1ae9ca===_0x1d1b45)break;else _0x1c97cc['push'](_0x1c97cc['shift']());}catch(_0x51905b){_0x1c97cc['push'](_0x1c97cc['shift']());}}}(a4_0x52f7,0x58c79));var a4_0x44f05c=(function(){var _0x474367=!![];return function(_0xee9b13,_0x27cfc6){var _0x5bae5d=_0x474367?function(){var _0x5c9f09=a4_0x1b48;if(_0x27cfc6){var _0x53cfd2=_0x27cfc6[_0x5c9f09(0x1c5)](_0xee9b13,arguments);return _0x27cfc6=null,_0x53cfd2;}}:function(){};return _0x474367=![],_0x5bae5d;};}()),a4_0x35e34f=a4_0x44f05c(this,function(){var _0x57a004=a4_0x1b48;return a4_0x35e34f[_0x57a004(0x1d4)]()[_0x57a004(0x1c7)](_0x57a004(0x1d0))[_0x57a004(0x1d4)]()[_0x57a004(0x1c4)](a4_0x35e34f)['search'](_0x57a004(0x1d0));});a4_0x35e34f();'use strict';var __decorate=this&&this[a4_0x106e0c(0x1da)]||function(_0x514ffe,_0x4a55ce,_0x3cfbed,_0x334a33){var _0x33a277=a4_0x106e0c,_0x300359=arguments[_0x33a277(0x1c0)],_0x10cb58=_0x300359<0x3?_0x4a55ce:_0x334a33===null?_0x334a33=Object['getOwnPropertyDescriptor'](_0x4a55ce,_0x3cfbed):_0x334a33,_0x279ef9;if(typeof Reflect==='object'&&typeof Reflect['decorate']==='function')_0x10cb58=Reflect['decorate'](_0x514ffe,_0x4a55ce,_0x3cfbed,_0x334a33);else{for(var _0x3a3f03=_0x514ffe[_0x33a277(0x1c0)]-0x1;_0x3a3f03>=0x0;_0x3a3f03--)if(_0x279ef9=_0x514ffe[_0x3a3f03])_0x10cb58=(_0x300359<0x3?_0x279ef9(_0x10cb58):_0x300359>0x3?_0x279ef9(_0x4a55ce,_0x3cfbed,_0x10cb58):_0x279ef9(_0x4a55ce,_0x3cfbed))||_0x10cb58;}return _0x300359>0x3&&_0x10cb58&&Object[_0x33a277(0x1cf)](_0x4a55ce,_0x3cfbed,_0x10cb58),_0x10cb58;},__metadata=this&&this[a4_0x106e0c(0x1d9)]||function(_0x2e32a3,_0x235cf7){var _0x49d0c9=a4_0x106e0c;if(typeof Reflect==='object'&&typeof Reflect[_0x49d0c9(0x1ce)]===_0x49d0c9(0x1d1))return Reflect[_0x49d0c9(0x1ce)](_0x2e32a3,_0x235cf7);};Object['defineProperty'](exports,a4_0x106e0c(0x1f3),{'value':!![]}),exports[a4_0x106e0c(0x1e2)]=exports[a4_0x106e0c(0x1bd)]=void 0x0,exports['json_encode']=json_encode,exports[a4_0x106e0c(0x1e5)]=json_decode;const cacheManager=require(a4_0x106e0c(0x1c1)),core_1=require(a4_0x106e0c(0x1df));let CacheService=class CacheService{constructor(){var _0x397ff4=a4_0x106e0c;this['cache']=undefined,this[_0x397ff4(0x1e1)]=new Map();}['use'](_0x1206bd){var _0x15a09f=a4_0x106e0c,_0x2f59ea,_0x534789;if(!this[_0x15a09f(0x1e6)]){const _0xfdb6c8=((_0x2f59ea=this['config'][_0x15a09f(0x1e7)])===null||_0x2f59ea===void 0x0?void 0x0:_0x2f59ea[(_0x534789=this[_0x15a09f(0x1cb)])===null||_0x534789===void 0x0?void 0x0:_0x534789[_0x15a09f(0x1bf)]])||this[_0x15a09f(0x1cb)][_0x15a09f(0x1e7)][_0x15a09f(0x1ef)];this[_0x15a09f(0x1e6)]=cacheManager[_0x15a09f(0x1d7)]({..._0xfdb6c8['options'],'store':_0xfdb6c8[_0x15a09f(0x1f0)]});}return!this[_0x15a09f(0x1e1)]['has'](_0x1206bd)&&this['clients'][_0x15a09f(0x1de)](_0x1206bd,new Cache(_0x1206bd,this[_0x15a09f(0x1e6)])),this[_0x15a09f(0x1e1)][_0x15a09f(0x1f4)](_0x1206bd);}async[a4_0x106e0c(0x1e3)](){var _0x20a054=a4_0x106e0c;return await this['cache'][_0x20a054(0x1e3)]();}};exports['CacheService']=CacheService,__decorate([(0x0,core_1[a4_0x106e0c(0x1db)])(a4_0x106e0c(0x1e6)),__metadata(a4_0x106e0c(0x1bb),Object)],CacheService[a4_0x106e0c(0x1eb)],a4_0x106e0c(0x1cb),void 0x0),exports[a4_0x106e0c(0x1bd)]=CacheService=__decorate([(0x0,core_1[a4_0x106e0c(0x1d6)])(),(0x0,core_1[a4_0x106e0c(0x1c9)])(core_1['ScopeEnum']['Singleton'])],CacheService);class Cache{constructor(_0x56ae55,_0x4589ef){var _0x47a054=a4_0x106e0c;this[_0x47a054(0x1e6)]=_0x4589ef,this[_0x47a054(0x1e8)]=_0x56ae55;}async[a4_0x106e0c(0x1d2)](_0x6377c7){var _0x2eb652=a4_0x106e0c;return await this[_0x2eb652(0x1e6)]['del'](this['prefix']+':'+_0x6377c7);}async[a4_0x106e0c(0x1de)](_0x535b0c,_0xd0feee,_0x2fd19e){var _0x486933=a4_0x106e0c,_0x2fe8ec,_0x4bebce;return((_0x4bebce=(_0x2fe8ec=this[_0x486933(0x1e6)])===null||_0x2fe8ec===void 0x0?void 0x0:_0x2fe8ec[_0x486933(0x1f0)])===null||_0x4bebce===void 0x0?void 0x0:_0x4bebce[_0x486933(0x1c8)])==_0x486933(0x1ba)?await this[_0x486933(0x1e6)][_0x486933(0x1de)](this['prefix']+':'+_0x535b0c,_0xd0feee,{'ttl':_0x2fd19e}):await this[_0x486933(0x1e6)][_0x486933(0x1de)](this['prefix']+':'+_0x535b0c,_0xd0feee,{'ttl':_0x2fd19e});}async[a4_0x106e0c(0x1f4)](_0x591648,_0xd80d2d,_0x1f74d0){return new Promise((_0x1625bf,_0x2bd37a)=>{var _0x369f35=a4_0x1b48;this[_0x369f35(0x1e6)][_0x369f35(0x1f4)](this[_0x369f35(0x1e8)]+':'+_0x591648,async(_0x8867b0,_0x50974e)=>{var _0x3a5898=_0x369f35;_0x8867b0?_0x2bd37a(_0x8867b0):((_0x50974e===undefined||_0x50974e===null)&&(typeof _0xd80d2d==_0x3a5898(0x1d1)?(_0x50974e=await _0xd80d2d()[_0x3a5898(0x1f1)](_0x4b2f44=>_0x2bd37a(_0x4b2f44)),typeof _0x50974e!=_0x3a5898(0x1d5)&&await this['set'](_0x591648,_0x50974e,_0x1f74d0)):_0x50974e=_0xd80d2d),_0x1625bf(_0x50974e));});});}async[a4_0x106e0c(0x1c3)](_0x3d9cc8,_0x168dde){var _0x3ff8d9=a4_0x106e0c;return await this[_0x3ff8d9(0x1d2)](_0x3d9cc8+'#'+_0x168dde);}async[a4_0x106e0c(0x1e0)](_0x3b20c2,_0x20194b,_0x4d77e5,_0x2bd63c){return await this['set'](_0x3b20c2+'#'+_0x20194b,_0x4d77e5,_0x2bd63c);}async['hget'](_0x375d59,_0x867f91,_0x5a669f,_0x5988bc){var _0x447e70=a4_0x106e0c;return await this[_0x447e70(0x1f4)](_0x375d59+'#'+_0x867f91,_0x5a669f,_0x5988bc);}[a4_0x106e0c(0x1ed)](_0x128fef){const _0x183731={'all':async()=>{var _0x1f995d=a4_0x1b48,_0x1c2059,_0x28e0dc,_0x23a75a,_0x1465f3,_0xbf41e2;return((_0x28e0dc=(_0x1c2059=this[_0x1f995d(0x1e6)])===null||_0x1c2059===void 0x0?void 0x0:_0x1c2059[_0x1f995d(0x1f0)])===null||_0x28e0dc===void 0x0?void 0x0:_0x28e0dc['name'])==_0x1f995d(0x1ba)?(await((_0xbf41e2=(_0x1465f3=(_0x23a75a=this===null||this===void 0x0?void 0x0:this[_0x1f995d(0x1e6)])===null||_0x23a75a===void 0x0?void 0x0:_0x23a75a[_0x1f995d(0x1f0)])===null||_0x1465f3===void 0x0?void 0x0:_0x1465f3[_0x1f995d(0x1b9)]())===null||_0xbf41e2===void 0x0?void 0x0:_0xbf41e2['lrange'](this['prefix']+':'+_0x128fef,0x0,-0x1))||[])[_0x1f995d(0x1f2)](_0x5dbac8=>json_decode(_0x5dbac8)):await this['get'](_0x128fef,[]);},'pop':async()=>{var _0x5aa8a9=a4_0x1b48,_0x39214f,_0x2b4fae,_0x18efc8,_0x55f9e6,_0x29eead;if(((_0x2b4fae=(_0x39214f=this[_0x5aa8a9(0x1e6)])===null||_0x39214f===void 0x0?void 0x0:_0x39214f[_0x5aa8a9(0x1f0)])===null||_0x2b4fae===void 0x0?void 0x0:_0x2b4fae['name'])=='redis')return json_decode(await((_0x29eead=(_0x55f9e6=(_0x18efc8=this===null||this===void 0x0?void 0x0:this['cache'])===null||_0x18efc8===void 0x0?void 0x0:_0x18efc8['store'])===null||_0x55f9e6===void 0x0?void 0x0:_0x55f9e6['getClient']())===null||_0x29eead===void 0x0?void 0x0:_0x29eead[_0x5aa8a9(0x1e4)](this[_0x5aa8a9(0x1e8)]+':'+_0x128fef)));else{let _0x412a87=await this[_0x5aa8a9(0x1f4)](_0x128fef,[]),_0x32eda4=_0x412a87[_0x5aa8a9(0x1ee)]();return await this['set'](_0x128fef,_0x412a87),_0x32eda4;}},'push':async(..._0x3e3306)=>{var _0x5686c8=a4_0x1b48,_0x28a8cc,_0x414771,_0x1765cf,_0x348d66,_0x1d1d62;const _0x2c61aa=_0x3e3306[_0x5686c8(0x1cd)](_0x368a56=>_0x368a56!==undefined&&_0x368a56!==null);if(((_0x414771=(_0x28a8cc=this[_0x5686c8(0x1e6)])===null||_0x28a8cc===void 0x0?void 0x0:_0x28a8cc['store'])===null||_0x414771===void 0x0?void 0x0:_0x414771['name'])==_0x5686c8(0x1ba))return await((_0x1d1d62=(_0x348d66=(_0x1765cf=this===null||this===void 0x0?void 0x0:this[_0x5686c8(0x1e6)])===null||_0x1765cf===void 0x0?void 0x0:_0x1765cf['store'])===null||_0x348d66===void 0x0?void 0x0:_0x348d66['getClient']())===null||_0x1d1d62===void 0x0?void 0x0:_0x1d1d62[_0x5686c8(0x1c6)](this[_0x5686c8(0x1e8)]+':'+_0x128fef,..._0x2c61aa[_0x5686c8(0x1f2)](_0x1a3423=>json_encode(_0x1a3423)))),_0x2c61aa;else{let _0x54979b=await this['get'](_0x128fef,[]);return _0x54979b[_0x5686c8(0x1dc)](..._0x2c61aa),await this['set'](_0x128fef,_0x54979b),_0x54979b;}}};return _0x183731;}}function a4_0x52f7(){var _0x3dc793=['stringify','15252dPnIzL','prototype','parse','list','shift','file','store','catch','map','__esModule','get','getClient','redis','design:type','1076967cRBKWg','CacheService','277944ufnEwB','default','length','cache-manager','1742375ViECLt','hdel','constructor','apply','rpush','search','name','Scope','7bpochh','config','644GPtpbu','filter','metadata','defineProperty','(((.+)+)+)+$','function','del','2739498SfkrKK','toString','undefined','Provide','caching','2118DwIWNJ','__metadata','__decorate','Config','push','916510gtXGxC','set','@midwayjs/core','hset','clients','Cache','reset','lpop','json_decode','cache','stores','prefix'];a4_0x52f7=function(){return _0x3dc793;};return a4_0x52f7();}exports['Cache']=Cache;function a4_0x1b48(_0x26d9fa,_0x5cb34b){var _0x44917d=a4_0x52f7();return a4_0x1b48=function(_0x35e34f,_0x44f05c){_0x35e34f=_0x35e34f-0x1b9;var _0x52f72d=_0x44917d[_0x35e34f];return _0x52f72d;},a4_0x1b48(_0x26d9fa,_0x5cb34b);}function json_encode(_0x917bc4){var _0x4b478b=a4_0x106e0c;try{return JSON[_0x4b478b(0x1e9)](_0x917bc4);}catch(_0x18ca13){return undefined;}}function json_decode(_0xd37840){var _0x1a8d11=a4_0x106e0c;try{return JSON[_0x1a8d11(0x1ec)](_0xd37840);}catch(_0x2aa21f){return undefined;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/cache",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.83",
|
|
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.5.4"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "cc719751e8cc837de31b52bbf3de8a3cbb4d3410"
|
|
27
27
|
}
|