-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy patherrors.go
More file actions
24 lines (16 loc) · 940 Bytes
/
errors.go
File metadata and controls
24 lines (16 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package distributedcache
import "errors"
// ErrNotFound is returned when a key is not found in the cache.
var ErrNotFound = errors.New("key not found")
// ErrCacheClosed is returned when operations are performed on a closed cache.
var ErrCacheClosed = errors.New("cache is closed")
// ErrInvalidConfig is returned when the cache configuration is invalid.
var ErrInvalidConfig = errors.New("invalid cache configuration")
// ErrSerializationFailed is returned when serialization fails.
var ErrSerializationFailed = errors.New("serialization failed")
// ErrDeserializationFailed is returned when deserialization fails.
var ErrDeserializationFailed = errors.New("deserialization failed")
// ErrRedisConnection is returned when Redis connection fails.
var ErrRedisConnection = errors.New("redis connection failed")
// ErrPubSubFailed is returned when pub/sub operations fail.
var ErrPubSubFailed = errors.New("pub/sub operation failed")