Skip to main content

IRedisClient

Assembly: ServiceStack.Interfaces.dll​
View Source​
Declaration
public interface IRedisClient : IEntityStore, ICacheClientExtended, ICacheClient, IDisposable, IRemoveByPattern

Properties​

Db​

View Source​
Declaration
long Db { get; set; }

DbSize​

View Source​
Declaration
long DbSize { get; }

Info​

View Source​
Declaration
Dictionary<string, string> Info { get; }

LastSave​

View Source​
Declaration
DateTime LastSave { get; }

Host​

View Source​
Declaration
string Host { get; }

Port​

View Source​
Declaration
int Port { get; }

ConnectTimeout​

View Source​
Declaration
int ConnectTimeout { get; set; }

RetryTimeout​

View Source​
Declaration
int RetryTimeout { get; set; }

RetryCount​

View Source​
Declaration
int RetryCount { get; set; }

SendTimeout​

View Source​
Declaration
int SendTimeout { get; set; }

Username​

View Source​
Declaration
string Username { get; set; }

Password​

View Source​
Declaration
string Password { get; set; }

HadExceptions​

View Source​
Declaration
bool HadExceptions { get; }

Item[String]​

View Source​
Declaration
string this[string key] { get; set; }

Lists​

View Source​
Declaration
IHasNamed<IRedisList> Lists { get; set; }

Sets​

View Source​
Declaration
IHasNamed<IRedisSet> Sets { get; set; }

SortedSets​

View Source​
Declaration
IHasNamed<IRedisSortedSet> SortedSets { get; set; }

Hashes​

View Source​
Declaration
IHasNamed<IRedisHash> Hashes { get; set; }

Methods​

GetServerTime()​

View Source​
Declaration
DateTime GetServerTime()
Returns​

System.DateTime

Ping()​

View Source​
Declaration
bool Ping()
Returns​

System.Boolean

Echo(String)​

View Source​
Declaration
string Echo(string text)
Returns​

System.String

Parameters​
TypeName
System.Stringtext

Custom(Object[])​

View Source​
Declaration
RedisText Custom(params object[] cmdWithArgs)
Returns​

ServiceStack.Redis.RedisText

Parameters​
TypeName
System.Object[]cmdWithArgs

Save()​

View Source​
Declaration
void Save()

SaveAsync()​

View Source​
Declaration
void SaveAsync()

Shutdown()​

View Source​
Declaration
void Shutdown()

ShutdownNoSave()​

View Source​
Declaration
void ShutdownNoSave()

RewriteAppendOnlyFileAsync()​

View Source​
Declaration
void RewriteAppendOnlyFileAsync()

FlushDb()​

View Source​
Declaration
void FlushDb()

GetServerRole()​

View Source​
Declaration
RedisServerRole GetServerRole()
Returns​

ServiceStack.Redis.RedisServerRole

GetServerRoleInfo()​

View Source​
Declaration
RedisText GetServerRoleInfo()
Returns​

ServiceStack.Redis.RedisText

GetConfig(String)​

View Source​
Declaration
string GetConfig(string item)
Returns​

System.String

Parameters​
TypeName
System.Stringitem

SetConfig(String, String)​

View Source​
Declaration
void SetConfig(string item, string value)
Parameters​
TypeName
System.Stringitem
System.Stringvalue

SaveConfig()​

View Source​
Declaration
void SaveConfig()

ResetInfoStats()​

View Source​
Declaration
void ResetInfoStats()

GetClient()​

View Source​
Declaration
string GetClient()
Returns​

System.String

SetClient(String)​

View Source​
Declaration
void SetClient(string name)
Parameters​
TypeName
System.Stringname

KillClient(String)​

View Source​
Declaration
void KillClient(string address)
Parameters​
TypeName
System.Stringaddress

KillClients(String, String, Nullable<RedisClientType>, Nullable<Boolean>)​

View Source​
Declaration
long KillClients(string fromAddress = null, string withId = null, RedisClientType? ofType = null, bool? skipMe = null)
Returns​

System.Int64

Parameters​
TypeName
System.StringfromAddress
System.StringwithId
System.Nullable<ServiceStack.Redis.RedisClientType>ofType
System.Nullable<System.Boolean>skipMe

GetClientsInfo()​

View Source​
Declaration
List<Dictionary<string, string>> GetClientsInfo()
Returns​

System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>

PauseAllClients(TimeSpan)​

View Source​
Declaration
void PauseAllClients(TimeSpan duration)
Parameters​
TypeName
System.TimeSpanduration

GetAllKeys()​

View Source​
Declaration
List<string> GetAllKeys()
Returns​

System.Collections.Generic.List<System.String>

UrnKey<T>(T)​

View Source​
Declaration
string UrnKey<T>(T value)
Returns​

System.String

Parameters​
TypeName
<T>value
Type Parameters​
  • T

UrnKey<T>(Object)​

View Source​
Declaration
string UrnKey<T>(object id)
Returns​

System.String

Parameters​
TypeName
System.Objectid
Type Parameters​
  • T

UrnKey(Type, Object)​

View Source​
Declaration
string UrnKey(Type type, object id)
Returns​

System.String

Parameters​
TypeName
System.Typetype
System.Objectid

SetAll(IEnumerable<String>, IEnumerable<String>)​

View Source​
Declaration
void SetAll(IEnumerable<string> keys, IEnumerable<string> values)
Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.String>keys
System.Collections.Generic.IEnumerable<System.String>values

SetAll(Dictionary<String, String>)​

View Source​
Declaration
void SetAll(Dictionary<string, string> map)
Parameters​
TypeName
System.Collections.Generic.Dictionary<System.String,System.String>map

SetValues(Dictionary<String, String>)​

View Source​
Declaration
void SetValues(Dictionary<string, string> map)
Parameters​
TypeName
System.Collections.Generic.Dictionary<System.String,System.String>map

