sm
/
cache
1
0
Fork 0
cache/cachemap
Peng Gao 987311e3b4 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 19:42:15 +08:00
..
cache.tmpl Refactor code 2016-08-27 19:42:15 +08:00
main.go Refactor code 2016-08-27 19:42:15 +08:00