public function set($key, $value)
 {
     if ($this->readOnly) {
         return;
     }
     if (is_null($this->currentLang)) {
         throw new MWException(__CLASS__ . ': must call startWrite() before calling set()');
     }
     $this->batch[] = array('lc_lang' => $this->currentLang, 'lc_key' => $key, 'lc_value' => $this->dbw->encodeBlob(serialize($value)));
     if (count($this->batch) >= 100) {
         $this->dbw->insert('l10n_cache', $this->batch, __METHOD__);
         $this->batch = array();
     }
 }
 public function set($key, $value)
 {
     if ($this->readOnly) {
         return;
     } elseif (is_null($this->currentLang)) {
         throw new MWException(__CLASS__ . ': must call startWrite() before set()');
     }
     $this->batch[] = array('lc_lang' => $this->currentLang, 'lc_key' => $key, 'lc_value' => $this->dbw->encodeBlob(serialize($value)));
 }