RedisClient
The client wraps the native redis operations into a more readable c# API.
Where possible these operations are also exposed in common c# interfaces,
e.g. RedisClient.Lists => IList[string]
RedisClient.Sets => ICollection[string]
Assembly: ServiceStack.Redis.dll
Declaration
public class RedisClient : RedisNativeClient, IRedisNativeClientAsync, IRedisNativeClient, IRedisClientAsync, IEntityStoreAsync, IRemoveByPatternAsync, ICacheClientAsync, IRedisClient, IEntityStore, ICacheClientExtended, IRemoveByPattern, ICacheClient, IDisposable
Properties
IRedisClientAsync.Lists
Declaration
IHasNamed<IRedisListAsync> IRedisClientAsync.Lists { get; }
IRedisClientAsync.Sets
Declaration
IHasNamed<IRedisSetAsync> IRedisClientAsync.Sets { get; }
IRedisClientAsync.SortedSets
Declaration
IHasNamed<IRedisSortedSetAsync> IRedisClientAsync.SortedSets { get; }
IRedisClientAsync.Hashes
Declaration
IHasNamed<IRedisHashAsync> IRedisClientAsync.Hashes { get; }
Item[String]
Declaration
public string this[string key] { get; set; }
Hashes
Declaration
public IHasNamed<IRedisHash> Hashes { get; set; }
Lists
Declaration
public IHasNamed<IRedisList> Lists { get; set; }
Sets
Declaration
public IHasNamed<IRedisSet> Sets { get; set; }
SortedSets
Declaration
public IHasNamed<IRedisSortedSet> SortedSets { get; set; }
Inherited Properties
Client
Declaration
public string Client { get; set; }
ClientId
Declaration
public long ClientId { get; }
ConnectionFilter
Declaration
public Action<IRedisNativeClient> ConnectionFilter { get; set; }
ConnectTimeout
Declaration
public int ConnectTimeout { get; set; }
Declaration
public long Db { get; set; }
DbSize
Declaration
public long DbSize { get; }
DeactivatedAt
Declaration
public DateTime? DeactivatedAt { get; set; }
HadExceptions
Declaration
public bool HadExceptions { get; }
HasConnected
Declaration
public bool HasConnected { get; }
Host
Declaration
public string Host { get; }
Declaration
public long Id { get; set; }
IdleTimeOutSecs
Declaration
public int IdleTimeOutSecs { get; set; }
Info
Declaration
public Dictionary<string, string> Info { get; }
IsManagedClient
Declaration
public bool IsManagedClient { get; }
LastConnectedSecs
Declaration
public long LastConnectedSecs { get; }
LastSave
Declaration
public DateTime LastSave { get; }
NamespacePrefix
Gets or sets object key prefix.
Declaration
public string NamespacePrefix { get; set; }
OnBeforeFlush
Declaration
public Action OnBeforeFlush { get; set; }
Password
Declaration
public string Password { get; set; }
Port
ReceiveTimeout
Declaration
public int ReceiveTimeout { get; set; }
RequestsPerHour
Declaration
public static int RequestsPerHour { get; }
RetryCount
Declaration
public int RetryCount { get; set; }
RetryTimeout
Declaration
public int RetryTimeout { get; set; }
SendTimeout
Declaration
public int SendTimeout { get; set; }
ServerVersion
Declaration
public string ServerVersion { get; }
ServerVersionNumber
Declaration
public static int ServerVersionNumber { get; set; }
Ssl
SslProtocols
Declaration
public SslProtocols? SslProtocols { get; }
Username
ACL Username
Declaration
public string Username { get; set; }
Fields
NewFactoryFn
Declaration
public static Func<RedisClient> NewFactoryFn
ConvertToHashFn
Declaration
public static Func<object, Dictionary<string, string>> ConvertToHashFn
Methods
AsAsync()
Access this instance for async usage
Declaration
public IRedisClientAsync AsAsync()
Returns
ServiceStack.Redis.IRedisClientAsync
IRedisClientAsync.As<T>()
Declaration
IRedisTypedClientAsync<T> IRedisClientAsync.As<T>()
Returns
ServiceStack.Redis.Generic.IRedisTypedClientAsync<T>
Type Parameters
IRedisClientAsync.CreatePipeline()
Declaration
IRedisPipelineAsync IRedisClientAsync.CreatePipeline()
Returns
ServiceStack.Redis.Pipeline.IRedisPipelineAsync
ICacheClientAsync.GetAsync<T>(String, CancellationToken)
Declaration
Task<T> ICacheClientAsync.GetAsync<T>(string key, CancellationToken token)
Returns
System.Threading.Tasks.Task<<T>>
Parameters
Type | Name |
---|
System.String | key |
System.Threading.CancellationToken | token |
Type Parameters
ICacheClientAsync.SetAllAsync<T>(IDictionary<String, T>, CancellationToken)
Declaration
Task ICacheClientAsync.SetAllAsync<T>(IDictionary<string, T> values, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Collections.Generic.IDictionary<System.String,<T>> | values |
System.Threading.CancellationToken | token |
Type Parameters
ICacheClientAsync.GetTimeToLiveAsync(String, CancellationToken)
Declaration
Task<TimeSpan?> ICacheClientAsync.GetTimeToLiveAsync(string key, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Nullable<System.TimeSpan>>
Parameters
Type | Name |
---|
System.String | key |
System.Threading.CancellationToken | token |
ICacheClientAsync.SetAsync<T>(String, T, CancellationToken)
Declaration
Task<bool> ICacheClientAsync.SetAsync<T>(string key, T value, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.Threading.CancellationToken | token |
Type Parameters
ICacheClientAsync.SetAsync<T>(String, T, DateTime, CancellationToken)
Declaration
Task<bool> ICacheClientAsync.SetAsync<T>(string key, T value, DateTime expiresAt, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.DateTime | expiresAt |
System.Threading.CancellationToken | token |
Type Parameters
ICacheClientAsync.SetAsync<T>(String, T, TimeSpan, CancellationToken)
Declaration
Task<bool> ICacheClientAsync.SetAsync<T>(string key, T value, TimeSpan expiresIn, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.TimeSpan | expiresIn |
System.Threading.CancellationToken | token |
Type Parameters
ICacheClientAsync.FlushAllAsync(CancellationToken)
Declaration
Task ICacheClientAsync.FlushAllAsync(CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Threading.CancellationToken | token |
ICacheClientAsync.GetAllAsync<T>(IEnumerable<String>, CancellationToken)
Declaration
Task<IDictionary<string, T>> ICacheClientAsync.GetAllAsync<T>(IEnumerable<string> keys, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String,<T>>>
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.String> | keys |
System.Threading.CancellationToken | token |
Type Parameters
ICacheClientAsync.RemoveAsync(String, CancellationToken)
Declaration
Task<bool> ICacheClientAsync.RemoveAsync(string key, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|
System.String | key |
System.Threading.CancellationToken | token |
ICacheClientAsync.RemoveExpiredEntriesAsync(CancellationToken)
Declaration
Task ICacheClientAsync.RemoveExpiredEntriesAsync(CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Threading.CancellationToken | token |
IRemoveByPatternAsync.RemoveByPatternAsync(String, CancellationToken)
Declaration
async Task IRemoveByPatternAsync.RemoveByPatternAsync(string pattern, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.String | pattern |
System.Threading.CancellationToken | token |
IRemoveByPatternAsync.RemoveByRegexAsync(String, CancellationToken)
Declaration
Task IRemoveByPatternAsync.RemoveByRegexAsync(string regex, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.String | regex |
System.Threading.CancellationToken | token |
ICacheClientAsync.RemoveAllAsync(IEnumerable<String>, CancellationToken)
Declaration
Task ICacheClientAsync.RemoveAllAsync(IEnumerable<string> keys, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.String> | keys |
System.Threading.CancellationToken | token |
ICacheClientAsync.IncrementAsync(String, UInt32, CancellationToken)
Declaration
Task<long> ICacheClientAsync.IncrementAsync(string key, uint amount, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Int64>
Parameters
Type | Name |
---|
System.String | key |
System.UInt32 | amount |
System.Threading.CancellationToken | token |
ICacheClientAsync.DecrementAsync(String, UInt32, CancellationToken)
Declaration
Task<long> ICacheClientAsync.DecrementAsync(string key, uint amount, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Int64>
Parameters
Type | Name |
---|
System.String | key |
System.UInt32 | amount |
System.Threading.CancellationToken | token |
ICacheClientAsync.AddAsync<T>(String, T, CancellationToken)
Declaration
Task<bool> ICacheClientAsync.AddAsync<T>(string key, T value, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.Threading.CancellationToken | token |
Type Parameters
ICacheClientAsync.ReplaceAsync<T>(String, T, CancellationToken)
Declaration
Task<bool> ICacheClientAsync.ReplaceAsync<T>(string key, T value, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.Threading.CancellationToken | token |
Type Parameters
ICacheClientAsync.AddAsync<T>(String, T, DateTime, CancellationToken)
Declaration
Task<bool> ICacheClientAsync.AddAsync<T>(string key, T value, DateTime expiresAt, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.DateTime | expiresAt |
System.Threading.CancellationToken | token |
Type Parameters
ICacheClientAsync.ReplaceAsync<T>(String, T, DateTime, CancellationToken)
Declaration
Task<bool> ICacheClientAsync.ReplaceAsync<T>(string key, T value, DateTime expiresAt, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.DateTime | expiresAt |
System.Threading.CancellationToken | token |
Type Parameters
ICacheClientAsync.AddAsync<T>(String, T, TimeSpan, CancellationToken)
Declaration
Task<bool> ICacheClientAsync.AddAsync<T>(string key, T value, TimeSpan expiresIn, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.TimeSpan | expiresIn |
System.Threading.CancellationToken | token |
Type Parameters
ICacheClientAsync.ReplaceAsync<T>(String, T, TimeSpan, CancellationToken)
Declaration
Task<bool> ICacheClientAsync.ReplaceAsync<T>(string key, T value, TimeSpan expiresIn, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.TimeSpan | expiresIn |
System.Threading.CancellationToken | token |
Type Parameters
IEntityStoreAsync.GetByIdAsync<T>(Object, CancellationToken)
Declaration
async Task<T> IEntityStoreAsync.GetByIdAsync<T>(object id, CancellationToken token)
Returns
System.Threading.Tasks.Task<<T>>
Parameters
Type | Name |
---|
System.Object | id |
System.Threading.CancellationToken | token |
Type Parameters
IEntityStoreAsync.GetByIdsAsync<T>(ICollection, CancellationToken)
Declaration
async Task<IList<T>> IEntityStoreAsync.GetByIdsAsync<T>(ICollection ids, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IList<<T>>>
Parameters
Type | Name |
---|
System.Collections.ICollection | ids |
System.Threading.CancellationToken | token |
Type Parameters
IEntityStoreAsync.StoreAsync<T>(T, CancellationToken)
Declaration
async Task<T> IEntityStoreAsync.StoreAsync<T>(T entity, CancellationToken token)
Returns
System.Threading.Tasks.Task<<T>>
Parameters
Type | Name |
---|
<T> | entity |
System.Threading.CancellationToken | token |
Type Parameters
IEntityStoreAsync.StoreAllAsync<TEntity>(IEnumerable<TEntity>, CancellationToken)
Declaration
Task IEntityStoreAsync.StoreAllAsync<TEntity>(IEnumerable<TEntity> entities, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<<TEntity>> | entities |
System.Threading.CancellationToken | token |
Type Parameters
IEntityStoreAsync.DeleteAsync<T>(T, CancellationToken)
Declaration
async Task IEntityStoreAsync.DeleteAsync<T>(T entity, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
<T> | entity |
System.Threading.CancellationToken | token |
Type Parameters
IEntityStoreAsync.DeleteByIdAsync<T>(Object, CancellationToken)
Declaration
async Task IEntityStoreAsync.DeleteByIdAsync<T>(object id, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Object | id |
System.Threading.CancellationToken | token |
Type Parameters
IEntityStoreAsync.DeleteByIdsAsync<T>(ICollection, CancellationToken)
Declaration
async Task IEntityStoreAsync.DeleteByIdsAsync<T>(ICollection ids, CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Collections.ICollection | ids |
System.Threading.CancellationToken | token |
Type Parameters
IEntityStoreAsync.DeleteAllAsync<TEntity>(CancellationToken)
Declaration
async Task IEntityStoreAsync.DeleteAllAsync<T>(CancellationToken token)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Threading.CancellationToken | token |
Type Parameters
New()
Creates a new instance of the Redis Client from NewFactoryFn.
Declaration
public static RedisClient New()
Returns
ServiceStack.Redis.RedisClient
Init()
OnConnected()
Declaration
public override void OnConnected()
Custom(Object[])
Declaration
public RedisText Custom(params object[] cmdWithArgs)
Returns
ServiceStack.Redis.RedisText
Parameters
Type | Name |
---|
System.Object[] | cmdWithArgs |
ConvertToServerDate(DateTime)
Declaration
public DateTime ConvertToServerDate(DateTime expiresAt)
Returns
System.DateTime
Parameters
Type | Name |
---|
System.DateTime | expiresAt |
GetTypeSequenceKey<T>()
Declaration
public string GetTypeSequenceKey<T>()
Returns
System.String
Type Parameters
GetTypeIdsSetKey<T>()
Declaration
public string GetTypeIdsSetKey<T>()
Returns
System.String
Type Parameters
GetTypeIdsSetKey(Type)
Declaration
public string GetTypeIdsSetKey(Type type)
Returns
System.String
Parameters
RewriteAppendOnlyFileAsync()
Declaration
public void RewriteAppendOnlyFileAsync()
GetAllKeys()
Declaration
public List<string> GetAllKeys()
Returns
System.Collections.Generic.List<System.String>
SetValue(String, String)
Declaration
public void SetValue(string key, string value)
Parameters
Type | Name |
---|
System.String | key |
System.String | value |
SetValue(Byte[], Byte[], TimeSpan)
Declaration
public bool SetValue(byte[] key, byte[] value, TimeSpan expireIn)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Byte[] | key |
System.Byte[] | value |
System.TimeSpan | expireIn |
SetValue(String, String, TimeSpan)
Declaration
public void SetValue(string key, string value, TimeSpan expireIn)
Parameters
Type | Name |
---|
System.String | key |
System.String | value |
System.TimeSpan | expireIn |
SetValueIfExists(String, String)
Declaration
public bool SetValueIfExists(string key, string value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.String | value |
SetValueIfNotExists(String, String)
Declaration
public bool SetValueIfNotExists(string key, string value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.String | value |
SetValueIfExists(String, String, TimeSpan)
Declaration
public bool SetValueIfExists(string key, string value, TimeSpan expireIn)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.String | value |
System.TimeSpan | expireIn |
SetValueIfNotExists(String, String, TimeSpan)
Declaration
public bool SetValueIfNotExists(string key, string value, TimeSpan expireIn)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.String | value |
System.TimeSpan | expireIn |
SetValues(Dictionary<String, String>)
Declaration
public void SetValues(Dictionary<string, string> map)
Parameters
Type | Name |
---|
System.Collections.Generic.Dictionary<System.String,System.String> | map |
SetAll(IEnumerable<String>, IEnumerable<String>)
Declaration
public 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
public void SetAll(Dictionary<string, string> map)
Parameters
Type | Name |
---|
System.Collections.Generic.Dictionary<System.String,System.String> | map |
GetValue(String)
Declaration
public string GetValue(string key)
Returns
System.String
Parameters
GetAndSetValue(String, String)
Declaration
public string GetAndSetValue(string key, string value)
Returns
System.String
Parameters
Type | Name |
---|
System.String | key |
System.String | value |
ContainsKey(String)
Declaration
public bool ContainsKey(string key)
Returns
System.Boolean
Parameters
Remove(String)
Declaration
public bool Remove(string key)
Returns
System.Boolean
Parameters
Remove(Byte[])
Declaration
public bool Remove(byte[] key)
Returns
System.Boolean
Parameters
RemoveEntry(String[])
Declaration
public bool RemoveEntry(params string[] keys)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String[] | keys |
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 |
IncrementValueBy(String, Int64)
Declaration
public long IncrementValueBy(string key, long count)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Int64 | count |
IncrementValueBy(String, Double)
Declaration
public double IncrementValueBy(string key, double count)
Returns
System.Double
Parameters
Type | Name |
---|
System.String | key |
System.Double | 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 |
AppendTo(String, String)
Declaration
public long AppendTo(string key, string value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.String | value |
Slice(String, Int32, Int32)
Declaration
public 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
public 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
public void RenameKey(string fromName, string toName)
Parameters
Type | Name |
---|
System.String | fromName |
System.String | toName |
GetStringCount(String)
Declaration
public long GetStringCount(string key)
Returns
System.Int64
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 |
ExpireEntryIn(Byte[], TimeSpan)
Declaration
public bool ExpireEntryIn(byte[] key, TimeSpan expireIn)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Byte[] | 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 |
GetTimeToLive(String)
Declaration
public TimeSpan? GetTimeToLive(string key)
Returns
System.Nullable<System.TimeSpan>
Parameters
RemoveExpiredEntries()
Declaration
public void RemoveExpiredEntries()
As<T>()
Declaration
public IRedisTypedClient<T> As<T>()
Returns
ServiceStack.Redis.Generic.IRedisTypedClient<T>
Type Parameters
AcquireLock(String)
Declaration
public IDisposable AcquireLock(string key)
Returns
System.IDisposable
Parameters
AcquireLock(String, TimeSpan)
Declaration
public IDisposable AcquireLock(string key, TimeSpan timeOut)
Returns
System.IDisposable
Parameters
Type | Name |
---|
System.String | key |
System.TimeSpan | timeOut |
CreateTransaction()
Declaration
public IRedisTransaction CreateTransaction()
Returns
ServiceStack.Redis.IRedisTransaction
AssertNotInTransaction()
Declaration
public void AssertNotInTransaction()
CreatePipeline()
Declaration
public IRedisPipeline CreatePipeline()
Returns
ServiceStack.Redis.Pipeline.IRedisPipeline
SearchKeys(String)
Declaration
public List<string> SearchKeys(string pattern)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.String | pattern |
GetValues(List<String>)
Declaration
public 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
public 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
public 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
public 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
CreateSubscription()
Declaration
public override IRedisSubscription CreateSubscription()
Returns
ServiceStack.Redis.IRedisSubscription
PublishMessage(String, String)
Declaration
public long PublishMessage(string toChannel, string message)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | toChannel |
System.String | message |
GetById<T>(Object)
Declaration
public T GetById<T>(object id)
Returns
<T>
Parameters
Type Parameters
GetByIds<T>(ICollection)
Declaration
public IList<T> GetByIds<T>(ICollection ids)
Returns
System.Collections.Generic.IList<<T>>
Parameters
Type | Name |
---|
System.Collections.ICollection | ids |
Type Parameters
GetAll<T>()
Declaration
public IList<T> GetAll<T>()
Returns
System.Collections.Generic.IList<<T>>
Type Parameters
Store<T>(T)
Declaration
public T Store<T>(T entity)
Returns
<T>
Parameters
Type Parameters
StoreObject(Object)
Declaration
public object StoreObject(object entity)
Returns
System.Object
Parameters
Type | Name |
---|
System.Object | entity |
StoreAll<TEntity>(IEnumerable<TEntity>)
Declaration
public void StoreAll<TEntity>(IEnumerable<TEntity> entities)
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<<TEntity>> | entities |
Type Parameters
GetFromHash<T>(Object)
Declaration
public T GetFromHash<T>(object id)
Returns
<T>
Parameters
Type Parameters
StoreAsHash<T>(T)
Store object fields as a dictionary of values in a Hash value.
Conversion to Dictionary can be customized with RedisClient.ConvertToHashFn
Declaration
public void StoreAsHash<T>(T entity)
Parameters
Type Parameters
WriteAll<TEntity>(IEnumerable<TEntity>)
Declaration
public void WriteAll<TEntity>(IEnumerable<TEntity> entities)
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<<TEntity>> | entities |
Type Parameters
SerializeToUtf8Bytes<T>(T)
Declaration
public static byte[] SerializeToUtf8Bytes<T>(T value)
Returns
System.Byte[]
Parameters
Type Parameters
Delete<T>(T)
Declaration
public void Delete<T>(T entity)
Parameters
Type Parameters
DeleteById<T>(Object)
Declaration
public void DeleteById<T>(object id)
Parameters
Type Parameters
DeleteByIds<T>(ICollection)
Declaration
public void DeleteByIds<T>(ICollection ids)
Parameters
Type | Name |
---|
System.Collections.ICollection | ids |
Type Parameters
DeleteAll<T>()
Declaration
public void DeleteAll<T>()
Type Parameters
CloneClient()
Declaration
public RedisClient CloneClient()
Returns
ServiceStack.Redis.RedisClient
UrnKey<T>(T)
Returns key with automatic object id detection in provided value with <typeparam name="T">generic type</typeparam>.
Declaration
public string UrnKey<T>(T value)
Returns
System.String
Parameters
Type Parameters
UrnKey<T>(Object)
Returns key with explicit object id.
Declaration
public string UrnKey<T>(object id)
Returns
System.String
Parameters
Type Parameters
UrnKey(Type, Object)
Returns key with explicit object type and id.
Declaration
public string UrnKey(Type type, object id)
Returns
System.String
Parameters
Type | Name |
---|
System.Type | type |
System.Object | id |
ExecCachedLua<T>(String, Func<String, T>)
Declaration
public 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
public 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
public 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
public 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
public RedisText ExecLuaSha(string sha1, string[] keys, string[] args)
Returns
ServiceStack.Redis.RedisText
Parameters
Type | Name |
---|
System.String | sha1 |
System.String[] | keys |
System.String[] | args |
ExecLuaAsInt(String, String[])
Declaration
public long ExecLuaAsInt(string body, params string[] args)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | body |
System.String[] | args |
ExecLuaAsInt(String, String[], String[])
Declaration
public 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
public long ExecLuaShaAsInt(string sha1, params string[] args)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | sha1 |
System.String[] | args |
ExecLuaShaAsInt(String, String[], String[])
Declaration
public long ExecLuaShaAsInt(string sha1, string[] keys, string[] args)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | sha1 |
System.String[] | keys |
System.String[] | args |
ExecLuaAsString(String, String[])
Declaration
public string ExecLuaAsString(string body, params string[] args)
Returns
System.String
Parameters
Type | Name |
---|
System.String | body |
System.String[] | args |
ExecLuaAsString(String, String[], String[])
Declaration
public string ExecLuaAsString(string sha1, string[] keys, string[] args)
Returns
System.String
Parameters
Type | Name |
---|
System.String | sha1 |
System.String[] | keys |
System.String[] | args |
ExecLuaShaAsString(String, String[])
Declaration
public string ExecLuaShaAsString(string sha1, params string[] args)
Returns
System.String
Parameters
Type | Name |
---|
System.String | sha1 |
System.String[] | args |
ExecLuaShaAsString(String, String[], String[])
Declaration
public string ExecLuaShaAsString(string sha1, string[] keys, string[] args)
Returns
System.String
Parameters
Type | Name |
---|
System.String | sha1 |
System.String[] | keys |
System.String[] | args |
ExecLuaAsList(String, String[])
Declaration
public List<string> ExecLuaAsList(string body, params string[] args)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.String | body |
System.String[] | args |
ExecLuaAsList(String, String[], String[])
Declaration
public 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
public 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
public 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 |
HasLuaScript(String)
Declaration
public bool HasLuaScript(string sha1Ref)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | sha1Ref |
WhichLuaScriptsExists(String[])
Declaration
public Dictionary<string, bool> WhichLuaScriptsExists(params string[] sha1Refs)
Returns
System.Collections.Generic.Dictionary<System.String,System.Boolean>
Parameters
Type | Name |
---|
System.String[] | sha1Refs |
RemoveAllLuaScripts()
Declaration
public void RemoveAllLuaScripts()
KillRunningLuaScript()
Declaration
public void KillRunningLuaScript()
LoadLuaScript(String)
Declaration
public string LoadLuaScript(string body)
Returns
System.String
Parameters
Type | Name |
---|
System.String | body |
RemoveByPattern(String)
Declaration
public void RemoveByPattern(string pattern)
Parameters
Type | Name |
---|
System.String | pattern |
RemoveByRegex(String)
Declaration
public void RemoveByRegex(string pattern)
Parameters
Type | Name |
---|
System.String | pattern |
ScanAllKeys(String, Int32)
Declaration
public 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
public 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
public 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
public 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
public bool AddToHyperLog(string key, params string[] elements)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.String[] | elements |
CountHyperLog(String)
Declaration
public long CountHyperLog(string key)
Returns
System.Int64
Parameters
MergeHyperLogs(String, String[])
Declaration
public void MergeHyperLogs(string toKey, params string[] fromKeys)
Parameters
Type | Name |
---|
System.String | toKey |
System.String[] | fromKeys |
GetServerRole()
Declaration
public RedisServerRole GetServerRole()
Returns
ServiceStack.Redis.RedisServerRole
Exec<T>(Func<RedisClient, T>)
Declaration
public T Exec<T>(Func<RedisClient, T> action)
Returns
<T>
Parameters
Type | Name |
---|
System.Func<ServiceStack.Redis.RedisClient,<T>> | action |
Type Parameters
Exec(Action<RedisClient>)
Declaration
public void Exec(Action<RedisClient> action)
Parameters
Type | Name |
---|
System.Action<ServiceStack.Redis.RedisClient> | action |
RemoveAll(IEnumerable<String>)
Declaration
public void RemoveAll(IEnumerable<string> keys)
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.String> | keys |
Get<T>(String)
Declaration
public T Get<T>(string key)
Returns
<T>
Parameters
Type Parameters
Increment(String, UInt32)
Declaration
public long Increment(string key, uint amount)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.UInt32 | amount |
Decrement(String, UInt32)
Declaration
public long Decrement(string key, uint amount)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.UInt32 | amount |
Add<T>(String, T)
Declaration
public bool Add<T>(string key, T value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
Type Parameters
Set<T>(String, T)
Declaration
public bool Set<T>(string key, T value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
Type Parameters
Replace<T>(String, T)
Declaration
public bool Replace<T>(string key, T value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
Type Parameters
Add<T>(String, T, DateTime)
Declaration
public bool Add<T>(string key, T value, DateTime expiresAt)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.DateTime | expiresAt |
Type Parameters
Add<T>(String, T, TimeSpan)
Declaration
public bool Add<T>(string key, T value, TimeSpan expiresIn)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.TimeSpan | expiresIn |
Type Parameters
Set<T>(String, T, TimeSpan)
Declaration
public bool Set<T>(string key, T value, TimeSpan expiresIn)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.TimeSpan | expiresIn |
Type Parameters
Set<T>(String, T, DateTime)
Declaration
public bool Set<T>(string key, T value, DateTime expiresAt)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.DateTime | expiresAt |
Type Parameters
Replace<T>(String, T, DateTime)
Declaration
public bool Replace<T>(string key, T value, DateTime expiresAt)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.DateTime | expiresAt |
Type Parameters
Replace<T>(String, T, TimeSpan)
Declaration
public bool Replace<T>(string key, T value, TimeSpan expiresIn)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
System.TimeSpan | expiresIn |
Type Parameters
GetAll<T>(IEnumerable<String>)
Declaration
public IDictionary<string, T> GetAll<T>(IEnumerable<string> keys)
Returns
System.Collections.Generic.IDictionary<System.String,<T>>
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.String> | keys |
Type Parameters
SetAll<T>(IDictionary<String, T>)
Declaration
public void SetAll<T>(IDictionary<string, T> values)
Parameters
Type | Name |
---|
System.Collections.Generic.IDictionary<System.String,<T>> | values |
Type Parameters
SetConfig(String, String)
Declaration
public void SetConfig(string configItem, string value)
Parameters
Type | Name |
---|
System.String | configItem |
System.String | value |
GetServerRoleInfo()
Declaration
public RedisText GetServerRoleInfo()
Returns
ServiceStack.Redis.RedisText
GetConfig(String)
Declaration
public string GetConfig(string configItem)
Returns
System.String
Parameters
Type | Name |
---|
System.String | configItem |
SaveConfig()
ResetInfoStats()
Declaration
public void ResetInfoStats()
GetClient()
Declaration
public string GetClient()
Returns
System.String
SetClient(String)
Declaration
public void SetClient(string name)
Parameters
Type | Name |
---|
System.String | name |
KillClient(String)
Declaration
public void KillClient(string address)
Parameters
Type | Name |
---|
System.String | address |
KillClients(String, String, Nullable<RedisClientType>, Nullable<Boolean>)
Declaration
public 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
public List<Dictionary<string, string>> GetClientsInfo()
Returns
System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>
PauseAllClients(TimeSpan)
Declaration
public void PauseAllClients(TimeSpan duration)
Parameters
Type | Name |
---|
System.TimeSpan | duration |
GetServerTime()
Declaration
public DateTime GetServerTime()
Returns
System.DateTime
SetEntryInHash(String, String, String)
Declaration
public 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
public 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
public 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
public 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, Int64)
Declaration
public long IncrementValueInHash(string hashId, string key, long incrementBy)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | hashId |
System.String | key |
System.Int64 | incrementBy |
IncrementValueInHash(String, String, Double)
Declaration
public 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
public string GetValueFromHash(string hashId, string key)
Returns
System.String
Parameters
Type | Name |
---|
System.String | hashId |
System.String | key |
HashContainsEntry(String, String)
Declaration
public bool HashContainsEntry(string hashId, string key)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | hashId |
System.String | key |
RemoveEntryFromHash(String, String)
Declaration
public bool RemoveEntryFromHash(string hashId, string key)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | hashId |
System.String | key |
GetHashCount(String)
Declaration
public long GetHashCount(string hashId)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | hashId |
GetHashKeys(String)
Declaration
public List<string> GetHashKeys(string hashId)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.String | hashId |
GetHashValues(String)
Declaration
public List<string> GetHashValues(string hashId)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.String | hashId |
GetAllEntriesFromHash(String)
Declaration
public Dictionary<string, string> GetAllEntriesFromHash(string hashId)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|
System.String | hashId |
GetValuesFromHash(String, String[])
Declaration
public List<string> GetValuesFromHash(string hashId, params string[] keys)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.String | hashId |
System.String[] | keys |
GetAllItemsFromList(String)
Declaration
public List<string> GetAllItemsFromList(string listId)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.String | listId |
GetRangeFromList(String, Int32, Int32)
Declaration
public 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
public 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
public List<string> GetSortedItemsFromList(string listId, SortOptions sortOptions)
Returns
System.Collections.Generic.List<System.String>
Parameters
AddItemToList(String, String)
Declaration
public void AddItemToList(string listId, string value)
Parameters
Type | Name |
---|
System.String | listId |
System.String | value |
AddRangeToList(String, List<String>)
Declaration
public void AddRangeToList(string listId, List<string> values)
Parameters
Type | Name |
---|
System.String | listId |
System.Collections.Generic.List<System.String> | values |
PrependItemToList(String, String)
Declaration
public void PrependItemToList(string listId, string value)
Parameters
Type | Name |
---|
System.String | listId |
System.String | value |
PrependRangeToList(String, List<String>)
Declaration
public void PrependRangeToList(string listId, List<string> values)
Parameters
Type | Name |
---|
System.String | listId |
System.Collections.Generic.List<System.String> | values |
RemoveAllFromList(String)
Declaration
public void RemoveAllFromList(string listId)
Parameters
Type | Name |
---|
System.String | listId |
RemoveStartFromList(String)
Declaration
public string RemoveStartFromList(string listId)
Returns
System.String
Parameters
Type | Name |
---|
System.String | listId |
BlockingRemoveStartFromList(String, Nullable<TimeSpan>)
Declaration
public 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
public ItemRef BlockingRemoveStartFromLists(string[] listIds, TimeSpan? timeOut)
Returns
ServiceStack.Redis.ItemRef
Parameters
Type | Name |
---|
System.String[] | listIds |
System.Nullable<System.TimeSpan> | timeOut |
RemoveEndFromList(String)
Declaration
public string RemoveEndFromList(string listId)
Returns
System.String
Parameters
Type | Name |
---|
System.String | listId |
TrimList(String, Int32, Int32)
Declaration
public void TrimList(string listId, int keepStartingFrom, int keepEndingAt)
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | keepStartingFrom |
System.Int32 | keepEndingAt |
RemoveItemFromList(String, String)
Declaration
public long RemoveItemFromList(string listId, string value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | listId |
System.String | value |
RemoveItemFromList(String, String, Int32)
Declaration
public 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
public long GetListCount(string listId)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | listId |
GetItemFromList(String, Int32)
Declaration
public string GetItemFromList(string listId, int listIndex)
Returns
System.String
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | listIndex |
SetItemInList(String, Int32, String)
Declaration
public void SetItemInList(string listId, int listIndex, string value)
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | listIndex |
System.String | value |
EnqueueItemOnList(String, String)
Declaration
public void EnqueueItemOnList(string listId, string value)
Parameters
Type | Name |
---|
System.String | listId |
System.String | value |
DequeueItemFromList(String)
Declaration
public string DequeueItemFromList(string listId)
Returns
System.String
Parameters
Type | Name |
---|
System.String | listId |
BlockingDequeueItemFromList(String, Nullable<TimeSpan>)
Declaration
public 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
public 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
public void PushItemToList(string listId, string value)
Parameters
Type | Name |
---|
System.String | listId |
System.String | value |
PopItemFromList(String)
Declaration
public string PopItemFromList(string listId)
Returns
System.String
Parameters
Type | Name |
---|
System.String | listId |
BlockingPopItemFromList(String, Nullable<TimeSpan>)
Declaration
public 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
public 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
public string PopAndPushItemBetweenLists(string fromListId, string toListId)
Returns
System.String
Parameters
Type | Name |
---|
System.String | fromListId |
System.String | toListId |
BlockingPopAndPushItemBetweenLists(String, String, Nullable<TimeSpan>)
Declaration
public 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 |
GetSortedEntryValues(String, Int32, Int32)
Declaration
public List<string> GetSortedEntryValues(string setId, int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.String | setId |
System.Int32 | startingFrom |
System.Int32 | endingAt |
AddGeoMember(String, Double, Double, String)
Declaration
public 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
public long AddGeoMembers(string key, params RedisGeo[] geoPoints)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
ServiceStack.Redis.RedisGeo[] | geoPoints |
Declaration
public 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
public string[] GetGeohashes(string key, params string[] members)
Returns
System.String[]
Parameters
Type | Name |
---|
System.String | key |
System.String[] | members |
GetGeoCoordinates(String, String[])
Declaration
public 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
public 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
public 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
public 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
public 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 |
GetAllItemsFromSet(String)
Declaration
public HashSet<string> GetAllItemsFromSet(string setId)
Returns
System.Collections.Generic.HashSet<System.String>
Parameters
Type | Name |
---|
System.String | setId |
AddItemToSet(String, String)
Declaration
public void AddItemToSet(string setId, string item)
Parameters
Type | Name |
---|
System.String | setId |
System.String | item |
AddRangeToSet(String, List<String>)
Declaration
public void AddRangeToSet(string setId, List<string> items)
Parameters
Type | Name |
---|
System.String | setId |
System.Collections.Generic.List<System.String> | items |
RemoveItemFromSet(String, String)
Declaration
public void RemoveItemFromSet(string setId, string item)
Parameters
Type | Name |
---|
System.String | setId |
System.String | item |
PopItemFromSet(String)
Declaration
public string PopItemFromSet(string setId)
Returns
System.String
Parameters
Type | Name |
---|
System.String | setId |
PopItemsFromSet(String, Int32)
Declaration
public 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
public void MoveBetweenSets(string fromSetId, string toSetId, string item)
Parameters
Type | Name |
---|
System.String | fromSetId |
System.String | toSetId |
System.String | item |
GetSetCount(String)
Declaration
public long GetSetCount(string setId)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
SetContainsItem(String, String)
Declaration
public bool SetContainsItem(string setId, string item)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | setId |
System.String | item |
GetIntersectFromSets(String[])
Declaration
public HashSet<string> GetIntersectFromSets(params string[] setIds)
Returns
System.Collections.Generic.HashSet<System.String>
Parameters
Type | Name |
---|
System.String[] | setIds |
StoreIntersectFromSets(String, String[])
Declaration
public void StoreIntersectFromSets(string intoSetId, params string[] setIds)
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String[] | setIds |
GetUnionFromSets(String[])
Declaration
public HashSet<string> GetUnionFromSets(params string[] setIds)
Returns
System.Collections.Generic.HashSet<System.String>
Parameters
Type | Name |
---|
System.String[] | setIds |
StoreUnionFromSets(String, String[])
Declaration
public void StoreUnionFromSets(string intoSetId, params string[] setIds)
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String[] | setIds |
GetDifferencesFromSet(String, String[])
Declaration
public 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
public void StoreDifferencesFromSet(string intoSetId, string fromSetId, params string[] withSetIds)
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String | fromSetId |
System.String[] | withSetIds |
GetRandomItemFromSet(String)
Declaration
public string GetRandomItemFromSet(string setId)
Returns
System.String
Parameters
Type | Name |
---|
System.String | setId |
GetKeysByPattern(String)
Declaration
public IEnumerable<string> GetKeysByPattern(string pattern)
Returns
System.Collections.Generic.IEnumerable<System.String>
Parameters
Type | Name |
---|
System.String | pattern |
GetSlowlog(Nullable<Int32>)
Declaration
public IEnumerable<SlowlogItem> GetSlowlog(int? numberOfRecords = null)
Returns
System.Collections.Generic.IEnumerable<ServiceStack.Redis.SlowlogItem>
Parameters
Type | Name |
---|
System.Nullable<System.Int32> | numberOfRecords |
GetLexicalScore(String)
Declaration
public static double GetLexicalScore(string value)
Returns
System.Double
Parameters
Type | Name |
---|
System.String | value |
AddItemToSortedSet(String, String)
Declaration
public bool AddItemToSortedSet(string setId, string value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | setId |
System.String | value |
AddItemToSortedSet(String, String, Double)
Declaration
public bool AddItemToSortedSet(string setId, string value, double score)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | setId |
System.String | value |
System.Double | score |
AddItemToSortedSet(String, String, Int64)
Declaration
public bool AddItemToSortedSet(string setId, string value, long score)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | setId |
System.String | value |
System.Int64 | score |
AddRangeToSortedSet(String, List<String>, Double)
Declaration
public 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
public 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
public bool RemoveItemFromSortedSet(string setId, string value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | setId |
System.String | value |
RemoveItemsFromSortedSet(String, List<String>)
Declaration
public 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
public string PopItemWithLowestScoreFromSortedSet(string setId)
Returns
System.String
Parameters
Type | Name |
---|
System.String | setId |
PopItemWithHighestScoreFromSortedSet(String)
Declaration
public string PopItemWithHighestScoreFromSortedSet(string setId)
Returns
System.String
Parameters
Type | Name |
---|
System.String | setId |
SortedSetContainsItem(String, String)
Declaration
public bool SortedSetContainsItem(string setId, string value)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | setId |
System.String | value |
IncrementItemInSortedSet(String, String, Double)
Declaration
public 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
public 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
public long GetItemIndexInSortedSet(string setId, string value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.String | value |
GetItemIndexInSortedSetDesc(String, String)
Declaration
public long GetItemIndexInSortedSetDesc(string setId, string value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.String | value |
GetAllItemsFromSortedSet(String)
Declaration
public List<string> GetAllItemsFromSortedSet(string setId)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.String | setId |
GetAllItemsFromSortedSetDesc(String)
Declaration
public List<string> GetAllItemsFromSortedSetDesc(string setId)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.String | setId |
GetRangeFromSortedSet(String, Int32, Int32)
Declaration
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public 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
public long GetSortedSetCount(string setId)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
GetSortedSetCount(String, String, String)
Declaration
public 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, Double, Double)
Declaration
public long GetSortedSetCount(string setId, double fromScore, double toScore)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
GetSortedSetCount(String, Int64, Int64)
Declaration
public long GetSortedSetCount(string setId, long fromScore, long toScore)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
GetItemScoreInSortedSet(String, String)
Declaration
public double GetItemScoreInSortedSet(string setId, string value)
Returns
System.Double
Parameters
Type | Name |
---|
System.String | setId |
System.String | value |
StoreIntersectFromSortedSets(String, String[])
Declaration
public long StoreIntersectFromSortedSets(string intoSetId, params string[] setIds)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String[] | setIds |
StoreIntersectFromSortedSets(String, String[], String[])
Declaration
public 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
public long StoreUnionFromSortedSets(string intoSetId, params string[] setIds)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String[] | setIds |
StoreUnionFromSortedSets(String, String[], String[])
Declaration
public 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
public 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
public 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
public 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 |
Inherited Methods
Append(String, Byte[])
Declaration
public long Append(string key, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Byte[] | value |
AssertServerVersionNumber()
Declaration
public int AssertServerVersionNumber()
Returns
System.Int32
BgRewriteAof()
Declaration
public void BgRewriteAof()
BgSave()
BitCount(String)
Declaration
public long BitCount(string key)
Returns
System.Int64
Parameters
BLPop(String, Int32)
Declaration
public byte[][] BLPop(string listId, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | timeOutSecs |
BLPop(String[], Int32)
Declaration
public byte[][] BLPop(string[] listIds, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | listIds |
System.Int32 | timeOutSecs |
BLPopValue(String, Int32)
Declaration
public byte[] BLPopValue(string listId, int timeOutSecs)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | timeOutSecs |
BLPopValue(String[], Int32)
Declaration
public byte[][] BLPopValue(string[] listIds, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | listIds |
System.Int32 | timeOutSecs |
BRPop(String, Int32)
Declaration
public byte[][] BRPop(string listId, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | timeOutSecs |
BRPop(String[], Int32)
Declaration
public byte[][] BRPop(string[] listIds, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | listIds |
System.Int32 | timeOutSecs |
BRPopLPush(String, String, Int32)
Declaration
public byte[] BRPopLPush(string fromListId, string toListId, int timeOutSecs)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | fromListId |
System.String | toListId |
System.Int32 | timeOutSecs |
BRPopValue(String, Int32)
Declaration
public byte[] BRPopValue(string listId, int timeOutSecs)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | timeOutSecs |
BRPopValue(String[], Int32)
Declaration
public byte[][] BRPopValue(string[] listIds, int timeOutSecs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | listIds |
System.Int32 | timeOutSecs |
CalculateSha1(String)
Declaration
public string CalculateSha1(string luaBody)
Returns
System.String
Parameters
Type | Name |
---|
System.String | luaBody |
ChangeDb(Int64)
Declaration
public void ChangeDb(long db)
Parameters
ClientGetName()
Declaration
public string ClientGetName()
Returns
System.String
ClientKill(String)
Declaration
public void ClientKill(string clientAddr)
Parameters
Type | Name |
---|
System.String | clientAddr |
ClientKill(String, String, String, String)
Declaration
public long ClientKill(string addr = null, string id = null, string type = null, string skipMe = null)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | addr |
System.String | id |
System.String | type |
System.String | skipMe |
ClientList()
Declaration
public byte[] ClientList()
Returns
System.Byte[]
ClientPause(Int32)
Declaration
public void ClientPause(int timeOutMs)
Parameters
Type | Name |
---|
System.Int32 | timeOutMs |
ClientSetName(String)
Declaration
public void ClientSetName(string name)
Parameters
Type | Name |
---|
System.String | name |
CmdLog(Byte[][])
Declaration
protected void CmdLog(byte[][] args)
Parameters
Type | Name |
---|
System.Byte[][] | args |
ConfigGet(String)
Declaration
public byte[][] ConfigGet(string pattern)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | pattern |
ConfigResetStat()
Declaration
public void ConfigResetStat()
ConfigRewrite()
Declaration
public void ConfigRewrite()
ConfigSet(String, Byte[])
Declaration
public void ConfigSet(string item, byte[] value)
Parameters
Type | Name |
---|
System.String | item |
System.Byte[] | value |
ConvertToBytes(String[])
Declaration
protected byte[][] ConvertToBytes(string[] keys)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | keys |
CreatePipelineCommand()
Declaration
public RedisPipelineCommand CreatePipelineCommand()
Returns
ServiceStack.Redis.Pipeline.RedisPipelineCommand
CreateSubscription()
Declaration
public virtual IRedisSubscription CreateSubscription()
Returns
ServiceStack.Redis.IRedisSubscription
DebugSegfault()
Declaration
public void DebugSegfault()
DebugSleep(Double)
Declaration
public void DebugSleep(double durationSecs)
Parameters
Type | Name |
---|
System.Double | durationSecs |
Decr(String)
Declaration
public long Decr(string key)
Returns
System.Int64
Parameters
DecrBy(String, Int32)
Declaration
public long DecrBy(string key, int count)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | count |
Del(Byte[])
Declaration
public long Del(byte[] key)
Returns
System.Int64
Parameters
Del(String)
Declaration
public long Del(string key)
Returns
System.Int64
Parameters
Del(String[])
Declaration
public long Del(params string[] keys)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String[] | keys |
Dispose()
Declaration
public virtual void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name |
---|
System.Boolean | disposing |
DisposeTimers()
Declaration
public static void DisposeTimers()
Dump(String)
Declaration
public byte[] Dump(string key)
Returns
System.Byte[]
Parameters
Echo(String)
Declaration
public string Echo(string text)
Returns
System.String
Parameters
Type | Name |
---|
System.String | text |
Eval(String, Int32, Byte[][])
Declaration
public byte[][] Eval(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | luaBody |
System.Int32 | numberKeysInArgs |
System.Byte[][] | keys |
EvalCommand(String, Int32, Byte[][])
Declaration
public RedisData EvalCommand(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns
ServiceStack.Redis.RedisData
Parameters
Type | Name |
---|
System.String | luaBody |
System.Int32 | numberKeysInArgs |
System.Byte[][] | keys |
EvalInt(String, Int32, Byte[][])
Declaration
public long EvalInt(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | luaBody |
System.Int32 | numberKeysInArgs |
System.Byte[][] | keys |
EvalSha(String, Int32, Byte[][])
Declaration
public byte[][] EvalSha(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | sha1 |
System.Int32 | numberKeysInArgs |
System.Byte[][] | keys |
EvalShaCommand(String, Int32, Byte[][])
Declaration
public RedisData EvalShaCommand(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns
ServiceStack.Redis.RedisData
Parameters
Type | Name |
---|
System.String | sha1 |
System.Int32 | numberKeysInArgs |
System.Byte[][] | keys |
EvalShaInt(String, Int32, Byte[][])
Declaration
public long EvalShaInt(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | sha1 |
System.Int32 | numberKeysInArgs |
System.Byte[][] | keys |
EvalShaStr(String, Int32, Byte[][])
Declaration
public string EvalShaStr(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns
System.String
Parameters
Type | Name |
---|
System.String | sha1 |
System.Int32 | numberKeysInArgs |
System.Byte[][] | keys |
EvalStr(String, Int32, Byte[][])
Declaration
public string EvalStr(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns
System.String
Parameters
Type | Name |
---|
System.String | luaBody |
System.Int32 | numberKeysInArgs |
System.Byte[][] | keys |
Exists(String)
Declaration
public long Exists(string key)
Returns
System.Int64
Parameters
ExpectSuccess()
Declaration
protected void ExpectSuccess()
ExpectSuccessFn()
Declaration
protected long ExpectSuccessFn()
Returns
System.Int64
Expire(Byte[], Int32)
Declaration
public bool Expire(byte[] key, int seconds)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Byte[] | key |
System.Int32 | seconds |
Expire(String, Int32)
Declaration
public bool Expire(string key, int seconds)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | seconds |
ExpireAt(String, Int64)
Declaration
public bool ExpireAt(string key, long unixTime)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.Int64 | unixTime |
Finalize()
Declaration
protected void Finalize()
FlushAll()
FlushDb()
GeoAdd(String, RedisGeo[])
Declaration
public long GeoAdd(string key, params RedisGeo[] geoPoints)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
ServiceStack.Redis.RedisGeo[] | geoPoints |
GeoAdd(String, Double, Double, String)
Declaration
public long GeoAdd(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 |
GeoDist(String, String, String, String)
Declaration
public double GeoDist(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 |
GeoHash(String, String[])
Declaration
public string[] GeoHash(string key, params string[] members)
Returns
System.String[]
Parameters
Type | Name |
---|
System.String | key |
System.String[] | members |
GeoPos(String, String[])
Declaration
public List<RedisGeo> GeoPos(string key, params string[] members)
Returns
System.Collections.Generic.List<ServiceStack.Redis.RedisGeo>
Parameters
Type | Name |
---|
System.String | key |
System.String[] | members |
GeoRadius(String, Double, Double, Double, String, Boolean, Boolean, Boolean, Nullable<Int32>, Nullable<Boolean>)
Declaration
public List<RedisGeoResult> GeoRadius(string key, double longitude, double latitude, double radius, string unit, bool withCoords = false, bool withDist = false, bool withHash = false, int? count = null, bool? asc = 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.Boolean | withCoords |
System.Boolean | withDist |
System.Boolean | withHash |
System.Nullable<System.Int32> | count |
System.Nullable<System.Boolean> | asc |
GeoRadiusByMember(String, String, Double, String, Boolean, Boolean, Boolean, Nullable<Int32>, Nullable<Boolean>)
Declaration
public List<RedisGeoResult> GeoRadiusByMember(string key, string member, double radius, string unit, bool withCoords = false, bool withDist = false, bool withHash = false, int? count = null, bool? asc = 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.Boolean | withCoords |
System.Boolean | withDist |
System.Boolean | withHash |
System.Nullable<System.Int32> | count |
System.Nullable<System.Boolean> | asc |
Get(Byte[])
Declaration
public byte[] Get(byte[] key)
Returns
System.Byte[]
Parameters
Get(String)
Declaration
public byte[] Get(string key)
Returns
System.Byte[]
Parameters
GetBit(String, Int32)
Declaration
public long GetBit(string key, int offset)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | offset |
GetBytes(String)
Declaration
public byte[] GetBytes(string key)
Returns
System.Byte[]
Parameters
GetEntryType(String)
Declaration
public RedisKeyType GetEntryType(string key)
Returns
ServiceStack.Redis.RedisKeyType
Parameters
GetRange(String, Int32, Int32)
Declaration
public byte[] GetRange(string key, int fromIndex, int toIndex)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | fromIndex |
System.Int32 | toIndex |
GetSet(String, Byte[])
Declaration
public byte[] GetSet(string key, byte[] value)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | key |
System.Byte[] | value |
HDel(Byte[], Byte[])
Declaration
public long HDel(byte[] hashId, byte[] key)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Byte[] | hashId |
System.Byte[] | key |
HDel(String, Byte[])
Declaration
public long HDel(string hashId, byte[] key)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | hashId |
System.Byte[] | key |
HDel(String, Byte[][])
Declaration
public long HDel(string hashId, byte[][] keys)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | hashId |
System.Byte[][] | keys |
HExists(String, Byte[])
Declaration
public long HExists(string hashId, byte[] key)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | hashId |
System.Byte[] | key |
HGet(Byte[], Byte[])
Declaration
public byte[] HGet(byte[] hashId, byte[] key)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.Byte[] | hashId |
System.Byte[] | key |
HGet(String, Byte[])
Declaration
public byte[] HGet(string hashId, byte[] key)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | hashId |
System.Byte[] | key |
HGetAll(String)
Declaration
public byte[][] HGetAll(string hashId)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | hashId |
HIncrby(String, Byte[], Int32)
Declaration
public long HIncrby(string hashId, byte[] key, int incrementBy)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | hashId |
System.Byte[] | key |
System.Int32 | incrementBy |
HIncrby(String, Byte[], Int64)
Declaration
public long HIncrby(string hashId, byte[] key, long incrementBy)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | hashId |
System.Byte[] | key |
System.Int64 | incrementBy |
HIncrbyFloat(String, Byte[], Double)
Declaration
public double HIncrbyFloat(string hashId, byte[] key, double incrementBy)
Returns
System.Double
Parameters
Type | Name |
---|
System.String | hashId |
System.Byte[] | key |
System.Double | incrementBy |
HKeys(String)
Declaration
public byte[][] HKeys(string hashId)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | hashId |
HLen(String)
Declaration
public long HLen(string hashId)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | hashId |
HMGet(String, Byte[][])
Declaration
public byte[][] HMGet(string hashId, params byte[][] keys)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | hashId |
System.Byte[][] | keys |
HMSet(String, Byte[][], Byte[][])
Declaration
public void HMSet(string hashId, byte[][] keys, byte[][] values)
Parameters
Type | Name |
---|
System.String | hashId |
System.Byte[][] | keys |
System.Byte[][] | values |
HScan(String, UInt64, Int32, String)
Declaration
public ScanResult HScan(string hashId, ulong cursor, int count = 10, string match = null)
Returns
ServiceStack.Redis.ScanResult
Parameters
Type | Name |
---|
System.String | hashId |
System.UInt64 | cursor |
System.Int32 | count |
System.String | match |
HSet(Byte[], Byte[], Byte[])
Declaration
public long HSet(byte[] hashId, byte[] key, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Byte[] | hashId |
System.Byte[] | key |
System.Byte[] | value |
HSet(String, Byte[], Byte[])
Declaration
public long HSet(string hashId, byte[] key, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | hashId |
System.Byte[] | key |
System.Byte[] | value |
HSetNX(String, Byte[], Byte[])
Declaration
public long HSetNX(string hashId, byte[] key, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | hashId |
System.Byte[] | key |
System.Byte[] | value |
HVals(String)
Declaration
public byte[][] HVals(string hashId)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | hashId |
Incr(String)
Declaration
public long Incr(string key)
Returns
System.Int64
Parameters
IncrBy(String, Int32)
Declaration
public long IncrBy(string key, int count)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | count |
IncrBy(String, Int64)
Declaration
public long IncrBy(string key, long count)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Int64 | count |
IncrByFloat(String, Double)
Declaration
public double IncrByFloat(string key, double incrBy)
Returns
System.Double
Parameters
Type | Name |
---|
System.String | key |
System.Double | incrBy |
IsSocketConnected()
Declaration
public bool IsSocketConnected()
Returns
System.Boolean
Keys(String)
Declaration
public byte[][] Keys(string pattern)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | pattern |
LIndex(String, Int32)
Declaration
public byte[] LIndex(string listId, int listIndex)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | listIndex |
LInsert(String, Boolean, Byte[], Byte[])
Declaration
public void LInsert(string listId, bool insertBefore, byte[] pivot, byte[] value)
Parameters
Type | Name |
---|
System.String | listId |
System.Boolean | insertBefore |
System.Byte[] | pivot |
System.Byte[] | value |
LLen(String)
Declaration
public long LLen(string listId)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | listId |
Log(String, Object[])
Declaration
protected void Log(string fmt, params object[] args)
Parameters
Type | Name |
---|
System.String | fmt |
System.Object[] | args |
LPop(String)
Declaration
public byte[] LPop(string listId)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | listId |
LPush(String, Byte[])
Declaration
public long LPush(string listId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | listId |
System.Byte[] | value |
LPush(String, Byte[][])
Declaration
public long LPush(string listId, byte[][] values)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | listId |
System.Byte[][] | values |
LPushX(String, Byte[])
Declaration
public long LPushX(string listId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | listId |
System.Byte[] | value |
LRange(String, Int32, Int32)
Declaration
public byte[][] LRange(string listId, int startingFrom, int endingAt)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | startingFrom |
System.Int32 | endingAt |
LRem(String, Int32, Byte[])
Declaration
public long LRem(string listId, int removeNoOfMatches, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | removeNoOfMatches |
System.Byte[] | value |
LSet(String, Int32, Byte[])
Declaration
public void LSet(string listId, int listIndex, byte[] value)
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | listIndex |
System.Byte[] | value |
LTrim(String, Int32, Int32)
Declaration
public void LTrim(string listId, int keepStartingFrom, int keepEndingAt)
Parameters
Type | Name |
---|
System.String | listId |
System.Int32 | keepStartingFrom |
System.Int32 | keepEndingAt |
MergeAndConvertToBytes(String[], String[])
Declaration
protected byte[][] MergeAndConvertToBytes(string[] keys, string[] args)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | keys |
System.String[] | args |
MGet(Byte[][])
Declaration
public byte[][] MGet(params byte[][] keys)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.Byte[][] | keys |
MGet(String[])
Declaration
public byte[][] MGet(params string[] keys)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | keys |
Migrate(String, Int32, String, Int32, Int64)
Declaration
public void Migrate(string host, int port, string key, int destinationDb, long timeoutMs)
Parameters
Type | Name |
---|
System.String | host |
System.Int32 | port |
System.String | key |
System.Int32 | destinationDb |
System.Int64 | timeoutMs |
Move(String, Int32)
Declaration
public bool Move(string key, int db)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | db |
MSet(Byte[][], Byte[][])
Declaration
public void MSet(byte[][] keys, byte[][] values)
Parameters
Type | Name |
---|
System.Byte[][] | keys |
System.Byte[][] | values |
MSet(String[], Byte[][])
Declaration
public void MSet(string[] keys, byte[][] values)
Parameters
Type | Name |
---|
System.String[] | keys |
System.Byte[][] | values |
MSetNx(Byte[][], Byte[][])
Declaration
public bool MSetNx(byte[][] keys, byte[][] values)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Byte[][] | keys |
System.Byte[][] | values |
MSetNx(String[], Byte[][])
Declaration
public bool MSetNx(string[] keys, byte[][] values)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String[] | keys |
System.Byte[][] | values |
ObjectIdleTime(String)
Declaration
public long ObjectIdleTime(string key)
Returns
System.Int64
Parameters
OnConnected()
Declaration
public virtual void OnConnected()
ParseDouble(Byte[])
Declaration
public static double ParseDouble(byte[] doubleBytes)
Returns
System.Double
Parameters
Type | Name |
---|
System.Byte[] | doubleBytes |
Persist(String)
Declaration
public bool Persist(string key)
Returns
System.Boolean
Parameters
PExpire(Byte[], Int64)
Declaration
public bool PExpire(byte[] key, long ttlMs)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Byte[] | key |
System.Int64 | ttlMs |
PExpire(String, Int64)
Declaration
public bool PExpire(string key, long ttlMs)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.Int64 | ttlMs |
PExpireAt(String, Int64)
Declaration
public bool PExpireAt(string key, long unixTimeMs)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.Int64 | unixTimeMs |
PfAdd(String, Byte[][])
Declaration
public bool PfAdd(string key, params byte[][] elements)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.Byte[][] | elements |
PfCount(String)
Declaration
public long PfCount(string key)
Returns
System.Int64
Parameters
PfMerge(String, String[])
Declaration
public void PfMerge(string toKeyId, params string[] fromKeys)
Parameters
Type | Name |
---|
System.String | toKeyId |
System.String[] | fromKeys |
Ping()
Returns
System.Boolean
PSetEx(String, Int64, Byte[])
Declaration
public void PSetEx(string key, long expireInMs, byte[] value)
Parameters
Type | Name |
---|
System.String | key |
System.Int64 | expireInMs |
System.Byte[] | value |
PSubscribe(String[])
Declaration
public byte[][] PSubscribe(params string[] toChannelsMatchingPatterns)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | toChannelsMatchingPatterns |
PTtl(String)
Declaration
public long PTtl(string key)
Returns
System.Int64
Parameters
Publish(String, Byte[])
Declaration
public long Publish(string toChannel, byte[] message)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | toChannel |
System.Byte[] | message |
PUnSubscribe(String[])
Declaration
public byte[][] PUnSubscribe(params string[] fromChannelsMatchingPatterns)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | fromChannelsMatchingPatterns |
Quit()
RandomKey()
Declaration
public string RandomKey()
Returns
System.String
RawCommand(Byte[][])
Declaration
public RedisData RawCommand(params byte[][] cmdWithBinaryArgs)
Returns
ServiceStack.Redis.RedisData
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
RawCommand(Object[])
Declaration
public RedisData RawCommand(params object[] cmdWithArgs)
Returns
ServiceStack.Redis.RedisData
Parameters
Type | Name |
---|
System.Object[] | cmdWithArgs |
RawCommandAsync(CancellationToken, Object[])
Declaration
protected ValueTask<RedisData> RawCommandAsync(CancellationToken token, params object[] cmdWithArgs)
Returns
ValueTask<ServiceStack.Redis.RedisData>
Parameters
Type | Name |
---|
System.Threading.CancellationToken | token |
System.Object[] | cmdWithArgs |
ReadDouble()
Declaration
public double ReadDouble()
Returns
System.Double
ReadLine()
Declaration
protected string ReadLine()
Returns
System.String
ReadLong()
Returns
System.Int64
ReceiveMessages()
Declaration
public byte[][] ReceiveMessages()
Returns
System.Byte[][]
Rename(String, String)
Declaration
public void Rename(string oldKeyName, string newKeyName)
Parameters
Type | Name |
---|
System.String | oldKeyName |
System.String | newKeyName |
RenameNx(String, String)
Declaration
public bool RenameNx(string oldKeyName, string newKeyName)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | oldKeyName |
System.String | newKeyName |
ResetSendBuffer()
reset buffer index in send buffer
Declaration
public void ResetSendBuffer()
Restore(String, Int64, Byte[])
Declaration
public byte[] Restore(string key, long expireMs, byte[] dumpValue)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | key |
System.Int64 | expireMs |
System.Byte[] | dumpValue |
Role()
Returns
ServiceStack.Redis.RedisText
RPop(String)
Declaration
public byte[] RPop(string listId)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | listId |
RPopLPush(String, String)
Declaration
public byte[] RPopLPush(string fromListId, string toListId)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | fromListId |
System.String | toListId |
RPush(String, Byte[])
Declaration
public long RPush(string listId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | listId |
System.Byte[] | value |
RPush(String, Byte[][])
Declaration
public long RPush(string listId, byte[][] values)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | listId |
System.Byte[][] | values |
RPushX(String, Byte[])
Declaration
public long RPushX(string listId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | listId |
System.Byte[] | value |
SAdd(String, Byte[])
Declaration
public long SAdd(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Byte[] | value |
SAdd(String, Byte[][])
Declaration
public long SAdd(string setId, byte[][] values)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Byte[][] | values |
Save()
SaveAsync()
Scan(UInt64, Int32, String)
Declaration
public ScanResult Scan(ulong cursor, int count = 10, string match = null)
Returns
ServiceStack.Redis.ScanResult
Parameters
Type | Name |
---|
System.UInt64 | cursor |
System.Int32 | count |
System.String | match |
SCard(String)
Declaration
public long SCard(string setId)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
ScriptExists(Byte[][])
Declaration
public byte[][] ScriptExists(params byte[][] sha1Refs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.Byte[][] | sha1Refs |
ScriptFlush()
Declaration
public void ScriptFlush()
ScriptKill()
ScriptLoad(String)
Declaration
public byte[] ScriptLoad(string luaBody)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | luaBody |
SDiff(String, String[])
Declaration
public byte[][] SDiff(string fromSetId, params string[] withSetIds)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | fromSetId |
System.String[] | withSetIds |
SDiffStore(String, String, String[])
Declaration
public void SDiffStore(string intoSetId, string fromSetId, params string[] withSetIds)
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String | fromSetId |
System.String[] | withSetIds |
SendExpectCode(Byte[][])
Declaration
protected string SendExpectCode(params byte[][] cmdWithBinaryArgs)
Returns
System.String
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendExpectComplexResponse(Byte[][])
Declaration
protected RedisData SendExpectComplexResponse(params byte[][] cmdWithBinaryArgs)
Returns
ServiceStack.Redis.RedisData
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendExpectComplexResponseAsync(CancellationToken, Byte[][])
Declaration
protected ValueTask<RedisData> SendExpectComplexResponseAsync(CancellationToken token, params byte[][] cmdWithBinaryArgs)
Returns
ValueTask<ServiceStack.Redis.RedisData>
Parameters
Type | Name |
---|
System.Threading.CancellationToken | token |
System.Byte[][] | cmdWithBinaryArgs |
SendExpectData(Byte[][])
Declaration
protected byte[] SendExpectData(params byte[][] cmdWithBinaryArgs)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendExpectDeeplyNestedMultiData(Byte[][])
Declaration
protected object[] SendExpectDeeplyNestedMultiData(params byte[][] cmdWithBinaryArgs)
Returns
System.Object[]
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendExpectDouble(Byte[][])
Declaration
protected double SendExpectDouble(params byte[][] cmdWithBinaryArgs)
Returns
System.Double
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendExpectLong(Byte[][])
Declaration
protected long SendExpectLong(params byte[][] cmdWithBinaryArgs)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendExpectMultiData(Byte[][])
Declaration
protected byte[][] SendExpectMultiData(params byte[][] cmdWithBinaryArgs)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendExpectString(Byte[][])
Declaration
protected string SendExpectString(params byte[][] cmdWithBinaryArgs)
Returns
System.String
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendExpectStringAsync(CancellationToken, Byte[][])
Declaration
protected ValueTask<string> SendExpectStringAsync(CancellationToken token, params byte[][] cmdWithBinaryArgs)
Returns
ValueTask<System.String>
Parameters
Type | Name |
---|
System.Threading.CancellationToken | token |
System.Byte[][] | cmdWithBinaryArgs |
SendExpectStringDictionaryList(Byte[][])
Declaration
protected List<Dictionary<string, string>> SendExpectStringDictionaryList(params byte[][] cmdWithBinaryArgs)
Returns
System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendExpectSuccess(Byte[][])
Declaration
protected void SendExpectSuccess(params byte[][] cmdWithBinaryArgs)
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendReceive<T>(Byte[][], Func<T>, Action<Func<T>>, Boolean, String)
Declaration
protected T SendReceive<T>(byte[][] cmdWithBinaryArgs, Func<T> fn, Action<Func<T>> completePipelineFn = null, bool sendWithoutRead = false, string operation = "")
Returns
<T>
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
System.Func<<T>> | fn |
System.Action<System.Func<<T>>> | completePipelineFn |
System.Boolean | sendWithoutRead |
System.String | operation |
Type Parameters
SendUnmanagedExpectSuccess(Byte[][])
Send command outside of managed Write Buffer
Declaration
protected void SendUnmanagedExpectSuccess(params byte[][] cmdWithBinaryArgs)
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendWithoutRead(Byte[][])
Declaration
protected void SendWithoutRead(params byte[][] cmdWithBinaryArgs)
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
SendWithoutReadAsync(CancellationToken, Byte[][])
Declaration
protected ValueTask SendWithoutReadAsync(CancellationToken token, params byte[][] cmdWithBinaryArgs)
Returns
ValueTask
Parameters
Type | Name |
---|
System.Threading.CancellationToken | token |
System.Byte[][] | cmdWithBinaryArgs |
SentinelFailover(String)
Declaration
public void SentinelFailover(string masterName)
Parameters
Type | Name |
---|
System.String | masterName |
SentinelGetMasterAddrByName(String)
Declaration
public List<string> SentinelGetMasterAddrByName(string masterName)
Returns
System.Collections.Generic.List<System.String>
Parameters
Type | Name |
---|
System.String | masterName |
SentinelMaster(String)
Declaration
public Dictionary<string, string> SentinelMaster(string masterName)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|
System.String | masterName |
SentinelMasters()
Declaration
public List<Dictionary<string, string>> SentinelMasters()
Returns
System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>
SentinelSentinels(String)
Declaration
public List<Dictionary<string, string>> SentinelSentinels(string masterName)
Returns
System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>
Parameters
Type | Name |
---|
System.String | masterName |
SentinelSlaves(String)
Declaration
public List<Dictionary<string, string>> SentinelSlaves(string masterName)
Returns
System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>
Parameters
Type | Name |
---|
System.String | masterName |
Set(Byte[], Byte[], Int32, Int64)
Declaration
public void Set(byte[] key, byte[] value, int expirySeconds, long expiryMs = 0L)
Parameters
Type | Name |
---|
System.Byte[] | key |
System.Byte[] | value |
System.Int32 | expirySeconds |
System.Int64 | expiryMs |
Set(String, Byte[])
Declaration
public void Set(string key, byte[] value)
Parameters
Type | Name |
---|
System.String | key |
System.Byte[] | value |
Set(String, Byte[], Boolean, Int32, Int64)
Declaration
public bool Set(string key, byte[] value, bool exists, int expirySeconds = 0, long expiryMs = 0L)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.Byte[] | value |
System.Boolean | exists |
System.Int32 | expirySeconds |
System.Int64 | expiryMs |
Set(String, Byte[], Int32, Int64)
Declaration
public void Set(string key, byte[] value, int expirySeconds, long expiryMs = 0L)
Parameters
Type | Name |
---|
System.String | key |
System.Byte[] | value |
System.Int32 | expirySeconds |
System.Int64 | expiryMs |
SetBit(String, Int32, Int32)
Declaration
public long SetBit(string key, int offset, int value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | offset |
System.Int32 | value |
SetEx(Byte[], Int32, Byte[])
Declaration
public void SetEx(byte[] key, int expireInSeconds, byte[] value)
Parameters
Type | Name |
---|
System.Byte[] | key |
System.Int32 | expireInSeconds |
System.Byte[] | value |
SetEx(String, Int32, Byte[])
Declaration
public void SetEx(string key, int expireInSeconds, byte[] value)
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | expireInSeconds |
System.Byte[] | value |
SetNX(String, Byte[])
Declaration
public long SetNX(string key, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Byte[] | value |
SetRange(String, Int32, Byte[])
Declaration
public long SetRange(string key, int offset, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | offset |
System.Byte[] | value |
Shutdown()
ShutdownNoSave()
Declaration
public void ShutdownNoSave()
SInter(String[])
Declaration
public byte[][] SInter(params string[] setIds)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | setIds |
SInterStore(String, String[])
Declaration
public void SInterStore(string intoSetId, params string[] setIds)
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String[] | setIds |
SIsMember(String, Byte[])
Declaration
public long SIsMember(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Byte[] | value |
SlaveOf(String, Int32)
Declaration
public void SlaveOf(string hostname, int port)
Parameters
Type | Name |
---|
System.String | hostname |
System.Int32 | port |
SlaveOfNoOne()
Declaration
public void SlaveOfNoOne()
Slowlog(Nullable<Int32>)
Declaration
public object[] Slowlog(int? top)
Returns
System.Object[]
Parameters
Type | Name |
---|
System.Nullable<System.Int32> | top |
SlowlogReset()
Declaration
public void SlowlogReset()
Declaration
public byte[][] SMembers(string setId)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
SMove(String, String, Byte[])
Declaration
public void SMove(string fromSetId, string toSetId, byte[] value)
Parameters
Type | Name |
---|
System.String | fromSetId |
System.String | toSetId |
System.Byte[] | value |
Sort(String, SortOptions)
Declaration
public byte[][] Sort(string listOrSetId, SortOptions sortOptions)
Returns
System.Byte[][]
Parameters
SPop(String)
Declaration
public byte[] SPop(string setId)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | setId |
SPop(String, Int32)
Declaration
public byte[][] SPop(string setId, int count)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Int32 | count |
SRandMember(String)
Declaration
public byte[] SRandMember(string setId)
Returns
System.Byte[]
Parameters
Type | Name |
---|
System.String | setId |
SRandMember(String, Int32)
Declaration
public byte[][] SRandMember(string setId, int count)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Int32 | count |
SRem(String, Byte[])
Declaration
public long SRem(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Byte[] | value |
SRem(String, Byte[][])
Declaration
public long SRem(string setId, byte[][] values)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Byte[][] | values |
SScan(String, UInt64, Int32, String)
Declaration
public ScanResult SScan(string setId, ulong cursor, int count = 10, string match = null)
Returns
ServiceStack.Redis.ScanResult
Parameters
Type | Name |
---|
System.String | setId |
System.UInt64 | cursor |
System.Int32 | count |
System.String | match |
StrLen(String)
Declaration
public long StrLen(string key)
Returns
System.Int64
Parameters
Subscribe(String[])
Declaration
public byte[][] Subscribe(params string[] toChannels)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | toChannels |
SUnion(String[])
Declaration
public byte[][] SUnion(params string[] setIds)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | setIds |
SUnionStore(String, String[])
Declaration
public void SUnionStore(string intoSetId, params string[] setIds)
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String[] | setIds |
Time()
Returns
System.Byte[][]
Ttl(String)
Declaration
public long Ttl(string key)
Returns
System.Int64
Parameters
Type(String)
Declaration
public string Type(string key)
Returns
System.String
Parameters
UnSubscribe(String[])
Declaration
public byte[][] UnSubscribe(params string[] fromChannels)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String[] | fromChannels |
UnWatch()
Watch(String[])
Declaration
public void Watch(params string[] keys)
Parameters
Type | Name |
---|
System.String[] | keys |
WriteAllToSendBuffer(Byte[][])
Declaration
public void WriteAllToSendBuffer(params byte[][] cmdWithBinaryArgs)
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
WriteCommandToSendBuffer(Byte[][])
Command to set multiple binary safe arguments
Declaration
protected void WriteCommandToSendBuffer(params byte[][] cmdWithBinaryArgs)
Parameters
Type | Name |
---|
System.Byte[][] | cmdWithBinaryArgs |
WriteToSendBuffer(Byte[])
Declaration
public void WriteToSendBuffer(byte[] cmdBytes)
Parameters
Type | Name |
---|
System.Byte[] | cmdBytes |
ZAdd(String, List<KeyValuePair<Byte[], Double>>)
Declaration
public long ZAdd(string setId, List<KeyValuePair<byte[], double>> pairs)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Byte[],System.Double>> | pairs |
ZAdd(String, List<KeyValuePair<Byte[], Int64>>)
Declaration
public long ZAdd(string setId, List<KeyValuePair<byte[], long>> pairs)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Byte[],System.Int64>> | pairs |
ZAdd(String, Double, Byte[])
Declaration
public long ZAdd(string setId, double score, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Double | score |
System.Byte[] | value |
ZAdd(String, Int64, Byte[])
Declaration
public long ZAdd(string setId, long score, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Int64 | score |
System.Byte[] | value |
ZCard(String)
Declaration
public long ZCard(string setId)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
ZCount(String, Double, Double)
Declaration
public long ZCount(string setId, double min, double max)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Double | min |
System.Double | max |
ZCount(String, Int64, Int64)
Declaration
public long ZCount(string setId, long min, long max)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Int64 | min |
System.Int64 | max |
ZIncrBy(String, Double, Byte[])
Declaration
public double ZIncrBy(string setId, double incrBy, byte[] value)
Returns
System.Double
Parameters
Type | Name |
---|
System.String | setId |
System.Double | incrBy |
System.Byte[] | value |
ZIncrBy(String, Int64, Byte[])
Declaration
public double ZIncrBy(string setId, long incrBy, byte[] value)
Returns
System.Double
Parameters
Type | Name |
---|
System.String | setId |
System.Int64 | incrBy |
System.Byte[] | value |
ZInterStore(String, String[])
Declaration
public long ZInterStore(string intoSetId, params string[] setIds)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String[] | setIds |
ZInterStore(String, String[], String[])
Declaration
public long ZInterStore(string intoSetId, string[] setIds, string[] args)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String[] | setIds |
System.String[] | args |
ZLexCount(String, String, String)
Declaration
public long ZLexCount(string setId, string min, string max)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.String | min |
System.String | max |
ZRange(String, Int32, Int32)
Declaration
public byte[][] ZRange(string setId, int min, int max)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Int32 | min |
System.Int32 | max |
ZRangeByLex(String, String, String, Nullable<Int32>, Nullable<Int32>)
Declaration
public byte[][] ZRangeByLex(string setId, string min, string max, int? skip = null, int? take = null)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.String | min |
System.String | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRangeByScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
public byte[][] ZRangeByScore(string setId, double min, double max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Double | min |
System.Double | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRangeByScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
Declaration
public byte[][] ZRangeByScore(string setId, long min, long max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Int64 | min |
System.Int64 | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRangeByScoreWithScores(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
public byte[][] ZRangeByScoreWithScores(string setId, double min, double max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Double | min |
System.Double | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRangeByScoreWithScores(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
Declaration
public byte[][] ZRangeByScoreWithScores(string setId, long min, long max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Int64 | min |
System.Int64 | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRangeWithScores(String, Int32, Int32)
Declaration
public byte[][] ZRangeWithScores(string setId, int min, int max)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Int32 | min |
System.Int32 | max |
ZRank(String, Byte[])
Declaration
public long ZRank(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Byte[] | value |
ZRem(String, Byte[])
Declaration
public long ZRem(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Byte[] | value |
ZRem(String, Byte[][])
Declaration
public long ZRem(string setId, byte[][] values)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Byte[][] | values |
ZRemRangeByLex(String, String, String)
Declaration
public long ZRemRangeByLex(string setId, string min, string max)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.String | min |
System.String | max |
ZRemRangeByRank(String, Int32, Int32)
Declaration
public long ZRemRangeByRank(string setId, int min, int max)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Int32 | min |
System.Int32 | max |
ZRemRangeByScore(String, Double, Double)
Declaration
public long ZRemRangeByScore(string setId, double fromScore, double toScore)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Double | fromScore |
System.Double | toScore |
ZRemRangeByScore(String, Int64, Int64)
Declaration
public long ZRemRangeByScore(string setId, long fromScore, long toScore)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Int64 | fromScore |
System.Int64 | toScore |
ZRevRange(String, Int32, Int32)
Declaration
public byte[][] ZRevRange(string setId, int min, int max)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Int32 | min |
System.Int32 | max |
ZRevRangeByScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
public byte[][] ZRevRangeByScore(string setId, double min, double max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Double | min |
System.Double | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRevRangeByScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
Declaration
public byte[][] ZRevRangeByScore(string setId, long min, long max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Int64 | min |
System.Int64 | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRevRangeByScoreWithScores(String, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
public byte[][] ZRevRangeByScoreWithScores(string setId, double min, double max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Double | min |
System.Double | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRevRangeByScoreWithScores(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)
Declaration
public byte[][] ZRevRangeByScoreWithScores(string setId, long min, long max, int? skip, int? take)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Int64 | min |
System.Int64 | max |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
ZRevRangeWithScores(String, Int32, Int32)
Declaration
public byte[][] ZRevRangeWithScores(string setId, int min, int max)
Returns
System.Byte[][]
Parameters
Type | Name |
---|
System.String | setId |
System.Int32 | min |
System.Int32 | max |
ZRevRank(String, Byte[])
Declaration
public long ZRevRank(string setId, byte[] value)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | setId |
System.Byte[] | value |
ZScan(String, UInt64, Int32, String)
Declaration
public ScanResult ZScan(string setId, ulong cursor, int count = 10, string match = null)
Returns
ServiceStack.Redis.ScanResult
Parameters
Type | Name |
---|
System.String | setId |
System.UInt64 | cursor |
System.Int32 | count |
System.String | match |
ZScore(String, Byte[])
Declaration
public double ZScore(string setId, byte[] value)
Returns
System.Double
Parameters
Type | Name |
---|
System.String | setId |
System.Byte[] | value |
ZUnionStore(String, String[])
Declaration
public long ZUnionStore(string intoSetId, params string[] setIds)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String[] | setIds |
ZUnionStore(String, String[], String[])
Declaration
public long ZUnionStore(string intoSetId, string[] setIds, string[] args)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | intoSetId |
System.String[] | setIds |
System.String[] | args |
Implements