add defined caching error

This commit is contained in:
Nash Tsai 2014-08-18 11:05:32 +08:00
parent 865fc8c0fb
commit 116e4818df
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@ const (
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
type CacheStore interface {
// key is primary key or composite primary key