opas90
01/17/2017, 1:10 AMfun getUserFromDB(id: Long): String? {}
cache.computeIfAbsent(agentId, { id -> getUserFromDB(agentId)})
it gives me an error since getUserFromDB has String? return type which can not be used with the supplied function
i am using a concurrentHashMap for cache