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

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.

Methods

__construct

Prepare the key for semaphore and shared memory.

lock

Acquire a lock.

Returns
TypeDescription
bool

unlock

Release a lock.

Returns
TypeDescription
bool

save

Save the given JobConfig.

Parameter
NameDescription
config Google\Cloud\Core\Batch\JobConfig

A JobConfig to save.

Returns
TypeDescription
bool

load

Load a JobConfig from the storage.

Returns
TypeDescription
Google\Cloud\Core\Batch\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'