10 #include "distributed.h" 11 #include "redisclient.h" 25 RedisStore(std::string prefix, std::string_view host,
int port);
28 void set(std::string
const& key, std::vector<uint8_t>
const& value)
override;
29 std::vector<uint8_t>
get(std::string
const& key)
override;
30 int64_t
add(std::string
const& key, int64_t value)
override;
31 bool check(std::vector<std::string>
const& keys)
override;
32 void wait(std::vector<std::string>
const& keys)
override;
34 std::vector<std::string>
const& keys,
35 std::chrono::milliseconds
const& timeout)
override;
40 std::unique_ptr<RedisClient> redis_;
41 std::vector<std::string> setKeys_;
RedisStore(std::string prefix, std::string_view host, int port)
Definition: redisstore.cpp:21
bool check(std::vector< std::string > const &keys) override
Definition: redisstore.cpp:73
virtual ~RedisStore()
Definition: redisstore.cpp:26
int64_t add(std::string const &key, int64_t value) override
Definition: redisstore.cpp:68
void wait(std::vector< std::string > const &keys) override
Definition: redisstore.cpp:101
The TorchCraftAI training library.
Definition: batcher.cpp:15
c10d::Store for rendez-vous backed by Redis.
Definition: redisstore.h:23