cache2go Golang simple object caching library with LRU and expiration capabilities. The items are evicted if the capacity is exceeded or if they expire. See the test file for wroking examples. API docs here.