you are given a code that implements a cache with a cleaner thread, 1. what does this code do? 2. are there any problems with it?
Sigiloso
1. the codes implements a cache with a TTL which is enforced by the cleaner thread 2. the cleaner thread access the cache in a non thread safe way, need to add locks