Commit Graph
6 Commits
Author SHA1 Message Date
J. Gavin Ray 943d430870 # This is a combination of 2 commits.
# This is the 1st commit message:

Changed package names to match the new organization

# This is the commit message #2:

Forgot Cache
2016-12-24 08:11:35 -08:00
Soam Vasani 675cc4f360 Fix cache test
cache.Set() returns existing value; update the test accordingly.
2016-12-04 14:10:02 -08:00
Soam Vasani 9dcadd5f4a Support cache expiry based on create/last access time 2016-11-05 21:41:57 -07:00
Soam Vasani d805928f3e Cache: add method to get a copy of the map 2016-11-04 23:05:29 -07:00
Soam Vasani 094da5c69a Add expiry time to cache
MakeCache() now takes a time.Duration after which entries are
considered invalid, and not returned from a Get().
2016-11-04 23:05:29 -07:00
Soam Vasani 1c32ce19fe Cache -- simple threadsafe map 2016-11-01 01:26:12 -07:00