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
| Name | Type | Description |
|---|---|---|
| cache | cache.CacheInterface[any] | The cache interface to be used by the marshaler for storing and retrieving values. |
Returns
| Type | Description |
|---|---|
*Marshaler | A new Marshaler instance configured to use proto.Marshal for serialization. |