Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RememberFunc ¶
type RememberFunc func() interface{}
RememberFunc is the function that is used for remember method.
type Store ¶
type Store interface { Flush() error // Decrement(string, ...int64) (int64, error) Get(string) (interface{}, error) // Number(string) (int64, error) // Increment(string, ...int64) (int64, error) // Remember(string, time.Duration, RememberFunc) (interface{}, error) Remove(string) error Result(string, interface{}) error Set(string, interface{}, time.Duration) error Close() error }
Store provides a interface to implement cache stores.
Click to show internal directories.
Click to hide internal directories.