Documentation
¶
Index ¶
- type CacheCommon
- func (c *CacheCommon) GetTermInfo(ctx context.Context, key string) (*jwch.CalTermEvents, error)
- func (c *CacheCommon) GetTermListCache(ctx context.Context, key string) (list *jwch.SchoolCalendar, err error)
- func (c *CacheCommon) SetTermInfo(ctx context.Context, key string, value *jwch.CalTermEvents) error
- func (c *CacheCommon) SetTermListCache(ctx context.Context, key string, list *jwch.SchoolCalendar) error
- func (c *CacheCommon) TermInfoKey(term string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheCommon ¶
type CacheCommon struct {
// contains filtered or unexported fields
}
func NewCacheCommon ¶
func NewCacheCommon(client *redis.Client) *CacheCommon
func (*CacheCommon) GetTermInfo ¶
func (c *CacheCommon) GetTermInfo(ctx context.Context, key string) (*jwch.CalTermEvents, error)
func (*CacheCommon) GetTermListCache ¶
func (c *CacheCommon) GetTermListCache(ctx context.Context, key string) (list *jwch.SchoolCalendar, err error)
func (*CacheCommon) SetTermInfo ¶
func (c *CacheCommon) SetTermInfo(ctx context.Context, key string, value *jwch.CalTermEvents) error
func (*CacheCommon) SetTermListCache ¶
func (c *CacheCommon) SetTermListCache(ctx context.Context, key string, list *jwch.SchoolCalendar) error
func (*CacheCommon) TermInfoKey ¶
func (c *CacheCommon) TermInfoKey(term string) string
Click to show internal directories.
Click to hide internal directories.