SetValue(String, String)​

View Source​
Declaration
void SetValue(string key, string value)
Parameters​
TypeName
System.Stringkey
System.Stringvalue

SetValue(String, String, TimeSpan)​

View Source​
Declaration
void SetValue(string key, string value, TimeSpan expireIn)
Parameters​
TypeName
System.Stringkey
System.Stringvalue
System.TimeSpanexpireIn

SetValueIfNotExists(String, String)​

View Source​
Declaration
bool SetValueIfNotExists(string key, string value)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.Stringvalue

SetValueIfNotExists(String, String, TimeSpan)​

View Source​
Declaration
bool SetValueIfNotExists(string key, string value, TimeSpan expireIn)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.Stringvalue
System.TimeSpanexpireIn

SetValueIfExists(String, String)​

View Source​
Declaration
bool SetValueIfExists(string key, string value)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.Stringvalue

SetValueIfExists(String, String, TimeSpan)​

View Source​
Declaration
bool SetValueIfExists(string key, string value, TimeSpan expireIn)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.Stringvalue
System.TimeSpanexpireIn

GetValue(String)​

View Source​
Declaration
string GetValue(string key)
Returns​

System.String

Parameters​
TypeName
System.Stringkey

GetAndSetValue(String, String)​

View Source​
Declaration
string GetAndSetValue(string key, string value)
Returns​

System.String

Parameters​
TypeName
System.Stringkey
System.Stringvalue

GetValues(List<String>)​

View Source​
Declaration
List<string> GetValues(List<string> keys)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Collections.Generic.List<System.String>keys

GetValues<T>(List<String>)​

View Source​
Declaration
List<T> GetValues<T>(List<string> keys)
Returns​

System.Collections.Generic.List<<T>>

Parameters​
TypeName
System.Collections.Generic.List<System.String>keys
Type Parameters​
  • T

GetValuesMap(List<String>)​

View Source​
Declaration
Dictionary<string, string> GetValuesMap(List<string> keys)
Returns​

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters​
TypeName
System.Collections.Generic.List<System.String>keys

GetValuesMap<T>(List<String>)​

View Source​
Declaration
Dictionary<string, T> GetValuesMap<T>(List<string> keys)
Returns​

System.Collections.Generic.Dictionary<System.String,<T>>

Parameters​
TypeName
System.Collections.Generic.List<System.String>keys
Type Parameters​
  • T

AppendTo(String, String)​

View Source​
Declaration
long AppendTo(string key, string value)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Stringvalue

Slice(String, Int32, Int32)​

View Source​
Declaration
string Slice(string key, int fromIndex, int toIndex)
Returns​

System.String

Parameters​
TypeName
System.Stringkey
System.Int32fromIndex
System.Int32toIndex

InsertAt(String, Int32, String)​

View Source​
Declaration
long InsertAt(string key, int offset, string value)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Int32offset
System.Stringvalue

RenameKey(String, String)​

View Source​
Declaration
void RenameKey(string fromName, string toName)
Parameters​
TypeName
System.StringfromName
System.StringtoName

GetFromHash<T>(Object)​

View Source​
Declaration
T GetFromHash<T>(object id)
Returns​

<T>

Parameters​
TypeName
System.Objectid
Type Parameters​
  • T

StoreAsHash<T>(T)​

View Source​
Declaration
void StoreAsHash<T>(T entity)
Parameters​
TypeName
<T>entity
Type Parameters​
  • T

StoreObject(Object)​

View Source​
Declaration
object StoreObject(object entity)
Returns​

System.Object

Parameters​
TypeName
System.Objectentity

ContainsKey(String)​

View Source​
Declaration
bool ContainsKey(string key)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey

RemoveEntry(String[])​

View Source​
Declaration
bool RemoveEntry(params string[] args)
Returns​

System.Boolean

Parameters​
TypeName
System.String[]args

IncrementValue(String)​

