add defined caching error
This commit is contained in:
parent
865fc8c0fb
commit
116e4818df
5
cache.go
5
cache.go
|
@ -18,6 +18,11 @@ const (
|
||||||
CacheGcMaxRemoved = 20
|
CacheGcMaxRemoved = 20
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
ErrCacheMiss = errors.New("xorm/cache: key not found.")
|
||||||
|
ErrNotStored = errors.New("xorm/cache: not stored.")
|
||||||
|
)
|
||||||
|
|
||||||
// CacheStore is a interface to store cache
|
// CacheStore is a interface to store cache
|
||||||
type CacheStore interface {
|
type CacheStore interface {
|
||||||
// key is primary key or composite primary key
|
// key is primary key or composite primary key
|
||||||
|
|
Loading…
Reference in New Issue