ShortIdMapper

UUID 映射为短 id,在内存中保存映射。

Functions

Link copied to clipboard
suspend fun shortLong(id: UUID): Long

获取 id 的数字短 id。

Link copied to clipboard
suspend fun shortString(id: UUID): String

获取 id 的 36 进制字符串短 id。

Link copied to clipboard
suspend fun uuid(short: Long): UUID?

获取短 id 对应的 UUID

suspend fun uuid(short: String): UUID?

获取 36 进制字符串短 id 对应的 UUID