Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class SysvConfigStorage (1.60.1)

Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class SysvConfigStorage.

ConfigStorageInterface implementation with SystemV IPC shared memory.

Namespace

Google \ Cloud \ Core \ Batch

Methods

__construct

Prepare the key for semaphore and shared memory.

lock

Acquire a lock.

Returns
Type Description
bool

unlock

Release a lock.

Returns
Type Description
bool

save

Save the given JobConfig.

Parameter
Name Description
config JobConfig

A JobConfig to save.

Returns
Type Description
bool

load

Load a JobConfig from the storage.

Returns
Type Description
JobConfig

clear

Clear the JobConfig from storage.

__serialize

Serialize the object

Constants

VAR_KEY

Value: 1

DEFAULT_SHM_SIZE

Value: 200000

DEFAULT_PERM

Value: 0600

DEFAULT_PROJECT

Value: 'A'