Shared

php\util\Shared

Class to work with shared memory of Environments

Class Shared

Methods


__construct()

private

static value($name, $creator = null)

Get or create if does not exist and get a shared value

Параметры:
  • $namestring
  • $creatorcallable - returns init value
Результат:

php\util\SharedValue

static reset($name)

Removes the value by $name.

Параметры:
  • $namephp\util\String
Результат:

php\util\SharedValue removed value

static resetAll