Skip to main content

NewProtoMarshaler

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

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

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

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 proto.Marshal for serialization.