FragmentedKeys.Configuration (fragmented_keys v0.1.1)

Copy Markdown View Source

Global configuration for the fragmented keys library.

Uses :persistent_term for storage, so no supervision tree is required.

Summary

Functions

Return the default cache handler. Raises if none has been configured.

Return the global prefix. Defaults to "DefaultPrefix".

Reset configuration to defaults. Useful for testing.

Set the default cache handler used by tags that don't specify one.

Set the global prefix used in tag name generation.

Functions

get_default_cache_handler()

Return the default cache handler. Raises if none has been configured.

get_global_prefix()

Return the global prefix. Defaults to "DefaultPrefix".

reset()

Reset configuration to defaults. Useful for testing.

set_default_cache_handler(handler)

Set the default cache handler used by tags that don't specify one.

set_global_prefix(prefix)

Set the global prefix used in tag name generation.