MCRouter::cas

Compare and set

Description

public function cas(
  int $cas,
  string $key,
  string $value,
  int $expiration = 0,
): Awaitable<void>

Parameters

  • int$cas - CAS token as returned by getRecord()
  • string$key - Name of the key to store
  • string$value - Datum to store
  • int$expiration = 0