10 #include <common/language.h> 12 #include <autogradpp/autograd.h> 13 #include <nlohmann/json.hpp> 30 virtual void put(std::string
const& key, std::vector<char>
const& data) = 0;
31 virtual std::vector<char>
get(std::string
const& key) = 0;
39 virtual void put(std::string
const& key, std::vector<char>
const& data)
41 virtual std::vector<char>
get(std::string
const& key)
override;
57 std::shared_ptr<Cpid2kWorker> worker,
58 std::string prefix =
"blob");
61 virtual void put(std::string
const& key, std::vector<char>
const& data)
63 virtual std::vector<char>
get(std::string
const& key)
override;
66 std::string dbkey(std::string
const& key);
68 std::shared_ptr<Cpid2kWorker> worker_;
A simple interface for key-value data blob stores.
Definition: blobstorage.h:27
virtual ~BlobStorage()=default
Definition: blobstorage.h:34
virtual void put(std::string const &key, std::vector< char > const &data)=0
Blob storage in Redis.
Definition: blobstorage.h:54
The TorchCraftAI training library.
Definition: batcher.cpp:15