Documentation
¶
Index ¶
- func ExportAsync(filename string, v resp.RedisValue, values iter.Seq[resp.RedisValue], ...) error
- func PipeRedisValue(w io.Writer, v resp.RedisValue, shellCmd string) error
- func PrintRedisValue(w io.Writer, v resp.RedisValue, opts PrintOpts)
- func PrintRedisValues(w io.Writer, r io.Reader, values iter.Seq[resp.RedisValue], opts PrintOpts, ...)
- type PrintOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportAsync ¶
func ExportAsync(filename string, v resp.RedisValue, values iter.Seq[resp.RedisValue], typeHint string) error
ExportAsync writes a RedisValue or an iterator of RedisValues to a file.
C# equivalent: public static async Task ExportAsync(Connection connection, string filename, ParsedCommand command)
func PipeRedisValue ¶
PipeRedisValue pipes a RedisValue to a shell command.
C# equivalent: public static void PipeRedisValue(ParsedCommand command, RedisValue value)
func PrintRedisValue ¶
func PrintRedisValue(w io.Writer, v resp.RedisValue, opts PrintOpts)
PrintRedisValue prints a RedisValue to the given writer with optional ANSI colors.
C# equivalent: public static async Task PrintRedisValue(RedisValue value, string padding = "", bool color = true, string type = "", bool newline = true, ISerializer serializer = null)
func PrintRedisValues ¶
func PrintRedisValues(w io.Writer, r io.Reader, values iter.Seq[resp.RedisValue], opts PrintOpts, warningAt int)
PrintRedisValues prints an iterator of RedisValues with pagination.
C# equivalent: public static async Task PrintRedisValues(IEnumerable<RedisValue> values, int warningAt = 100, string type = "")
Types ¶
type PrintOpts ¶
type PrintOpts struct {
Color bool
Serializer serializer.Serializer
Padding string
TypeHint string // e.g., "hash", "stream"
Newline bool
}
PrintOpts configures how a RedisValue is printed.