class rgpot::cache::KeyHash¶
Overview¶
Struct to hold the hash and string key for caching. More…
Detailed Documentation¶
Struct to hold the hash and string key for caching.
Fields¶
size_t hash
The numeric hash value.
Construction¶
KeyHash(size_t _hash)
Constructor for KeyHash.
Parameters:
_hash |
The numeric hash to wrap. |
Methods¶
rocksdb::Slice slice() const
Returns a binary slice view of the hash for RocksDB.
Returns:
A rocksdb::Slice wrapping the raw hash bytes.