|
PeanutButter
|
Provides a temporary, disposable Redis instance levering off of a locally installed redis-server installation or binary within the path. More...
Public Member Functions | |
| IConnectionMultiplexer | Connect () |
| Provides a simple mechanism to open a connection to the redis instance. | |
| IConnectionMultiplexer | Connect (ConfigurationOptions config) |
| Connect to the redis instance with your own options. | |
| IConnectionMultiplexer | ConnectUnmanaged () |
| Provides a simple mechanism to connect to the redis instance with an unmanaged connection - you will be responsible for disposing of it. | |
| IConnectionMultiplexer | ConnectUnmanaged (ConfigurationOptions options) |
| Provides a simple mechanism to connect to the redis instance with an unmanaged connection - you will be responsible for disposing of it. | |
| void | Start () |
| Starts up the server, if not auto-started at construction time (default is to auto-start). | |
| void | Stop () |
| Stops the redis server. You probably don't need to call this as the server will automatically be stopped when disposed. | |
| void | Restart () |
| Restarts the server process (shortcut for Stop/Start). | |
| void | Store< T > (string key, T value) |
| Stores the value at the redis server. | |
| T | Fetch< T > (string key) |
| Attempts to fetch the value of the provided key. | |
| string | Fetch (string key) |
| Attempts to fetch the value of the provided key. | |
| bool | TryFetch< T > (string key, out T result) |
| Attempts to fetch the value of the provided key. | |
| IDatabase | ConnectAndSelectDatabase (int db) |
| Creates a connection to the provided database. | |
| IEnumerable< string > | FetchKeys () |
| Fetch all keys at the default database. | |
| IEnumerable< string > | FetchKeys (string matching) |
| Fetch all keys matching. | |
| void | FlushAll () |
| Flush all keys from the default database (0). | |
| void | Reset () |
| Close all managed connections, restart the server, flush all data. | |
| ConfigurationOptions | GenerateConnectionConfig () |
| Generates connection options for redis connections from the configuration for the server. | |
Properties | |
| int | Port [get] |
| The port this instance is listening on. | |
| string | RedisExecutable [get] |
| The resolved path to redis-server (may be passed in as a constructor parameter if necessary). | |
| RedisLocatorStrategies | LocatorStrategies [get, set] |
| The currently-used redis service locator strategies. | |
| bool | IsRunning [get] |
| Flag: true when the redis server is running. | |
| bool | IsDisposed [get] |
| Exposes the internal disposed flag for reading. | |
| IDatabase | DefaultDatabase [get] |
| Database 0 - for simple store/retrieve operations. | |
| int? | ServerProcessId [get] |
| When the server is running, this is an easy way to get at the PID; if you get null, it's not running. | |
Provides a temporary, disposable Redis instance levering off of a locally installed redis-server installation or binary within the path.
| IConnectionMultiplexer PeanutButter.TempRedis.ITempRedis.Connect | ( | ) |
Provides a simple mechanism to open a connection to the redis instance.
Implemented in PeanutButter.TempRedis.TempRedis.
| IConnectionMultiplexer PeanutButter.TempRedis.ITempRedis.Connect | ( | ConfigurationOptions | config | ) |
Connect to the redis instance with your own options.
| config |
Implemented in PeanutButter.TempRedis.TempRedis.
| IDatabase PeanutButter.TempRedis.ITempRedis.ConnectAndSelectDatabase | ( | int | db | ) |
Creates a connection to the provided database.
| db |
Implemented in PeanutButter.TempRedis.TempRedis.
| IConnectionMultiplexer PeanutButter.TempRedis.ITempRedis.ConnectUnmanaged | ( | ) |
Provides a simple mechanism to connect to the redis instance with an unmanaged connection - you will be responsible for disposing of it.
Implemented in PeanutButter.TempRedis.TempRedis.
| IConnectionMultiplexer PeanutButter.TempRedis.ITempRedis.ConnectUnmanaged | ( | ConfigurationOptions | options | ) |
Provides a simple mechanism to connect to the redis instance with an unmanaged connection - you will be responsible for disposing of it.
Implemented in PeanutButter.TempRedis.TempRedis.
| string PeanutButter.TempRedis.ITempRedis.Fetch | ( | string | key | ) |
Attempts to fetch the value of the provided key.
| key |
Implemented in PeanutButter.TempRedis.TempRedis.
| T PeanutButter.TempRedis.ITempRedis.Fetch< T > | ( | string | key | ) |
Attempts to fetch the value of the provided key.
| key |
| T |
Implemented in PeanutButter.TempRedis.TempRedis.
| IEnumerable< string > PeanutButter.TempRedis.ITempRedis.FetchKeys | ( | ) |
| IEnumerable< string > PeanutButter.TempRedis.ITempRedis.FetchKeys | ( | string | matching | ) |
Fetch all keys matching.
| matching |
Implemented in PeanutButter.TempRedis.TempRedis.
| void PeanutButter.TempRedis.ITempRedis.FlushAll | ( | ) |
Flush all keys from the default database (0).
Implemented in PeanutButter.TempRedis.TempRedis.
| ConfigurationOptions PeanutButter.TempRedis.ITempRedis.GenerateConnectionConfig | ( | ) |
Generates connection options for redis connections from the configuration for the server.
Implemented in PeanutButter.TempRedis.TempRedis.
| void PeanutButter.TempRedis.ITempRedis.Reset | ( | ) |
Close all managed connections, restart the server, flush all data.
Implemented in PeanutButter.TempRedis.TempRedis.
| void PeanutButter.TempRedis.ITempRedis.Restart | ( | ) |
Restarts the server process (shortcut for Stop/Start).
Implemented in PeanutButter.TempRedis.TempRedis.
| void PeanutButter.TempRedis.ITempRedis.Start | ( | ) |
Starts up the server, if not auto-started at construction time (default is to auto-start).
Implemented in PeanutButter.TempRedis.TempRedis.
| void PeanutButter.TempRedis.ITempRedis.Stop | ( | ) |
Stops the redis server. You probably don't need to call this as the server will automatically be stopped when disposed.
Implemented in PeanutButter.TempRedis.TempRedis.
| void PeanutButter.TempRedis.ITempRedis.Store< T > | ( | string | key, |
| T | value ) |
Stores the value at the redis server.
| key | |
| value |
| T |
Implemented in PeanutButter.TempRedis.TempRedis.
| bool PeanutButter.TempRedis.ITempRedis.TryFetch< T > | ( | string | key, |
| out T | result ) |
Attempts to fetch the value of the provided key.
| key | |
| result |
| T |
Implemented in PeanutButter.TempRedis.TempRedis.
|
get |
Database 0 - for simple store/retrieve operations.
Implemented in PeanutButter.TempRedis.TempRedis.
|
get |
Exposes the internal disposed flag for reading.
Implemented in PeanutButter.TempRedis.TempRedis.
|
get |
Flag: true when the redis server is running.
Implemented in PeanutButter.TempRedis.TempRedis.
|
getset |
The currently-used redis service locator strategies.
Implemented in PeanutButter.TempRedis.TempRedis.
|
get |
The port this instance is listening on.
Implemented in PeanutButter.TempRedis.TempRedis.
|
get |
The resolved path to redis-server (may be passed in as a constructor parameter if necessary).
Implemented in PeanutButter.TempRedis.TempRedis.
|
get |
When the server is running, this is an easy way to get at the PID; if you get null, it's not running.
Implemented in PeanutButter.TempRedis.TempRedis.