| 136 | } |
| 137 | |
| 138 | void RocksDBStorageProvider::retrieve(const char *key, size_t cchKey, callbackSingle fn) const |
| 139 | { |
| 140 | rocksdb::PinnableSlice slice; |
| 141 | std::string prefixed_key = prefixKey(key, cchKey); |
| 142 | auto status = m_spdb->Get(ReadOptions(), m_spcolfamily.get(), rocksdb::Slice(prefixed_key), &slice); |
| 143 | if (status.ok()) |
| 144 | fn(key, cchKey, slice.data(), slice.size()); |
| 145 | } |
| 146 | |
| 147 | size_t RocksDBStorageProvider::clear() |
| 148 | { |