Skip to main content
Hyrex provides a built-in key-value store for sharing state between tasks and workers. All methods are static and can be called from anywhere in your application.

Basic Usage

Limitations

  • String only: Both keys and values must be strings
  • 1MB max: Values are limited to 1MB (UTF-8 encoded)
  • No expiration: Values persist until explicitly deleted
  • No atomic operations: No increment, decrement, or compare-and-swap

Common Patterns

Task Coordination

Simple Caching

Progress Tracking