1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Add redis.Error interface and export ErrClosed

Fixes https://github.com/go-redis/redis/issues/1295
Closes https://github.com/go-redis/redis/pull/1296
This commit is contained in:
Vladimir Mihailenco
2020-05-21 09:24:19 +03:00
parent 2960952204
commit 07656a01bf
2 changed files with 17 additions and 0 deletions

View File

@ -24,6 +24,8 @@ type RedisError string
func (e RedisError) Error() string { return string(e) }
func (RedisError) RedisError() {}
//------------------------------------------------------------------------------
type MultiBulkParse func(*Reader, int64) (interface{}, error)