Options for construction of a TempRedis instance.
More...
|
|
const string | ENV_VAR_DISABLE_DISK = "TEMPREDIS_DISABLE_DISK" |
| | name of the environment variable which is observed to disable the automatically-enabled feature to store redis data on-disc
|
|
const string | TEMPREDIS_PORT_HINT = nameof(TEMPREDIS_PORT_HINT) |
| | Environment variable observed for a preference of port to run on (may make debugging easier). This port is tried first, if set, and ports are sequentially tried after that in the event that it is not available.
|
|
|
bool | AutoStart = true [get, set] |
| | Auto-start the service on construction? (default true).
|
|
string | PathToRedisService [get, set] |
| | Provide a custom path to the redis-server executable (default not set).
|
| RedisLocatorStrategies | LocatorStrategies [get, set] |
| | Strategies which may be employed to locate redis This is a flag set (default: all strategies).
|
| bool | EnableSaveToDisk [get, set] |
| | Enables save-to-disk, which means redis-server should (mostly) survive a crash.
|
| bool | BindToLocalhostOnly = true [get, set] |
| | When enabled (default), only bind to localhost.
|
|
int | DatabaseCount = 1 [get, set] |
| | How many databases to provide for (default is 1).
|
| int? | PortHint [get, set] |
| | The preferred port to run on. If set, TempRedis will attempt to start a server on this port. If not available, ports will be sequentially tested from this value upward to find an available one. May make debugging easier.
|
|
Action< string > | DebugLogger [get, set] |
| | Set this to get debug logs, eg around startup and restart.
|
| string | Password [get, set] |
| | Password for the redis server.
|
| string | User [get, set] |
| | The username to set up when using an ACL'd user.
|
|
bool | DisableDefaultUser [get, set] |
| | When setting a User and Password via ACLs, you may also disable the default user so that all connections require authentication.
|
|
string | RawOptions [get, set] |
| | Escape hatch: raw options that will be appended to the end of the generated config.
|
Options for construction of a TempRedis instance.
◆ BindToLocalhostOnly
| bool PeanutButter.TempRedis.TempRedisOptions.BindToLocalhostOnly = true |
|
getset |
When enabled (default), only bind to localhost.
- preferring 127.0.0.1 over ::1
- default redis binding is to all interfaces, this option is defaulted to true such that the default TempRedis behavior is to bind to localhost only
◆ EnableSaveToDisk
| bool PeanutButter.TempRedis.TempRedisOptions.EnableSaveToDisk |
|
getset |
Initial value:=
(
?? "1"
)
.AsBoolean()
const string ENV_VAR_DISABLE_DISK
name of the environment variable which is observed to disable the automatically-enabled feature to st...
Definition TempRedis.cs:236
Enables save-to-disk, which means redis-server should (mostly) survive a crash.
◆ LocatorStrategies
Initial value:=
RedisLocatorStrategies
Strategies for resolving a temporary redis server executable.
Definition TempRedis.cs:34
@ FindAsWindowsService
Look for an installed Redis service on windows (does not apply to linux/osx) The service must be call...
Definition TempRedis.cs:44
@ FindInPath
Look for redis-server.exe or redis-server (linux/osx) in the path.
Definition TempRedis.cs:38
Strategies which may be employed to locate redis This is a flag set (default: all strategies).
◆ Password
| string PeanutButter.TempRedis.TempRedisOptions.Password |
|
getset |
Password for the redis server.
- if no User is supplied, this becomes the global password
- if a User is specified, this is used to set up an ACL'd user and you should probably also set DisableDefaultUser to true
◆ PortHint
| int? PeanutButter.TempRedis.TempRedisOptions.PortHint |
|
getset |
Initial value:=
? env
: null
const string TEMPREDIS_PORT_HINT
Environment variable observed for a preference of port to run on (may make debugging easier)....
Definition TempRedis.cs:290
The preferred port to run on. If set, TempRedis will attempt to start a server on this port. If not available, ports will be sequentially tested from this value upward to find an available one. May make debugging easier.
◆ User
| string PeanutButter.TempRedis.TempRedisOptions.User |
|
getset |
The username to set up when using an ACL'd user.
The documentation for this class was generated from the following file:
- source/TempDb/PeanutButter.TempRedis/TempRedis.cs