Documentation ¶
Index ¶
- Constants
- func BatchGet(keys []interface{}) map[interface{}]interface{}
- func Close()
- func CopyGlData(glJsonObj *js.Json)
- func Decr(key interface{}, count int64) int64
- func Del(key interface{})
- func Exist() bool
- func Get(key interface{}) (interface{}, bool)
- func GetCurrentGlData() map[string]interface{}
- func GetGlData() *js.Json
- func Incr(key interface{}, count int64) int64
- func IncrCost(key interface{}, cost time.Duration) int64
- func IncrCostKey(key string, cost time.Duration) int64
- func IncrCountKey(key string, val int64) int64
- func IncrFailKey(key string, val int64) int64
- func Init()
- func JsonCurrentGlData() *js.Json
- func Set(key interface{}, val interface{})
- func SetLogger(l Logger)
- type ConcurrentMap
- type Logger
- type Shard
Constants ¶
View Source
const ( ClientIp = "glClientIp" Tag = "glTag" LogId = "glLogId" Url = "glUrl" HideData = "glHideData" HideRet = "glHideRet" Server = "glServer" SecretKey = "glSecretKey" GdTokenRaw = "gdTokenRaw" GdToken = "gdToken" )
Variables ¶
This section is empty.
Functions ¶
func CopyGlData ¶
func GetCurrentGlData ¶
func GetCurrentGlData() map[string]interface{}
func IncrCountKey ¶
func IncrFailKey ¶
func JsonCurrentGlData ¶
Types ¶
type ConcurrentMap ¶
type ConcurrentMap struct {
// contains filtered or unexported fields
}
func NewShard ¶
func NewShard(shardCount int) *ConcurrentMap
func (*ConcurrentMap) Get ¶
func (m *ConcurrentMap) Get(key string) (interface{}, bool)
func (*ConcurrentMap) GetShard ¶
func (m *ConcurrentMap) GetShard(key string) *Shard
func (*ConcurrentMap) Remove ¶
func (m *ConcurrentMap) Remove(key string)
func (*ConcurrentMap) Set ¶
func (m *ConcurrentMap) Set(key string, value interface{})
Click to show internal directories.
Click to hide internal directories.