Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKeyExpired = merror.Error("the key is expired") ErrKeyNotExist = merror.Error("the key isn't exist") )
Functions ¶
func RegisterNewCacheImpl ¶
Types ¶
type Cache ¶
type Cache interface { GetClient() interface{} Get(ctx context.Context, key string) (interface{}, error) GetMulti(ctx context.Context, keys []string) ([]interface{}, error) Put(ctx context.Context, key string, val interface{}, timeout time.Duration) error Delete(ctx context.Context, key string) error Start(config string) error }
Click to show internal directories.
Click to hide internal directories.