View Source​
Declaration
long IncrementValue(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

IncrementValueBy(String, Int32)​

View Source​
Declaration
long IncrementValueBy(string key, int count)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Int32count

IncrementValueBy(String, Int64)​

View Source​
Declaration
long IncrementValueBy(string key, long count)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Int64count

IncrementValueBy(String, Double)​

View Source​
Declaration
double IncrementValueBy(string key, double count)
Returns​

System.Double

Parameters​
TypeName
System.Stringkey
System.Doublecount

DecrementValue(String)​

View Source​
Declaration
long DecrementValue(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

DecrementValueBy(String, Int32)​

View Source​
Declaration
long DecrementValueBy(string key, int count)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Int32count

SearchKeys(String)​

View Source​
Declaration
List<string> SearchKeys(string pattern)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Stringpattern

Type(String)​

View Source​
Declaration
string Type(string key)
Returns​

System.String

Parameters​
TypeName
System.Stringkey

GetEntryType(String)​

View Source​
Declaration
RedisKeyType GetEntryType(string key)
Returns​

ServiceStack.Redis.RedisKeyType

Parameters​
TypeName
System.Stringkey

GetStringCount(String)​

View Source​
Declaration
long GetStringCount(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

GetRandomKey()​

View Source​
Declaration
string GetRandomKey()
Returns​

System.String

ExpireEntryIn(String, TimeSpan)​

View Source​
Declaration
bool ExpireEntryIn(string key, TimeSpan expireIn)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.TimeSpanexpireIn

ExpireEntryAt(String, DateTime)​

View Source​
Declaration
bool ExpireEntryAt(string key, DateTime expireAt)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.DateTimeexpireAt

GetSortedEntryValues(String, Int32, Int32)​

View Source​
Declaration
List<string> GetSortedEntryValues(string key, int startingFrom, int endingAt)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Stringkey
System.Int32startingFrom
System.Int32endingAt

WriteAll<TEntity>(IEnumerable<TEntity>)​

View Source​
Declaration
void WriteAll<TEntity>(IEnumerable<TEntity> entities)
Parameters​
TypeName
System.Collections.Generic.IEnumerable<<TEntity>>entities
Type Parameters​
  • TEntity

ScanAllKeys(String, Int32)​

View Source​
Declaration
IEnumerable<string> ScanAllKeys(string pattern = null, int pageSize = 1000)
Returns​

System.Collections.Generic.IEnumerable<System.String>

Parameters​
TypeName
System.Stringpattern
System.Int32pageSize

ScanAllSetItems(String, String, Int32)​

View Source​
Declaration
IEnumerable<string> ScanAllSetItems(string setId, string pattern = null, int pageSize = 1000)
Returns​

System.Collections.Generic.IEnumerable<System.String>

Parameters​
TypeName
System.StringsetId
System.Stringpattern
System.Int32pageSize

ScanAllSortedSetItems(String, String, Int32)​

View Source​
Declaration
IEnumerable<KeyValuePair<string, double>> ScanAllSortedSetItems(string setId, string pattern = null, int pageSize = 1000)
Returns​

System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Double>>

Parameters​
TypeName
System.StringsetId
System.Stringpattern
System.Int32pageSize

ScanAllHashEntries(String, String, Int32)​

View Source​
Declaration
IEnumerable<KeyValuePair<string, string>> ScanAllHashEntries(string hashId, string pattern = null, int pageSize = 1000)
Returns​

System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.String>>

Parameters​
TypeName
System.StringhashId
System.Stringpattern
System.Int32pageSize

AddToHyperLog(String, String[])​

View Source​
Declaration
bool AddToHyperLog(string key, params string[] elements)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringkey
System.String[]elements

CountHyperLog(String)​

View Source​
Declaration
long CountHyperLog(string key)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey

MergeHyperLogs(String, String[])​

View Source​
Declaration
void MergeHyperLogs(string toKey, params string[] fromKeys)
Parameters​
TypeName
System.StringtoKey
System.String[]fromKeys

AddGeoMember(String, Double, Double, String)​

View Source​
Declaration
long AddGeoMember(string key, double longitude, double latitude, string member)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
System.Doublelongitude
System.Doublelatitude
System.Stringmember

AddGeoMembers(String, RedisGeo[])​

View Source​
Declaration
long AddGeoMembers(string key, params RedisGeo[] geoPoints)
Returns​

System.Int64

Parameters​
TypeName
System.Stringkey
ServiceStack.Redis.RedisGeo[]geoPoints

CalculateDistanceBetweenGeoMembers(String, String, String, String)​

View Source​
Declaration
double CalculateDistanceBetweenGeoMembers(string key, string fromMember, string toMember, string unit = null)
Returns​

System.Double

Parameters​
TypeName
System.Stringkey
System.StringfromMember
System.StringtoMember
System.Stringunit

GetGeohashes(String, String[])​

View Source​
Declaration
string[] GetGeohashes(string key, params string[] members)
Returns​

System.String[]

Parameters​
TypeName
System.Stringkey
System.String[]members

GetGeoCoordinates(String, String[])​

View Source​
Declaration
List<RedisGeo> GetGeoCoordinates(string key, params string[] members)
Returns​

System.Collections.Generic.List<ServiceStack.Redis.RedisGeo>

Parameters​
TypeName
System.Stringkey
System.String[]members

FindGeoMembersInRadius(String, Double, Double, Double, String)​

View Source​
Declaration
string[] FindGeoMembersInRadius(string key, double longitude, double latitude, double radius, string unit)
Returns​

System.String[]

Parameters​
TypeName
System.Stringkey
System.Doublelongitude
System.Doublelatitude
System.Doubleradius
System.Stringunit

FindGeoResultsInRadius(String, Double, Double, Double, String, Nullable<Int32>, Nullable<Boolean>)​

View Source​
Declaration
List<RedisGeoResult> FindGeoResultsInRadius(string key, double longitude, double latitude, double radius, string unit, int? count = null, bool? sortByNearest = null)
Returns​

System.Collections.Generic.List<ServiceStack.Redis.RedisGeoResult>

Parameters​
TypeName
System.Stringkey
System.Doublelongitude
System.Doublelatitude
System.Doubleradius
System.Stringunit
System.Nullable<System.Int32>count
System.Nullable<System.Boolean>sortByNearest

FindGeoMembersInRadius(String, String, Double, String)​

View Source​
Declaration
string[] FindGeoMembersInRadius(string key, string member, double radius, string unit)
Returns​

System.String[]

Parameters​
TypeName
System.Stringkey
System.Stringmember
System.Doubleradius
System.Stringunit

FindGeoResultsInRadius(String, String, Double, String, Nullable<Int32>, Nullable<Boolean>)​

View Source​
Declaration
List<RedisGeoResult> FindGeoResultsInRadius(string key, string member, double radius, string unit, int? count = null, bool? sortByNearest = null)
Returns​

System.Collections.Generic.List<ServiceStack.Redis.RedisGeoResult>

Parameters​
TypeName
System.Stringkey
System.Stringmember
System.Doubleradius
System.Stringunit
System.Nullable<System.Int32>count
System.Nullable<System.Boolean>sortByNearest

As<T>()​

Returns a high-level typed client API

View Source​
Declaration
IRedisTypedClient<T> As<T>()
Returns​

ServiceStack.Redis.Generic.IRedisTypedClient<T>

Type Parameters​
  • T

CreateTransaction()​

View Source​
Declaration
IRedisTransaction CreateTransaction()
Returns​

ServiceStack.Redis.IRedisTransaction

CreatePipeline()​

View Source​
Declaration
IRedisPipeline CreatePipeline()
Returns​

ServiceStack.Redis.Pipeline.IRedisPipeline

AcquireLock(String)​

View Source​
Declaration
IDisposable AcquireLock(string key)
Returns​

System.IDisposable

Parameters​
TypeName
System.Stringkey

AcquireLock(String, TimeSpan)​

View Source​
Declaration
IDisposable AcquireLock(string key, TimeSpan timeOut)
Returns​

System.IDisposable

Parameters​
TypeName
System.Stringkey
System.TimeSpantimeOut

Watch(String[])​

View Source​
Declaration
void Watch(params string[] keys)
Parameters​
TypeName
System.String[]keys

UnWatch()​

View Source​
Declaration
void UnWatch()

CreateSubscription()​

View Source​
Declaration
IRedisSubscription CreateSubscription()
Returns​

ServiceStack.Redis.IRedisSubscription

PublishMessage(String, String)​

View Source​
Declaration
long PublishMessage(string toChannel, string message)
Returns​

System.Int64

Parameters​
TypeName
System.StringtoChannel
System.Stringmessage

GetAllItemsFromSet(String)​

View Source​
Declaration
HashSet<string> GetAllItemsFromSet(string setId)
Returns​

System.Collections.Generic.HashSet<System.String>

Parameters​
TypeName
System.StringsetId

AddItemToSet(String, String)​

View Source​
Declaration
void AddItemToSet(string setId, string item)
Parameters​
TypeName
System.StringsetId
System.Stringitem

AddRangeToSet(String, List<String>)​

View Source​
Declaration
void AddRangeToSet(string setId, List<string> items)
Parameters​
TypeName
System.StringsetId
System.Collections.Generic.List<System.String>items

RemoveItemFromSet(String, String)​

View Source​
Declaration
void RemoveItemFromSet(string setId, string item)
Parameters​
TypeName
System.StringsetId
System.Stringitem

PopItemFromSet(String)​

View Source​
Declaration
string PopItemFromSet(string setId)
Returns​

System.String

Parameters​
TypeName
System.StringsetId

PopItemsFromSet(String, Int32)​

View Source​
Declaration
List<string> PopItemsFromSet(string setId, int count)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.Int32count

MoveBetweenSets(String, String, String)​

View Source​
Declaration
void MoveBetweenSets(string fromSetId, string toSetId, string item)
Parameters​
TypeName
System.StringfromSetId
System.StringtoSetId
System.Stringitem

GetSetCount(String)​

View Source​
Declaration
long GetSetCount(string setId)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId

SetContainsItem(String, String)​

View Source​
Declaration
bool SetContainsItem(string setId, string item)
Returns​

System.Boolean

Parameters​
TypeName
System.StringsetId
System.Stringitem

GetIntersectFromSets(String[])​

View Source​
Declaration
HashSet<string> GetIntersectFromSets(params string[] setIds)
Returns​

System.Collections.Generic.HashSet<System.String>

Parameters​
TypeName
System.String[]setIds

StoreIntersectFromSets(String, String[])​

View Source​
Declaration
void StoreIntersectFromSets(string intoSetId, params string[] setIds)
Parameters​
TypeName
System.StringintoSetId
System.String[]setIds

GetUnionFromSets(String[])​

View Source​
Declaration
HashSet<string> GetUnionFromSets(params string[] setIds)
Returns​

System.Collections.Generic.HashSet<System.String>

Parameters​
TypeName
System.String[]setIds

StoreUnionFromSets(String, String[])​

View Source​
Declaration
void StoreUnionFromSets(string intoSetId, params string[] setIds)
Parameters​
TypeName
System.StringintoSetId
System.String[]setIds

GetDifferencesFromSet(String, String[])​

View Source​
Declaration
HashSet<string> GetDifferencesFromSet(string fromSetId, params string[] withSetIds)
Returns​

System.Collections.Generic.HashSet<System.String>

Parameters​
TypeName
System.StringfromSetId
System.String[]withSetIds

StoreDifferencesFromSet(String, String, String[])​

View Source​
Declaration
void StoreDifferencesFromSet(string intoSetId, string fromSetId, params string[] withSetIds)
Parameters​
TypeName
System.StringintoSetId
System.StringfromSetId
System.String[]withSetIds

GetRandomItemFromSet(String)​

View Source​
Declaration
string GetRandomItemFromSet(string setId)
Returns​

System.String

Parameters​
TypeName
System.StringsetId

GetAllItemsFromList(String)​

View Source​
Declaration
List<string> GetAllItemsFromList(string listId)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringlistId

GetRangeFromList(String, Int32, Int32)​

View Source​
Declaration
List<string> GetRangeFromList(string listId, int startingFrom, int endingAt)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringlistId
System.Int32startingFrom
System.Int32endingAt

GetRangeFromSortedList(String, Int32, Int32)​

View Source​
Declaration
List<string> GetRangeFromSortedList(string listId, int startingFrom, int endingAt)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringlistId
System.Int32startingFrom
System.Int32endingAt

GetSortedItemsFromList(String, SortOptions)​

View Source​
Declaration
List<string> GetSortedItemsFromList(string listId, SortOptions sortOptions)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringlistId
ServiceStack.Redis.SortOptionssortOptions

AddItemToList(String, String)​

View Source​
Declaration
void AddItemToList(string listId, string value)
Parameters​
TypeName
System.StringlistId
System.Stringvalue

AddRangeToList(String, List<String>)​

View Source​
Declaration
void AddRangeToList(string listId, List<string> values)
Parameters​
TypeName
System.StringlistId
System.Collections.Generic.List<System.String>values

PrependItemToList(String, String)​

View Source​
Declaration
void PrependItemToList(string listId, string value)
Parameters​
TypeName
System.StringlistId
System.Stringvalue

PrependRangeToList(String, List<String>)​

View Source​
Declaration
void PrependRangeToList(string listId, List<string> values)
Parameters​
TypeName
System.StringlistId
System.Collections.Generic.List<System.String>values

RemoveAllFromList(String)​

View Source​
Declaration
void RemoveAllFromList(string listId)
Parameters​
TypeName
System.StringlistId

RemoveStartFromList(String)​

View Source​
Declaration
string RemoveStartFromList(string listId)
Returns​

System.String

Parameters​
TypeName
System.StringlistId

BlockingRemoveStartFromList(String, Nullable<TimeSpan>)​

View Source​
Declaration
string BlockingRemoveStartFromList(string listId, TimeSpan? timeOut)
Returns​

System.String

Parameters​
TypeName
System.StringlistId
System.Nullable<System.TimeSpan>timeOut

BlockingRemoveStartFromLists(String[], Nullable<TimeSpan>)​

View Source​
Declaration
ItemRef BlockingRemoveStartFromLists(string[] listIds, TimeSpan? timeOut)
Returns​

ServiceStack.Redis.ItemRef

Parameters​
TypeName
System.String[]listIds
System.Nullable<System.TimeSpan>timeOut

RemoveEndFromList(String)​

View Source​
Declaration
string RemoveEndFromList(string listId)
Returns​

System.String

Parameters​
TypeName
System.StringlistId

TrimList(String, Int32, Int32)​

View Source​
Declaration
void TrimList(string listId, int keepStartingFrom, int keepEndingAt)
Parameters​
TypeName
System.StringlistId
System.Int32keepStartingFrom
System.Int32keepEndingAt

RemoveItemFromList(String, String)​

View Source​
Declaration
long RemoveItemFromList(string listId, string value)
Returns​

System.Int64

Parameters​
TypeName
System.StringlistId
System.Stringvalue

RemoveItemFromList(String, String, Int32)​

View Source​
Declaration
long RemoveItemFromList(string listId, string value, int noOfMatches)
Returns​

System.Int64

Parameters​
TypeName
System.StringlistId
System.Stringvalue
System.Int32noOfMatches

GetListCount(String)​

View Source​
Declaration
long GetListCount(string listId)
Returns​

System.Int64

Parameters​
TypeName
System.StringlistId

GetItemFromList(String, Int32)​

View Source​
Declaration
string GetItemFromList(string listId, int listIndex)
Returns​

System.String

Parameters​
TypeName
System.StringlistId
System.Int32listIndex

SetItemInList(String, Int32, String)​

View Source​
Declaration
void SetItemInList(string listId, int listIndex, string value)
Parameters​
TypeName
System.StringlistId
System.Int32listIndex
System.Stringvalue

EnqueueItemOnList(String, String)​

View Source​
Declaration
void EnqueueItemOnList(string listId, string value)
Parameters​
TypeName
System.StringlistId
System.Stringvalue

DequeueItemFromList(String)​

View Source​
Declaration
string DequeueItemFromList(string listId)
Returns​

System.String

Parameters​
TypeName
System.StringlistId

BlockingDequeueItemFromList(String, Nullable<TimeSpan>)​

View Source​
Declaration
string BlockingDequeueItemFromList(string listId, TimeSpan? timeOut)
Returns​

System.String

Parameters​
TypeName
System.StringlistId
System.Nullable<System.TimeSpan>timeOut

BlockingDequeueItemFromLists(String[], Nullable<TimeSpan>)​

View Source​
Declaration
ItemRef BlockingDequeueItemFromLists(string[] listIds, TimeSpan? timeOut)
Returns​

ServiceStack.Redis.ItemRef

Parameters​
TypeName
System.String[]listIds
System.Nullable<System.TimeSpan>timeOut

PushItemToList(String, String)​

View Source​
Declaration
void PushItemToList(string listId, string value)
Parameters​
TypeName
System.StringlistId
System.Stringvalue

PopItemFromList(String)​

View Source​
Declaration
string PopItemFromList(string listId)
Returns​

System.String

Parameters​
TypeName
System.StringlistId

BlockingPopItemFromList(String, Nullable<TimeSpan>)​

View Source​
Declaration
string BlockingPopItemFromList(string listId, TimeSpan? timeOut)
Returns​

System.String

Parameters​
TypeName
System.StringlistId
System.Nullable<System.TimeSpan>timeOut

BlockingPopItemFromLists(String[], Nullable<TimeSpan>)​

View Source​
Declaration
ItemRef BlockingPopItemFromLists(string[] listIds, TimeSpan? timeOut)
Returns​

ServiceStack.Redis.ItemRef

Parameters​
TypeName
System.String[]listIds
System.Nullable<System.TimeSpan>timeOut

PopAndPushItemBetweenLists(String, String)​

View Source​
Declaration
string PopAndPushItemBetweenLists(string fromListId, string toListId)
Returns​

System.String

Parameters​
TypeName
System.StringfromListId
System.StringtoListId

BlockingPopAndPushItemBetweenLists(String, String, Nullable<TimeSpan>)​

View Source​
Declaration
string BlockingPopAndPushItemBetweenLists(string fromListId, string toListId, TimeSpan? timeOut)
Returns​

System.String

Parameters​
TypeName
System.StringfromListId
System.StringtoListId
System.Nullable<System.TimeSpan>timeOut

AddItemToSortedSet(String, String)​

View Source​
Declaration
bool AddItemToSortedSet(string setId, string value)
Returns​

System.Boolean

Parameters​
TypeName
System.StringsetId
System.Stringvalue

AddItemToSortedSet(String, String, Double)​

View Source​
Declaration
bool AddItemToSortedSet(string setId, string value, double score)
Returns​

System.Boolean

Parameters​
TypeName
System.StringsetId
System.Stringvalue
System.Doublescore

AddRangeToSortedSet(String, List<String>, Double)​

View Source​
Declaration
bool AddRangeToSortedSet(string setId, List<string> values, double score)
Returns​

System.Boolean

Parameters​
TypeName
System.StringsetId
System.Collections.Generic.List<System.String>values
System.Doublescore

AddRangeToSortedSet(String, List<String>, Int64)​

View Source​
Declaration
bool AddRangeToSortedSet(string setId, List<string> values, long score)
Returns​

System.Boolean

Parameters​
TypeName
System.StringsetId
System.Collections.Generic.List<System.String>values
System.Int64score

RemoveItemFromSortedSet(String, String)​

View Source​
Declaration
bool RemoveItemFromSortedSet(string setId, string value)
Returns​

System.Boolean

Parameters​
TypeName
System.StringsetId
System.Stringvalue

RemoveItemsFromSortedSet(String, List<String>)​

View Source​
Declaration
long RemoveItemsFromSortedSet(string setId, List<string> values)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Collections.Generic.List<System.String>values

PopItemWithLowestScoreFromSortedSet(String)​

View Source​
Declaration
string PopItemWithLowestScoreFromSortedSet(string setId)
Returns​

System.String

Parameters​
TypeName
System.StringsetId

PopItemWithHighestScoreFromSortedSet(String)​

View Source​
Declaration
string PopItemWithHighestScoreFromSortedSet(string setId)
Returns​

System.String

Parameters​
TypeName
System.StringsetId

SortedSetContainsItem(String, String)​

View Source​
Declaration
bool SortedSetContainsItem(string setId, string value)
Returns​

System.Boolean

Parameters​
TypeName
System.StringsetId
System.Stringvalue

IncrementItemInSortedSet(String, String, Double)​

View Source​
Declaration
double IncrementItemInSortedSet(string setId, string value, double incrementBy)
Returns​

System.Double

Parameters​
TypeName
System.StringsetId
System.Stringvalue
System.DoubleincrementBy

IncrementItemInSortedSet(String, String, Int64)​

View Source​
Declaration
double IncrementItemInSortedSet(string setId, string value, long incrementBy)
Returns​

System.Double

Parameters​
TypeName
System.StringsetId
System.Stringvalue
System.Int64incrementBy

GetItemIndexInSortedSet(String, String)​

View Source​
Declaration
long GetItemIndexInSortedSet(string setId, string value)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Stringvalue

GetItemIndexInSortedSetDesc(String, String)​

View Source​
Declaration
long GetItemIndexInSortedSetDesc(string setId, string value)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Stringvalue

GetAllItemsFromSortedSet(String)​

View Source​
Declaration
List<string> GetAllItemsFromSortedSet(string setId)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId

GetAllItemsFromSortedSetDesc(String)​

View Source​
Declaration
List<string> GetAllItemsFromSortedSetDesc(string setId)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId

GetRangeFromSortedSet(String, Int32, Int32)​

View Source​
Declaration
List<string> GetRangeFromSortedSet(string setId, int fromRank, int toRank)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.Int32fromRank
System.Int32toRank

GetRangeFromSortedSetDesc(String, Int32, Int32)​

View Source​
Declaration
List<string> GetRangeFromSortedSetDesc(string setId, int fromRank, int toRank)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.Int32fromRank
System.Int32toRank

GetAllWithScoresFromSortedSet(String)​

View Source​
Declaration
IDictionary<string, double> GetAllWithScoresFromSortedSet(string setId)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId

GetRangeWithScoresFromSortedSet(String, Int32, Int32)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSet(string setId, int fromRank, int toRank)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.Int32fromRank
System.Int32toRank

GetRangeWithScoresFromSortedSetDesc(String, Int32, Int32)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetDesc(string setId, int fromRank, int toRank)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.Int32fromRank
System.Int32toRank

GetRangeFromSortedSetByLowestScore(String, String, String)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, string fromStringScore, string toStringScore)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore

GetRangeFromSortedSetByLowestScore(String, String, String, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, string fromStringScore, string toStringScore, int? skip, int? take)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeFromSortedSetByLowestScore(String, Double, Double)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, double fromScore, double toScore)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

GetRangeFromSortedSetByLowestScore(String, Int64, Int64)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, long fromScore, long toScore)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

GetRangeFromSortedSetByLowestScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, double fromScore, double toScore, int? skip, int? take)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeFromSortedSetByLowestScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, long fromScore, long toScore, int? skip, int? take)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByLowestScore(String, String, String)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, string fromStringScore, string toStringScore)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore

GetRangeWithScoresFromSortedSetByLowestScore(String, String, String, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, string fromStringScore, string toStringScore, int? skip, int? take)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByLowestScore(String, Double, Double)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, double fromScore, double toScore)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

GetRangeWithScoresFromSortedSetByLowestScore(String, Int64, Int64)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, long fromScore, long toScore)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

GetRangeWithScoresFromSortedSetByLowestScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, double fromScore, double toScore, int? skip, int? take)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByLowestScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, long fromScore, long toScore, int? skip, int? take)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeFromSortedSetByHighestScore(String, String, String)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, string fromStringScore, string toStringScore)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore

GetRangeFromSortedSetByHighestScore(String, String, String, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, string fromStringScore, string toStringScore, int? skip, int? take)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeFromSortedSetByHighestScore(String, Double, Double)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, double fromScore, double toScore)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

GetRangeFromSortedSetByHighestScore(String, Int64, Int64)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, long fromScore, long toScore)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

GetRangeFromSortedSetByHighestScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, double fromScore, double toScore, int? skip, int? take)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeFromSortedSetByHighestScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, long fromScore, long toScore, int? skip, int? take)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByHighestScore(String, String, String)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, string fromStringScore, string toStringScore)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore

