xrpld
Loading...
Searching...
No Matches
xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointer, Hash, KeyEqual, Mutex >::Stats Struct Reference
Collaboration diagram for xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointer, Hash, KeyEqual, Mutex >::Stats:

Public Member Functions

template<class Handler>
 Stats (std::string const &prefix, Handler const &handler, beast::insight::Collector::Ptr const &collector)

Public Attributes

beast::insight::Hook hook
beast::insight::Gauge size
beast::insight::Gauge hitRate

Detailed Description

template<class Key, class T, bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointer = std::shared_ptr<T>, class Hash = HardenedHash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
struct xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointer, Hash, KeyEqual, Mutex >::Stats

Definition at line 323 of file TaggedCache.h.

Constructor & Destructor Documentation

◆ Stats()

template<class Key, class T, bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointer = std::shared_ptr<T>, class Hash = HardenedHash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
template<class Handler>
xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointer, Hash, KeyEqual, Mutex >::Stats::Stats ( std::string const & prefix,
Handler const & handler,
beast::insight::Collector::Ptr const & collector )

Definition at line 326 of file TaggedCache.h.

Member Data Documentation

◆ hook

template<class Key, class T, bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointer = std::shared_ptr<T>, class Hash = HardenedHash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
beast::insight::Hook xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointer, Hash, KeyEqual, Mutex >::Stats::hook

Definition at line 337 of file TaggedCache.h.

◆ size

template<class Key, class T, bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointer = std::shared_ptr<T>, class Hash = HardenedHash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
beast::insight::Gauge xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointer, Hash, KeyEqual, Mutex >::Stats::size

Definition at line 338 of file TaggedCache.h.

◆ hitRate

template<class Key, class T, bool IsKeyCache = false, class SharedWeakUnionPointerType = SharedWeakCachePointer<T>, class SharedPointer = std::shared_ptr<T>, class Hash = HardenedHash<>, class KeyEqual = std::equal_to<Key>, class Mutex = std::recursive_mutex>
beast::insight::Gauge xrpl::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointer, Hash, KeyEqual, Mutex >::Stats::hitRate

Definition at line 339 of file TaggedCache.h.