Documentation
¶
Index ¶
- Variables
- type RCache
- func (r *RCache) CategoryByTName(tname string) (*category.Category, bool, error)
- func (r *RCache) Close() error
- func (r *RCache) FlushAll() error
- func (r *RCache) Ping() (string, error)
- func (r *RCache) RedisClient() *redis.Client
- func (r *RCache) RefreshCategory() error
- func (r *RCache) RefreshUserBasicByUID(uid int32) (*user.Basic, error)
- func (r *RCache) RefreshUserUIDByUsername(username string) (int32, error)
- func (r *RCache) RefreshValidSessionByToken(token string) (*session.Cache, error)
- func (r *RCache) UserBasicByUID(uid int32) (*user.Basic, bool, error)
- func (r *RCache) UserUIDByUsername(username string) (int32, bool, error)
- func (r *RCache) ValidSessionByToken(token string) (*session.Cache, bool, error)
- type TTLConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CacheCategoryInMem = true
)
View Source
var (
ErrCannotDecode = errors.New("cannot decode the session in redis")
)
Functions ¶
This section is empty.
Types ¶
type RCache ¶
type RCache struct {
// contains filtered or unexported fields
}
func (*RCache) CategoryByTName ¶
func (*RCache) RedisClient ¶
func (r *RCache) RedisClient() *redis.Client
func (*RCache) RefreshCategory ¶
func (*RCache) RefreshUserBasicByUID ¶
func (*RCache) RefreshUserUIDByUsername ¶
func (*RCache) RefreshValidSessionByToken ¶
func (*RCache) UserBasicByUID ¶
func (*RCache) UserUIDByUsername ¶
Click to show internal directories.
Click to hide internal directories.