MCRouter::cas

Description

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

Compare and set

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