$X->sync([flags])
X
flags
Synchronizes the database by flushing any cached data to disk. flags is optional.