Skip to main content

IRedisTypedClient<T>

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisTypedClient<T> : IEntityStore<T>

Properties

Lists

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

Sets

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

SortedSets

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

RedisClient

View Source
Declaration
IRedisClient RedisClient { get; }

Db

View Source
Declaration
long Db { get; set; }

TypeIdsSet

View Source
Declaration
IRedisSet TypeIdsSet { get; }

Item[String]

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

SequenceKey

View Source
Declaration
string SequenceKey { get; set; }

Methods

GetHash<TKey>(String)

View Source
Declaration
IRedisHash<TKey, T> GetHash<TKey>(string hashId)
Returns

ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>

Parameters
TypeName
System.StringhashId
Type Parameters
  • TKey

CreateTransaction()

View Source
Declaration
IRedisTypedTransaction<T> CreateTransaction()
Returns

ServiceStack.Redis.Generic.IRedisTypedTransaction<T>

CreatePipeline()

View Source
Declaration
IRedisTypedPipeline<T> CreatePipeline()
Returns

ServiceStack.Redis.Generic.IRedisTypedPipeline<T>

AcquireLock()

View Source
Declaration
IDisposable AcquireLock()
Returns

System.IDisposable

AcquireLock(TimeSpan)

View Source
Declaration
IDisposable AcquireLock(TimeSpan timeOut)
Returns

System.IDisposable

Parameters
TypeName
System.TimeSpantimeOut

GetAllKeys()

View Source
Declaration
List<string> GetAllKeys()
Returns

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

UrnKey(T)

View Source
Declaration
string UrnKey(T value)
Returns

System.String

Parameters
TypeName
<T>value

SetSequence(Int32)

View Source
Declaration
void SetSequence(int value)
Parameters
TypeName
System.Int32value

GetNextSequence()

View Source
Declaration
long GetNextSequence()
Returns

System.Int64

GetNextSequence(Int32)

View Source
Declaration
long GetNextSequence(int incrBy)
Returns

System.Int64

Parameters
TypeName
System.Int32incrBy

GetEntryType(String)

View Source
Declaration
RedisKeyType GetEntryType(string key)
Returns

ServiceStack.Redis.RedisKeyType

Parameters
TypeName
System.Stringkey

GetRandomKey()

View Source
Declaration
string GetRandomKey()
Returns

System.String

SetValue(String, T)

View Source
Declaration
void SetValue(string key, T entity)
Parameters
TypeName
System.Stringkey
<T>entity

SetValue(String, T, TimeSpan)

View Source
Declaration
void SetValue(string key, T entity, TimeSpan expireIn)
Parameters
TypeName
System.Stringkey
<T>entity
System.TimeSpanexpireIn

SetValueIfNotExists(String, T)

View Source
Declaration
bool SetValueIfNotExists(string key, T entity)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
<T>entity

SetValueIfExists(String, T)

View Source
Declaration
bool SetValueIfExists(string key, T entity)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
<T>entity

Store(T, TimeSpan)

View Source
Declaration
T Store(T entity, TimeSpan expireIn)
Returns

<T>

Parameters
TypeName
<T>entity
System.TimeSpanexpireIn

GetValue(String)

View Source
Declaration
T GetValue(string key)
Returns

<T>

Parameters
TypeName
System.Stringkey

GetAndSetValue(String, T)

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

<T>

Parameters
TypeName
System.Stringkey
<T>value

ContainsKey(String)

View Source
Declaration
bool ContainsKey(string key)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey

RemoveEntry(String)

