diff options
Diffstat (limited to 'vendor/codeberg.org/gruf/go-cache/v3/result/error.go')
-rw-r--r-- | vendor/codeberg.org/gruf/go-cache/v3/result/error.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/vendor/codeberg.org/gruf/go-cache/v3/result/error.go b/vendor/codeberg.org/gruf/go-cache/v3/result/error.go deleted file mode 100644 index fa26083bf..000000000 --- a/vendor/codeberg.org/gruf/go-cache/v3/result/error.go +++ /dev/null @@ -1,22 +0,0 @@ -package result - -import "errors" - -// ErrUnkownLookup ... -var ErrUnknownLookup = errors.New("unknown lookup identifier") - -// IsConflictErr returns whether error is due to key conflict. -func IsConflictErr(err error) bool { - _, ok := err.(ConflictError) - return ok -} - -// ConflictError is returned on cache key conflict. -type ConflictError struct { - Key string -} - -// Error returns the message for this key conflict error. -func (c ConflictError) Error() string { - return "cache conflict for key \"" + c.Key + "\"" -} |