RedisTypedClient<T>
Allows you to get Redis value operations to operate against POCO types.
Assembly: ServiceStack.Redis.dll
Declaration
public class RedisTypedClient<T> : IRedisTypedClientAsync<T>, IEntityStoreAsync<T>, IRedisTypedClient<T>, IEntityStore<T>
Properties
IRedisTypedClientAsync<T>.TypeIdsSet
Declaration
IRedisSetAsync IRedisTypedClientAsync<T>.TypeIdsSet { get; }
IRedisTypedClientAsync<T>.RedisClient
Declaration
IRedisClientAsync IRedisTypedClientAsync<T>.RedisClient { get; }
IRedisTypedClientAsync<T>.Db
Declaration
long IRedisTypedClientAsync<T>.Db { get; }
IRedisTypedClientAsync<T>.Lists
Declaration
IHasNamed<IRedisListAsync<T>> IRedisTypedClientAsync<T>.Lists { get; }
IRedisTypedClientAsync<T>.Sets
Declaration
IHasNamed<IRedisSetAsync<T>> IRedisTypedClientAsync<T>.Sets { get; }
IRedisTypedClientAsync<T>.SortedSets
Declaration
IHasNamed<IRedisSortedSetAsync<T>> IRedisTypedClientAsync<T>.SortedSets { get; }
RedisClient
Declaration
public IRedisClient RedisClient { get; }
NativeClient
Declaration
public IRedisNativeClient NativeClient { get; }
TypeIdsSetKey
Declaration
public string TypeIdsSetKey { get; set; }
TypeLockKey
Declaration
public string TypeLockKey { get; set; }
Transaction
Declaration
public IRedisTransactionBase Transaction { get; set; }
Pipeline
Declaration
public IRedisPipelineShared Pipeline { get; set; }
TypeIdsSet
Declaration
public IRedisSet TypeIdsSet { get; }
Item[String]
Declaration
public T this[string key] { get; set; }
SequenceKey
Declaration
public string SequenceKey { get; set; }
Lists
Declaration
public IHasNamed<IRedisList<T>> Lists { get; set; }
Sets
Declaration
public IHasNamed<IRedisSet<T>> Sets { get; set; }
Declaration
public long Db { get; set; }
SortedSets
Declaration
public IHasNamed<IRedisSortedSet<T>> SortedSets { get; set; }
Methods
AsAsync()
Declaration
public IRedisTypedClientAsync<T> AsAsync()
Returns
ServiceStack.Redis.Generic.IRedisTypedClientAsync<T>
IEntityStoreAsync<T>.GetByIdAsync(Object, CancellationToken)
Declaration
Task<T> IEntityStoreAsync<T>.GetByIdAsync(object id, CancellationToken token)
Returns
System.Threading.Tasks.Task<<T>>
Parameters
Type | Name |
---|
System.Object | id |
System.Threading.CancellationToken | token |
IEntityStoreAsync<T>.GetByIdsAsync(IEnumerable, CancellationToken)
Declaration
async Task<IList<T>> IEntityStoreAsync<T>.GetByIdsAsync(IEnumerable ids, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IList<<T>>>
Parameters
Type | Name |
---|
System.Collections.IEnumerable | ids |
System.Threading.CancellationToken | token |
IEntityStoreAsync<T>.GetAllAsync(CancellationToken)
Declaration
async Task<IList<T>> IEntityStoreAsync<T>.GetAllAsync(CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IList<<T>>>
Parameters
Type | Name |
---|
System.Threading.CancellationToken | token |
IEntityStoreAsync<T>.StoreAsync(T, CancellationToken)
Declaration
async Task<T> IEntityStoreAsync<T>.StoreAsync(T entity, CancellationToken token)
Returns
System.Threading.Tasks.Task<<T>>
Parameters
Type | Name |
---|
<T> | entity |
System.Threading.CancellationToken | token |
IEntityStoreAsync<T>.StoreAllAsync(IEnumerable<T>, CancellationToken)
Declaration
async Task IEntityStoreAsync<T>.StoreAllAsync(IEnumerable<T> entities, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<<T>> | entities |
System.Threading.CancellationToken | token |
IEntityStoreAsync<T>.DeleteAsync(T, CancellationToken)
Declaration
async Task IEntityStoreAsync<T>.DeleteAsync(T entity, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
<T> | entity |
System.Threading.CancellationToken | token |
IEntityStoreAsync<T>.DeleteByIdAsync(Object, CancellationToken)
Declaration
async Task IEntityStoreAsync<T>.DeleteByIdAsync(object id, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Object | id |
System.Threading.CancellationToken | token |
IEntityStoreAsync<T>.DeleteByIdsAsync(IEnumerable, CancellationToken)
Declaration
async Task IEntityStoreAsync<T>.DeleteByIdsAsync(IEnumerable ids, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Collections.IEnumerable | ids |
System.Threading.CancellationToken | token |
IEntityStoreAsync<T>.DeleteAllAsync(CancellationToken)
Declaration
async Task IEntityStoreAsync<T>.DeleteAllAsync(CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Threading.CancellationToken | token |
IRedisTypedClientAsync<T>.CreatePipeline()
Declaration
IRedisTypedPipelineAsync<T> IRedisTypedClientAsync<T>.CreatePipeline()
Returns
ServiceStack.Redis.Generic.IRedisTypedPipelineAsync<T>
IRedisTypedClientAsync<T>.GetHash<TKey>(String)
Declaration
IRedisHashAsync<TKey, T> IRedisTypedClientAsync<T>.GetHash<TKey>(string hashId)
Returns
ServiceStack.Redis.Generic.IRedisHashAsync<<TKey>,<T>>
Parameters
Type | Name |
---|
System.String | hashId |
Type Parameters
CreateTransaction()
Declaration
public IRedisTypedTransaction<T> CreateTransaction()
Returns
ServiceStack.Redis.Generic.IRedisTypedTransaction<T>
CreatePipeline()
Declaration
public IRedisTypedPipeline<T> CreatePipeline()
Returns
ServiceStack.Redis.Generic.IRedisTypedPipeline<T>
AcquireLock()
Declaration
public IDisposable AcquireLock()
Returns
System.IDisposable
AcquireLock(TimeSpan)
Declaration
public IDisposable AcquireLock(TimeSpan timeOut)
Returns
System.IDisposable
Parameters
Type | Name |
---|
System.TimeSpan | timeOut |
Watch(String[])
Declaration
public void Watch(params string[] keys)
Parameters
Type | Name |
---|
System.String[] | keys |
UnWatch()
Multi()
Discard()
Exec()
GetAllKeys()
Declaration
public List<string> GetAllKeys()
Returns
System.Collections.Generic.List<System.String>
UrnKey(T)
Declaration
public string UrnKey(T entity)
Returns
System.String
Parameters
SerializeValue(T)
Declaration
public byte[] SerializeValue(T value)
Returns
System.Byte[]
Parameters
DeserializeValue(Byte[])
Declaration
public T DeserializeValue(byte[] value)
Returns
<T>
Parameters
Type | Name |
---|
System.Byte[] | value |
SetValue(String, T)
Declaration
public void SetValue(string key, T entity)
Parameters
Type | Name |
---|
System.String | key |
<T> | entity |
SetValue(String, T, TimeSpan)
Declaration
public void SetValue(string key, T entity, TimeSpan expireIn)
Parameters
Type | Name |
---|
System.String | key |
<T> | entity |
System.TimeSpan | expireIn |
SetValueIfNotExists(String, T)
Declaration
public bool SetValueIfNotExists(string key, T entity)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | entity |
SetValueIfExists(String, T)
Declaration
public bool SetValueIfExists(string key, T entity)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | entity |
GetValue(String)
Declaration
public T GetValue(string key)
Returns
<T>
Parameters
GetAndSetValue(String, T)
Declaration
public T GetAndSetValue(string key, T value)
Returns
<T>
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
ContainsKey(String)
Declaration
public bool ContainsKey(string key)
Returns
System.Boolean
Parameters
RemoveEntry(String)
Declaration
public bool RemoveEntry(string key)
Returns
System.Boolean
Parameters
RemoveEntry(String[])
Declaration
public bool RemoveEntry(params string[] keys)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String[] | keys |
RemoveEntry(IHasStringId[])
Declaration
public bool RemoveEntry(params IHasStringId[] entities)
Returns
System.Boolean
Parameters
Type | Name |
---|
ServiceStack.Model.IHasStringId[] | entities |
IncrementValue(String)
Declaration
public long IncrementValue(string key)
Returns
System.Int64
Parameters
IncrementValueBy(String, Int32)
Declaration
public long IncrementValueBy(string key, int count)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | count |
DecrementValue(String)
Declaration
public long DecrementValue(string key)
Returns
System.Int64
Parameters
DecrementValueBy(String, Int32)
Declaration
public long DecrementValueBy(string key, int count)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | count |
SetSequence(Int32)
Declaration
public void SetSequence(int value)
Parameters
Type | Name |
---|
System.Int32 | value |
GetNextSequence()
Declaration
public long GetNextSequence()
Returns
System.Int64
GetNextSequence(Int32)
Declaration
public long GetNextSequence(int incrBy)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int32 | incrBy |
GetEntryType(String)
Declaration
public RedisKeyType GetEntryType(string key)
Returns
ServiceStack.Redis.RedisKeyType
Parameters
GetRandomKey()
Declaration
public string GetRandomKey()
Returns
System.String
ExpireEntryIn(String, TimeSpan)
Declaration
public bool ExpireEntryIn(string key, TimeSpan expireIn)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.TimeSpan | expireIn |
ExpireEntryAt(String, DateTime)
Declaration
public bool ExpireEntryAt(string key, DateTime expireAt)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.DateTime | expireAt |
ExpireIn(Object, TimeSpan)
Declaration
public bool ExpireIn(object id, TimeSpan expireIn)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | id |
System.TimeSpan | expireIn |
ExpireAt(Object, DateTime)
Declaration
public bool ExpireAt(object id, DateTime expireAt)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | id |
System.DateTime | expireAt |
GetTimeToLive(String)
Declaration
public TimeSpan GetTimeToLive(string key)
Returns
System.TimeSpan
Parameters
Save()
SaveAsync()
FlushDb()
FlushAll()
SearchKeys(String)
Declaration
public T[] SearchKeys(string pattern)
Returns
<T>[]
Parameters
Type | Name |
---|
System.String | pattern |
GetValues(List<String>)
Declaration
public List<T> GetValues(List<string> keys)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|
System.Collections.Generic.List<System.String> | keys |
StoreAsHash(T)
Declaration
public void StoreAsHash(T entity)
Parameters
GetFromHash(Object)
Declaration
public T GetFromHash(object id)
Returns
<T>
Parameters
GetById(Object)
Declaration
public T GetById(object id)
Returns
<T>
Parameters
GetByIds(IEnumerable)
Declaration
public IList<T> GetByIds(IEnumerable ids)
Returns
System.Collections.Generic.IList<<T>>
Parameters
Type | Name |
---|
System.Collections.IEnumerable | ids |
GetAll()
Returns
System.Collections.Generic.IList<<T>>
Store(T)
Returns
<T>
Parameters
Store(T, TimeSpan)
Declaration
public T Store(T entity, TimeSpan expireIn)
Returns
<T>
Parameters
Type | Name |
---|
<T> | entity |
System.TimeSpan | expireIn |
StoreAll(IEnumerable<T>)
Declaration
public void StoreAll(IEnumerable<T> entities)
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<<T>> | entities |
Delete(T)
Declaration
public void Delete(T entity)
Parameters
DeleteById(Object)
Declaration
public void DeleteById(object id)
Parameters
DeleteByIds(IEnumerable)
Declaration
public void DeleteByIds(IEnumerable ids)
Parameters
Type | Name |
---|
System.Collections.IEnumerable | ids |
DeleteAll()
FlushSendBuffer()
Declaration
public void FlushSendBuffer()
ResetSendBuffer()
Declaration
public void ResetSendBuffer()
Declaration
public void StoreRelatedEntities<TChild>(object parentId, List<TChild> children)
Parameters
Type | Name |
---|
System.Object | parentId |
System.Collections.Generic.List<<TChild>> | children |
Type Parameters
Declaration
public void StoreRelatedEntities<TChild>(object parentId, params TChild[] children)
Parameters
Type | Name |
---|
System.Object | parentId |
<TChild>[] | children |
Type Parameters
Declaration
public void DeleteRelatedEntity<TChild>(object parentId, object childId)
Parameters
Type | Name |
---|
System.Object | parentId |
System.Object | childId |
Type Parameters
Declaration
public void DeleteRelatedEntities<TChild>(object parentId)
Parameters
Type | Name |
---|
System.Object | parentId |
Type Parameters
Declaration
public List<TChild> GetRelatedEntities<TChild>(object parentId)
Returns
System.Collections.Generic.List<<TChild>>
Parameters
Type | Name |
---|
System.Object | parentId |
Type Parameters
Declaration
public long GetRelatedEntitiesCount<TChild>(object parentId)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Object | parentId |
Type Parameters
AddToRecentsList(T)
Declaration
public void AddToRecentsList(T value)
Parameters
GetLatestFromRecentsList(Int32, Int32)
Declaration
public List<T> GetLatestFromRecentsList(int skip, int take)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|
System.Int32 | skip |
System.Int32 | take |
GetEarliestFromRecentsList(Int32, Int32)
Declaration
public List<T> GetEarliestFromRecentsList(int skip, int take)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|
System.Int32 | skip |
System.Int32 | take |
GetHash<TKey>(String)
Declaration
public IRedisHash<TKey, T> GetHash<TKey>(string hashId)
Returns
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>
Parameters
Type | Name |
---|
System.String | hashId |
Type Parameters
HashContainsEntry<TKey>(IRedisHash<TKey, T>, TKey)
Declaration
public bool HashContainsEntry<TKey>(IRedisHash<TKey, T> hash, TKey key)
Returns
System.Boolean
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
<TKey> | key |
Type Parameters
SetEntryInHash<TKey>(IRedisHash<TKey, T>, TKey, T)
Declaration
public bool SetEntryInHash<TKey>(IRedisHash<TKey, T> hash, TKey key, T value)
Returns
System.Boolean
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
<TKey> | key |
<T> | value |
Type Parameters
SetEntryInHashIfNotExists<TKey>(IRedisHash<TKey, T>, TKey, T)
Declaration
public bool SetEntryInHashIfNotExists<TKey>(IRedisHash<TKey, T> hash, TKey key, T value)
Returns
System.Boolean
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
<TKey> | key |
<T> | value |
Type Parameters
SetRangeInHash<TKey>(IRedisHash<TKey, T>, IEnumerable<KeyValuePair<TKey, T>>)
Declaration
public void SetRangeInHash<TKey>(IRedisHash<TKey, T> hash, IEnumerable<KeyValuePair<TKey, T>> keyValuePairs)
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<<TKey>,<T>>> | keyValuePairs |
Type Parameters
GetValueFromHash<TKey>(IRedisHash<TKey, T>, TKey)
Declaration
public T GetValueFromHash<TKey>(IRedisHash<TKey, T> hash, TKey key)
Returns
<T>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
<TKey> | key |
Type Parameters
RemoveEntryFromHash<TKey>(IRedisHash<TKey, T>, TKey)
Declaration
public bool RemoveEntryFromHash<TKey>(IRedisHash<TKey, T> hash, TKey key)
Returns
System.Boolean
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
<TKey> | key |
Type Parameters
GetHashCount<TKey>(IRedisHash<TKey, T>)
Declaration
public long GetHashCount<TKey>(IRedisHash<TKey, T> hash)
Returns
System.Int64
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
Type Parameters
GetHashKeys<TKey>(IRedisHash<TKey, T>)
Declaration
public List<TKey> GetHashKeys<TKey>(IRedisHash<TKey, T> hash)
Returns
System.Collections.Generic.List<<TKey>>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
Type Parameters
GetHashValues<TKey>(IRedisHash<TKey, T>)
Declaration
public List<T> GetHashValues<TKey>(IRedisHash<TKey, T> hash)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
Type Parameters
GetAllEntriesFromHash<TKey>(IRedisHash<TKey, T>)
Declaration
public Dictionary<TKey, T> GetAllEntriesFromHash<TKey>(IRedisHash<TKey, T> hash)
Returns
System.Collections.Generic.Dictionary<<TKey>,<T>>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
Type Parameters
ConvertEachTo<TKey, TValue>(IDictionary<String, String>)
Declaration
public static Dictionary<TKey, TValue> ConvertEachTo<TKey, TValue>(IDictionary<string, string> map)
Returns
System.Collections.Generic.Dictionary<<TKey>,<TValue>>
Parameters
Type | Name |
---|
System.Collections.Generic.IDictionary<System.String,System.String> | map |
Type Parameters
GetAllItemsFromList(IRedisList<T>)
Declaration
public List<T> GetAllItemsFromList(IRedisList<T> fromList)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromList(IRedisList<T>, Int32, Int32)
Declaration
public List<T> GetRangeFromList(IRedisList<T> fromList, int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<<T>>
Parameters
SortList(IRedisList<T>, Int32, Int32)
Declaration
public List<T> SortList(IRedisList<T> fromList, int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<<T>>
Parameters
AddItemToList(IRedisList<T>, T)
Declaration
public void AddItemToList(IRedisList<T> fromList, T value)
Parameters
AddRangeToList(IRedisList<T>, IEnumerable<T>)
Declaration
public void AddRangeToList(IRedisList<T> fromList, IEnumerable<T> values)
Parameters
PrependItemToList(IRedisList<T>, T)
Declaration
public void PrependItemToList(IRedisList<T> fromList, T value)
Parameters
RemoveStartFromList(IRedisList<T>)
Declaration
public T RemoveStartFromList(IRedisList<T> fromList)
Returns
<T>
Parameters
BlockingRemoveStartFromList(IRedisList<T>, Nullable<TimeSpan>)
Declaration
public T BlockingRemoveStartFromList(IRedisList<T> fromList, TimeSpan? timeOut)
Returns
<T>
Parameters
RemoveEndFromList(IRedisList<T>)
Declaration
public T RemoveEndFromList(IRedisList<T> fromList)
Returns
<T>
Parameters
RemoveAllFromList(IRedisList<T>)
Declaration
public void RemoveAllFromList(IRedisList<T> fromList)
Parameters
TrimList(IRedisList<T>, Int32, Int32)
Declaration
public void TrimList(IRedisList<T> fromList, int keepStartingFrom, int keepEndingAt)
Parameters
RemoveItemFromList(IRedisList<T>, T)
Declaration
public long RemoveItemFromList(IRedisList<T> fromList, T value)
Returns
System.Int64
Parameters
RemoveItemFromList(IRedisList<T>, T, Int32)
Declaration
public long RemoveItemFromList(IRedisList<T> fromList, T value, int noOfMatches)
Returns
System.Int64
Parameters
GetListCount(IRedisList<T>)
Declaration
public long GetListCount(IRedisList<T> fromList)
Returns
System.Int64
Parameters
GetItemFromList(IRedisList<T>, Int32)
Declaration
public T GetItemFromList(IRedisList<T> fromList, int listIndex)
Returns
<T>
Parameters
SetItemInList(IRedisList<T>, Int32, T)
Declaration
public void SetItemInList(IRedisList<T> toList, int listIndex, T value)
Parameters
InsertBeforeItemInList(IRedisList<T>, T, T)
Declaration
public void InsertBeforeItemInList(IRedisList<T> toList, T pivot, T value)
Parameters
InsertAfterItemInList(IRedisList<T>, T, T)
Declaration
public void InsertAfterItemInList(IRedisList<T> toList, T pivot, T value)
Parameters
EnqueueItemOnList(IRedisList<T>, T)
Declaration
public void EnqueueItemOnList(IRedisList<T> fromList, T item)
Parameters
DequeueItemFromList(IRedisList<T>)
Declaration
public T DequeueItemFromList(IRedisList<T> fromList)
Returns
<T>
Parameters
BlockingDequeueItemFromList(IRedisList<T>, Nullable<TimeSpan>)
Declaration
public T BlockingDequeueItemFromList(IRedisList<T> fromList, TimeSpan? timeOut)
Returns
<T>
Parameters
PushItemToList(IRedisList<T>, T)
Declaration
public void PushItemToList(IRedisList<T> fromList, T item)
Parameters
PopItemFromList(IRedisList<T>)
Declaration
public T PopItemFromList(IRedisList<T> fromList)
Returns
<T>
Parameters
BlockingPopItemFromList(IRedisList<T>, Nullable<TimeSpan>)
Declaration
public T BlockingPopItemFromList(IRedisList<T> fromList, TimeSpan? timeOut)
Returns
<T>
Parameters
PopAndPushItemBetweenLists(IRedisList<T>, IRedisList<T>)
Declaration
public T PopAndPushItemBetweenLists(IRedisList<T> fromList, IRedisList<T> toList)
Returns
<T>
Parameters
BlockingPopAndPushItemBetweenLists(IRedisList<T>, IRedisList<T>, Nullable<TimeSpan>)
Declaration
public T BlockingPopAndPushItemBetweenLists(IRedisList<T> fromList, IRedisList<T> toList, TimeSpan? timeOut)
Returns
<T>
Parameters
GetSortedEntryValues(IRedisSet<T>, Int32, Int32)
Declaration
public List<T> GetSortedEntryValues(IRedisSet<T> fromSet, int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetAllItemsFromSet(IRedisSet<T>)
Declaration
public HashSet<T> GetAllItemsFromSet(IRedisSet<T> fromSet)
Returns
System.Collections.Generic.HashSet<<T>>
Parameters
AddItemToSet(IRedisSet<T>, T)
Declaration
public void AddItemToSet(IRedisSet<T> toSet, T item)
Parameters
RemoveItemFromSet(IRedisSet<T>, T)
Declaration
public void RemoveItemFromSet(IRedisSet<T> fromSet, T item)
Parameters
PopItemFromSet(IRedisSet<T>)
Declaration
public T PopItemFromSet(IRedisSet<T> fromSet)
Returns
<T>
Parameters
MoveBetweenSets(IRedisSet<T>, IRedisSet<T>, T)
Declaration
public void MoveBetweenSets(IRedisSet<T> fromSet, IRedisSet<T> toSet, T item)
Parameters
GetSetCount(IRedisSet<T>)
Declaration
public long GetSetCount(IRedisSet<T> set)
Returns
System.Int64
Parameters
SetContainsItem(IRedisSet<T>, T)
Declaration
public bool SetContainsItem(IRedisSet<T> set, T item)
Returns
System.Boolean
Parameters
GetIntersectFromSets(IRedisSet<T>[])
Declaration
public HashSet<T> GetIntersectFromSets(params IRedisSet<T>[] sets)
Returns
System.Collections.Generic.HashSet<<T>>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisSet<<T>>[] | sets |
StoreIntersectFromSets(IRedisSet<T>, IRedisSet<T>[])
Declaration
public void StoreIntersectFromSets(IRedisSet<T> intoSet, params IRedisSet<T>[] sets)
Parameters
GetUnionFromSets(IRedisSet<T>[])
Declaration
public HashSet<T> GetUnionFromSets(params IRedisSet<T>[] sets)
Returns
System.Collections.Generic.HashSet<<T>>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisSet<<T>>[] | sets |
StoreUnionFromSets(IRedisSet<T>, IRedisSet<T>[])
Declaration
public void StoreUnionFromSets(IRedisSet<T> intoSet, params IRedisSet<T>[] sets)
Parameters
GetDifferencesFromSet(IRedisSet<T>, IRedisSet<T>[])
Declaration
public HashSet<T> GetDifferencesFromSet(IRedisSet<T> fromSet, params IRedisSet<T>[] withSets)
Returns
System.Collections.Generic.HashSet<<T>>
Parameters
StoreDifferencesFromSet(IRedisSet<T>, IRedisSet<T>, IRedisSet<T>[])
Declaration
public void StoreDifferencesFromSet(IRedisSet<T> intoSet, IRedisSet<T> fromSet, params IRedisSet<T>[] withSets)
Parameters
GetRandomItemFromSet(IRedisSet<T>)
Declaration
public T GetRandomItemFromSet(IRedisSet<T> fromSet)
Returns
<T>
Parameters
DeserializeFromString(String)
Declaration
public static T DeserializeFromString(string serializedObj)
Returns
<T>
Parameters
Type | Name |
---|
System.String | serializedObj |
AddItemToSortedSet(IRedisSortedSet<T>, T)
Declaration
public void AddItemToSortedSet(IRedisSortedSet<T> toSet, T value)
Parameters
AddItemToSortedSet(IRedisSortedSet<T>, T, Double)
Declaration
public void AddItemToSortedSet(IRedisSortedSet<T> toSet, T value, double score)
Parameters
RemoveItemFromSortedSet(IRedisSortedSet<T>, T)
Declaration
public bool RemoveItemFromSortedSet(IRedisSortedSet<T> fromSet, T value)
Returns
System.Boolean
Parameters
PopItemWithLowestScoreFromSortedSet(IRedisSortedSet<T>)
Declaration
public T PopItemWithLowestScoreFromSortedSet(IRedisSortedSet<T> fromSet)
Returns
<T>
Parameters
PopItemWithHighestScoreFromSortedSet(IRedisSortedSet<T>)
Declaration
public T PopItemWithHighestScoreFromSortedSet(IRedisSortedSet<T> fromSet)
Returns
<T>
Parameters
SortedSetContainsItem(IRedisSortedSet<T>, T)
Declaration
public bool SortedSetContainsItem(IRedisSortedSet<T> set, T value)
Returns
System.Boolean
Parameters
IncrementItemInSortedSet(IRedisSortedSet<T>, T, Double)
Declaration
public double IncrementItemInSortedSet(IRedisSortedSet<T> set, T value, double incrementBy)
Returns
System.Double
Parameters
GetItemIndexInSortedSet(IRedisSortedSet<T>, T)
Declaration
public long GetItemIndexInSortedSet(IRedisSortedSet<T> set, T value)
Returns
System.Int64
Parameters
GetItemIndexInSortedSetDesc(IRedisSortedSet<T>, T)
Declaration
public long GetItemIndexInSortedSetDesc(IRedisSortedSet<T> set, T value)
Returns
System.Int64
Parameters
GetAllItemsFromSortedSet(IRedisSortedSet<T>)
Declaration
public List<T> GetAllItemsFromSortedSet(IRedisSortedSet<T> set)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetAllItemsFromSortedSetDesc(IRedisSortedSet<T>)
Declaration
public List<T> GetAllItemsFromSortedSetDesc(IRedisSortedSet<T> set)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSet(IRedisSortedSet<T>, Int32, Int32)
Declaration
public List<T> GetRangeFromSortedSet(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetDesc(IRedisSortedSet<T>, Int32, Int32)
Declaration
public List<T> GetRangeFromSortedSetDesc(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetAllWithScoresFromSortedSet(IRedisSortedSet<T>)
Declaration
public IDictionary<T, double> GetAllWithScoresFromSortedSet(IRedisSortedSet<T> set)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSet(IRedisSortedSet<T>, Int32, Int32)
Declaration
public IDictionary<T, double> GetRangeWithScoresFromSortedSet(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetDesc(IRedisSortedSet<T>, Int32, Int32)
Declaration
public IDictionary<T, double> GetRangeWithScoresFromSortedSetDesc(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String)
Declaration
public List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)
Declaration
public List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double)
Declaration
public List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
public List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String)
Declaration
public IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)
Declaration
public IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double)
Declaration
public IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
public IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String)
Declaration
public List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)
Declaration
public List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double)
Declaration
public List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
public List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String)
Declaration
public IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)
Declaration
public IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double)
Declaration
public IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
public IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
RemoveRangeFromSortedSet(IRedisSortedSet<T>, Int32, Int32)
Declaration
public long RemoveRangeFromSortedSet(IRedisSortedSet<T> set, int minRank, int maxRank)
Returns
System.Int64
Parameters
RemoveRangeFromSortedSetByScore(IRedisSortedSet<T>, Double, Double)
Declaration
public long RemoveRangeFromSortedSetByScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns
System.Int64
Parameters
GetSortedSetCount(IRedisSortedSet<T>)
Declaration
public long GetSortedSetCount(IRedisSortedSet<T> set)
Returns
System.Int64
Parameters
GetItemScoreInSortedSet(IRedisSortedSet<T>, T)
Declaration
public double GetItemScoreInSortedSet(IRedisSortedSet<T> set, T value)
Returns
System.Double
Parameters
StoreIntersectFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[])
Declaration
public long StoreIntersectFromSortedSets(IRedisSortedSet<T> intoSetId, params IRedisSortedSet<T>[] setIds)
Returns
System.Int64
Parameters
StoreIntersectFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[], String[])
Declaration
public long StoreIntersectFromSortedSets(IRedisSortedSet<T> intoSetId, IRedisSortedSet<T>[] setIds, string[] args)
Returns
System.Int64
Parameters
StoreUnionFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[])
Declaration
public long StoreUnionFromSortedSets(IRedisSortedSet<T> intoSetId, params IRedisSortedSet<T>[] setIds)
Returns
System.Int64
Parameters
StoreUnionFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[], String[])
Declaration
public long StoreUnionFromSortedSets(IRedisSortedSet<T> intoSetId, IRedisSortedSet<T>[] setIds, string[] args)
Returns
System.Int64
Parameters
Implements