View Source
Declaration
bool RemoveEntry(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

RemoveEntry(IHasStringId[])

View Source
Declaration
bool RemoveEntry(params IHasStringId[] entities)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Model.IHasStringId[]entities

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

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

ExpireIn(Object, TimeSpan)

View Source
Declaration
bool ExpireIn(object id, TimeSpan expiresAt)
Returns

System.Boolean

Parameters
TypeName
System.Objectid
System.TimeSpanexpiresAt

ExpireAt(Object, DateTime)

View Source
Declaration
bool ExpireAt(object id, DateTime dateTime)
Returns

System.Boolean

Parameters
TypeName
System.Objectid
System.DateTimedateTime

ExpireEntryIn(String, TimeSpan)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.TimeSpanexpiresAt

ExpireEntryAt(String, DateTime)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.DateTimedateTime

GetTimeToLive(String)

View Source
Declaration
TimeSpan GetTimeToLive(string key)
Returns

System.TimeSpan

Parameters
TypeName
System.Stringkey

Save()

View Source
Declaration
void Save()

SaveAsync()

View Source
Declaration
void SaveAsync()

FlushDb()

View Source
Declaration
void FlushDb()

FlushAll()

View Source
Declaration
void FlushAll()

SearchKeys(String)

View Source
Declaration
T[] SearchKeys(string pattern)
Returns

<T>[]

Parameters
TypeName
System.Stringpattern

GetValues(List<String>)

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

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

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

GetSortedEntryValues(IRedisSet<T>, Int32, Int32)

View Source
Declaration
List<T> GetSortedEntryValues(IRedisSet<T> fromSet, int startingFrom, int endingAt)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>fromSet
System.Int32startingFrom
System.Int32endingAt

StoreAsHash(T)

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

GetFromHash(Object)

View Source
Declaration
T GetFromHash(object id)
Returns

<T>

Parameters
TypeName
System.Objectid

GetAllItemsFromSet(IRedisSet<T>)

View Source
Declaration
HashSet<T> GetAllItemsFromSet(IRedisSet<T> fromSet)
Returns

System.Collections.Generic.HashSet<<T>>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>fromSet

AddItemToSet(IRedisSet<T>, T)

View Source
Declaration
void AddItemToSet(IRedisSet<T> toSet, T item)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>toSet
<T>item

RemoveItemFromSet(IRedisSet<T>, T)

View Source
Declaration
void RemoveItemFromSet(IRedisSet<T> fromSet, T item)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>fromSet
<T>item

PopItemFromSet(IRedisSet<T>)

View Source
Declaration
T PopItemFromSet(IRedisSet<T> fromSet)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>fromSet

MoveBetweenSets(IRedisSet<T>, IRedisSet<T>, T)

View Source
Declaration
void MoveBetweenSets(IRedisSet<T> fromSet, IRedisSet<T> toSet, T item)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>fromSet
ServiceStack.Redis.Generic.IRedisSet<T>toSet
<T>item

GetSetCount(IRedisSet<T>)

View Source
Declaration
long GetSetCount(IRedisSet<T> set)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>set

SetContainsItem(IRedisSet<T>, T)

View Source
Declaration
bool SetContainsItem(IRedisSet<T> set, T item)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>set
<T>item

GetIntersectFromSets(IRedisSet<T>[])

View Source
Declaration
HashSet<T> GetIntersectFromSets(params IRedisSet<T>[] sets)
Returns

System.Collections.Generic.HashSet<<T>>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<<T>>[]sets

StoreIntersectFromSets(IRedisSet<T>, IRedisSet<T>[])

View Source
Declaration
void StoreIntersectFromSets(IRedisSet<T> intoSet, params IRedisSet<T>[] sets)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>intoSet
ServiceStack.Redis.Generic.IRedisSet<<T>>[]sets

GetUnionFromSets(IRedisSet<T>[])

View Source
Declaration
HashSet<T> GetUnionFromSets(params IRedisSet<T>[] sets)
Returns

System.Collections.Generic.HashSet<<T>>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<<T>>[]sets

StoreUnionFromSets(IRedisSet<T>, IRedisSet<T>[])

View Source
Declaration
void StoreUnionFromSets(IRedisSet<T> intoSet, params IRedisSet<T>[] sets)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>intoSet
ServiceStack.Redis.Generic.IRedisSet<<T>>[]sets

GetDifferencesFromSet(IRedisSet<T>, IRedisSet<T>[])

View Source
Declaration
HashSet<T> GetDifferencesFromSet(IRedisSet<T> fromSet, params IRedisSet<T>[] withSets)
Returns

System.Collections.Generic.HashSet<<T>>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>fromSet
ServiceStack.Redis.Generic.IRedisSet<<T>>[]withSets

StoreDifferencesFromSet(IRedisSet<T>, IRedisSet<T>, IRedisSet<T>[])

View Source
Declaration
void StoreDifferencesFromSet(IRedisSet<T> intoSet, IRedisSet<T> fromSet, params IRedisSet<T>[] withSets)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>intoSet
ServiceStack.Redis.Generic.IRedisSet<T>fromSet
ServiceStack.Redis.Generic.IRedisSet<<T>>[]withSets

GetRandomItemFromSet(IRedisSet<T>)

View Source
Declaration
T GetRandomItemFromSet(IRedisSet<T> fromSet)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSet<T>fromSet

GetAllItemsFromList(IRedisList<T>)

View Source
Declaration
List<T> GetAllItemsFromList(IRedisList<T> fromList)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList

GetRangeFromList(IRedisList<T>, Int32, Int32)

View Source
Declaration
List<T> GetRangeFromList(IRedisList<T> fromList, int startingFrom, int endingAt)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
System.Int32startingFrom
System.Int32endingAt

SortList(IRedisList<T>, Int32, Int32)

View Source
Declaration
List<T> SortList(IRedisList<T> fromList, int startingFrom, int endingAt)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
System.Int32startingFrom
System.Int32endingAt

AddItemToList(IRedisList<T>, T)

View Source
Declaration
void AddItemToList(IRedisList<T> fromList, T value)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
<T>value

PrependItemToList(IRedisList<T>, T)

View Source
Declaration
void PrependItemToList(IRedisList<T> fromList, T value)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
<T>value

RemoveStartFromList(IRedisList<T>)

View Source
Declaration
T RemoveStartFromList(IRedisList<T> fromList)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList

BlockingRemoveStartFromList(IRedisList<T>, Nullable<TimeSpan>)

View Source
Declaration
T BlockingRemoveStartFromList(IRedisList<T> fromList, TimeSpan? timeOut)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
System.Nullable<System.TimeSpan>timeOut

RemoveEndFromList(IRedisList<T>)

View Source
Declaration
T RemoveEndFromList(IRedisList<T> fromList)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList

RemoveAllFromList(IRedisList<T>)

View Source
Declaration
void RemoveAllFromList(IRedisList<T> fromList)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList

TrimList(IRedisList<T>, Int32, Int32)

View Source
Declaration
void TrimList(IRedisList<T> fromList, int keepStartingFrom, int keepEndingAt)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
System.Int32keepStartingFrom
System.Int32keepEndingAt

RemoveItemFromList(IRedisList<T>, T)

View Source
Declaration
long RemoveItemFromList(IRedisList<T> fromList, T value)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
<T>value

RemoveItemFromList(IRedisList<T>, T, Int32)

View Source
Declaration
long RemoveItemFromList(IRedisList<T> fromList, T value, int noOfMatches)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
<T>value
System.Int32noOfMatches

GetListCount(IRedisList<T>)

View Source
Declaration
long GetListCount(IRedisList<T> fromList)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList

GetItemFromList(IRedisList<T>, Int32)

View Source
Declaration
T GetItemFromList(IRedisList<T> fromList, int listIndex)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
System.Int32listIndex

SetItemInList(IRedisList<T>, Int32, T)

View Source
Declaration
void SetItemInList(IRedisList<T> toList, int listIndex, T value)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>toList
System.Int32listIndex
<T>value

InsertBeforeItemInList(IRedisList<T>, T, T)

View Source
Declaration
void InsertBeforeItemInList(IRedisList<T> toList, T pivot, T value)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>toList
<T>pivot
<T>value

InsertAfterItemInList(IRedisList<T>, T, T)

View Source
Declaration
void InsertAfterItemInList(IRedisList<T> toList, T pivot, T value)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>toList
<T>pivot
<T>value

EnqueueItemOnList(IRedisList<T>, T)

View Source
Declaration
void EnqueueItemOnList(IRedisList<T> fromList, T item)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
<T>item

DequeueItemFromList(IRedisList<T>)

View Source
Declaration
T DequeueItemFromList(IRedisList<T> fromList)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList

BlockingDequeueItemFromList(IRedisList<T>, Nullable<TimeSpan>)

View Source
Declaration
T BlockingDequeueItemFromList(IRedisList<T> fromList, TimeSpan? timeOut)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
System.Nullable<System.TimeSpan>timeOut

PushItemToList(IRedisList<T>, T)

View Source
Declaration
void PushItemToList(IRedisList<T> fromList, T item)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
<T>item

PopItemFromList(IRedisList<T>)

View Source
Declaration
T PopItemFromList(IRedisList<T> fromList)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList

BlockingPopItemFromList(IRedisList<T>, Nullable<TimeSpan>)

View Source
Declaration
T BlockingPopItemFromList(IRedisList<T> fromList, TimeSpan? timeOut)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
System.Nullable<System.TimeSpan>timeOut

PopAndPushItemBetweenLists(IRedisList<T>, IRedisList<T>)

View Source
Declaration
T PopAndPushItemBetweenLists(IRedisList<T> fromList, IRedisList<T> toList)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
ServiceStack.Redis.Generic.IRedisList<T>toList

BlockingPopAndPushItemBetweenLists(IRedisList<T>, IRedisList<T>, Nullable<TimeSpan>)

View Source
Declaration
T BlockingPopAndPushItemBetweenLists(IRedisList<T> fromList, IRedisList<T> toList, TimeSpan? timeOut)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisList<T>fromList
ServiceStack.Redis.Generic.IRedisList<T>toList
System.Nullable<System.TimeSpan>timeOut

AddItemToSortedSet(IRedisSortedSet<T>, T)

View Source
Declaration
void AddItemToSortedSet(IRedisSortedSet<T> toSet, T value)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>toSet
<T>value

AddItemToSortedSet(IRedisSortedSet<T>, T, Double)

View Source
Declaration
void AddItemToSortedSet(IRedisSortedSet<T> toSet, T value, double score)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>toSet
<T>value
System.Doublescore

RemoveItemFromSortedSet(IRedisSortedSet<T>, T)

View Source
Declaration
bool RemoveItemFromSortedSet(IRedisSortedSet<T> fromSet, T value)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>fromSet
<T>value

PopItemWithLowestScoreFromSortedSet(IRedisSortedSet<T>)

View Source
Declaration
T PopItemWithLowestScoreFromSortedSet(IRedisSortedSet<T> fromSet)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>fromSet

PopItemWithHighestScoreFromSortedSet(IRedisSortedSet<T>)

View Source
Declaration
T PopItemWithHighestScoreFromSortedSet(IRedisSortedSet<T> fromSet)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>fromSet

SortedSetContainsItem(IRedisSortedSet<T>, T)

View Source
Declaration
bool SortedSetContainsItem(IRedisSortedSet<T> set, T value)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
<T>value

IncrementItemInSortedSet(IRedisSortedSet<T>, T, Double)

View Source
Declaration
double IncrementItemInSortedSet(IRedisSortedSet<T> set, T value, double incrementBy)
Returns

System.Double

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
<T>value
System.DoubleincrementBy

GetItemIndexInSortedSet(IRedisSortedSet<T>, T)

View Source
Declaration
long GetItemIndexInSortedSet(IRedisSortedSet<T> set, T value)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
<T>value

GetItemIndexInSortedSetDesc(IRedisSortedSet<T>, T)

View Source
Declaration
long GetItemIndexInSortedSetDesc(IRedisSortedSet<T> set, T value)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
<T>value

GetAllItemsFromSortedSet(IRedisSortedSet<T>)

View Source
Declaration
List<T> GetAllItemsFromSortedSet(IRedisSortedSet<T> set)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set

GetAllItemsFromSortedSetDesc(IRedisSortedSet<T>)

View Source
Declaration
List<T> GetAllItemsFromSortedSetDesc(IRedisSortedSet<T> set)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set

GetRangeFromSortedSet(IRedisSortedSet<T>, Int32, Int32)

View Source
Declaration
List<T> GetRangeFromSortedSet(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.Int32fromRank
System.Int32toRank

GetRangeFromSortedSetDesc(IRedisSortedSet<T>, Int32, Int32)

View Source
Declaration
List<T> GetRangeFromSortedSetDesc(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.Int32fromRank
System.Int32toRank

GetAllWithScoresFromSortedSet(IRedisSortedSet<T>)

View Source
Declaration
IDictionary<T, double> GetAllWithScoresFromSortedSet(IRedisSortedSet<T> set)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set

GetRangeWithScoresFromSortedSet(IRedisSortedSet<T>, Int32, Int32)

View Source
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSet(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.Int32fromRank
System.Int32toRank

GetRangeWithScoresFromSortedSetDesc(IRedisSortedSet<T>, Int32, Int32)

View Source
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetDesc(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.Int32fromRank
System.Int32toRank

GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String)

View Source
Declaration
List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.StringfromStringScore
System.StringtoStringScore

GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.StringfromStringScore
System.StringtoStringScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double)

View Source
Declaration
List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.DoublefromScore
System.DoubletoScore

GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.DoublefromScore
System.DoubletoScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String)

View Source
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.StringfromStringScore
System.StringtoStringScore

GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.StringfromStringScore
System.StringtoStringScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double)

View Source
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.DoublefromScore
System.DoubletoScore

GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.DoublefromScore
System.DoubletoScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String)

