karlseguin / ccache

A golang LRU Cache for high concurrency
MIT License
1.28k stars 119 forks source link

Use nanosecond-resolution TTL instead of second-resolution. #6

Closed HasMatthew closed 8 years ago

HasMatthew commented 8 years ago

The purpose of switching to nanosecond-resolution vs second-resolution TTLs is mostly to facilitate testes and benchmarks, where waiting for seconds per op is detrimental.