PeanutButter
Loading...
Searching...
No Matches
PeanutButter.TempRedis Namespace Reference

Classes

interface  IRedisDownloader
 Attempts to download the Microsoft-built redis server 3.2.100 from https://github.com/microsoftarchive/redis/releases/tag/win-3.2.100 which is adequate for testing on a windows machine. More...
class  MicrosoftRedisDownloader
class  DownloadFailedException
class  RedisExecutableFinder
 Attempts to find a redis-server executable for TempRedis. More...
class  RedisWindowsServiceFinder
 Utility to try to find the path to the MySQL service binary on Windows.
interface  ITempRedis
 Provides a temporary, disposable Redis instance levering off of a locally installed redis-server installation or binary within the path. More...
class  TempRedisOptions
 Options for construction of a TempRedis instance. More...
class  TempRedis
interface  ITempRedisFactory
 Describes a TempRedis leasing factory. More...
class  TempRedisFactory

Enumerations

enum  RedisLocatorStrategies { FindInPath = 1 , FindAsWindowsService = 2 , DownloadForWindowsIfNecessary = 4 }
 Strategies for resolving a temporary redis server executable. More...

Functions

void FlushAll ()
void Store< T > (string key, T value)
Fetch< T > (string key)
string Fetch (string key)
bool TryFetch< T > (string key, out T result)
void Dispose ()

Enumeration Type Documentation

◆ RedisLocatorStrategies

Strategies for resolving a temporary redis server executable.

Enumerator
FindInPath 

Look for redis-server.exe or redis-server (linux/osx) in the path.

FindAsWindowsService 

Look for an installed Redis service on windows (does not apply to linux/osx) The service must be called 'redis'.

DownloadForWindowsIfNecessary 

Attempt to download win32 binaries from Microsoft archives at github if no redis-server found in the path and the service is not installed or not found.