Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

FENCEGET

Josh Baker edited this page Jan 18, 2017 · 3 revisions

FENCEGET token

A fencing token is simply a number that increases. It's guaranteed to be consistent across the cluster and can never be deleted or decremented. The value is a 64-bit unsigned integer. The FENCEGET command returns the current token.

Return value

Bulk string reply: the value of token.

Examples

> FENCE mytoken
"1"
> FENCE mytoken
"2"
> FENCEGET mytoken
"2"

Clone this wiki locally