public function save(Persistable $persistable) : void
    {
        $data = $this->serializer->serialize($persistable);

        $success = $this->connector->set($this->key, $data);

        if (!$success) {
            throw new RuntimeException('Failed to save persistable'
                . ' to the database.');
        }
    }
public function save(Persistable $persistable) : void
    {
        $data = $this->serializer->serialize($persistable);

        $success = $this->connector->set($this->key, $data);

        if (!$success) {
            throw new RuntimeException('Failed to save persistable'
                . ' to the database.');
        }
    }
public function save ( Persistable $ persistable ) : void { $ data = $ this -> serializer -> serialize ( $ persistable ) ; $ success = $ this -> connector -> set ( $ this -> key , $ data ) ; if ( ! $ success ) { throw new RuntimeException ( 'Failed to save persistable' . ' to the database.' ) ; } }
Save the persitable object.

@param \Rubix\ML\Persistable $persistable
@throws \RuntimeException
Save the persitable object .