View Source
Declaration
List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.StringfromStringScore
System.StringtoStringScore

GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.StringfromStringScore
System.StringtoStringScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double)

View Source
Declaration
List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.DoublefromScore
System.DoubletoScore

GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.DoublefromScore
System.DoubletoScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String)

View Source
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.StringfromStringScore
System.StringtoStringScore

GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.StringfromStringScore
System.StringtoStringScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double)

View Source
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.DoublefromScore
System.DoubletoScore

GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.DoublefromScore
System.DoubletoScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

RemoveRangeFromSortedSet(IRedisSortedSet<T>, Int32, Int32)

View Source
Declaration
long RemoveRangeFromSortedSet(IRedisSortedSet<T> set, int minRank, int maxRank)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.Int32minRank
System.Int32maxRank

RemoveRangeFromSortedSetByScore(IRedisSortedSet<T>, Double, Double)

View Source
Declaration
long RemoveRangeFromSortedSetByScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
System.DoublefromScore
System.DoubletoScore

GetSortedSetCount(IRedisSortedSet<T>)

View Source
Declaration
long GetSortedSetCount(IRedisSortedSet<T> set)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set

GetItemScoreInSortedSet(IRedisSortedSet<T>, T)

View Source
Declaration
double GetItemScoreInSortedSet(IRedisSortedSet<T> set, T value)
Returns

