public function set($key, $value)
    {
        $this->assertOpened();
        $this->contents[(string) $key] = $value;
    }
public function set($key, $value)
    {
        $this->assertOpened();
        $this->contents[(string) $key] = $value;
    }
public function set ( $ key , $ value ) { $ this -> assertOpened ( ) ; $ this -> contents [ ( string ) $ key ] = $ value ; }
Overwrites a record with the key parameter.

If the record doesn't exist, it will be created automatically.
The entire record will be replaced by the value parameter.

@param string $key The record's key.
@param mixed $value The value to be replaced with the record's contents.
@return void
Overwrites a record with the key parameter .