package
Version:
v0.1.5
Opens a new window with list of versions in this module.
Published: Apr 21, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package redis provides Redis client helpers.
Package redis 提供 Redis 客户端辅助函数。
NewClient returns a Redis client.
Call NewClient(Config{Addr: "host:port"}).
NewClient 返回 Redis client。
调用 NewClient(Config{Addr: "host:port"})。
Example / 示例:
client, _ := redis.NewClient(redis.Config{Addr: "localhost:6379"})
Ping checks Redis connectivity.
Ping 检查 Redis 连通性。
Config configures NewClient.
Config 配置 NewClient。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.