FragmentedKeys.Tag.Standard (fragmented_keys v0.1.1)

Copy Markdown View Source

A tag whose version is stored in cache and can be incremented.

Incrementing the version causes all composite keys that include this tag-instance to resolve to a new cache key, effectively invalidating the old cached values without deleting them.

Summary

Functions

Create a new standard tag.

Types

t()

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

Functions

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

Create a new standard tag.

Options

  • :version — initial version (default: fetched from cache on first access)
  • :handler — cache handler override (default: global default)
  • :prefix — tag name prefix (default: global prefix)