Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.06 KB

Shared.md

File metadata and controls

66 lines (44 loc) · 1.06 KB

Shared

  • class Shared (php\util\Shared)
  • package std
  • source php/util/Shared.php

Description

Class to work with shared memory of Environments

Class Shared


Static Methods

  • Shared ::value() - Get or create if does not exist and get a shared value
  • Shared ::reset() - Removes the value by $name.
  • Shared ::resetAll() - Removes the all shared memory values.

Methods


Static Methods

value()

Shared::value(string $name, callable $creator): SharedValue

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


reset()

Shared::reset(String $name): SharedValue

Removes the value by $name.


resetAll()

Shared::resetAll(): void

Removes the all shared memory values.


Methods

__construct()

__construct(): void