GetRangeWithScoresFromSortedSetByHighestScore(String, String, String, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, string fromStringScore, string toStringScore, int? skip, int? take)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByHighestScore(String, Double, Double)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, double fromScore, double toScore)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

GetRangeWithScoresFromSortedSetByHighestScore(String, Int64, Int64)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, long fromScore, long toScore)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

GetRangeWithScoresFromSortedSetByHighestScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, double fromScore, double toScore, int? skip, int? take)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByHighestScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, long fromScore, long toScore, int? skip, int? take)
Returns​

System.Collections.Generic.IDictionary<System.String,System.Double>

Parameters​
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

RemoveRangeFromSortedSet(String, Int32, Int32)​

View Source​
Declaration
long RemoveRangeFromSortedSet(string setId, int minRank, int maxRank)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Int32minRank
System.Int32maxRank

RemoveRangeFromSortedSetByScore(String, Double, Double)​

View Source​
Declaration
long RemoveRangeFromSortedSetByScore(string setId, double fromScore, double toScore)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

RemoveRangeFromSortedSetByScore(String, Int64, Int64)​

View Source​
Declaration
long RemoveRangeFromSortedSetByScore(string setId, long fromScore, long toScore)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

GetSortedSetCount(String)​

View Source​
Declaration
long GetSortedSetCount(string setId)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId

