Documentation ¶
Index ¶
- Constants
- type Store
- func (s *Store) DistLockPlayerStatus(accountId string, value []byte) bool
- func (s *Store) DistUnlockPlayerStatus(accountId string)
- func (s *Store) GetPlayerPlayerBasicBriefData(uid uint32) ([]byte, bool)
- func (s *Store) GetPlayerStatus(accountId string) ([]byte, bool)
- func (s *Store) SetPlayerPlayerBasicBriefData(uid uint32, value []byte) bool
Constants ¶
View Source
const ( MaxLockAliveTime = 0 // 单个锁的最大存活时间 毫秒 LockRetryWaitTime = 50 // 同步加锁重试间隔时间 毫秒 MaxLockRetryTimes = 2 // 同步加锁最大重试次数 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct { PlayerDataMysql *gorm.DB ServerConf *gorm.DB LoginRedis *redis.Client StatusRedis *redis.Client PlayerBriefDataRedis *redis.Client // 玩家简要信息 // contains filtered or unexported fields }
var Db *Store
func (*Store) DistLockPlayerStatus ¶ added in v1.2.1
标记玩家状态
func (*Store) DistUnlockPlayerStatus ¶ added in v1.2.1
删除玩家状态
func (*Store) GetPlayerPlayerBasicBriefData ¶ added in v1.2.1
func (*Store) GetPlayerStatus ¶ added in v1.0.5
获取玩家状态
Click to show internal directories.
Click to hide internal directories.