Documentation
¶
Index ¶
- type IncRCU
- func (self *IncRCU) DumpI64() (ret map[int64]interface{})
- func (self *IncRCU) DumpStr() (ret map[string]interface{})
- func (self *IncRCU) GetByI64(id int64) interface{}
- func (self *IncRCU) GetByStr(id string) interface{}
- func (self *IncRCU) SetByI64(id int64, val interface{}) (exist bool)
- func (self *IncRCU) SetByStr(id string, val interface{}) (exist bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IncRCU ¶
type IncRCU struct {
// contains filtered or unexported fields
}
IncRCU wraps normal map as an incremental RCU (Read-Copy-Update) cache
WARN: It's only used for **Fixed** key-val relation, changing a value mapped to same key is **NOT** allowed
func NewRCUI64 ¶
NewRCUI64 accepts map[int]interface{} as RCU
WARN: this API can be only used on the IncRCU returned by `NewRCUI64()`
func NewRCUStr ¶
NewRCUI64 accepts map[int]interface{} as RCU
WARN: this API can be only used on the IncRCU returned by `NewRCUStr()`
func (*IncRCU) GetByI64 ¶
GetByI64 returns corresponding val of int64 id
WARN: this API can be only used on the IncRCU returned by `NewRCUI64()`
func (*IncRCU) GetByStr ¶
GetByStr returns corresponding val of string id to
WARN: this API can be only used on the IncRCU returned by `NewRCUStr()`