Class CacheEndpointOptions

Namespace: redb.Route.Cache
Assembly: redb.Route.Cache.dll

Options of a cache: endpoint:
cache:<region>?action=get|put|remove|clear&key=${header.id}&ttl=5m&sliding=1m&provider=memory|distributed&headers=X-Rate,Content-Language.

public sealed class CacheEndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→CacheEndpointOptions

Inherited Members

Properties

Action

get (default), put, remove or clear.

public string Action { get; set; }

Headers

put only: the headers stored with the body, by name, comma-separated. A put sees the

public string? Headers { get; set; }

Key

Entry key; ${...} resolved per message. Required except for clear.

public DynamicValue<string>? Key { get; set; }

ParsedAction

Parsed action.

public CacheAction ParsedAction { get; }

ParsedHeaders

The header names of ; null when none were given.

public IReadOnlyCollection<string>? ParsedHeaders { get; }

ParsedProvider

Parsed provider; null = package default.

public CacheProvider? ParsedProvider { get; }

Provider

memory (default) or distributed.

public string? Provider { get; set; }

Sliding

Sliding lifetime for put.

public string? Sliding { get; set; }

Ttl

Absolute lifetime for put (5m, 30s, hh:mm:ss).

public string? Ttl { get; set; }

Methods

UnknownParameterHint(string)

A connector's own words for a parameter name it does not know — typically a name it used to

protected override string? UnknownParameterHint(string name)

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()