A golang LRU Cache for high concurrency
Go to file
2013-11-17 20:47:28 +08:00
bucket.go fixed file permissions 2013-11-13 13:50:37 +08:00
bucket_test.go Checking if an item should be promoted because it's new is the uncommon 2013-11-13 13:46:41 +08:00
cache.go fixed file permissions 2013-11-13 13:50:37 +08:00
configuration.go fixed file permissions 2013-11-13 13:50:37 +08:00
item.go fixed typo 2013-11-13 16:17:18 +08:00
item_test.go Checking if an item should be promoted because it's new is the uncommon 2013-11-13 13:46:41 +08:00
license.txt Added license 2013-11-17 20:47:28 +08:00
readme.md Remove Value interface, cache now works against interface{} with the 2013-10-30 20:18:51 +08:00

CCache

CCache is an LRU Cache, written in Go, focused on supporting high concurrency.

Lock contention on the list is reduced by:

  • Introducing a window which limits the frequency that an item can get promoted
  • Using a buffered channel to queue promotions for a single worker
  • Garbage collecting within the same thread as the worker