func decodeReply(r *redis.Reply) (interface{}, error) {
	switch r.Type {
	case redis.StatusReply:
		gslog.Debugf("Redis status reply")
		return r.Str()

	case redis.ErrorReply:
		gslog.Debugf("Redis error reply")
		return nil, r.Err

	case redis.IntegerReply:
		gslog.Debugf("Redis int reply")
		return r.Int()

	case redis.NilReply:
		gslog.Debugf("Redis nil reply")
		return nil, nil

	case redis.BulkReply:
		gslog.Debugf("Redis bulk reply")
		return r.Str()

	case redis.MultiReply:
		gslog.Debugf("Redis multibulk reply")
		return r.List()
	}

	return nil, nil
}
// Decodes a reply into a generic interface object, or an error
Decodes a reply into a generic interface object, or an error
// Decodes a reply into a generic interface object or an error
func decodeReply(r *redis.Reply) (interface{}, error) {
	switch r.Type {
	case redis.StatusReply:
		gslog.Debugf("Redis status reply")
		return r.Str()
	case redis.ErrorReply:
		gslog.Debugf("Redis error reply")
		return nil, r.Err
	case redis.IntegerReply:
		gslog.Debugf("Redis int reply")
		return r.Int()
	case redis.NilReply:
		gslog.Debugf("Redis nil reply")
		return nil, nil
	case redis.BulkReply:
		gslog.Debugf("Redis bulk reply")
		return r.Str()
	case redis.MultiReply:
		gslog.Debugf("Redis multibulk reply")
		return r.List()
	}
	return nil, nil
}
func decodeReply ( r * redis . Reply ) ( interface { } , error ) { switch r . Type { case redis . StatusReply : gslog . Debugf ( " " ) return r . Str ( ) case redis . ErrorReply : gslog . Debugf ( " " ) return nil , r . Err case redis . IntegerReply : gslog . Debugf ( " " ) return r . Int ( ) case redis . NilReply : gslog . Debugf ( " " ) return nil , nil case redis . BulkReply : gslog . Debugf ( " " ) return r . Str ( ) case redis . MultiReply : gslog . Debugf ( " " ) return r . List ( ) } return nil , nil }
Decodes a reply into a generic interface object, or an error
Decodes a reply into a generic interface object or an error