class

VirtualFs::BlockStore

Inherits Reference / Object

Constants

DEFAULT_CACHE_MAX = 4096

Default max prefetch cache entries. Pass 0 for unlimited.

Constructors

new(container : Container, *, codec : Symbol = :none, key_provider : Crypto::KeyProvider | Nil = nil, cipher : String = "aes-256-gcm", cache_max : Int32 = DEFAULT_CACHE_MAX)
Source

Instance methods

clear_cache
Source
evict(entry : Index::Entry) : Nil
Source
mmap(entry : Index::Entry, offset : Int64 = 0, length : Int32 | Nil = nil) : MappedRegion
Source
open_handle(entry : Index::Entry) : Handle
Source
prefetch(entry : Index::Entry) : Nil
Source
read(entry : Index::Entry, offset : Int64 = 0, length : Int32 | Nil = nil) : Bytes

Cache is populated only by explicit prefetch — normal reads do not cache, keeping memory proportional to user-directed demand.

Source

Nested types