folly::MallctlMibReadWriteCache

Caches the resolved MIB for a mallctl command that writes a value and reads the previous one, for repeated fast invocation.

Synopsis

Declared in <folly/memory/MallctlHelper.h>

template<
    typename ReadType,
    typename WriteType>
class MallctlMibReadWriteCache;

Member Functions

NameDescription
MallctlMibReadWriteCache [constructor]Resolves and caches the MIB for the given command.
operator() Invokes the cached command, writing the given value and returning the previous one.