filesaver
|
LevelDB implementation of the size cache. More...
#include <LevelDbStorageService.h>
Public Member Functions | |
INJECT (LevelDbStorageService(const std::string &dbFilename)) | |
~LevelDbStorageService () override | |
bool | isDatabaseOk () |
int | createTables () override |
int | insertEntry (const FileSizePair &pair) override |
int | insertEntryBatch (const std::vector< FileSizePair > &pairs, size_t start, size_t end) override |
std::optional< FileSizePair > | fetchEntry (const std::string &filepath) override |
Public Member Functions inherited from filesaver::StorageService | |
virtual | ~StorageService () |
LevelDB implementation of the size cache.
Definition at line 21 of file LevelDbStorageService.h.
|
override |
Definition at line 29 of file LevelDbStorageService.cpp.
|
overridevirtual |
Perform setup for this storage back-end
Implements filesaver::StorageService.
Definition at line 41 of file LevelDbStorageService.cpp.
|
overridevirtual |
Fetch an entry from the store
Implements filesaver::StorageService.
Definition at line 82 of file LevelDbStorageService.cpp.
filesaver::LevelDbStorageService::INJECT | ( | LevelDbStorageService(const std::string &dbFilename) | ) |
|
overridevirtual |
Insert an entry onto the store
Implements filesaver::StorageService.
Definition at line 46 of file LevelDbStorageService.cpp.
|
overridevirtual |
Implements filesaver::StorageService.
Definition at line 61 of file LevelDbStorageService.cpp.
bool filesaver::LevelDbStorageService::isDatabaseOk | ( | ) |
Definition at line 36 of file LevelDbStorageService.cpp.