* @brief Get "real" size in RAM of the cached objects * * This does not include metadata used to maintain the unordered map itself. * * @return size_t size of cache in bytes */
| 249 | * @return size_t size of cache in bytes |
| 250 | */ |
| 251 | size_t bytes() { |
| 252 | std::shared_lock l(cache_mutex); |
| 253 | return sizeof(*this) + (cache_map->bucket_count() * sizeof(size_t)); |
| 254 | } |
| 255 | |
| 256 | }; |
| 257 |
no outgoing calls
no test coverage detected