System.Double

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>set
<T>value

StoreIntersectFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[])

View Source
Declaration
long StoreIntersectFromSortedSets(IRedisSortedSet<T> intoSetId, params IRedisSortedSet<T>[] setIds)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>intoSetId
ServiceStack.Redis.Generic.IRedisSortedSet<<T>>[]setIds

StoreIntersectFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[], String[])

View Source
Declaration
long StoreIntersectFromSortedSets(IRedisSortedSet<T> intoSetId, IRedisSortedSet<T>[] setIds, string[] args)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>intoSetId
ServiceStack.Redis.Generic.IRedisSortedSet<<T>>[]setIds
System.String[]args

StoreUnionFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[])

View Source
Declaration
long StoreUnionFromSortedSets(IRedisSortedSet<T> intoSetId, params IRedisSortedSet<T>[] setIds)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>intoSetId
ServiceStack.Redis.Generic.IRedisSortedSet<<T>>[]setIds

StoreUnionFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[], String[])

View Source
Declaration
long StoreUnionFromSortedSets(IRedisSortedSet<T> intoSetId, IRedisSortedSet<T>[] setIds, string[] args)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisSortedSet<T>intoSetId
ServiceStack.Redis.Generic.IRedisSortedSet<<T>>[]setIds
System.String[]args

