filesaver
|
Interface for storage back-ends. More...
#include <StorageService.h>
Public Member Functions | |
virtual | ~StorageService () |
virtual int | createTables ()=0 |
virtual int | insertEntry (const FileSizePair &pair)=0 |
virtual int | insertEntryBatch (const std::vector< FileSizePair > &pairs, size_t start, size_t end)=0 |
virtual std::optional< FileSizePair > | fetchEntry (const std::string &filepath)=0 |
Interface for storage back-ends.
Definition at line 17 of file StorageService.h.
|
inlinevirtual |
Definition at line 20 of file StorageService.h.
|
pure virtual |
Perform setup for this storage back-end
Implemented in filesaver::LevelDbStorageService.
|
pure virtual |
Fetch an entry from the store
Implemented in filesaver::LevelDbStorageService.
|
pure virtual |
Insert an entry onto the store
Implemented in filesaver::LevelDbStorageService.
|
pure virtual |
Implemented in filesaver::LevelDbStorageService.