-
-
Notifications
You must be signed in to change notification settings - Fork 509
Expand file tree
/
Copy patherrors.go
More file actions
20 lines (17 loc) · 576 Bytes
/
errors.go
File metadata and controls
20 lines (17 loc) · 576 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
* Simple caching library with expiration capabilities
* Copyright (c) 2013-2017, Christian Muehlhaeuser <muesli@gmail.com>
*
* For license see LICENSE.txt
*/
package cache2go
import (
"errors"
)
var (
// ErrKeyNotFound gets returned when a specific key couldn't be found
ErrKeyNotFound = errors.New("Key not found in cache")
// ErrKeyNotFoundOrLoadable gets returned when a specific key couldn't be
// found and loading via the data-loader callback also failed
ErrKeyNotFoundOrLoadable = errors.New("Key not found and could not be loaded into cache")
)