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

#include <events.h>

Public Member Functions

 Events (Redis &redis)
absl::Status Add (const std::vector< std::string > &rows)
 Adds the rows to the stream, all of them in a single round trip.

Static Public Attributes

static constexpr int kKeep = 1'000'000

Detailed Description

Where the worlds put the game's events, a Redis stream, so that a tick never waits on the analytics.

Definition at line 34 of file events.h.

Constructor & Destructor Documentation

◆ Events()

nanommo::Events::Events ( Redis & redis)
inlineexplicit

Definition at line 40 of file events.h.

Member Function Documentation

◆ Add()

absl::Status nanommo::Events::Add ( const std::vector< std::string > & rows)

Adds the rows to the stream, all of them in a single round trip.

Definition at line 121 of file events.cc.

Member Data Documentation

◆ kKeep

int nanommo::Events::kKeep = 1'000'000
staticconstexpr

The stream keeps about the newest this many, so that it can't fill Redis's memory while the recorder's down.

Definition at line 38 of file events.h.


The documentation for this class was generated from the following files: