IRedisClient
Assembly: ServiceStack.Interfaces.dll
Declaration
public interface IRedisClient : IEntityStore, ICacheClientExtended, ICacheClient, IDisposable, IRemoveByPattern
Properties
DbSize
Info
Declaration
Dictionary<string, string> Info { get; }
LastSave
Declaration
DateTime LastSave { get; }
Host
Port
ConnectTimeout
Declaration
int ConnectTimeout { get; set; }
RetryTimeout
Declaration
int RetryTimeout { get; set; }
RetryCount
Declaration
int RetryCount { get; set; }
SendTimeout
Declaration
int SendTimeout { get; set; }
Username
Declaration
string Username { get; set; }
Password
Declaration
string Password { get; set; }
HadExceptions
Declaration
bool HadExceptions { get; }
Item[String]
Declaration
string this[string key] { get; set; }
Lists
Declaration
IHasNamed<IRedisList> Lists { get; set; }
Sets
Declaration
IHasNamed<IRedisSet> Sets { get; set; }
SortedSets
Declaration
IHasNamed<IRedisSortedSet> SortedSets { get; set; }
Hashes
Declaration
IHasNamed<IRedisHash> Hashes { get; set; }
Methods
GetServerTime()
Returns
System.DateTime
Ping()
Returns
System.Boolean
Echo(String)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | text |
Custom(Object[])
Declaration
RedisText Custom(params object[] cmdWithArgs)
Returns
ServiceStack.Redis.RedisText
Parameters
| Type | Name |
|---|
System.Object[] | cmdWithArgs |
Save()
SaveAsync()
Shutdown()
ShutdownNoSave()
RewriteAppendOnlyFileAsync()
Declaration
void RewriteAppendOnlyFileAsync()
FlushDb()
GetServerRole()
Declaration
RedisServerRole GetServerRole()
Returns
ServiceStack.Redis.RedisServerRole
GetServerRoleInfo()
Declaration
RedisText GetServerRoleInfo()
Returns
ServiceStack.Redis.RedisText
GetConfig(String)
Declaration
string GetConfig(string item)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | item |
SetConfig(String, String)
Declaration
void SetConfig(string item, string value)
Parameters
| Type | Name |
|---|
System.String | item |
System.String | value |
SaveConfig()
ResetInfoStats()
GetClient()
Returns
System.String
SetClient(String)
Declaration
void SetClient(string name)
Parameters
| Type | Name |
|---|
System.String | name |
KillClient(String)
Declaration
void KillClient(string address)
Parameters
| Type | Name |
|---|
System.String | address |
KillClients(String, String, Nullable<RedisClientType>, Nullable<Boolean>)
Declaration
long KillClients(string fromAddress = null, string withId = null, RedisClientType? ofType = null, bool? skipMe = null)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | fromAddress |
System.String | withId |
System.Nullable<ServiceStack.Redis.RedisClientType> | ofType |
System.Nullable<System.Boolean> | skipMe |
GetClientsInfo()
Declaration
List<Dictionary<string, string>> GetClientsInfo()
Returns
System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>
PauseAllClients(TimeSpan)
Declaration
void PauseAllClients(TimeSpan duration)
Parameters
| Type | Name |
|---|
System.TimeSpan | duration |
GetAllKeys()
Declaration
List<string> GetAllKeys()
Returns
System.Collections.Generic.List<System.String>
UrnKey<T>(T)
Declaration
string UrnKey<T>(T value)
Returns
System.String
Parameters
Type Parameters
UrnKey<T>(Object)
Declaration
string UrnKey<T>(object id)
Returns
System.String
Parameters
Type Parameters
UrnKey(Type, Object)
Declaration
string UrnKey(Type type, object id)
Returns
System.String
Parameters
| Type | Name |
|---|
System.Type | type |
System.Object | id |
SetAll(IEnumerable<String>, IEnumerable<String>)
Declaration
void SetAll(IEnumerable<string> keys, IEnumerable<string> values)
Parameters
| Type | Name |
|---|
System.Collections.Generic.IEnumerable<System.String> | keys |
System.Collections.Generic.IEnumerable<System.String> | values |
SetAll(Dictionary<String, String>)
Declaration
void SetAll(Dictionary<string, string> map)
Parameters
| Type | Name |
|---|
System.Collections.Generic.Dictionary<System.String,System.String> | map |
SetValues(Dictionary<String, String>)
Declaration
void SetValues(Dictionary<string, string> map)
Parameters
| Type | Name |
|---|
System.Collections.Generic.Dictionary<System.String,System.String> | map |
SetValue(String, String)
Declaration
void SetValue(string key, string value)
Parameters
| Type | Name |
|---|
System.String | key |
System.String | value |
SetValue(String, String, TimeSpan)
Declaration
void SetValue(string key, string value, TimeSpan expireIn)
Parameters
| Type | Name |
|---|
System.String | key |
System.String | value |
System.TimeSpan | expireIn |
SetValueIfNotExists(String, String)
Declaration
bool SetValueIfNotExists(string key, string value)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | key |
System.String | value |
SetValueIfNotExists(String, String, TimeSpan)
Declaration
bool SetValueIfNotExists(string key, string value, TimeSpan expireIn)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | key |
System.String | value |
System.TimeSpan | expireIn |
SetValueIfExists(String, String)
Declaration
bool SetValueIfExists(string key, string value)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | key |
System.String | value |
SetValueIfExists(String, String, TimeSpan)
Declaration
bool SetValueIfExists(string key, string value, TimeSpan expireIn)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | key |
System.String | value |
System.TimeSpan | expireIn |
GetValue(String)
Declaration
string GetValue(string key)
Returns
System.String
Parameters
GetAndSetValue(String, String)
Declaration
string GetAndSetValue(string key, string value)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | key |
System.String | value |
GetValues(List<String>)
Declaration
List<string> GetValues(List<string> keys)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.Collections.Generic.List<System.String> | keys |
GetValues<T>(List<String>)
Declaration
List<T> GetValues<T>(List<string> keys)
Returns
System.Collections.Generic.List<<T>>
Parameters
| Type | Name |
|---|
System.Collections.Generic.List<System.String> | keys |
Type Parameters
GetValuesMap(List<String>)
Declaration
Dictionary<string, string> GetValuesMap(List<string> keys)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
| Type | Name |
|---|
System.Collections.Generic.List<System.String> | keys |
GetValuesMap<T>(List<String>)
Declaration
Dictionary<string, T> GetValuesMap<T>(List<string> keys)
Returns
System.Collections.Generic.Dictionary<System.String,<T>>
Parameters
| Type | Name |
|---|
System.Collections.Generic.List<System.String> | keys |
Type Parameters
AppendTo(String, String)
Declaration
long AppendTo(string key, string value)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | key |
System.String | value |
Slice(String, Int32, Int32)
Declaration
string Slice(string key, int fromIndex, int toIndex)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | key |
System.Int32 | fromIndex |
System.Int32 | toIndex |
InsertAt(String, Int32, String)
Declaration
long InsertAt(string key, int offset, string value)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | key |
System.Int32 | offset |
System.String | value |
RenameKey(String, String)
Declaration
void RenameKey(string fromName, string toName)
Parameters
| Type | Name |
|---|
System.String | fromName |
System.String | toName |
GetFromHash<T>(Object)
Declaration
T GetFromHash<T>(object id)
Returns
<T>
Parameters
Type Parameters
StoreAsHash<T>(T)
Declaration
void StoreAsHash<T>(T entity)
Parameters
Type Parameters
StoreObject(Object)
Declaration
object StoreObject(object entity)
Returns
System.Object
Parameters
| Type | Name |
|---|
System.Object | entity |
ContainsKey(String)
Declaration
bool ContainsKey(string key)
Returns
System.Boolean
Parameters
RemoveEntry(String[])
Declaration
bool RemoveEntry(params string[] args)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String[] | args |
IncrementValue(String)
Declaration
long IncrementValue(string key)
Returns
System.Int64
Parameters
IncrementValueBy(String, Int32)
Declaration
long IncrementValueBy(string key, int count)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | key |
System.Int32 | count |
IncrementValueBy(String, Int64)
Declaration
long IncrementValueBy(string key, long count)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | key |
System.Int64 | count |
IncrementValueBy(String, Double)
Declaration
double IncrementValueBy(string key, double count)
Returns
System.Double
Parameters
| Type | Name |
|---|
System.String | key |
System.Double | count |
DecrementValue(String)
Declaration
long DecrementValue(string key)
Returns
System.Int64
Parameters
DecrementValueBy(String, Int32)
Declaration
long DecrementValueBy(string key, int count)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | key |
System.Int32 | count |
SearchKeys(String)
Declaration
List<string> SearchKeys(string pattern)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | pattern |
Type(String)
Returns
System.String
Parameters
GetEntryType(String)
Declaration
RedisKeyType GetEntryType(string key)
Returns
ServiceStack.Redis.RedisKeyType
Parameters
GetStringCount(String)
Declaration
long GetStringCount(string key)
Returns
System.Int64
Parameters
GetRandomKey()
Returns
System.String
ExpireEntryIn(String, TimeSpan)
Declaration
bool ExpireEntryIn(string key, TimeSpan expireIn)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | key |
System.TimeSpan | expireIn |
ExpireEntryAt(String, DateTime)
Declaration
bool ExpireEntryAt(string key, DateTime expireAt)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | key |
System.DateTime | expireAt |
GetSortedEntryValues(String, Int32, Int32)
Declaration
List<string> GetSortedEntryValues(string key, int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | key |
System.Int32 | startingFrom |
System.Int32 | endingAt |
WriteAll<TEntity>(IEnumerable<TEntity>)
Declaration
void WriteAll<TEntity>(IEnumerable<TEntity> entities)
Parameters
| Type | Name |
|---|
System.Collections.Generic.IEnumerable<<TEntity>> | entities |
Type Parameters
ScanAllKeys(String, Int32)
Declaration
IEnumerable<string> ScanAllKeys(string pattern = null, int pageSize = 1000)
Returns
System.Collections.Generic.IEnumerable<System.String>
Parameters
| Type | Name |
|---|
System.String | pattern |
System.Int32 | pageSize |
ScanAllSetItems(String, String, Int32)
Declaration
IEnumerable<string> ScanAllSetItems(string setId, string pattern = null, int pageSize = 1000)
Returns
System.Collections.Generic.IEnumerable<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | pattern |
System.Int32 | pageSize |
ScanAllSortedSetItems(String, String, Int32)
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
| Type | Name |
|---|
System.String | setId |
System.String | pattern |
System.Int32 | pageSize |
ScanAllHashEntries(String, String, Int32)
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
| Type | Name |
|---|
System.String | hashId |
System.String | pattern |
System.Int32 | pageSize |
AddToHyperLog(String, String[])
Declaration
bool AddToHyperLog(string key, params string[] elements)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | key |
System.String[] | elements |
CountHyperLog(String)
Declaration
long CountHyperLog(string key)
Returns
System.Int64
Parameters
MergeHyperLogs(String, String[])
Declaration
void MergeHyperLogs(string toKey, params string[] fromKeys)
Parameters
| Type | Name |
|---|
System.String | toKey |
System.String[] | fromKeys |
AddGeoMember(String, Double, Double, String)
Declaration
long AddGeoMember(string key, double longitude, double latitude, string member)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | key |
System.Double | longitude |
System.Double | latitude |
System.String | member |
Declaration
long AddGeoMembers(string key, params RedisGeo[] geoPoints)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | key |
ServiceStack.Redis.RedisGeo[] | geoPoints |
Declaration
double CalculateDistanceBetweenGeoMembers(string key, string fromMember, string toMember, string unit = null)
Returns
System.Double
Parameters
| Type | Name |
|---|
System.String | key |
System.String | fromMember |
System.String | toMember |
System.String | unit |
GetGeohashes(String, String[])
Declaration
string[] GetGeohashes(string key, params string[] members)
Returns
System.String[]
Parameters
| Type | Name |
|---|
System.String | key |
System.String[] | members |
GetGeoCoordinates(String, String[])
Declaration
List<RedisGeo> GetGeoCoordinates(string key, params string[] members)
Returns
System.Collections.Generic.List<ServiceStack.Redis.RedisGeo>
Parameters
| Type | Name |
|---|
System.String | key |
System.String[] | members |
FindGeoMembersInRadius(String, Double, Double, Double, String)
Declaration
string[] FindGeoMembersInRadius(string key, double longitude, double latitude, double radius, string unit)
Returns
System.String[]
Parameters
| Type | Name |
|---|
System.String | key |
System.Double | longitude |
System.Double | latitude |
System.Double | radius |
System.String | unit |
FindGeoResultsInRadius(String, Double, Double, Double, String, Nullable<Int32>, Nullable<Boolean>)
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
| Type | Name |
|---|
System.String | key |
System.Double | longitude |
System.Double | latitude |
System.Double | radius |
System.String | unit |
System.Nullable<System.Int32> | count |
System.Nullable<System.Boolean> | sortByNearest |
FindGeoMembersInRadius(String, String, Double, String)
Declaration
string[] FindGeoMembersInRadius(string key, string member, double radius, string unit)
Returns
System.String[]
Parameters
| Type | Name |
|---|
System.String | key |
System.String | member |
System.Double | radius |
System.String | unit |
FindGeoResultsInRadius(String, String, Double, String, Nullable<Int32>, Nullable<Boolean>)
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
| Type | Name |
|---|
System.String | key |
System.String | member |
System.Double | radius |
System.String | unit |
System.Nullable<System.Int32> | count |
System.Nullable<System.Boolean> | sortByNearest |
As<T>()
Returns a high-level typed client API
Declaration
IRedisTypedClient<T> As<T>()
Returns
ServiceStack.Redis.Generic.IRedisTypedClient<T>
Type Parameters
CreateTransaction()
Declaration
IRedisTransaction CreateTransaction()
Returns
ServiceStack.Redis.IRedisTransaction
CreatePipeline()
Declaration
IRedisPipeline CreatePipeline()
Returns
ServiceStack.Redis.Pipeline.IRedisPipeline
AcquireLock(String)
Declaration
IDisposable AcquireLock(string key)
Returns
System.IDisposable
Parameters
AcquireLock(String, TimeSpan)
Declaration
IDisposable AcquireLock(string key, TimeSpan timeOut)
Returns
System.IDisposable
Parameters
| Type | Name |
|---|
System.String | key |
System.TimeSpan | timeOut |
Watch(String[])
Declaration
void Watch(params string[] keys)
Parameters
| Type | Name |
|---|
System.String[] | keys |
UnWatch()
CreateSubscription()
Declaration
IRedisSubscription CreateSubscription()
Returns
ServiceStack.Redis.IRedisSubscription
PublishMessage(String, String)
Declaration
long PublishMessage(string toChannel, string message)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | toChannel |
System.String | message |
GetAllItemsFromSet(String)
Declaration
HashSet<string> GetAllItemsFromSet(string setId)
Returns
System.Collections.Generic.HashSet<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
AddItemToSet(String, String)
Declaration
void AddItemToSet(string setId, string item)
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | item |
AddRangeToSet(String, List<String>)
Declaration
void AddRangeToSet(string setId, List<string> items)
Parameters
| Type | Name |
|---|
System.String | setId |
System.Collections.Generic.List<System.String> | items |
RemoveItemFromSet(String, String)
Declaration
void RemoveItemFromSet(string setId, string item)
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | item |
PopItemFromSet(String)
Declaration
string PopItemFromSet(string setId)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | setId |
PopItemsFromSet(String, Int32)
Declaration
List<string> PopItemsFromSet(string setId, int count)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int32 | count |
MoveBetweenSets(String, String, String)
Declaration
void MoveBetweenSets(string fromSetId, string toSetId, string item)
Parameters
| Type | Name |
|---|
System.String | fromSetId |
System.String | toSetId |
System.String | item |
GetSetCount(String)
Declaration
long GetSetCount(string setId)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
SetContainsItem(String, String)
Declaration
bool SetContainsItem(string setId, string item)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | item |
GetIntersectFromSets(String[])
Declaration
HashSet<string> GetIntersectFromSets(params string[] setIds)
Returns
System.Collections.Generic.HashSet<System.String>
Parameters
| Type | Name |
|---|
System.String[] | setIds |
StoreIntersectFromSets(String, String[])
Declaration
void StoreIntersectFromSets(string intoSetId, params string[] setIds)
Parameters
| Type | Name |
|---|
System.String | intoSetId |
System.String[] | setIds |
GetUnionFromSets(String[])
Declaration
HashSet<string> GetUnionFromSets(params string[] setIds)
Returns
System.Collections.Generic.HashSet<System.String>
Parameters
| Type | Name |
|---|
System.String[] | setIds |
StoreUnionFromSets(String, String[])
Declaration
void StoreUnionFromSets(string intoSetId, params string[] setIds)
Parameters
| Type | Name |
|---|
System.String | intoSetId |
System.String[] | setIds |
GetDifferencesFromSet(String, String[])
Declaration
HashSet<string> GetDifferencesFromSet(string fromSetId, params string[] withSetIds)
Returns
System.Collections.Generic.HashSet<System.String>
Parameters
| Type | Name |
|---|
System.String | fromSetId |
System.String[] | withSetIds |
StoreDifferencesFromSet(String, String, String[])
Declaration
void StoreDifferencesFromSet(string intoSetId, string fromSetId, params string[] withSetIds)
Parameters
| Type | Name |
|---|
System.String | intoSetId |
System.String | fromSetId |
System.String[] | withSetIds |
GetRandomItemFromSet(String)
Declaration
string GetRandomItemFromSet(string setId)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | setId |
GetAllItemsFromList(String)
Declaration
List<string> GetAllItemsFromList(string listId)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | listId |
GetRangeFromList(String, Int32, Int32)
Declaration
List<string> GetRangeFromList(string listId, int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | listId |
System.Int32 | startingFrom |
System.Int32 | endingAt |
GetRangeFromSortedList(String, Int32, Int32)
Declaration
List<string> GetRangeFromSortedList(string listId, int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | listId |
System.Int32 | startingFrom |
System.Int32 | endingAt |
GetSortedItemsFromList(String, SortOptions)
Declaration
List<string> GetSortedItemsFromList(string listId, SortOptions sortOptions)
Returns
System.Collections.Generic.List<System.String>
Parameters
AddItemToList(String, String)
Declaration
void AddItemToList(string listId, string value)
Parameters
| Type | Name |
|---|
System.String | listId |
System.String | value |
AddRangeToList(String, List<String>)
Declaration
void AddRangeToList(string listId, List<string> values)
Parameters
| Type | Name |
|---|
System.String | listId |
System.Collections.Generic.List<System.String> | values |
PrependItemToList(String, String)
Declaration
void PrependItemToList(string listId, string value)
Parameters
| Type | Name |
|---|
System.String | listId |
System.String | value |
PrependRangeToList(String, List<String>)
Declaration
void PrependRangeToList(string listId, List<string> values)
Parameters
| Type | Name |
|---|
System.String | listId |
System.Collections.Generic.List<System.String> | values |
RemoveAllFromList(String)
Declaration
void RemoveAllFromList(string listId)
Parameters
| Type | Name |
|---|
System.String | listId |
RemoveStartFromList(String)
Declaration
string RemoveStartFromList(string listId)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | listId |
BlockingRemoveStartFromList(String, Nullable<TimeSpan>)
Declaration
string BlockingRemoveStartFromList(string listId, TimeSpan? timeOut)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | listId |
System.Nullable<System.TimeSpan> | timeOut |
BlockingRemoveStartFromLists(String[], Nullable<TimeSpan>)
Declaration
ItemRef BlockingRemoveStartFromLists(string[] listIds, TimeSpan? timeOut)
Returns
ServiceStack.Redis.ItemRef
Parameters
| Type | Name |
|---|
System.String[] | listIds |
System.Nullable<System.TimeSpan> | timeOut |
RemoveEndFromList(String)
Declaration
string RemoveEndFromList(string listId)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | listId |
TrimList(String, Int32, Int32)
Declaration
void TrimList(string listId, int keepStartingFrom, int keepEndingAt)
Parameters
| Type | Name |
|---|
System.String | listId |
System.Int32 | keepStartingFrom |
System.Int32 | keepEndingAt |
RemoveItemFromList(String, String)
Declaration
long RemoveItemFromList(string listId, string value)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | listId |
System.String | value |
RemoveItemFromList(String, String, Int32)
Declaration
long RemoveItemFromList(string listId, string value, int noOfMatches)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | listId |
System.String | value |
System.Int32 | noOfMatches |
GetListCount(String)
Declaration
long GetListCount(string listId)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | listId |
GetItemFromList(String, Int32)
Declaration
string GetItemFromList(string listId, int listIndex)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | listId |
System.Int32 | listIndex |
SetItemInList(String, Int32, String)
Declaration
void SetItemInList(string listId, int listIndex, string value)
Parameters
| Type | Name |
|---|
System.String | listId |
System.Int32 | listIndex |
System.String | value |
EnqueueItemOnList(String, String)
Declaration
void EnqueueItemOnList(string listId, string value)
Parameters
| Type | Name |
|---|
System.String | listId |
System.String | value |
DequeueItemFromList(String)
Declaration
string DequeueItemFromList(string listId)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | listId |
BlockingDequeueItemFromList(String, Nullable<TimeSpan>)
Declaration
string BlockingDequeueItemFromList(string listId, TimeSpan? timeOut)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | listId |
System.Nullable<System.TimeSpan> | timeOut |
BlockingDequeueItemFromLists(String[], Nullable<TimeSpan>)
Declaration
ItemRef BlockingDequeueItemFromLists(string[] listIds, TimeSpan? timeOut)
Returns
ServiceStack.Redis.ItemRef
Parameters
| Type | Name |
|---|
System.String[] | listIds |
System.Nullable<System.TimeSpan> | timeOut |
PushItemToList(String, String)
Declaration
void PushItemToList(string listId, string value)
Parameters
| Type | Name |
|---|
System.String | listId |
System.String | value |
PopItemFromList(String)
Declaration
string PopItemFromList(string listId)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | listId |
BlockingPopItemFromList(String, Nullable<TimeSpan>)
Declaration
string BlockingPopItemFromList(string listId, TimeSpan? timeOut)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | listId |
System.Nullable<System.TimeSpan> | timeOut |
BlockingPopItemFromLists(String[], Nullable<TimeSpan>)
Declaration
ItemRef BlockingPopItemFromLists(string[] listIds, TimeSpan? timeOut)
Returns
ServiceStack.Redis.ItemRef
Parameters
| Type | Name |
|---|
System.String[] | listIds |
System.Nullable<System.TimeSpan> | timeOut |
PopAndPushItemBetweenLists(String, String)
Declaration
string PopAndPushItemBetweenLists(string fromListId, string toListId)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | fromListId |
System.String | toListId |
BlockingPopAndPushItemBetweenLists(String, String, Nullable<TimeSpan>)
Declaration
string BlockingPopAndPushItemBetweenLists(string fromListId, string toListId, TimeSpan? timeOut)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | fromListId |
System.String | toListId |
System.Nullable<System.TimeSpan> | timeOut |
AddItemToSortedSet(String, String)
Declaration
bool AddItemToSortedSet(string setId, string value)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | value |
AddItemToSortedSet(String, String, Double)
Declaration
bool AddItemToSortedSet(string setId, string value, double score)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | value |
System.Double | score |
AddRangeToSortedSet(String, List<String>, Double)
Declaration
bool AddRangeToSortedSet(string setId, List<string> values, double score)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | setId |
System.Collections.Generic.List<System.String> | values |
System.Double | score |
AddRangeToSortedSet(String, List<String>, Int64)
Declaration
bool AddRangeToSortedSet(string setId, List<string> values, long score)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | setId |
System.Collections.Generic.List<System.String> | values |
System.Int64 | score |
RemoveItemFromSortedSet(String, String)
Declaration
bool RemoveItemFromSortedSet(string setId, string value)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | value |
RemoveItemsFromSortedSet(String, List<String>)
Declaration
long RemoveItemsFromSortedSet(string setId, List<string> values)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
System.Collections.Generic.List<System.String> | values |
PopItemWithLowestScoreFromSortedSet(String)
Declaration
string PopItemWithLowestScoreFromSortedSet(string setId)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | setId |
PopItemWithHighestScoreFromSortedSet(String)
Declaration
string PopItemWithHighestScoreFromSortedSet(string setId)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | setId |
SortedSetContainsItem(String, String)
Declaration
bool SortedSetContainsItem(string setId, string value)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | value |
IncrementItemInSortedSet(String, String, Double)
Declaration
double IncrementItemInSortedSet(string setId, string value, double incrementBy)
Returns
System.Double
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | value |
System.Double | incrementBy |
IncrementItemInSortedSet(String, String, Int64)
Declaration
double IncrementItemInSortedSet(string setId, string value, long incrementBy)
Returns
System.Double
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | value |
System.Int64 | incrementBy |
GetItemIndexInSortedSet(String, String)
Declaration
long GetItemIndexInSortedSet(string setId, string value)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | value |
GetItemIndexInSortedSetDesc(String, String)
Declaration
long GetItemIndexInSortedSetDesc(string setId, string value)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | value |
GetAllItemsFromSortedSet(String)
Declaration
List<string> GetAllItemsFromSortedSet(string setId)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
GetAllItemsFromSortedSetDesc(String)
Declaration
List<string> GetAllItemsFromSortedSetDesc(string setId)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
GetRangeFromSortedSet(String, Int32, Int32)
Declaration
List<string> GetRangeFromSortedSet(string setId, int fromRank, int toRank)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int32 | fromRank |
System.Int32 | toRank |
GetRangeFromSortedSetDesc(String, Int32, Int32)
Declaration
List<string> GetRangeFromSortedSetDesc(string setId, int fromRank, int toRank)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int32 | fromRank |
System.Int32 | toRank |
GetAllWithScoresFromSortedSet(String)
Declaration
IDictionary<string, double> GetAllWithScoresFromSortedSet(string setId)
Returns
System.Collections.Generic.IDictionary<System.String,System.Double>
Parameters
| Type | Name |
|---|
System.String | setId |
GetRangeWithScoresFromSortedSet(String, Int32, Int32)
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSet(string setId, int fromRank, int toRank)
Returns
System.Collections.Generic.IDictionary<System.String,System.Double>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int32 | fromRank |
System.Int32 | toRank |
GetRangeWithScoresFromSortedSetDesc(String, Int32, Int32)
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetDesc(string setId, int fromRank, int toRank)
Returns
System.Collections.Generic.IDictionary<System.String,System.Double>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int32 | fromRank |
System.Int32 | toRank |
GetRangeFromSortedSetByLowestScore(String, String, String)
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | fromStringScore |
System.String | toStringScore |
GetRangeFromSortedSetByLowestScore(String, String, String, Nullable<Int32>, Nullable<Int32>)
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, string fromStringScore, string toStringScore, int? skip, int? take)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | fromStringScore |
System.String | toStringScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeFromSortedSetByLowestScore(String, Double, Double)
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, double fromScore, double toScore)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
GetRangeFromSortedSetByLowestScore(String, Int64, Int64)
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, long fromScore, long toScore)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
GetRangeFromSortedSetByLowestScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeFromSortedSetByLowestScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
Declaration
List<string> GetRangeFromSortedSetByLowestScore(string setId, long fromScore, long toScore, int? skip, int? take)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeWithScoresFromSortedSetByLowestScore(String, String, String)
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.IDictionary<System.String,System.Double>
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | fromStringScore |
System.String | toStringScore |
GetRangeWithScoresFromSortedSetByLowestScore(String, String, String, Nullable<Int32>, Nullable<Int32>)
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
| Type | Name |
|---|
System.String | setId |
System.String | fromStringScore |
System.String | toStringScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeWithScoresFromSortedSetByLowestScore(String, Double, Double)
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, double fromScore, double toScore)
Returns
System.Collections.Generic.IDictionary<System.String,System.Double>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
GetRangeWithScoresFromSortedSetByLowestScore(String, Int64, Int64)
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, long fromScore, long toScore)
Returns
System.Collections.Generic.IDictionary<System.String,System.Double>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
GetRangeWithScoresFromSortedSetByLowestScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
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
| Type | Name |
|---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeWithScoresFromSortedSetByLowestScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
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
| Type | Name |
|---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeFromSortedSetByHighestScore(String, String, String)
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | fromStringScore |
System.String | toStringScore |
GetRangeFromSortedSetByHighestScore(String, String, String, Nullable<Int32>, Nullable<Int32>)
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, string fromStringScore, string toStringScore, int? skip, int? take)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | fromStringScore |
System.String | toStringScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeFromSortedSetByHighestScore(String, Double, Double)
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, double fromScore, double toScore)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
GetRangeFromSortedSetByHighestScore(String, Int64, Int64)
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, long fromScore, long toScore)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
GetRangeFromSortedSetByHighestScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeFromSortedSetByHighestScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
Declaration
List<string> GetRangeFromSortedSetByHighestScore(string setId, long fromScore, long toScore, int? skip, int? take)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeWithScoresFromSortedSetByHighestScore(String, String, String)
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.IDictionary<System.String,System.Double>
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | fromStringScore |
System.String | toStringScore |
GetRangeWithScoresFromSortedSetByHighestScore(String, String, String, Nullable<Int32>, Nullable<Int32>)
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
| Type | Name |
|---|
System.String | setId |
System.String | fromStringScore |
System.String | toStringScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeWithScoresFromSortedSetByHighestScore(String, Double, Double)
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, double fromScore, double toScore)
Returns
System.Collections.Generic.IDictionary<System.String,System.Double>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
GetRangeWithScoresFromSortedSetByHighestScore(String, Int64, Int64)
Declaration
IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, long fromScore, long toScore)
Returns
System.Collections.Generic.IDictionary<System.String,System.Double>
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
GetRangeWithScoresFromSortedSetByHighestScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
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
| Type | Name |
|---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeWithScoresFromSortedSetByHighestScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
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
| Type | Name |
|---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
RemoveRangeFromSortedSet(String, Int32, Int32)
Declaration
long RemoveRangeFromSortedSet(string setId, int minRank, int maxRank)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int32 | minRank |
System.Int32 | maxRank |
RemoveRangeFromSortedSetByScore(String, Double, Double)
Declaration
long RemoveRangeFromSortedSetByScore(string setId, double fromScore, double toScore)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
RemoveRangeFromSortedSetByScore(String, Int64, Int64)
Declaration
long RemoveRangeFromSortedSetByScore(string setId, long fromScore, long toScore)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
GetSortedSetCount(String)
Declaration
long GetSortedSetCount(string setId)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
GetSortedSetCount(String, String, String)
Declaration
long GetSortedSetCount(string setId, string fromStringScore, string toStringScore)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | fromStringScore |
System.String | toStringScore |
GetSortedSetCount(String, Int64, Int64)
Declaration
long GetSortedSetCount(string setId, long fromScore, long toScore)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
GetSortedSetCount(String, Double, Double)
Declaration
long GetSortedSetCount(string setId, double fromScore, double toScore)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
GetItemScoreInSortedSet(String, String)
Declaration
double GetItemScoreInSortedSet(string setId, string value)
Returns
System.Double
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | value |
StoreIntersectFromSortedSets(String, String[])
Declaration
long StoreIntersectFromSortedSets(string intoSetId, params string[] setIds)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | intoSetId |
System.String[] | setIds |
StoreIntersectFromSortedSets(String, String[], String[])
Declaration
long StoreIntersectFromSortedSets(string intoSetId, string[] setIds, string[] args)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | intoSetId |
System.String[] | setIds |
System.String[] | args |
StoreUnionFromSortedSets(String, String[])
Declaration
long StoreUnionFromSortedSets(string intoSetId, params string[] setIds)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | intoSetId |
System.String[] | setIds |
StoreUnionFromSortedSets(String, String[], String[])
Declaration
long StoreUnionFromSortedSets(string intoSetId, string[] setIds, string[] args)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | intoSetId |
System.String[] | setIds |
System.String[] | args |
SearchSortedSet(String, String, String, Nullable<Int32>, Nullable<Int32>)
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
| Type | Name |
|---|
System.String | setId |
System.String | start |
System.String | end |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
SearchSortedSetCount(String, String, String)
Declaration
long SearchSortedSetCount(string setId, string start = null, string end = null)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | start |
System.String | end |
RemoveRangeFromSortedSetBySearch(String, String, String)
Declaration
long RemoveRangeFromSortedSetBySearch(string setId, string start = null, string end = null)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | setId |
System.String | start |
System.String | end |
HashContainsEntry(String, String)
Declaration
bool HashContainsEntry(string hashId, string key)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | hashId |
System.String | key |
SetEntryInHash(String, String, String)
Declaration
bool SetEntryInHash(string hashId, string key, string value)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | hashId |
System.String | key |
System.String | value |
SetEntryInHashIfNotExists(String, String, String)
Declaration
bool SetEntryInHashIfNotExists(string hashId, string key, string value)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | hashId |
System.String | key |
System.String | value |
SetRangeInHash(String, IEnumerable<KeyValuePair<String, String>>)
Declaration
void SetRangeInHash(string hashId, IEnumerable<KeyValuePair<string, string>> keyValuePairs)
Parameters
| Type | Name |
|---|
System.String | hashId |
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.String>> | keyValuePairs |
IncrementValueInHash(String, String, Int32)
Declaration
long IncrementValueInHash(string hashId, string key, int incrementBy)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | hashId |
System.String | key |
System.Int32 | incrementBy |
IncrementValueInHash(String, String, Double)
Declaration
double IncrementValueInHash(string hashId, string key, double incrementBy)
Returns
System.Double
Parameters
| Type | Name |
|---|
System.String | hashId |
System.String | key |
System.Double | incrementBy |
GetValueFromHash(String, String)
Declaration
string GetValueFromHash(string hashId, string key)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | hashId |
System.String | key |
GetValuesFromHash(String, String[])
Declaration
List<string> GetValuesFromHash(string hashId, params string[] keys)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | hashId |
System.String[] | keys |
RemoveEntryFromHash(String, String)
Declaration
bool RemoveEntryFromHash(string hashId, string key)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | hashId |
System.String | key |
GetHashCount(String)
Declaration
long GetHashCount(string hashId)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | hashId |
GetHashKeys(String)
Declaration
List<string> GetHashKeys(string hashId)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | hashId |
GetHashValues(String)
Declaration
List<string> GetHashValues(string hashId)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | hashId |
GetAllEntriesFromHash(String)
Declaration
Dictionary<string, string> GetAllEntriesFromHash(string hashId)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
| Type | Name |
|---|
System.String | hashId |
ExecCachedLua<T>(String, Func<String, T>)
Declaration
T ExecCachedLua<T>(string scriptBody, Func<string, T> scriptSha1)
Returns
<T>
Parameters
| Type | Name |
|---|
System.String | scriptBody |
System.Func<System.String,<T>> | scriptSha1 |
Type Parameters
ExecLua(String, String[])
Declaration
RedisText ExecLua(string body, params string[] args)
Returns
ServiceStack.Redis.RedisText
Parameters
| Type | Name |
|---|
System.String | body |
System.String[] | args |
ExecLua(String, String[], String[])
Declaration
RedisText ExecLua(string luaBody, string[] keys, string[] args)
Returns
ServiceStack.Redis.RedisText
Parameters
| Type | Name |
|---|
System.String | luaBody |
System.String[] | keys |
System.String[] | args |
ExecLuaSha(String, String[])
Declaration
RedisText ExecLuaSha(string sha1, params string[] args)
Returns
ServiceStack.Redis.RedisText
Parameters
| Type | Name |
|---|
System.String | sha1 |
System.String[] | args |
ExecLuaSha(String, String[], String[])
Declaration
RedisText ExecLuaSha(string sha1, string[] keys, string[] args)
Returns
ServiceStack.Redis.RedisText
Parameters
| Type | Name |
|---|
System.String | sha1 |
System.String[] | keys |
System.String[] | args |
ExecLuaAsString(String, String[])
Declaration
string ExecLuaAsString(string luaBody, params string[] args)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | luaBody |
System.String[] | args |
ExecLuaAsString(String, String[], String[])
Declaration
string ExecLuaAsString(string luaBody, string[] keys, string[] args)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | luaBody |
System.String[] | keys |
System.String[] | args |
ExecLuaShaAsString(String, String[])
Declaration
string ExecLuaShaAsString(string sha1, params string[] args)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | sha1 |
System.String[] | args |
ExecLuaShaAsString(String, String[], String[])
Declaration
string ExecLuaShaAsString(string sha1, string[] keys, string[] args)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | sha1 |
System.String[] | keys |
System.String[] | args |
ExecLuaAsInt(String, String[])
Declaration
long ExecLuaAsInt(string luaBody, params string[] args)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | luaBody |
System.String[] | args |
ExecLuaAsInt(String, String[], String[])
Declaration
long ExecLuaAsInt(string luaBody, string[] keys, string[] args)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | luaBody |
System.String[] | keys |
System.String[] | args |
ExecLuaShaAsInt(String, String[])
Declaration
long ExecLuaShaAsInt(string sha1, params string[] args)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | sha1 |
System.String[] | args |
ExecLuaShaAsInt(String, String[], String[])
Declaration
long ExecLuaShaAsInt(string sha1, string[] keys, string[] args)
Returns
System.Int64
Parameters
| Type | Name |
|---|
System.String | sha1 |
System.String[] | keys |
System.String[] | args |
ExecLuaAsList(String, String[])
Declaration
List<string> ExecLuaAsList(string luaBody, params string[] args)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | luaBody |
System.String[] | args |
ExecLuaAsList(String, String[], String[])
Declaration
List<string> ExecLuaAsList(string luaBody, string[] keys, string[] args)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | luaBody |
System.String[] | keys |
System.String[] | args |
ExecLuaShaAsList(String, String[])
Declaration
List<string> ExecLuaShaAsList(string sha1, params string[] args)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | sha1 |
System.String[] | args |
ExecLuaShaAsList(String, String[], String[])
Declaration
List<string> ExecLuaShaAsList(string sha1, string[] keys, string[] args)
Returns
System.Collections.Generic.List<System.String>
Parameters
| Type | Name |
|---|
System.String | sha1 |
System.String[] | keys |
System.String[] | args |
CalculateSha1(String)
Declaration
string CalculateSha1(string luaBody)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | luaBody |
HasLuaScript(String)
Declaration
bool HasLuaScript(string sha1Ref)
Returns
System.Boolean
Parameters
| Type | Name |
|---|
System.String | sha1Ref |
WhichLuaScriptsExists(String[])
Declaration
Dictionary<string, bool> WhichLuaScriptsExists(params string[] sha1Refs)
Returns
System.Collections.Generic.Dictionary<System.String,System.Boolean>
Parameters
| Type | Name |
|---|
System.String[] | sha1Refs |
RemoveAllLuaScripts()
Declaration
void RemoveAllLuaScripts()
KillRunningLuaScript()
Declaration
void KillRunningLuaScript()
LoadLuaScript(String)
Declaration
string LoadLuaScript(string body)
Returns
System.String
Parameters
| Type | Name |
|---|
System.String | body |