TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
Blob storage in Redis. More...
#include <blobstorage.h>
Inherits cpid::BlobStorage.
Public Member Functions | |
BlobStorageRedis (std::shared_ptr< Cpid2kWorker > worker, std::string prefix="blob") | |
virtual | ~BlobStorageRedis () override |
virtual void | put (std::string const &key, std::vector< char > const &data) override |
virtual std::vector< char > | get (std::string const &key) override |
Public Member Functions inherited from cpid::BlobStorage | |
virtual | ~BlobStorage ()=default |
Blob storage in Redis.
Note that Cpid2kWorker is only used to obtain a database connection in a thread-safe manner. Models are stored directly under the separately specified prefix to ease data access across jobs.
cpid::BlobStorageRedis::BlobStorageRedis | ( | std::shared_ptr< Cpid2kWorker > | worker, |
std::string | prefix = "blob" |
||
) |
|
overridevirtual |
|
overridevirtual |
Implements cpid::BlobStorage.
|
overridevirtual |
Implements cpid::BlobStorage.