#include <userver/cache/base_postgres_cache.hpp>
template<typename PostgreCachePolicy>
class components::PostgreCache< PostgreCachePolicy >
Caching component for PostgreSQL. See Caching Component for PostgreSQL.
- See also
- Caching Component for PostgreSQL, Basics of Caches
- Examples
- samples/postgres_auth/user_info_cache.hpp.
Definition at line 379 of file base_postgres_cache.hpp.
|
enum class | Flag {
kNone = 0
,
kNoFirstUpdate = 1 << 0
} |
| Periodic update flags. More...
|
|
void | Set (std::unique_ptr< const T > value_ptr) |
|
void | Set (T &&value) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
template<typename... Args> |
void | Emplace (Args &&... args) |
|
void | Clear () |
| Clears the content of the cache by string a default constructed T.
|
|
virtual void | PreAssignCheck (const T *old_value_ptr, const T *new_value_ptr) const |
| If the option has-pre-assign-check is set true in static config, this function is called before assigning the new value to the cache.
|
|
virtual void | WriteContents (dump::Writer &writer, const T &contents) const |
|
virtual std::unique_ptr< const T > | ReadContents (dump::Reader &reader) const |
|
AllowedUpdateTypes | GetAllowedUpdateTypes () const |
| Update types configured for the cache.
|
|
void | StartPeriodicUpdates (utils::Flags< Flag > flags={}) |
| Starts periodic updates.
|
|
void | StopPeriodicUpdates () |
| Stops periodic updates.
|
|
void | AssertPeriodicUpdateStarted () |
|
void | OnCacheModified () |
|
| CacheUpdateTrait (CacheUpdateTrait &&)=delete |
|
CacheUpdateTrait & | operator= (CacheUpdateTrait &&)=delete |
|
void | InvalidateAsync (UpdateType update_type) |
| Non-blocking forced cache update of specified type.
|
|
void | UpdateSyncDebug (UpdateType update_type) |
| Forces a cache update of specified type.
|
|
const std::string & | Name () const |
|
◆ BaseType
template<typename PostgreCachePolicy >
◆ DataType
template<typename PostgreCachePolicy >
◆ PolicyCheckerType
template<typename PostgreCachePolicy >
using components::PostgreCache< PostgreCachePolicy >::PolicyCheckerType = pg_cache::detail::PolicyChecker<PostgreCachePolicy> |
◆ PolicyType
template<typename PostgreCachePolicy >
◆ RawValueType
template<typename PostgreCachePolicy >
◆ UpdatedFieldType
template<typename PostgreCachePolicy >
◆ ValueType
template<typename PostgreCachePolicy >
◆ PostgreCache()
template<typename PostgreCachePolicy >
◆ ~PostgreCache()
template<typename PostgreCachePolicy >
◆ GetStaticConfigSchema()
template<typename PostgreCachePolicy >
◆ kClusterHostTypeFlags
template<typename PostgreCachePolicy >
◆ kIncrementalUpdates
template<typename PostgreCachePolicy >
◆ kName
template<typename PostgreCachePolicy >
The documentation for this class was generated from the following file: