Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
data::SomeLedgerCacheSaver Concept Reference

A concept for a class that can save ledger cache asynchronously. More...

#include <LedgerCacheSaver.hpp>

Concept definition

template<typename T>
concept SomeLedgerCacheSaver = requires(T a) {
{ a.save() } -> std::same_as<void>;
{ a.waitToFinish() } -> std::same_as<void>;
}
A concept for a class that can save ledger cache asynchronously.
Definition LedgerCacheSaver.hpp:23

Detailed Description

A concept for a class that can save ledger cache asynchronously.

This concept defines the interface requirements for any type that manages asynchronous saving of ledger cache to persistent storage.

Template Parameters
TThe type to check