Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalArray ¶
UnmarshalArray unmarshals an array with length len(targets) from br into the values in targets.
Types ¶
type Duration ¶
type Duration struct { time.Duration // Precision that will be used when marshalling to and unmarshalling from RESP format. // // If Precision is 0, time.Millisecond is used. Precision time.Duration }
Duration wraps a time.Duration with a given Precision for marshalling and unmarshalling for Redis.
func (Duration) MarshalRESP ¶
MarshalRESP implements the resp.Marshaler interface.
Click to show internal directories.
Click to hide internal directories.