#include <LatestEventsRepository.hpp>
|
| static bool | insert (const std::string &key, const std::string &value) noexcept |
| static bool | remove (const std::string &key) noexcept |
| static bool | exists (const std::string &key, const std::string &value) noexcept |
| static bool | try_claim_new_latest (const std::string &key, const std::string &yt_link) noexcept |
| static bool | load () noexcept |
| static void | set_active (const std::string &key, bool active) noexcept |
| static bool | is_active (const std::string &key) noexcept |
◆ exists()
| bool LatestEventsRepository::exists |
( |
const std::string & | key, |
|
|
const std::string & | value ) |
|
staticnodiscardnoexcept |
◆ insert()
| bool LatestEventsRepository::insert |
( |
const std::string & | key, |
|
|
const std::string & | value ) |
|
staticnodiscardnoexcept |
◆ is_active()
| bool LatestEventsRepository::is_active |
( |
const std::string & | key | ) |
|
|
staticnodiscardnoexcept |
◆ load()
| bool LatestEventsRepository::load |
( |
| ) |
|
|
staticnodiscardnoexcept |
◆ remove()
| bool LatestEventsRepository::remove |
( |
const std::string & | key | ) |
|
|
staticnodiscardnoexcept |
◆ set_active()
| void LatestEventsRepository::set_active |
( |
const std::string & | key, |
|
|
bool | active ) |
|
staticnoexcept |
◆ try_claim_new_latest()
| bool LatestEventsRepository::try_claim_new_latest |
( |
const std::string & | key, |
|
|
const std::string & | yt_link ) |
|
staticnodiscardnoexcept |
If yt_link is already the stored latest for key, returns false. Otherwise updates memory + DB and returns true so the caller may announce once. Thread-safe vs other LatestEventsRepository calls; use this instead of exists()+insert().
The documentation for this class was generated from the following files: