[{"data":1,"prerenderedAt":360},["ShallowReactive",2],{"catalog-module-redis":3},{"id":4,"category":5,"description":7,"documentation":8,"extension":9,"github":8,"icon":10,"interface":11,"meta":14,"name":12,"npm":15,"official":16,"repo":17,"sponsor":18,"stem":19,"__hash__":20,"stars":21,"downloads":21,"readme":22},"modules\u002Fmodules\u002Fredis.yml",[6],"Cache","Redis client module with scheduling capabilities","https:\u002F\u002Fgithub.com\u002FAntelopeJS\u002Fredis","yml","\u002Ficons\u002Fantelope.svg",[12,13],"redis","redis-scheduler",{},"@antelopejs\u002Fredis",true,"antelopejs\u002Fredis",false,"modules\u002Fredis","pJAORSg_24liIL_Z9IPCrH_0TRTOke_fxlDy1GccFN0",null,{"data":23,"body":25,"toc":345},{"title":24,"description":24},"",{"type":26,"children":27},"root",[28,39,46,88,93,100,110,116,121,147,152,232,238,243,256,262,267,275,282,287,308,314,319,327,332],{"type":29,"tag":30,"props":31,"children":32},"element","p",{},[33],{"type":29,"tag":34,"props":35,"children":38},"img",{"alt":36,"src":37},"Redis","https:\u002F\u002Fraw.githubusercontent.com\u002Fantelopejs\u002Fredis\u002Fmain\u002F.github\u002Fsocial-card.png",[],{"type":29,"tag":40,"props":41,"children":43},"h2",{"id":42},"antelopejsredis",[44],{"type":45,"value":15},"text",{"type":29,"tag":47,"props":48,"children":50},"div",{"align":49},"center",[51,61,70,79],{"type":29,"tag":52,"props":53,"children":55},"a",{"href":54},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@antelopejs\u002Fredis",[56],{"type":29,"tag":34,"props":57,"children":60},{"alt":58,"src":59},"NPM version","https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@antelopejs\u002Fredis.svg?style=for-the-badge&labelColor=000000",[],{"type":29,"tag":52,"props":62,"children":64},{"href":63},".\u002FLICENSE",[65],{"type":29,"tag":34,"props":66,"children":69},{"alt":67,"src":68},"License","https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fl\u002F@antelopejs\u002Fredis.svg?style=for-the-badge&labelColor=000000",[],{"type":29,"tag":52,"props":71,"children":73},{"href":72},"https:\u002F\u002Fdiscord.gg\u002FsjK28QHrA7",[74],{"type":29,"tag":34,"props":75,"children":78},{"src":76,"alt":77},"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-18181B?logo=discord&style=for-the-badge&color=000000","Discord",[],{"type":29,"tag":52,"props":80,"children":82},{"href":81},"https:\u002F\u002Fantelopejs.com\u002Fmodules\u002Fredis",[83],{"type":29,"tag":34,"props":84,"children":87},{"src":85,"alt":86},"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDocs-18181B?style=for-the-badge&color=000000","Documentation",[],{"type":29,"tag":30,"props":89,"children":90},{},[91],{"type":45,"value":92},"A Redis client module that implements the Redis and Redis Scheduler interfaces for AntelopeJS.",{"type":29,"tag":94,"props":95,"children":97},"h3",{"id":96},"installation",[98],{"type":45,"value":99},"Installation",{"type":29,"tag":101,"props":102,"children":103},"pre",{},[104],{"type":29,"tag":105,"props":106,"children":107},"code",{},[108],{"type":45,"value":109},"ajs project modules add @antelopejs\u002Fredis\n",{"type":29,"tag":94,"props":111,"children":113},{"id":112},"interfaces",[114],{"type":45,"value":115},"Interfaces",{"type":29,"tag":30,"props":117,"children":118},{},[119],{"type":45,"value":120},"This module implements two key interfaces:",{"type":29,"tag":122,"props":123,"children":124},"ul",{},[125,137],{"type":29,"tag":126,"props":127,"children":128},"li",{},[129,135],{"type":29,"tag":130,"props":131,"children":132},"strong",{},[133],{"type":45,"value":134},"Redis Interface",{"type":45,"value":136},": Promise-based Redis client with key-value operations and pub\u002Fsub messaging.",{"type":29,"tag":126,"props":138,"children":139},{},[140,145],{"type":29,"tag":130,"props":141,"children":142},{},[143],{"type":45,"value":144},"Redis Scheduler Interface",{"type":45,"value":146},": Redis-based distributed task scheduler with job queuing and automatic retries.",{"type":29,"tag":30,"props":148,"children":149},{},[150],{"type":45,"value":151},"Both interfaces can be used independently or together depending on your application's needs. The interfaces are installed separately to maintain modularity and minimize dependencies.",{"type":29,"tag":153,"props":154,"children":155},"table",{},[156,178],{"type":29,"tag":157,"props":158,"children":159},"thead",{},[160],{"type":29,"tag":161,"props":162,"children":163},"tr",{},[164,170,175],{"type":29,"tag":165,"props":166,"children":167},"th",{},[168],{"type":45,"value":169},"Name",{"type":29,"tag":165,"props":171,"children":172},{},[173],{"type":45,"value":174},"Install command",{"type":29,"tag":165,"props":176,"children":177},{},[],{"type":29,"tag":179,"props":180,"children":181},"tbody",{},[182,207],{"type":29,"tag":161,"props":183,"children":184},{},[185,190,199],{"type":29,"tag":186,"props":187,"children":188},"td",{},[189],{"type":45,"value":36},{"type":29,"tag":186,"props":191,"children":192},{},[193],{"type":29,"tag":105,"props":194,"children":196},{"className":195},[],[197],{"type":45,"value":198},"ajs module imports add redis",{"type":29,"tag":186,"props":200,"children":201},{},[202],{"type":29,"tag":52,"props":203,"children":205},{"href":204},"https:\u002F\u002Fgithub.com\u002FAntelopeJS\u002Finterface-redis",[206],{"type":45,"value":86},{"type":29,"tag":161,"props":208,"children":209},{},[210,215,224],{"type":29,"tag":186,"props":211,"children":212},{},[213],{"type":45,"value":214},"Redis Scheduler",{"type":29,"tag":186,"props":216,"children":217},{},[218],{"type":29,"tag":105,"props":219,"children":221},{"className":220},[],[222],{"type":45,"value":223},"ajs module imports add redis_scheduler",{"type":29,"tag":186,"props":225,"children":226},{},[227],{"type":29,"tag":52,"props":228,"children":230},{"href":229},"https:\u002F\u002Fgithub.com\u002FAntelopeJS\u002Finterface-redis-scheduler",[231],{"type":45,"value":86},{"type":29,"tag":94,"props":233,"children":235},{"id":234},"overview",[236],{"type":45,"value":237},"Overview",{"type":29,"tag":30,"props":239,"children":240},{},[241],{"type":45,"value":242},"The AntelopeJS Redis module provides functionality for interacting with Redis:",{"type":29,"tag":122,"props":244,"children":245},{},[246,251],{"type":29,"tag":126,"props":247,"children":248},{},[249],{"type":45,"value":250},"Redis client connection management",{"type":29,"tag":126,"props":252,"children":253},{},[254],{"type":45,"value":255},"Task scheduling with retry capabilities",{"type":29,"tag":94,"props":257,"children":259},{"id":258},"configuration",[260],{"type":45,"value":261},"Configuration",{"type":29,"tag":30,"props":263,"children":264},{},[265],{"type":45,"value":266},"The Redis module can be configured with standard Redis client options:",{"type":29,"tag":101,"props":268,"children":269},{},[270],{"type":29,"tag":105,"props":271,"children":272},{},[273],{"type":45,"value":274},"{\n  \"url\": \"redis:\u002F\u002Flocalhost:6379\",\n  \"lazyConnect\": true\n}\n",{"type":29,"tag":276,"props":277,"children":279},"h4",{"id":278},"configuration-details",[280],{"type":45,"value":281},"Configuration Details",{"type":29,"tag":30,"props":283,"children":284},{},[285],{"type":45,"value":286},"The module accepts the following configuration properties:",{"type":29,"tag":122,"props":288,"children":289},{},[290,303],{"type":29,"tag":126,"props":291,"children":292},{},[293,295,301],{"type":45,"value":294},"All standard Redis client options from the ",{"type":29,"tag":105,"props":296,"children":298},{"className":297},[],[299],{"type":45,"value":300},"ioredis",{"type":45,"value":302}," package",{"type":29,"tag":126,"props":304,"children":305},{},[306],{"type":45,"value":307},"Supports all connection methods including URL string, socket options, etc.",{"type":29,"tag":94,"props":309,"children":311},{"id":310},"integration-with-other-modules",[312],{"type":45,"value":313},"Integration with Other Modules",{"type":29,"tag":30,"props":315,"children":316},{},[317],{"type":45,"value":318},"The Redis module is designed to be used as a dependency for other AntelopeJS modules:",{"type":29,"tag":101,"props":320,"children":321},{},[322],{"type":29,"tag":105,"props":323,"children":324},{},[325],{"type":45,"value":326},"\u002F\u002F Example of another module depending on Redis\nimport { GetClient } from '@ajs\u002Fredis\u002Fbeta';\n\nasync function storeValueInRedis(key: string, value: string) {\n  const client = await GetClient();\n  await client.set(key, value);\n}\n",{"type":29,"tag":94,"props":328,"children":330},{"id":329},"license",[331],{"type":45,"value":67},{"type":29,"tag":30,"props":333,"children":334},{},[335,337,343],{"type":45,"value":336},"This project is licensed under the Apache License 2.0 - see the ",{"type":29,"tag":52,"props":338,"children":340},{"href":339},"https:\u002F\u002Fraw.githubusercontent.com\u002Fantelopejs\u002Fredis\u002Fmain\u002FLICENSE",[341],{"type":45,"value":342},"LICENSE",{"type":45,"value":344}," file for details.",{"title":24,"searchDepth":346,"depth":346,"links":347},3,[348],{"id":42,"depth":349,"text":15,"children":350},2,[351,352,353,354,358,359],{"id":96,"depth":346,"text":99},{"id":112,"depth":346,"text":115},{"id":234,"depth":346,"text":237},{"id":258,"depth":346,"text":261,"children":355},[356],{"id":278,"depth":357,"text":281},4,{"id":310,"depth":346,"text":313},{"id":329,"depth":346,"text":67},1788893231730]