Configuration¶
The Configuration class provides global defaults
shared across all tags and keys.
from fragmented_keys import Configuration
Configuration.set_default_cache_handler(handler) # Fallback handler
Configuration.set_global_prefix("MyApp") # Key namespace prefix
Methods¶
Method |
Description |
|---|---|
|
Set the default cache handler used by tags that don’t specify one. |
|
Return the default cache handler. Raises |
|
Set the global prefix for tag name generation. |
|
Return the current global prefix (default: |
|
Reset all configuration to defaults. Useful for testing. |