Documentation ¶
Index ¶
- type MemCache
- func (c MemCache) GetData(hash string, v interface{}) (err error)
- func (c MemCache) GetSession(hash string) (session string, err error)
- func (c MemCache) IsNotFoundError(err error) bool
- func (c MemCache) SaveData(hash string, data interface{}) (err error)
- func (c MemCache) SaveSession(session string) (hash string, err error)
- type RedisCache
- func (c RedisCache) GetData(hash string, v interface{}) (err error)
- func (c RedisCache) GetSession(hash string) (session string, err error)
- func (c RedisCache) IsNotFoundError(err error) bool
- func (c RedisCache) SaveData(hash string, data interface{}) (err error)
- func (c RedisCache) SaveSession(session string) (hash string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemCache ¶
type MemCache struct {
// contains filtered or unexported fields
}
func NewMemCache ¶
func NewMemCache() *MemCache
func (MemCache) IsNotFoundError ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
func NewRedisCache ¶
func NewRedisCache(opt *redis.Options) RedisCache
func (RedisCache) GetData ¶
func (c RedisCache) GetData(hash string, v interface{}) (err error)
func (RedisCache) GetSession ¶
func (c RedisCache) GetSession(hash string) (session string, err error)
func (RedisCache) IsNotFoundError ¶
func (c RedisCache) IsNotFoundError(err error) bool
func (RedisCache) SaveData ¶
func (c RedisCache) SaveData(hash string, data interface{}) (err error)
func (RedisCache) SaveSession ¶
func (c RedisCache) SaveSession(session string) (hash string, err error)
Click to show internal directories.
Click to hide internal directories.