Documentation ¶
Index ¶
- func NewRedisBackend(client redis.UniversalClient, opts ...RedisBackendOption) (*redisBackend, error)
- type KeyInfo
- type RedisBackendOption
- func WithAutoExpiration(expireFinishedRunsAfter time.Duration) RedisBackendOption
- func WithAutoExpirationContinueAsNew(expireContinuedAsNewRunsAfter time.Duration) RedisBackendOption
- func WithBackendOptions(opts ...backend.BackendOption) RedisBackendOption
- func WithBlockTimeout(timeout time.Duration) RedisBackendOption
- func WithKeyPrefix(prefix string) RedisBackendOption
- type RedisOptions
- type TaskItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisBackend ¶
func NewRedisBackend(client redis.UniversalClient, opts ...RedisBackendOption) (*redisBackend, error)
Types ¶
type RedisBackendOption ¶
type RedisBackendOption func(*RedisOptions)
func WithAutoExpiration ¶ added in v0.12.0
func WithAutoExpiration(expireFinishedRunsAfter time.Duration) RedisBackendOption
WithAutoExpiration sets the duration after which finished runs will expire from the data store. If set to 0 (default), runs will never expire and need to be manually removed.
func WithAutoExpirationContinueAsNew ¶ added in v0.19.0
func WithAutoExpirationContinueAsNew(expireContinuedAsNewRunsAfter time.Duration) RedisBackendOption
WithAutoExpirationContinueAsNew sets the duration after which runs that were completed with `ContinueAsNew` automatically expire. If set to 0 (default), the overall expiration setting set with `WithAutoExpiration` will be used.
func WithBackendOptions ¶
func WithBackendOptions(opts ...backend.BackendOption) RedisBackendOption
func WithBlockTimeout ¶
func WithBlockTimeout(timeout time.Duration) RedisBackendOption
WithBlockTimeout sets the timeout for blocking operations like dequeuing a workflow or activity task
func WithKeyPrefix ¶ added in v0.19.0
func WithKeyPrefix(prefix string) RedisBackendOption
WithKeyPrefix sets the prefix for all keys used in the Redis backend.
type RedisOptions ¶
Click to show internal directories.
Click to hide internal directories.