()
| 176 | } |
| 177 | |
| 178 | func ExampleConn_client_setInfo_libraryVersion() { |
| 179 | conn := rdb.Conn() |
| 180 | |
| 181 | err := conn.ClientSetInfo(ctx, redis.WithLibraryVersion("1.2.3")).Err() |
| 182 | if err != nil { |
| 183 | panic(err) |
| 184 | } |
| 185 | |
| 186 | // Open other connections. |
| 187 | for i := 0; i < 10; i++ { |
| 188 | go rdb.Ping(ctx) |
| 189 | } |
| 190 | |
| 191 | s, err := conn.ClientInfo(ctx).Result() |
| 192 | if err != nil { |
| 193 | panic(err) |
| 194 | } |
| 195 | |
| 196 | fmt.Println(s.LibVer) |
| 197 | // Output: 1.2.3 |
| 198 | } |
| 199 | |
| 200 | func ExampleClient_Set() { |
| 201 | // Last argument is expiration. Zero means the key has no |
nothing calls this directly
no test coverage detected