Example #1
0
 public function write($space, $key, $value)
 {
     $entity = $this->loadByKeyAndSpace($space, $key);
     if ($entity == null) {
         $entity = new self();
     }
     $entity->setKeySpace($space)->setKeyName($key)->setKeyValue(Customweb_Core_Util_Serialization::serialize($value));
     $entity->save();
 }