Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Set(ctx context.Context, key string, val interface{}, expiration time.Duration) error Get(ctx context.Context, key string) (interface{}, error) GetDel(ctx context.Context, key string) (interface{}, error) Scan(ctx context.Context, key string, val interface{}) error Delete(ctx context.Context, keys ...string) error Options() Options Ping(ctx context.Context) error Close(ctx context.Context) error }
Cache 定义cache驱动接口
type Option ¶
type Option func(o *Options)
func WithEndpoint ¶
func WithMinIdle ¶
func WithOptions ¶
func WithPoolSize ¶
Click to show internal directories.
Click to hide internal directories.