Table Of Contents

Previous topic

add

Next topic

decrement

This Page

cas

Description

boolean cas ( string $cas_token, string $key, mixed $value [, $expiration = 0])

cas compare and swap

Parameters

  • cas_token
    • cas token
  • key
    • key string
  • value
    • value to be stored
  • expiration
    • lifetime of the data

Return Values

boolean : Returns true if success, false is failed.

Examples