HashContainsEntry<TKey>(IRedisHash<TKey, T>, TKey)

View Source
Declaration
bool HashContainsEntry<TKey>(IRedisHash<TKey, T> hash, TKey key)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>hash
<TKey>key
Type Parameters
  • TKey

SetEntryInHash<TKey>(IRedisHash<TKey, T>, TKey, T)

View Source
Declaration
bool SetEntryInHash<TKey>(IRedisHash<TKey, T> hash, TKey key, T value)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>hash
<TKey>key
<T>value
Type Parameters
  • TKey

SetEntryInHashIfNotExists<TKey>(IRedisHash<TKey, T>, TKey, T)

View Source
Declaration
bool SetEntryInHashIfNotExists<TKey>(IRedisHash<TKey, T> hash, TKey key, T value)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>hash
<TKey>key
<T>value
Type Parameters
  • TKey

SetRangeInHash<TKey>(IRedisHash<TKey, T>, IEnumerable<KeyValuePair<TKey, T>>)

View Source
Declaration
void SetRangeInHash<TKey>(IRedisHash<TKey, T> hash, IEnumerable<KeyValuePair<TKey, T>> keyValuePairs)
Parameters
TypeName
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>hash
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<<TKey>,<T>>>keyValuePairs
Type Parameters
  • TKey

