a little more work on thread safe cache

author: nhhughes