This commit is contained in:
Sebastian Messmer 2014-12-07 22:38:48 +01:00
parent 2c295ace62
commit 32d28665a0
3 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,7 @@ public:
virtual ~BlobStore() {}
virtual BlobWithKey create(size_t size) = 0;
//TODO Use boost::optional (if key doesn't exist)
// Return nullptr if blob with this key doesn't exists
virtual std::unique_ptr<Blob> load(const std::string &key) = 0;
//TODO Needed for performance? Or is deleting loaded blobs enough?

View File

@ -12,6 +12,7 @@ namespace blobstore {
// work with the BlobStore interface instead.
class BlobStoreWithRandomKeys: public BlobStore {
public:
//TODO Use boost::optional (if key already exists)
// Return nullptr if key already exists
virtual std::unique_ptr<BlobWithKey> create(const std::string &key, size_t size) = 0;

View File

@ -4,6 +4,7 @@
#include <cstdio>
//TODO Rename to RandomData or something more speaking about what this class does.
class VirtualTestFile {
public:
VirtualTestFile(size_t size, long long int IV = 1);