-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathredisLoader.hpp
More file actions
23 lines (19 loc) · 774 Bytes
/
Copy pathredisLoader.hpp
File metadata and controls
23 lines (19 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Backtesting Engine in C++
//
// (c) 2026 Ryan McCaffery | https://mccaffers.com
// This code is licensed under MIT license (see LICENSE.txt for details)
// ---------------------------------------
#pragma once
#include <string>
// LPUSH pairs with RedisRunner's RPOP so consumers observe FIFO ordering.
class RedisLoader {
public:
static int load(const std::string& rawJson,
const std::string& redisHost = "127.0.0.1",
int redisPort = 6379,
const std::string& queueKey = "strategy_queue");
static int loadPayload(const std::string& redisHost,
int redisPort,
const std::string& queueKey,
const std::string& rawJson);
};