From 116e4818df03235e1eecebdbfe834095fecd2efe Mon Sep 17 00:00:00 2001 From: Nash Tsai Date: Mon, 18 Aug 2014 11:05:32 +0800 Subject: [PATCH] add defined caching error --- cache.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cache.go b/cache.go index b9bf6e0d..2a61ef75 100644 --- a/cache.go +++ b/cache.go @@ -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