putLong

abstract fun putLong(key: String, value: Long): KvsExtended.KvsExtendedEditor

Stages a Long value without TTL under key.

Return

This editor instance for chaining.

Parameters

key

Storage key. Must not be blank.

value

The long value to store.

Throws

if the editor has already been committed.


abstract fun putLong(key: String, value: Long, duration: Duration): KvsExtended.KvsExtendedEditor

Stages a Long value with a TTL of duration under key.

Return

This editor instance for chaining.

Parameters

key

Storage key. Must not be blank.

value

The long value to store.

duration

Time after which the entry expires. Must be positive.

Throws

if the editor has already been committed.