Documentation
¶
Index ¶
- type CacheClassroom
- func (c *CacheClassroom) GetEmptyRoomCache(ctx context.Context, key string) (emptyRoomList []string, err error)
- func (c *CacheClassroom) GetExamRoom(ctx context.Context, key string) ([]*jwch.ExamRoomInfo, error)
- func (c *CacheClassroom) SetEmptyRoomCache(ctx context.Context, key string, emptyRoomList []string) error
- func (c *CacheClassroom) SetExamRoom(ctx context.Context, key string, value []*jwch.ExamRoomInfo)
- func (c *CacheClassroom) SetXiaMenEmptyRoomCache(ctx context.Context, date, start, end string, emptyRoomList []string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheClassroom ¶
type CacheClassroom struct {
// contains filtered or unexported fields
}
func NewCacheClassroom ¶
func NewCacheClassroom(client *redis.Client) *CacheClassroom
func (*CacheClassroom) GetEmptyRoomCache ¶
func (*CacheClassroom) GetExamRoom ¶
func (c *CacheClassroom) GetExamRoom(ctx context.Context, key string) ([]*jwch.ExamRoomInfo, error)
func (*CacheClassroom) SetEmptyRoomCache ¶
func (*CacheClassroom) SetExamRoom ¶
func (c *CacheClassroom) SetExamRoom(ctx context.Context, key string, value []*jwch.ExamRoomInfo)
func (*CacheClassroom) SetXiaMenEmptyRoomCache ¶
Click to show internal directories.
Click to hide internal directories.