Commit graph

108 commits

Author SHA1 Message Date
Karl Seguin 6720535fab Checking if an item should be promoted because it's new is the uncommon
case which we can optimize out by being more explicit when we create
a new item
2013-11-13 13:46:41 +08:00
Karl Seguin 3fa767d9ff added non-threadsafe Clear (for tests), fixed Fetch 2013-10-31 11:45:22 +08:00
Karl Seguin ba89971ba8 added Fetch method to get + set on miss 2013-10-30 20:24:43 +08:00
Karl Seguin 751266c34a Remove Value interface, cache now works against interface{} with the
expiry specified on a Set.

Get no longer returns expired items

Items can now be deleted
2013-10-30 20:18:51 +08:00
Karl Seguin 36e5fae491 use integer counter for promotions instead of time 2013-10-21 19:37:35 +08:00
Karl Seguin 7a8102e166 clean up TestValue 2013-10-19 20:45:30 +08:00
Karl Seguin b3cbd19186 initial tests 2013-10-19 20:36:33 +08:00
Karl Seguin 97bc65dc6a first commit 2013-10-19 08:56:28 +08:00