Bedrock.ToKeyspace protocol (bedrock v0.6.0)
View SourceProtocol for converting various types to keyspaces.
This protocol allows directories, prefixes, and other types to be
automatically coerced into Bedrock.Keyspace structs, enabling
more ergonomic APIs.
Summary
Functions
Converts the given data to a keyspace.
Types
@type t() :: term()
All the types that implement this protocol.
Functions
@spec to_keyspace(term()) :: Bedrock.Keyspace.t()
Converts the given data to a keyspace.
Returns a Bedrock.Keyspace struct that can be used for data operations.