GetSortedSetCount(String, String, String)​

View Source​
Declaration
long GetSortedSetCount(string setId, string fromStringScore, string toStringScore)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore

GetSortedSetCount(String, Int64, Int64)​

View Source​
Declaration
long GetSortedSetCount(string setId, long fromScore, long toScore)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

GetSortedSetCount(String, Double, Double)​

View Source​
Declaration
long GetSortedSetCount(string setId, double fromScore, double toScore)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

GetItemScoreInSortedSet(String, String)​

View Source​
Declaration
double GetItemScoreInSortedSet(string setId, string value)
Returns​

System.Double

Parameters​
TypeName
System.StringsetId
System.Stringvalue

StoreIntersectFromSortedSets(String, String[])​

View Source​
Declaration
long StoreIntersectFromSortedSets(string intoSetId, params string[] setIds)
Returns​

System.Int64

Parameters​
TypeName
System.StringintoSetId
System.String[]setIds

StoreIntersectFromSortedSets(String, String[], String[])​

View Source​
Declaration
long StoreIntersectFromSortedSets(string intoSetId, string[] setIds, string[] args)
Returns​

System.Int64

Parameters​
TypeName
System.StringintoSetId
System.String[]setIds
System.String[]args

StoreUnionFromSortedSets(String, String[])​

