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 |
|