Documentation
¶
Index ¶
- func GetDefaultOpt() rockscache.Options
- func NewMeeting(rdb redis.UniversalClient, meetingDB database.Meeting, ...) cache.Meeting
- func NewMetaCacheRedis(rcClient *rockscache.Client, keys ...string) cache.Meta
- func NewUser(rdb redis.UniversalClient, userDB database.User, options rockscache.Options) cache.User
- type Comparable
- type Meeting
- type User
- func (u *User) CacheUserToken(ctx context.Context, userID, userToken string) error
- func (u *User) ClearUserToken(ctx context.Context, userID string) error
- func (u *User) DelUsersInfo(userIDs ...string) cache.User
- func (u *User) GenerateUserID(ctx context.Context) (string, error)
- func (u *User) GetUserByAccount(ctx context.Context, account string) (*model.User, error)
- func (u *User) GetUserToken(ctx context.Context, userID string) (string, error)
- func (u *User) GetUsersInfo(ctx context.Context, userIDs []string) ([]*model.User, error)
- func (u *User) NewCache() cache.User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultOpt ¶
func GetDefaultOpt() rockscache.Options
func NewMeeting ¶
func NewMetaCacheRedis ¶
func NewMetaCacheRedis(rcClient *rockscache.Client, keys ...string) cache.Meta
Types ¶
type User ¶
func (*User) CacheUserToken ¶
func (*User) ClearUserToken ¶
func (*User) GetUserByAccount ¶
func (*User) GetUserToken ¶
func (*User) GetUsersInfo ¶
Click to show internal directories.
Click to hide internal directories.