A lightweight dictionary with TTL expiration.