Exemple #1
0
 /**
  * @param string $jobId
  */
 public function add($jobId)
 {
     $timestamp = Clock::now()->timestamp();
     return $this->redis->zadd($this->key, $timestamp, $jobId);
 }
Exemple #2
0
 /**
  * @param string $jobId
  */
 public function add($jobId)
 {
     $this->redis->zadd($this->key, Clock::now()->timestamp(), $jobId);
 }
Exemple #3
0
 /** @return self */
 public function updateLastSeen()
 {
     $this->redis->hset($this->key, 'last-seen', Clock::now()->iso());
     return $this;
 }