in redis/redis.go [45:55]
func Init() (*Client, error) {
rClient, err := CreateRedisClient() // connecting to redis
if err != nil {
return nil, fmt.Errorf("Failed connecting to Redis: %s", err.Error())
}
err = rClient.Flush() // when the program starts, flush all stale memory
if err != nil {
return nil, fmt.Errorf("Failed to FlushAll: %s", err.Error())
}
return rClient, nil
}