clear

fun clear()(source)

Clears the cache.

This method acquires a write lock on the lock associated with this cache, then sets the cache to an empty map, effectively clearing it. Finally, it releases the write lock.

Throws

if acquiring or releasing the write lock fails