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 \ BatchMethods
__sleep
To prevent serialize.
__wakeup
To prevent unserialize.
lock
Just return true
bool
unlock
Just return true
bool
save
Save the given JobConfig.
bool
load
Load a JobConfig from the storage.
clear
Clear the JobConfig from storage.
submit
Hold the items in memory and run the job in the same process when it meets the condition.
We want to delay registering the shutdown function. The error reporter also registers a shutdown function and the order matters. Google\Cloud\Core\Batch\Google\ErrorReporting\Bootstrap::init() http://php.net/manual/en/function.register-shutdown-function.php
item
mixed
An item to submit.
idNum
int
A numeric id for the job.
void
flush
Run the job with the given id.
idNum
int
A numeric id for the job.
bool
shutdown
Run the job for remainder items.
static::getInstance
Singleton getInstance.