Skip to content

//misk-redis/misk.redis/Redis/del

del

[jvm]\ abstract fun del(key: String): Boolean

Deletes a single key.

Return

false if the key was not deleted, true if the key was deleted

Parameters

jvm

key the key to delete

[jvm]\ abstract fun del(vararg keys: String): Int

Deletes multiple keys.

On cluster mode, this might trigger multiple calls to Redis

Return

0 if none of the keys were deleted, otherwise a positive integer representing the number of keys that were deleted

Parameters

jvm

keys the keys to delete