Skip to main content

NewMsgPackMarshaler

NewMsgPackMarshaler creates a new marshaler that marshals/unmarshals cache values using MsgPack.

def NewMsgPackMarshaler(
cache: cache.CacheInterface[any]
) - > *Marshaler

Creates a new marshaler that marshals/unmarshals cache values using MsgPack.

Parameters

NameTypeDescription
cachecache.CacheInterface[any]The cache interface to be used by the marshaler for storing and retrieving values.

Returns

TypeDescription
*MarshalerA new Marshaler instance configured to use MsgPack for serialization.