| 38 | PersistentStore::~PersistentStore() = default; |
| 39 | |
| 40 | void PersistentStore::store(const StringBox& key, |
| 41 | const BytesView& blob, |
| 42 | uint64_t ttlSeconds, |
| 43 | uint64_t weight, |
| 44 | Function<void(Result<Void>)> completion) { |
| 45 | _dispatchQueue->async( |
| 46 | [key, blob, ttlSeconds, weight, self = strongRef(this), completion = std::move(completion)]() { |
| 47 | self->_store.store(key, blob, ttlSeconds, weight); |
| 48 | self->scheduleSave(completion); |
| 49 | }); |
| 50 | } |
| 51 | |
| 52 | void PersistentStore::setMaxWeight(uint64_t maxWeight) { |
| 53 | _store.setMaxWeight(maxWeight); |
nothing calls this directly
no test coverage detected