suparnatural-cache / com.suparnatural.core.cache / InMemoryCache / hashCode

hashCode

open fun hashCode(key: String): Int

Overrides Cache.hashCode

Returns a hash code for the given key. For example, it may wrap the raw hash code for a string by cache sizeUnsafe.