This website requires JavaScript.
Explore
Help
Sign In
kingecg
/
go-cache
Watch
1
Star
0
Fork
You've already forked go-cache
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
f26e1d0b06
go-cache
/
valtyp.go
4 lines
38 B
Go
Raw
Normal View
History
Unescape
Escape
cachemap: modify go-cache by using certain type Temporaliy use int as ValueType to pass the test. Signed-off-by: Peng Gao <peng.gao.dut@gmail.com>
2016-08-11 11:58:16 +08:00
package
cache
Refactor code 1. Add benchmark performance in README.md 2. Use an Attr as argument for New to initiate a cache, in this way, more default settings can be supported. 3. Add fast way for delete method, if no onEvicted callback function set. 4. Use bool to indicate k existence in Get method to avoid pointer escape (which leads to memory allocation on heap), reference link below to get detail information. https://groups.google.com/forum/#!topic/golang-nuts/1WCWAtOsyDU Signed-off-by: Peng Gao <peng.gao.dut@gmail.com>
2016-08-27 18:05:46 +08:00
type
ValueType_tpl
int