FragmentedKeys.Tag.Constant (fragmented_keys v0.1.1)

Copy Markdown View Source

A tag with a fixed version that never changes.

Useful for incorporating non-versionable data into composite keys. Increment, reset, and set operations are no-ops.

Summary

Functions

Create a new constant tag.

Types

t()

@type t() :: %FragmentedKeys.Tag.Constant{
  handler: struct() | nil,
  instance: String.t(),
  prefix: String.t(),
  tag: String.t(),
  version: float()
}

Functions

new(tag, instance \\ "", opts \\ [])

Create a new constant tag.

Options

  • :version — fixed version (default: 1.0)
  • :handler — cache handler override (default: global default)
  • :prefix — tag name prefix (default: global prefix)