Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
StarDB::WAL
Inherits
Reference
<
Object
Write-ahead log. Generally ensures durability.
Constructors
new
(path :
String
, sync_on_write :
Bool
= false, buffer_size :
Int32
= 64 * 1024)
Source
Class methods
recover
(path :
String
, &block :
Entry
-> )
Source
Instance methods
append
(entry :
Entry
)
Source
append_batch
(entries :
Array
(
Entry
))
Source
close
Source
delete
(key :
String
)
Source
flush
Source
put
(key :
String
, value :
Value
)
Source
replay
Source
truncate
Source
Nested types
StarDB::WAL::Entry
StarDB::WAL::EntryType