View Source​
Declaration
long StoreUnionFromSortedSets(string intoSetId, params string[] setIds)
Returns​

System.Int64

Parameters​
TypeName
System.StringintoSetId
System.String[]setIds

StoreUnionFromSortedSets(String, String[], String[])​

View Source​
Declaration
long StoreUnionFromSortedSets(string intoSetId, string[] setIds, string[] args)
Returns​

System.Int64

Parameters​
TypeName
System.StringintoSetId
System.String[]setIds
System.String[]args

SearchSortedSet(String, String, String, Nullable<Int32>, Nullable<Int32>)​

View Source​
Declaration
List<string> SearchSortedSet(string setId, string start = null, string end = null, int? skip = null, int? take = null)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringsetId
System.Stringstart
System.Stringend
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

SearchSortedSetCount(String, String, String)​

View Source​
Declaration
long SearchSortedSetCount(string setId, string start = null, string end = null)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Stringstart
System.Stringend

RemoveRangeFromSortedSetBySearch(String, String, String)​

View Source​
Declaration
long RemoveRangeFromSortedSetBySearch(string setId, string start = null, string end = null)
Returns​

System.Int64

Parameters​
TypeName
System.StringsetId
System.Stringstart
System.Stringend

HashContainsEntry(String, String)​

View Source​
Declaration
bool HashContainsEntry(string hashId, string key)
Returns​

System.Boolean

Parameters​
TypeName
System.StringhashId
System.Stringkey

SetEntryInHash(String, String, String)​

View Source​
Declaration
bool SetEntryInHash(string hashId, string key, string value)
Returns​

System.Boolean

Parameters​
TypeName
System.StringhashId
System.Stringkey
System.Stringvalue

SetEntryInHashIfNotExists(String, String, String)​

View Source​
Declaration
bool SetEntryInHashIfNotExists(string hashId, string key, string value)
Returns​

System.Boolean

Parameters​
TypeName
System.StringhashId
System.Stringkey
System.Stringvalue

SetRangeInHash(String, IEnumerable<KeyValuePair<String, String>>)​

View Source​
Declaration
void SetRangeInHash(string hashId, IEnumerable<KeyValuePair<string, string>> keyValuePairs)
Parameters​
TypeName
System.StringhashId
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.String>>keyValuePairs

IncrementValueInHash(String, String, Int32)​

View Source​
Declaration
long IncrementValueInHash(string hashId, string key, int incrementBy)
Returns​

System.Int64

Parameters​
TypeName
System.StringhashId
System.Stringkey
System.Int32incrementBy

IncrementValueInHash(String, String, Double)​

View Source​
Declaration
double IncrementValueInHash(string hashId, string key, double incrementBy)
Returns​

System.Double

Parameters​
TypeName
System.StringhashId
System.Stringkey
System.DoubleincrementBy

GetValueFromHash(String, String)​

View Source​
Declaration
string GetValueFromHash(string hashId, string key)
Returns​

System.String

Parameters​
TypeName
System.StringhashId
System.Stringkey

GetValuesFromHash(String, String[])​

View Source​
Declaration
List<string> GetValuesFromHash(string hashId, params string[] keys)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringhashId
System.String[]keys

RemoveEntryFromHash(String, String)​

View Source​
Declaration
bool RemoveEntryFromHash(string hashId, string key)
Returns​

