1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Remove deprecated funcs.

This commit is contained in:
Vladimir Mihailenco
2015-05-02 16:19:22 +03:00
parent f7a1636422
commit 121cfc5792
9 changed files with 12 additions and 24 deletions

View File

@ -10,14 +10,14 @@ import (
var client *redis.Client
func init() {
client = redis.NewTCPClient(&redis.Options{
client = redis.NewClient(&redis.Options{
Addr: ":6379",
})
client.FlushDb()
}
func ExampleNewTCPClient() {
client := redis.NewTCPClient(&redis.Options{
func ExampleNewClient() {
client := redis.NewClient(&redis.Options{
Addr: "localhost:6379",
Password: "", // no password set
DB: 0, // use default DB