bluele / gcache

An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC
MIT License
2.6k stars 271 forks source link

example have some wrong #53

Closed liangyuanpeng closed 3 years ago

liangyuanpeng commented 6 years ago

Manually set a key-value pair, with an expiration time.

value, err = gc.Get("key")

should be

value, err := gc.Get("key")

bluele commented 3 years ago

Thanks. Currently, it seems that there aren't bugs in the examples.