26#ifndef ROUTER_SRC_REST_MRS_SRC_HELPER_CACHE_CACHE_H_
27#define ROUTER_SRC_REST_MRS_SRC_HELPER_CACHE_CACHE_H_
36template <
typename Key,
typename Value, uint32_t
size,
72 *cached_value = std::forward<V>(
value);
76 Key *removed_key =
nullptr;
82 node.mapped() = std::forward<V>(
value);
Value * set(const Key key, Value &&value)
Definition: cache.h:63
Value * get_cached_value(const Key key)
Definition: cache.h:52
Value * set_impl(const Key key, V &&value)
Definition: cache.h:69
Value * set(const Key key, const Value &value)
Definition: cache.h:64
Container & get_container()
Definition: cache.h:65
Container container_
Definition: cache.h:93
void remove(const Key key)
Definition: cache.h:43
std::map< Key, Value > Container
Definition: cache.h:40
Algorithm key_cache_
Definition: cache.h:92
typename Policy::template Algorithm< Key, Value, size > Algorithm
Definition: cache.h:39
std::string_view Key
The key type for the hash structure in HashJoinRowBuffer.
Definition: hash_join_buffer.h:108
ValueType value(const std::optional< ValueType > &v)
Definition: gtid.h:83
size_t size(const char *const c)
Definition: base64.h:46
required string key
Definition: replication_asynchronous_connection_failover.proto:60