GetValueFromHash<TKey>(IRedisHash<TKey, T>, TKey)

View Source
Declaration
T GetValueFromHash<TKey>(IRedisHash<TKey, T> hash, TKey key)
Returns

<T>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>hash
<TKey>key
Type Parameters
  • TKey

RemoveEntryFromHash<TKey>(IRedisHash<TKey, T>, TKey)

View Source
Declaration
bool RemoveEntryFromHash<TKey>(IRedisHash<TKey, T> hash, TKey key)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>hash
<TKey>key
Type Parameters
  • TKey

GetHashCount<TKey>(IRedisHash<TKey, T>)

View Source
Declaration
long GetHashCount<TKey>(IRedisHash<TKey, T> hash)
Returns

System.Int64

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>hash
Type Parameters
  • TKey

GetHashKeys<TKey>(IRedisHash<TKey, T>)

View Source
Declaration
List<TKey> GetHashKeys<TKey>(IRedisHash<TKey, T> hash)
Returns

System.Collections.Generic.List<<TKey>>

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>hash
Type Parameters
  • TKey

GetHashValues<TKey>(IRedisHash<TKey, T>)

View Source
Declaration
List<T> GetHashValues<TKey>(IRedisHash<TKey, T> hash)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>hash
Type Parameters
  • TKey

GetAllEntriesFromHash<TKey>(IRedisHash<TKey, T>)

View Source
Declaration
Dictionary<TKey, T> GetAllEntriesFromHash<TKey>(IRedisHash<TKey, T> hash)
Returns

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

Parameters
TypeName
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>hash
Type Parameters
  • TKey

StoreRelatedEntities<TChild>(Object, List<TChild>)

View Source
Declaration
void StoreRelatedEntities<TChild>(object parentId, List<TChild> children)
Parameters
TypeName
System.ObjectparentId
System.Collections.Generic.List<<TChild>>children
Type Parameters
  • TChild

StoreRelatedEntities<TChild>(Object, TChild[])

View Source
Declaration
void StoreRelatedEntities<TChild>(object parentId, params TChild[] children)
Parameters
TypeName
System.ObjectparentId
<TChild>[]children
Type Parameters
  • TChild

DeleteRelatedEntities<TChild>(Object)

View Source
Declaration
void DeleteRelatedEntities<TChild>(object parentId)
Parameters
TypeName
System.ObjectparentId
Type Parameters
  • TChild

DeleteRelatedEntity<TChild>(Object, Object)

View Source
Declaration
void DeleteRelatedEntity<TChild>(object parentId, object childId)
Parameters
TypeName
System.ObjectparentId
System.ObjectchildId
Type Parameters
  • TChild

GetRelatedEntities<TChild>(Object)

View Source
Declaration
List<TChild> GetRelatedEntities<TChild>(object parentId)
Returns

System.Collections.Generic.List<<TChild>>

Parameters
TypeName
System.ObjectparentId
Type Parameters
  • TChild

GetRelatedEntitiesCount<TChild>(Object)

View Source
Declaration
long GetRelatedEntitiesCount<TChild>(object parentId)
Returns

System.Int64

Parameters
TypeName
System.ObjectparentId
Type Parameters
  • TChild

AddToRecentsList(T)

View Source
Declaration
void AddToRecentsList(T value)
Parameters
TypeName
<T>value

GetLatestFromRecentsList(Int32, Int32)

View Source
Declaration
List<T> GetLatestFromRecentsList(int skip, int take)
Returns

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

Parameters
TypeName
System.Int32skip
System.Int32take

GetEarliestFromRecentsList(Int32, Int32)

View Source
Declaration
List<T> GetEarliestFromRecentsList(int skip, int take)
Returns

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

Parameters
TypeName
System.Int32skip
System.Int32take