module

CRDoc::Shards::Registry

Slim docs and metadata on disk, one directory per shard under the data dir.

Constants

NAME_PATTERN = /\A[\w.\-]+\z/

Class methods

dir_for(name : String) : Path
Source
meta(name : String) : Meta | Nil
Source
names
Source
normalize(name : String) : String

Accepts kemal or shard:kemal.

Source
remove(name : String) : Bool
Source
root_dir
Source
save(meta : Meta, slim_json : String) : Nil

Replaces the stored docs and metadata for a shard. Each file is written to a temp name and renamed into place.

Source