mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
fix: change serialize key "key" to "redis"
This commit is contained in:
@ -198,10 +198,10 @@ func ExampleClient_SetEX() {
|
||||
}
|
||||
|
||||
func ExampleClient_HSet() {
|
||||
// Set "key" tag for hash key
|
||||
// Set "redis" tag for hash key
|
||||
type ExampleUser struct {
|
||||
Name string `key:"name"`
|
||||
Age int `key:"age"`
|
||||
Name string `redis:"name"`
|
||||
Age int `redis:"age"`
|
||||
}
|
||||
|
||||
items := ExampleUser{"jane", 22}
|
||||
|
Reference in New Issue
Block a user