cache

package
v0.0.0-...-4c61dc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameCache

type GameCache struct {
	Setting Setting
	// contains filtered or unexported fields
}

GameCache ICache

func (*GameCache) ClearAllCache

func (c *GameCache) ClearAllCache()

ClearAllCache ...

func (*GameCache) ClearPlayerCache

func (c *GameCache) ClearPlayerCache(playerid int64, gameAccount string)

ClearPlayerCache ...

func (*GameCache) GetAccountInfo

func (c *GameCache) GetAccountInfo(gameAccount string) (interface{}, messagehandle.ErrorMsg)

GetAccountInfo Get Account Struct

func (*GameCache) GetAttach

func (c *GameCache) GetAttach(playerid int64) interface{}

GetAttach game data request

func (*GameCache) GetCachePool

func (c *GameCache) GetCachePool() *redis.Pool

GetCachePool ...

func (*GameCache) GetPlayerInfo

func (c *GameCache) GetPlayerInfo(playerid int64) (interface{}, messagehandle.ErrorMsg)

GetPlayerInfo Get PlayerInfo Struct

func (*GameCache) GetToken

func (c *GameCache) GetToken(gameAccount string) string

GetToken ...

func (*GameCache) GetULGInfoCache

func (c *GameCache) GetULGInfoCache(playerid int64) interface{}

GetULGInfoCache Get ULG info

func (*GameCache) SetAccountInfo

func (c *GameCache) SetAccountInfo(gameAccount string, Value interface{})

SetAccountInfo Set Account Struct

func (*GameCache) SetAttach

func (c *GameCache) SetAttach(playerid int64, value interface{})

SetAttach ...

func (*GameCache) SetPlayerInfo

func (c *GameCache) SetPlayerInfo(playerid int64, Value interface{})

SetPlayerInfo Set PlayerInfo Struct

func (*GameCache) SetToken

func (c *GameCache) SetToken(gameAccount, Token string)

SetToken ...

func (*GameCache) SetULGInfo

func (c *GameCache) SetULGInfo(playerid int64, value interface{})

SetULGInfo Set ULG info

type Setting

type Setting struct {
	ConnectTimeout, ReadTimeout, WriteTimeout, CacheDeleteTime time.Duration
	URL                                                        string
}

Setting ...

func NewCacheSetting

func NewCacheSetting() Setting

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL