Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheProvider ¶
type CacheProvider interface { Get(key string) (value interface{}, exists bool) Set(key string, value interface{}) SetExpiration(key string, value interface{}, exp time.Duration) }
func GetCacheClient ¶
func GetCacheClient() CacheProvider
type GoCacheClient ¶
type GoCacheClient struct {
// contains filtered or unexported fields
}
func NewGoCacheClient ¶
func NewGoCacheClient() *GoCacheClient
func (*GoCacheClient) Get ¶
func (client *GoCacheClient) Get(key string) (value interface{}, exists bool)
func (*GoCacheClient) Set ¶
func (client *GoCacheClient) Set(key string, value interface{})
func (*GoCacheClient) SetExpiration ¶
func (client *GoCacheClient) SetExpiration(key string, value interface{}, expiration time.Duration)
Click to show internal directories.
Click to hide internal directories.