System.Boolean

Parameters​
TypeName
System.StringhashId
System.Stringkey

GetHashCount(String)​

View Source​
Declaration
long GetHashCount(string hashId)
Returns​

System.Int64

Parameters​
TypeName
System.StringhashId

GetHashKeys(String)​

View Source​
Declaration
List<string> GetHashKeys(string hashId)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringhashId

GetHashValues(String)​

View Source​
Declaration
List<string> GetHashValues(string hashId)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringhashId

GetAllEntriesFromHash(String)​

View Source​
Declaration
Dictionary<string, string> GetAllEntriesFromHash(string hashId)
Returns​

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters​
TypeName
System.StringhashId

ExecCachedLua<T>(String, Func<String, T>)​

View Source​
Declaration
T ExecCachedLua<T>(string scriptBody, Func<string, T> scriptSha1)
Returns​

<T>

Parameters​
TypeName
System.StringscriptBody
System.Func<System.String,<T>>scriptSha1
Type Parameters​
  • T

ExecLua(String, String[])​

View Source​
Declaration
RedisText ExecLua(string body, params string[] args)
Returns​

ServiceStack.Redis.RedisText

Parameters​
TypeName
System.Stringbody
System.String[]args

ExecLua(String, String[], String[])​

View Source​
Declaration
RedisText ExecLua(string luaBody, string[] keys, string[] args)
Returns​

ServiceStack.Redis.RedisText

Parameters​
TypeName
System.StringluaBody
System.String[]keys
System.String[]args

ExecLuaSha(String, String[])​

View Source​
Declaration
RedisText ExecLuaSha(string sha1, params string[] args)
Returns​

ServiceStack.Redis.RedisText

Parameters​
TypeName
System.Stringsha1
System.String[]args

ExecLuaSha(String, String[], String[])​

View Source​
Declaration
RedisText ExecLuaSha(string sha1, string[] keys, string[] args)
Returns​

ServiceStack.Redis.RedisText

Parameters​
TypeName
System.Stringsha1
System.String[]keys
System.String[]args

ExecLuaAsString(String, String[])​

View Source​
Declaration
string ExecLuaAsString(string luaBody, params string[] args)
Returns​

System.String

Parameters​
TypeName
System.StringluaBody
System.String[]args

ExecLuaAsString(String, String[], String[])​

View Source​
Declaration
string ExecLuaAsString(string luaBody, string[] keys, string[] args)
Returns​

System.String

Parameters​
TypeName
System.StringluaBody
System.String[]keys
System.String[]args

ExecLuaShaAsString(String, String[])​

View Source​
Declaration
string ExecLuaShaAsString(string sha1, params string[] args)
Returns​

System.String

Parameters​
TypeName
System.Stringsha1
System.String[]args

ExecLuaShaAsString(String, String[], String[])​

View Source​
Declaration
string ExecLuaShaAsString(string sha1, string[] keys, string[] args)
Returns​

System.String

Parameters​
TypeName
System.Stringsha1
System.String[]keys
System.String[]args

ExecLuaAsInt(String, String[])​

View Source​
Declaration
long ExecLuaAsInt(string luaBody, params string[] args)
Returns​

System.Int64

Parameters​
TypeName
System.StringluaBody
System.String[]args

ExecLuaAsInt(String, String[], String[])​

View Source​
Declaration
long ExecLuaAsInt(string luaBody, string[] keys, string[] args)
Returns​

System.Int64

Parameters​
TypeName
System.StringluaBody
System.String[]keys
System.String[]args

ExecLuaShaAsInt(String, String[])​

View Source​
Declaration
long ExecLuaShaAsInt(string sha1, params string[] args)
Returns​

System.Int64

Parameters​
TypeName
System.Stringsha1
System.String[]args

ExecLuaShaAsInt(String, String[], String[])​

View Source​
Declaration
long ExecLuaShaAsInt(string sha1, string[] keys, string[] args)
Returns​

System.Int64

Parameters​
TypeName
System.Stringsha1
System.String[]keys
System.String[]args

ExecLuaAsList(String, String[])​

View Source​
Declaration
List<string> ExecLuaAsList(string luaBody, params string[] args)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringluaBody
System.String[]args

ExecLuaAsList(String, String[], String[])​

View Source​
Declaration
List<string> ExecLuaAsList(string luaBody, string[] keys, string[] args)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.StringluaBody
System.String[]keys
System.String[]args

ExecLuaShaAsList(String, String[])​

View Source​
Declaration
List<string> ExecLuaShaAsList(string sha1, params string[] args)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Stringsha1
System.String[]args

ExecLuaShaAsList(String, String[], String[])​

View Source​
Declaration
List<string> ExecLuaShaAsList(string sha1, string[] keys, string[] args)
Returns​

System.Collections.Generic.List<System.String>

Parameters​
TypeName
System.Stringsha1
System.String[]keys
System.String[]args

CalculateSha1(String)​

View Source​
Declaration
string CalculateSha1(string luaBody)
Returns​

System.String

Parameters​
TypeName
System.StringluaBody

HasLuaScript(String)​

View Source​
Declaration
bool HasLuaScript(string sha1Ref)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringsha1Ref

WhichLuaScriptsExists(String[])​

View Source​
Declaration
Dictionary<string, bool> WhichLuaScriptsExists(params string[] sha1Refs)
Returns​

System.Collections.Generic.Dictionary<System.String,System.Boolean>

Parameters​
TypeName
System.String[]sha1Refs

RemoveAllLuaScripts()​

View Source​
Declaration
void RemoveAllLuaScripts()

KillRunningLuaScript()​

View Source​
Declaration
void KillRunningLuaScript()

LoadLuaScript(String)​

View Source​
Declaration
string LoadLuaScript(string body)
Returns​

System.String

Parameters​
TypeName
System.Stringbody