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

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

In-memory ConfigStorageInterface implementation.

Namespace

Google \ Cloud \ Core \ Batch

Methods

__sleep

To prevent serialize.

__wakeup

To prevent unserialize.

lock

Just return true

Returns
TypeDescription
bool

unlock

Just return true

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.

submit

See also:

Parameters
NameDescription
item mixed

An item to submit.

idNum int

A numeric id for the job.

Returns
TypeDescription
void

flush

Run the job with the given id.

Parameter
NameDescription
idNum int

A numeric id for the job.

Returns
TypeDescription
bool

shutdown

Run the job for remainder items.

static::getInstance

Singleton getInstance.

Returns
TypeDescription
Google\Cloud\Core\Batch\InMemoryConfigStorage