MCRouter::gets

Retreive a record and its metadata

public function gets(
  string $key,
): Awaitable<shape('value' => string, 'cas' => int, 'flags' => int), darray>;

Parameters

  • string $key = Name of the key to retreive

Returns

  • array - - Value retreived and additional metadata array( 'value' => 'Value retreived', 'cas' => 1234567890, 'flags' => 0x12345678, )