nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::RedisTimeouts Struct Reference

#include <redis.h>

Public Attributes

std::chrono::milliseconds answer {250}
 For connecting, and then for each reply.
std::chrono::milliseconds fail_fast {1000}

Detailed Description

How long Redis has to answer, and what happens when it doesn't. A world's tick waits for its saves and its leases, so a Redis that hangs would hang every world.

Definition at line 19 of file redis.h.

Member Data Documentation

◆ answer

std::chrono::milliseconds nanommo::RedisTimeouts::answer {250}

For connecting, and then for each reply.

Definition at line 21 of file redis.h.

◆ fail_fast

std::chrono::milliseconds nanommo::RedisTimeouts::fail_fast {1000}

After Redis didn't answer in time, or couldn't be reached, each call fails at once for this long, without asking it, so that a tick pays for one timeout a second, not one each call.

Definition at line 25 of file redis.h.


The documentation for this struct was generated from the following file: