public static function UltimateCronProgressMemcache::factory in Ultimate Cron 7.2
Singleton factory.
Parameters
string $name: Name of job.
float $interval: How often the database should be updated with the progress.
Return value
UltimateCronProgress The object.
File
- ./
ultimate_cron.memcache-progress.inc, line 40 - Pseudo namespace for progress functions.
Class
- UltimateCronProgressMemcache
- Class for using memcache as storage for progress.
Code
public static function factory($name, $interval = 1) {
if (!isset(self::$instances[$name])) {
self::$instances[$name] = new UltimateCronProgressMemcache($name, $interval);
}
self::$instances[$name]->interval = $interval;
return self::$instances[$name];
}