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 \ BatchMethods
__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 |
Google\Cloud\Core\Batch\JobConfig
A JobConfig to save. |
Returns | |
---|---|
Type | Description |
bool |
load
Load a JobConfig from the storage.
Returns | |
---|---|
Type | Description |
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'