package cache import ( "time" ) type ICacher interface { FlushAll() error Set(key string, value interface{}, expiration time.Duration) error Del(key string) error Get(key string) interface{} GetAs(key string, ptr interface{}) error }