예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function close()
 {
     $records =& $this->buffer;
     $key =& $this->key;
     $this->redis->multiExec(function ($multi) use($key, $records) {
         foreach ($records as $record) {
             $multi->rpush($key, $record);
         }
     });
 }
예제 #2
0
 /**
  * {@inheritDoc}
  */
 public function destroy($sessionId)
 {
     $this->redis->del($this->getKey($sessionId));
     return true;
 }