mirror of
https://github.com/xxjwxc/public.git
synced 2025-09-26 20:01:19 +08:00
21 lines
576 B
Go
21 lines
576 B
Go
/*
|
|
* 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")
|
|
)
|