CreateBackend(CreateBackendArgs)
Creates the CachingBackend.
Declaration
public override CachingBackend CreateBackend(CreateBackendArgs args)Parameters
| Type | Name | Description |
|---|---|---|
| CreateBackendArgs | args | Arguments containing context for backend creation. |
Returns
| Type | Description |
|---|---|
| CachingBackend | The created CachingBackend. |
Overrides
Remarks
The cache layer of args is greater than 1 when the Redis backend has an in-memory L1 layer.
It determines the key prefix and, when the configuration does not set the
ReadCommandFlags property, whether the read-only commands are
sent to the master or to a replica.