| 331 | } |
| 332 | |
| 333 | size_t erase(const key_type& key) { |
| 334 | #ifdef IFOPSH_WITH_ROCKSDB |
| 335 | std::string key_str = key_to_string(key); |
| 336 | std::string full_key = prefix_ + key_str; |
| 337 | rocksdb::Status s = db_->Delete(rocksdb::WriteOptions{}, full_key); |
| 338 | return s.ok() ? 1 : 0; |
| 339 | #else |
| 340 | return 0; |
| 341 | #endif |
| 342 | } |
| 343 | |
| 344 | std::pair<iterator, bool> insert(const value_type& val) { |
| 345 | #ifdef IFOPSH_WITH_ROCKSDB |
nothing calls this directly
no test coverage detected