Documentation
¶
Index ¶
- func NewRedis(Addr string, Password string, db int) sc.Cache
- type Redis
- func (r Redis) Configure(id string) (configure sc.Configure, err error)
- func (r Redis) ConfigureStore(id string, configure sc.Configure) (err error)
- func (r Redis) Error(id sc.SessionID) (sc.SessionError, error)
- func (r Redis) ErrorStore(id sc.SessionID, sessionError sc.SessionError) error
- func (r Redis) Session(sessionID sc.SessionID) (session *sc.Session, err error)
- func (r Redis) SessionHistory(userUID sc.UserUID, start time.Time, end time.Time) (sessions []sc.Session, err error)
- func (r Redis) SessionStatus(sessionID sc.SessionID) (status sc.SessionStatus, err error)
- func (r Redis) SessionStatusRecord(sessionID sc.SessionID, status sc.SessionStatus) error
- func (r Redis) SessionStore(session *sc.Session) (err error)
- func (r Redis) User(userUID sc.UserUID) (user *sc.User, err error)
- func (r Redis) UserAnswer(userUID sc.UserUID) ([]string, error)
- func (r Redis) UserAnswerStore(userUID sc.UserUID, smartIDs ...string) (err error)
- func (r Redis) UserBalance(id sc.UserUID) (float32, error)
- func (r Redis) UserID2UID(userID string) (userUID sc.UserUID, err error)
- func (r Redis) UserSmartUIDs(userUID sc.UserUID) ([]string, error)
- func (r Redis) UserSmartsStore(userUID sc.UserUID, smartIDs ...string) error
- func (r Redis) UserStore(user *sc.User) (err error)
- func (r Redis) UserUIDBind(userID string, userUID sc.UserUID) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Redis ¶
func (Redis) ConfigureStore ¶
func (Redis) ErrorStore ¶
func (Redis) SessionHistory ¶
func (Redis) SessionStatus ¶
func (Redis) SessionStatusRecord ¶
func (Redis) UserAnswerStore ¶
func (Redis) UserSmartsStore ¶
Click to show internal directories.
Click to hide internal directories.