diff --git a/cache.go b/cache.go index 97f31c2..d0bd9d3 100644 --- a/cache.go +++ b/cache.go @@ -4,4 +4,5 @@ type Cache interface { Get(key string) (interface{}, error) Set(key string, data interface{}) error Remove(key string) error + Flush() } diff --git a/errors.go b/errors.go index c29bb5e..5845949 100644 --- a/errors.go +++ b/errors.go @@ -3,5 +3,5 @@ package gocache import "errors" var ( - ErrKeyNotFound = errors.New("Key not found") + ErrKeyNotFound = errors.New("key not found") )