Bedrock.ToKeyspace protocol (bedrock v0.5.2)

View Source

Protocol 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

Types

t()

All the types that implement this protocol.

Functions

Converts the given data to a keyspace.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

to_keyspace(data)

@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.