package hscan

import "github.com/go-redis/redis/v8/internal/hscan"

Index

Functions

func Scan

func Scan(dst interface{}, keys []interface{}, vals []interface{}) error

Scan scans the results from a key-value Redis map result set to a destination struct. The Redis keys are matched to the struct's field with the `redis` tag.

Types

type StructValue

type StructValue struct {
	// contains filtered or unexported fields
}

func Struct

func Struct(dst interface{}) (StructValue, error)

func (StructValue) Scan

func (s StructValue) Scan(key string, value string) error

Source Files

hscan.go structmap.go

Version
v8.11.5 (latest)
Published
Mar 17, 2022
Platform
linux/amd64
Imports
6 packages
Last checked
1 week ago

Tools for package owners.