Skip to main content

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
View Source
Declaration
public class RedisClient : RedisNativeClient, IRedisNativeClientAsync, IRedisNativeClient, IRedisClientAsync, IEntityStoreAsync, IRemoveByPatternAsync, ICacheClientAsync, IRedisClient, IEntityStore, ICacheClientExtended, IRemoveByPattern, ICacheClient, IDisposable

Properties

IRedisClientAsync.Lists

View Source
Declaration
IHasNamed<IRedisListAsync> IRedisClientAsync.Lists { get; }

IRedisClientAsync.Sets

View Source
Declaration
IHasNamed<IRedisSetAsync> IRedisClientAsync.Sets { get; }

IRedisClientAsync.SortedSets

View Source
Declaration
IHasNamed<IRedisSortedSetAsync> IRedisClientAsync.SortedSets { get; }

IRedisClientAsync.Hashes

View Source
Declaration
IHasNamed<IRedisHashAsync> IRedisClientAsync.Hashes { get; }

Item[String]

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

Hashes

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

Lists

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

Sets

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

SortedSets

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

Inherited Properties

Client

View Source
Declaration
public string Client { get; set; }

ClientId

View Source
Declaration
public long ClientId { get; }

ConnectionFilter

View Source
Declaration
public Action<IRedisNativeClient> ConnectionFilter { get; set; }

ConnectTimeout

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

Db

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

DbSize

View Source
Declaration
public long DbSize { get; }

DeactivatedAt

View Source
Declaration
public DateTime? DeactivatedAt { get; set; }

HadExceptions

View Source
Declaration
public bool HadExceptions { get; }

HasConnected

View Source
Declaration
public bool HasConnected { get; }

Host

View Source
Declaration
public string Host { get; }

Id

View Source
Declaration
public long Id { get; set; }

IdleTimeOutSecs

View Source
Declaration
public int IdleTimeOutSecs { get; set; }

Info

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

IsManagedClient

View Source
Declaration
public bool IsManagedClient { get; }

LastConnectedSecs

View Source
Declaration
public long LastConnectedSecs { get; }

LastSave

View Source
Declaration
public DateTime LastSave { get; }

NamespacePrefix

Gets or sets object key prefix.

View Source
Declaration
public string NamespacePrefix { get; set; }

OnBeforeFlush

View Source
Declaration
public Action OnBeforeFlush { get; set; }

Password

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

Port

View Source
Declaration
public int Port { get; }

ReceiveTimeout

View Source
Declaration
public int ReceiveTimeout { get; set; }

RequestsPerHour

View Source
Declaration
public static int RequestsPerHour { get; }

RetryCount

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

RetryTimeout

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

SendTimeout

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

ServerVersion

View Source
Declaration
public string ServerVersion { get; }

ServerVersionNumber

View Source
Declaration
public static int ServerVersionNumber { get; set; }

Ssl

View Source
Declaration
public bool Ssl { get; }

SslProtocols

View Source
Declaration
public SslProtocols? SslProtocols { get; }

Username

ACL Username

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

Fields

NewFactoryFn

View Source
Declaration
public static Func<RedisClient> NewFactoryFn

ConvertToHashFn

View Source
Declaration
public static Func<object, Dictionary<string, string>> ConvertToHashFn

Methods

AsAsync()

Access this instance for async usage

View Source
Declaration
public IRedisClientAsync AsAsync()
Returns

ServiceStack.Redis.IRedisClientAsync

IRedisClientAsync.As<T>()

View Source
Declaration
IRedisTypedClientAsync<T> IRedisClientAsync.As<T>()
Returns

ServiceStack.Redis.Generic.IRedisTypedClientAsync<T>

Type Parameters
  • T

IRedisClientAsync.CreatePipeline()

View Source
Declaration
IRedisPipelineAsync IRedisClientAsync.CreatePipeline()
Returns

ServiceStack.Redis.Pipeline.IRedisPipelineAsync

ICacheClientAsync.GetAsync<T>(String, CancellationToken)

View Source
Declaration
Task<T> ICacheClientAsync.GetAsync<T>(string key, CancellationToken token)
Returns

System.Threading.Tasks.Task<<T>>

Parameters
TypeName
System.Stringkey
System.Threading.CancellationTokentoken
Type Parameters
  • T

ICacheClientAsync.SetAllAsync<T>(IDictionary<String, T>, CancellationToken)

View Source
Declaration
Task ICacheClientAsync.SetAllAsync<T>(IDictionary<string, T> values, CancellationToken token)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Collections.Generic.IDictionary<System.String,<T>>values
System.Threading.CancellationTokentoken
Type Parameters
  • T

ICacheClientAsync.GetTimeToLiveAsync(String, CancellationToken)

View Source
Declaration
Task<TimeSpan?> ICacheClientAsync.GetTimeToLiveAsync(string key, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Nullable<System.TimeSpan>>

Parameters
TypeName
System.Stringkey
System.Threading.CancellationTokentoken

ICacheClientAsync.SetAsync<T>(String, T, CancellationToken)

View Source
Declaration
Task<bool> ICacheClientAsync.SetAsync<T>(string key, T value, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Stringkey
<T>value
System.Threading.CancellationTokentoken
Type Parameters
  • T

ICacheClientAsync.SetAsync<T>(String, T, DateTime, CancellationToken)

View Source
Declaration
Task<bool> ICacheClientAsync.SetAsync<T>(string key, T value, DateTime expiresAt, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Stringkey
<T>value
System.DateTimeexpiresAt
System.Threading.CancellationTokentoken
Type Parameters
  • T

ICacheClientAsync.SetAsync<T>(String, T, TimeSpan, CancellationToken)

View Source
Declaration
Task<bool> ICacheClientAsync.SetAsync<T>(string key, T value, TimeSpan expiresIn, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Stringkey
<T>value
System.TimeSpanexpiresIn
System.Threading.CancellationTokentoken
Type Parameters
  • T

ICacheClientAsync.FlushAllAsync(CancellationToken)

View Source
Declaration
Task ICacheClientAsync.FlushAllAsync(CancellationToken token)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Threading.CancellationTokentoken

ICacheClientAsync.GetAllAsync<T>(IEnumerable<String>, CancellationToken)

View Source
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
TypeName
System.Collections.Generic.IEnumerable<System.String>keys
System.Threading.CancellationTokentoken
Type Parameters
  • T

ICacheClientAsync.RemoveAsync(String, CancellationToken)

View Source
Declaration
Task<bool> ICacheClientAsync.RemoveAsync(string key, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Stringkey
System.Threading.CancellationTokentoken

ICacheClientAsync.RemoveExpiredEntriesAsync(CancellationToken)

View Source
Declaration
Task ICacheClientAsync.RemoveExpiredEntriesAsync(CancellationToken token)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Threading.CancellationTokentoken

IRemoveByPatternAsync.RemoveByPatternAsync(String, CancellationToken)

View Source
Declaration
async Task IRemoveByPatternAsync.RemoveByPatternAsync(string pattern, CancellationToken token)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Stringpattern
System.Threading.CancellationTokentoken

IRemoveByPatternAsync.RemoveByRegexAsync(String, CancellationToken)

View Source
Declaration
Task IRemoveByPatternAsync.RemoveByRegexAsync(string regex, CancellationToken token)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Stringregex
System.Threading.CancellationTokentoken

ICacheClientAsync.RemoveAllAsync(IEnumerable<String>, CancellationToken)

View Source
Declaration
Task ICacheClientAsync.RemoveAllAsync(IEnumerable<string> keys, CancellationToken token)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.String>keys
System.Threading.CancellationTokentoken

ICacheClientAsync.IncrementAsync(String, UInt32, CancellationToken)

View Source
Declaration
Task<long> ICacheClientAsync.IncrementAsync(string key, uint amount, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Int64>

Parameters
TypeName
System.Stringkey
System.UInt32amount
System.Threading.CancellationTokentoken

ICacheClientAsync.DecrementAsync(String, UInt32, CancellationToken)

View Source
Declaration
Task<long> ICacheClientAsync.DecrementAsync(string key, uint amount, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Int64>

Parameters
TypeName
System.Stringkey
System.UInt32amount
System.Threading.CancellationTokentoken

ICacheClientAsync.AddAsync<T>(String, T, CancellationToken)

View Source
Declaration
Task<bool> ICacheClientAsync.AddAsync<T>(string key, T value, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Stringkey
<T>value
System.Threading.CancellationTokentoken
Type Parameters
  • T

ICacheClientAsync.ReplaceAsync<T>(String, T, CancellationToken)

View Source
Declaration
Task<bool> ICacheClientAsync.ReplaceAsync<T>(string key, T value, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Stringkey
<T>value
System.Threading.CancellationTokentoken
Type Parameters
  • T

ICacheClientAsync.AddAsync<T>(String, T, DateTime, CancellationToken)

View Source
Declaration
Task<bool> ICacheClientAsync.AddAsync<T>(string key, T value, DateTime expiresAt, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Stringkey
<T>value
System.DateTimeexpiresAt
System.Threading.CancellationTokentoken
Type Parameters
  • T

ICacheClientAsync.ReplaceAsync<T>(String, T, DateTime, CancellationToken)

View Source
Declaration
Task<bool> ICacheClientAsync.ReplaceAsync<T>(string key, T value, DateTime expiresAt, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Stringkey
<T>value
System.DateTimeexpiresAt
System.Threading.CancellationTokentoken
Type Parameters
  • T

ICacheClientAsync.AddAsync<T>(String, T, TimeSpan, CancellationToken)

View Source
Declaration
Task<bool> ICacheClientAsync.AddAsync<T>(string key, T value, TimeSpan expiresIn, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Stringkey
<T>value
System.TimeSpanexpiresIn
System.Threading.CancellationTokentoken
Type Parameters
  • T

ICacheClientAsync.ReplaceAsync<T>(String, T, TimeSpan, CancellationToken)

View Source
Declaration
Task<bool> ICacheClientAsync.ReplaceAsync<T>(string key, T value, TimeSpan expiresIn, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Stringkey
<T>value
System.TimeSpanexpiresIn
System.Threading.CancellationTokentoken
Type Parameters
  • T

IEntityStoreAsync.GetByIdAsync<T>(Object, CancellationToken)

View Source
Declaration
async Task<T> IEntityStoreAsync.GetByIdAsync<T>(object id, CancellationToken token)
Returns

System.Threading.Tasks.Task<<T>>

Parameters
TypeName
System.Objectid
System.Threading.CancellationTokentoken
Type Parameters
  • T

IEntityStoreAsync.GetByIdsAsync<T>(ICollection, CancellationToken)

View Source
Declaration
async Task<IList<T>> IEntityStoreAsync.GetByIdsAsync<T>(ICollection ids, CancellationToken token)
Returns

System.Threading.Tasks.Task<System.Collections.Generic.IList<<T>>>

Parameters
TypeName
System.Collections.ICollectionids
System.Threading.CancellationTokentoken
Type Parameters
  • T

IEntityStoreAsync.StoreAsync<T>(T, CancellationToken)

View Source
Declaration
async Task<T> IEntityStoreAsync.StoreAsync<T>(T entity, CancellationToken token)
Returns

System.Threading.Tasks.Task<<T>>

Parameters
TypeName
<T>entity
System.Threading.CancellationTokentoken
Type Parameters
  • T

IEntityStoreAsync.StoreAllAsync<TEntity>(IEnumerable<TEntity>, CancellationToken)

View Source
Declaration
Task IEntityStoreAsync.StoreAllAsync<TEntity>(IEnumerable<TEntity> entities, CancellationToken token)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Collections.Generic.IEnumerable<<TEntity>>entities
System.Threading.CancellationTokentoken
Type Parameters
  • TEntity

IEntityStoreAsync.DeleteAsync<T>(T, CancellationToken)

View Source
Declaration
async Task IEntityStoreAsync.DeleteAsync<T>(T entity, CancellationToken token)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
<T>entity
System.Threading.CancellationTokentoken
Type Parameters
  • T

IEntityStoreAsync.DeleteByIdAsync<T>(Object, CancellationToken)

View Source
Declaration
async Task IEntityStoreAsync.DeleteByIdAsync<T>(object id, CancellationToken token)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Objectid
System.Threading.CancellationTokentoken
Type Parameters
  • T

IEntityStoreAsync.DeleteByIdsAsync<T>(ICollection, CancellationToken)

View Source
Declaration
async Task IEntityStoreAsync.DeleteByIdsAsync<T>(ICollection ids, CancellationToken token)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Collections.ICollectionids
System.Threading.CancellationTokentoken
Type Parameters
  • T

IEntityStoreAsync.DeleteAllAsync<TEntity>(CancellationToken)

View Source
Declaration
async Task IEntityStoreAsync.DeleteAllAsync<T>(CancellationToken token)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Threading.CancellationTokentoken
Type Parameters
  • T

New()

Creates a new instance of the Redis Client from NewFactoryFn.

View Source
Declaration
public static RedisClient New()
Returns

ServiceStack.Redis.RedisClient

Init()

View Source
Declaration
public void Init()

OnConnected()

View Source
Declaration
public override void OnConnected()

Custom(Object[])

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

ServiceStack.Redis.RedisText

Parameters
TypeName
System.Object[]cmdWithArgs

ConvertToServerDate(DateTime)

View Source
Declaration
public DateTime ConvertToServerDate(DateTime expiresAt)
Returns

System.DateTime

Parameters
TypeName
System.DateTimeexpiresAt

GetTypeSequenceKey<T>()

View Source
Declaration
public string GetTypeSequenceKey<T>()
Returns

System.String

Type Parameters
  • T

GetTypeIdsSetKey<T>()

View Source
Declaration
public string GetTypeIdsSetKey<T>()
Returns

System.String

Type Parameters
  • T

GetTypeIdsSetKey(Type)

View Source
Declaration
public string GetTypeIdsSetKey(Type type)
Returns

System.String

Parameters
TypeName
System.Typetype

RewriteAppendOnlyFileAsync()

View Source
Declaration
public void RewriteAppendOnlyFileAsync()

GetAllKeys()

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

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

SetValue(String, String)

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

SetValue(Byte[], Byte[], TimeSpan)

View Source
Declaration
public bool SetValue(byte[] key, byte[] value, TimeSpan expireIn)
Returns

System.Boolean

Parameters
TypeName
System.Byte[]key
System.Byte[]value
System.TimeSpanexpireIn

SetValue(String, String, TimeSpan)

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

SetValueIfExists(String, String)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.Stringvalue

SetValueIfNotExists(String, String)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.Stringvalue

SetValueIfExists(String, String, TimeSpan)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.Stringvalue
System.TimeSpanexpireIn

SetValueIfNotExists(String, String, TimeSpan)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.Stringvalue
System.TimeSpanexpireIn

SetValues(Dictionary<String, String>)

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

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

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

SetAll(Dictionary<String, String>)

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

GetValue(String)

View Source
Declaration
public string GetValue(string key)
Returns

System.String

Parameters
TypeName
System.Stringkey

GetAndSetValue(String, String)

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

System.String

Parameters
TypeName
System.Stringkey
System.Stringvalue

ContainsKey(String)

View Source
Declaration
public bool ContainsKey(string key)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey

Remove(String)

View Source
Declaration
public bool Remove(string key)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey

Remove(Byte[])

View Source
Declaration
public bool Remove(byte[] key)
Returns

System.Boolean

Parameters
TypeName
System.Byte[]key

RemoveEntry(String[])

View Source
Declaration
public bool RemoveEntry(params string[] keys)
Returns

System.Boolean

Parameters
TypeName
System.String[]keys

IncrementValue(String)

View Source
Declaration
public long IncrementValue(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

IncrementValueBy(String, Int32)

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

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32count

IncrementValueBy(String, Int64)

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

System.Int64

Parameters
TypeName
System.Stringkey
System.Int64count

IncrementValueBy(String, Double)

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

System.Double

Parameters
TypeName
System.Stringkey
System.Doublecount

DecrementValue(String)

View Source
Declaration
public long DecrementValue(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

DecrementValueBy(String, Int32)

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

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32count

AppendTo(String, String)

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

System.Int64

Parameters
TypeName
System.Stringkey
System.Stringvalue

Slice(String, Int32, Int32)

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

System.String

Parameters
TypeName
System.Stringkey
System.Int32fromIndex
System.Int32toIndex

InsertAt(String, Int32, String)

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

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32offset
System.Stringvalue

RenameKey(String, String)

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

GetStringCount(String)

View Source
Declaration
public long GetStringCount(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

GetRandomKey()

View Source
Declaration
public string GetRandomKey()
Returns

System.String

ExpireEntryIn(String, TimeSpan)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.TimeSpanexpireIn

ExpireEntryIn(Byte[], TimeSpan)

View Source
Declaration
public bool ExpireEntryIn(byte[] key, TimeSpan expireIn)
Returns

System.Boolean

Parameters
TypeName
System.Byte[]key
System.TimeSpanexpireIn

ExpireEntryAt(String, DateTime)

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.DateTimeexpireAt

GetTimeToLive(String)

View Source
Declaration
public TimeSpan? GetTimeToLive(string key)
Returns

System.Nullable<System.TimeSpan>

Parameters
TypeName
System.Stringkey

RemoveExpiredEntries()

View Source
Declaration
public void RemoveExpiredEntries()

As<T>()

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

ServiceStack.Redis.Generic.IRedisTypedClient<T>

Type Parameters
  • T

AcquireLock(String)

View Source
Declaration
public IDisposable AcquireLock(string key)
Returns

System.IDisposable

Parameters
TypeName
System.Stringkey

AcquireLock(String, TimeSpan)

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

System.IDisposable

Parameters
TypeName
System.Stringkey
System.TimeSpantimeOut

CreateTransaction()

View Source
Declaration
public IRedisTransaction CreateTransaction()
Returns

ServiceStack.Redis.IRedisTransaction

AssertNotInTransaction()

View Source
Declaration
public void AssertNotInTransaction()

CreatePipeline()

View Source
Declaration
public IRedisPipeline CreatePipeline()
Returns

ServiceStack.Redis.Pipeline.IRedisPipeline

SearchKeys(String)

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

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

Parameters
TypeName
System.Stringpattern

GetValues(List<String>)

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

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

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

GetValues<T>(List<String>)

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

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

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

GetValuesMap(List<String>)

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

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

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

GetValuesMap<T>(List<String>)

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

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

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

CreateSubscription()

View Source
Declaration
public override IRedisSubscription CreateSubscription()
Returns

ServiceStack.Redis.IRedisSubscription

PublishMessage(String, String)

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

System.Int64

Parameters
TypeName
System.StringtoChannel
System.Stringmessage

GetById<T>(Object)

View Source
Declaration
public T GetById<T>(object id)
Returns

<T>

Parameters
TypeName
System.Objectid
Type Parameters
  • T

GetByIds<T>(ICollection)

View Source
Declaration
public IList<T> GetByIds<T>(ICollection ids)
Returns

System.Collections.Generic.IList<<T>>

Parameters
TypeName
System.Collections.ICollectionids
Type Parameters
  • T

GetAll<T>()

View Source
Declaration
public IList<T> GetAll<T>()
Returns

System.Collections.Generic.IList<<T>>

Type Parameters
  • T

Store<T>(T)

View Source
Declaration
public T Store<T>(T entity)
Returns

<T>

Parameters
TypeName
<T>entity
Type Parameters
  • T

StoreObject(Object)

View Source
Declaration
public object StoreObject(object entity)
Returns

System.Object

Parameters
TypeName
System.Objectentity

StoreAll<TEntity>(IEnumerable<TEntity>)

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

GetFromHash<T>(Object)

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

<T>

Parameters
TypeName
System.Objectid
Type Parameters
  • T

StoreAsHash<T>(T)

Store object fields as a dictionary of values in a Hash value. Conversion to Dictionary can be customized with RedisClient.ConvertToHashFn

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

WriteAll<TEntity>(IEnumerable<TEntity>)

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

SerializeToUtf8Bytes<T>(T)

View Source
Declaration
public static byte[] SerializeToUtf8Bytes<T>(T value)
Returns

System.Byte[]

Parameters
TypeName
<T>value
Type Parameters
  • T

Delete<T>(T)

View Source
Declaration
public void Delete<T>(T entity)
Parameters
TypeName
<T>entity
Type Parameters
  • T

DeleteById<T>(Object)

View Source
Declaration
public void DeleteById<T>(object id)
Parameters
TypeName
System.Objectid
Type Parameters
  • T

DeleteByIds<T>(ICollection)

View Source
Declaration
public void DeleteByIds<T>(ICollection ids)
Parameters
TypeName
System.Collections.ICollectionids
Type Parameters
  • T

DeleteAll<T>()

View Source
Declaration
public void DeleteAll<T>()
Type Parameters
  • T

CloneClient()

View Source
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>.

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

System.String

Parameters
TypeName
<T>value
Type Parameters
  • T

UrnKey<T>(Object)

Returns key with explicit object id.

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

System.String

Parameters
TypeName
System.Objectid
Type Parameters
  • T

UrnKey(Type, Object)

Returns key with explicit object type and id.

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

System.String

Parameters
TypeName
System.Typetype
System.Objectid

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

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

<T>

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

ExecLua(String, String[])

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

ServiceStack.Redis.RedisText

Parameters
TypeName
System.Stringbody
System.String[]args

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

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

ServiceStack.Redis.RedisText

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

ExecLuaSha(String, String[])

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

ServiceStack.Redis.RedisText

Parameters
TypeName
System.Stringsha1
System.String[]args

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

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

ServiceStack.Redis.RedisText

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

ExecLuaAsInt(String, String[])

View Source
Declaration
public long ExecLuaAsInt(string body, params string[] args)
Returns

System.Int64

Parameters
TypeName
System.Stringbody
System.String[]args

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

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

System.Int64

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

ExecLuaShaAsInt(String, String[])

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

System.Int64

Parameters
TypeName
System.Stringsha1
System.String[]args

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

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

System.Int64

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

ExecLuaAsString(String, String[])

View Source
Declaration
public string ExecLuaAsString(string body, params string[] args)
Returns

System.String

Parameters
TypeName
System.Stringbody
System.String[]args

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

View Source
Declaration
public string ExecLuaAsString(string sha1, string[] keys, string[] args)
Returns

System.String

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

ExecLuaShaAsString(String, String[])

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

System.String

Parameters
TypeName
System.Stringsha1
System.String[]args

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

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

System.String

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

ExecLuaAsList(String, String[])

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

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

Parameters
TypeName
System.Stringbody
System.String[]args

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

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

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

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

ExecLuaShaAsList(String, String[])

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

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

Parameters
TypeName
System.Stringsha1
System.String[]args

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

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

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

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

HasLuaScript(String)

View Source
Declaration
public bool HasLuaScript(string sha1Ref)
Returns

System.Boolean

Parameters
TypeName
System.Stringsha1Ref

WhichLuaScriptsExists(String[])

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

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

Parameters
TypeName
System.String[]sha1Refs

RemoveAllLuaScripts()

View Source
Declaration
public void RemoveAllLuaScripts()

KillRunningLuaScript()

View Source
Declaration
public void KillRunningLuaScript()

LoadLuaScript(String)

View Source
Declaration
public string LoadLuaScript(string body)
Returns

System.String

Parameters
TypeName
System.Stringbody

RemoveByPattern(String)

View Source
Declaration
public void RemoveByPattern(string pattern)
Parameters
TypeName
System.Stringpattern

RemoveByRegex(String)

View Source
Declaration
public void RemoveByRegex(string pattern)
Parameters
TypeName
System.Stringpattern

ScanAllKeys(String, Int32)

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

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

Parameters
TypeName
System.Stringpattern
System.Int32pageSize

ScanAllSetItems(String, String, Int32)

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

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

Parameters
TypeName
System.StringsetId
System.Stringpattern
System.Int32pageSize

ScanAllSortedSetItems(String, String, Int32)

View Source
Declaration
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
TypeName
System.StringsetId
System.Stringpattern
System.Int32pageSize

ScanAllHashEntries(String, String, Int32)

View Source
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
TypeName
System.StringhashId
System.Stringpattern
System.Int32pageSize

AddToHyperLog(String, String[])

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

System.Boolean

Parameters
TypeName
System.Stringkey
System.String[]elements

CountHyperLog(String)

View Source
Declaration
public long CountHyperLog(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

MergeHyperLogs(String, String[])

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

GetServerRole()

View Source
Declaration
public RedisServerRole GetServerRole()
Returns

ServiceStack.Redis.RedisServerRole

Exec<T>(Func<RedisClient, T>)

View Source
Declaration
public T Exec<T>(Func<RedisClient, T> action)
Returns

<T>

Parameters
TypeName
System.Func<ServiceStack.Redis.RedisClient,<T>>action
Type Parameters
  • T

Exec(Action<RedisClient>)

View Source
Declaration
public void Exec(Action<RedisClient> action)
Parameters
TypeName
System.Action<ServiceStack.Redis.RedisClient>action

RemoveAll(IEnumerable<String>)

View Source
Declaration
public void RemoveAll(IEnumerable<string> keys)
Parameters
TypeName
System.Collections.Generic.IEnumerable<System.String>keys

Get<T>(String)

View Source
Declaration
public T Get<T>(string key)
Returns

<T>

Parameters
TypeName
System.Stringkey
Type Parameters
  • T

Increment(String, UInt32)

View Source
Declaration
public long Increment(string key, uint amount)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.UInt32amount

Decrement(String, UInt32)

View Source
Declaration
public long Decrement(string key, uint amount)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.UInt32amount

Add<T>(String, T)

View Source
Declaration
public bool Add<T>(string key, T value)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
<T>value
Type Parameters
  • T

Set<T>(String, T)

View Source
Declaration
public bool Set<T>(string key, T value)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
<T>value
Type Parameters
  • T

Replace<T>(String, T)

View Source
Declaration
public bool Replace<T>(string key, T value)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
<T>value
Type Parameters
  • T

Add<T>(String, T, DateTime)

View Source
Declaration
public bool Add<T>(string key, T value, DateTime expiresAt)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
<T>value
System.DateTimeexpiresAt
Type Parameters
  • T

Add<T>(String, T, TimeSpan)

View Source
Declaration
public bool Add<T>(string key, T value, TimeSpan expiresIn)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
<T>value
System.TimeSpanexpiresIn
Type Parameters
  • T

Set<T>(String, T, TimeSpan)

View Source
Declaration
public bool Set<T>(string key, T value, TimeSpan expiresIn)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
<T>value
System.TimeSpanexpiresIn
Type Parameters
  • T

Set<T>(String, T, DateTime)

View Source
Declaration
public bool Set<T>(string key, T value, DateTime expiresAt)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
<T>value
System.DateTimeexpiresAt
Type Parameters
  • T

Replace<T>(String, T, DateTime)

View Source
Declaration
public bool Replace<T>(string key, T value, DateTime expiresAt)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
<T>value
System.DateTimeexpiresAt
Type Parameters
  • T

Replace<T>(String, T, TimeSpan)

View Source
Declaration
public bool Replace<T>(string key, T value, TimeSpan expiresIn)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
<T>value
System.TimeSpanexpiresIn
Type Parameters
  • T

GetAll<T>(IEnumerable<String>)

View Source
Declaration
public IDictionary<string, T> GetAll<T>(IEnumerable<string> keys)
Returns

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

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

SetAll<T>(IDictionary<String, T>)

View Source
Declaration
public void SetAll<T>(IDictionary<string, T> values)
Parameters
TypeName
System.Collections.Generic.IDictionary<System.String,<T>>values
Type Parameters
  • T

SetConfig(String, String)

View Source
Declaration
public void SetConfig(string configItem, string value)
Parameters
TypeName
System.StringconfigItem
System.Stringvalue

GetServerRoleInfo()

View Source
Declaration
public RedisText GetServerRoleInfo()
Returns

ServiceStack.Redis.RedisText

GetConfig(String)

View Source
Declaration
public string GetConfig(string configItem)
Returns

System.String

Parameters
TypeName
System.StringconfigItem

SaveConfig()

View Source
Declaration
public void SaveConfig()

ResetInfoStats()

View Source
Declaration
public void ResetInfoStats()

GetClient()

View Source
Declaration
public string GetClient()
Returns

System.String

SetClient(String)

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

KillClient(String)

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

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

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

System.Int64

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

GetClientsInfo()

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

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

PauseAllClients(TimeSpan)

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

GetServerTime()

View Source
Declaration
public DateTime GetServerTime()
Returns

System.DateTime

SetEntryInHash(String, String, String)

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

System.Boolean

Parameters
TypeName
System.StringhashId
System.Stringkey
System.Stringvalue

SetEntryInHashIfNotExists(String, String, String)

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

System.Boolean

Parameters
TypeName
System.StringhashId
System.Stringkey
System.Stringvalue

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

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

IncrementValueInHash(String, String, Int32)

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

System.Int64

Parameters
TypeName
System.StringhashId
System.Stringkey
System.Int32incrementBy

IncrementValueInHash(String, String, Int64)

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

System.Int64

Parameters
TypeName
System.StringhashId
System.Stringkey
System.Int64incrementBy

IncrementValueInHash(String, String, Double)

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

System.Double

Parameters
TypeName
System.StringhashId
System.Stringkey
System.DoubleincrementBy

GetValueFromHash(String, String)

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

System.String

Parameters
TypeName
System.StringhashId
System.Stringkey

HashContainsEntry(String, String)

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

System.Boolean

Parameters
TypeName
System.StringhashId
System.Stringkey

RemoveEntryFromHash(String, String)

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

System.Boolean

Parameters
TypeName
System.StringhashId
System.Stringkey

GetHashCount(String)

View Source
Declaration
public long GetHashCount(string hashId)
Returns

System.Int64

Parameters
TypeName
System.StringhashId

GetHashKeys(String)

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

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

Parameters
TypeName
System.StringhashId

GetHashValues(String)

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

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

Parameters
TypeName
System.StringhashId

GetAllEntriesFromHash(String)

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

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

Parameters
TypeName
System.StringhashId

GetValuesFromHash(String, String[])

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

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

Parameters
TypeName
System.StringhashId
System.String[]keys

GetAllItemsFromList(String)

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

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

Parameters
TypeName
System.StringlistId

GetRangeFromList(String, Int32, Int32)

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

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

Parameters
TypeName
System.StringlistId
System.Int32startingFrom
System.Int32endingAt

GetRangeFromSortedList(String, Int32, Int32)

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

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

Parameters
TypeName
System.StringlistId
System.Int32startingFrom
System.Int32endingAt

GetSortedItemsFromList(String, SortOptions)

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

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

Parameters
TypeName
System.StringlistId
ServiceStack.Redis.SortOptionssortOptions

AddItemToList(String, String)

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

AddRangeToList(String, List<String>)

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

PrependItemToList(String, String)

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

PrependRangeToList(String, List<String>)

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

RemoveAllFromList(String)

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

RemoveStartFromList(String)

View Source
Declaration
public string RemoveStartFromList(string listId)
Returns

System.String

Parameters
TypeName
System.StringlistId

BlockingRemoveStartFromList(String, Nullable<TimeSpan>)

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

System.String

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

BlockingRemoveStartFromLists(String[], Nullable<TimeSpan>)

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

ServiceStack.Redis.ItemRef

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

RemoveEndFromList(String)

View Source
Declaration
public string RemoveEndFromList(string listId)
Returns

System.String

Parameters
TypeName
System.StringlistId

TrimList(String, Int32, Int32)

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

RemoveItemFromList(String, String)

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

System.Int64

Parameters
TypeName
System.StringlistId
System.Stringvalue

RemoveItemFromList(String, String, Int32)

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

System.Int64

Parameters
TypeName
System.StringlistId
System.Stringvalue
System.Int32noOfMatches

GetListCount(String)

View Source
Declaration
public long GetListCount(string listId)
Returns

System.Int64

Parameters
TypeName
System.StringlistId

GetItemFromList(String, Int32)

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

System.String

Parameters
TypeName
System.StringlistId
System.Int32listIndex

SetItemInList(String, Int32, String)

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

EnqueueItemOnList(String, String)

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

DequeueItemFromList(String)

View Source
Declaration
public string DequeueItemFromList(string listId)
Returns

System.String

Parameters
TypeName
System.StringlistId

BlockingDequeueItemFromList(String, Nullable<TimeSpan>)

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

System.String

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

BlockingDequeueItemFromLists(String[], Nullable<TimeSpan>)

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

ServiceStack.Redis.ItemRef

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

PushItemToList(String, String)

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

PopItemFromList(String)

View Source
Declaration
public string PopItemFromList(string listId)
Returns

System.String

Parameters
TypeName
System.StringlistId

BlockingPopItemFromList(String, Nullable<TimeSpan>)

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

System.String

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

BlockingPopItemFromLists(String[], Nullable<TimeSpan>)

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

ServiceStack.Redis.ItemRef

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

PopAndPushItemBetweenLists(String, String)

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

System.String

Parameters
TypeName
System.StringfromListId
System.StringtoListId

BlockingPopAndPushItemBetweenLists(String, String, Nullable<TimeSpan>)

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

System.String

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

GetSortedEntryValues(String, Int32, Int32)

View Source
Declaration
public List<string> GetSortedEntryValues(string setId, int startingFrom, int endingAt)
Returns

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

Parameters
TypeName
System.StringsetId
System.Int32startingFrom
System.Int32endingAt

AddGeoMember(String, Double, Double, String)

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

System.Int64

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

AddGeoMembers(String, RedisGeo[])

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

System.Int64

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

CalculateDistanceBetweenGeoMembers(String, String, String, String)

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

System.Double

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

GetGeohashes(String, String[])

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

System.String[]

Parameters
TypeName
System.Stringkey
System.String[]members

GetGeoCoordinates(String, String[])

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

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

Parameters
TypeName
System.Stringkey
System.String[]members

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

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

System.String[]

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

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

View Source
Declaration
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
TypeName
System.Stringkey
System.Doublelongitude
System.Doublelatitude
System.Doubleradius
System.Stringunit
System.Nullable<System.Int32>count
System.Nullable<System.Boolean>sortByNearest

FindGeoMembersInRadius(String, String, Double, String)

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

System.String[]

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

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

View Source
Declaration
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
TypeName
System.Stringkey
System.Stringmember
System.Doubleradius
System.Stringunit
System.Nullable<System.Int32>count
System.Nullable<System.Boolean>sortByNearest

GetAllItemsFromSet(String)

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

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

Parameters
TypeName
System.StringsetId

AddItemToSet(String, String)

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

AddRangeToSet(String, List<String>)

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

RemoveItemFromSet(String, String)

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

PopItemFromSet(String)

View Source
Declaration
public string PopItemFromSet(string setId)
Returns

System.String

Parameters
TypeName
System.StringsetId

PopItemsFromSet(String, Int32)

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

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

Parameters
TypeName
System.StringsetId
System.Int32count

MoveBetweenSets(String, String, String)

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

GetSetCount(String)

View Source
Declaration
public long GetSetCount(string setId)
Returns

System.Int64

Parameters
TypeName
System.StringsetId

SetContainsItem(String, String)

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

System.Boolean

Parameters
TypeName
System.StringsetId
System.Stringitem

GetIntersectFromSets(String[])

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

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

Parameters
TypeName
System.String[]setIds

StoreIntersectFromSets(String, String[])

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

GetUnionFromSets(String[])

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

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

Parameters
TypeName
System.String[]setIds

StoreUnionFromSets(String, String[])

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

GetDifferencesFromSet(String, String[])

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

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

Parameters
TypeName
System.StringfromSetId
System.String[]withSetIds

StoreDifferencesFromSet(String, String, String[])

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

GetRandomItemFromSet(String)

View Source
Declaration
public string GetRandomItemFromSet(string setId)
Returns

System.String

Parameters
TypeName
System.StringsetId

GetKeysByPattern(String)

View Source
Declaration
public IEnumerable<string> GetKeysByPattern(string pattern)
Returns

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

Parameters
TypeName
System.Stringpattern

GetSlowlog(Nullable<Int32>)

View Source
Declaration
public IEnumerable<SlowlogItem> GetSlowlog(int? numberOfRecords = null)
Returns

System.Collections.Generic.IEnumerable<ServiceStack.Redis.SlowlogItem>

Parameters
TypeName
System.Nullable<System.Int32>numberOfRecords

GetLexicalScore(String)

View Source
Declaration
public static double GetLexicalScore(string value)
Returns

System.Double

Parameters
TypeName
System.Stringvalue

AddItemToSortedSet(String, String)

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

System.Boolean

Parameters
TypeName
System.StringsetId
System.Stringvalue

AddItemToSortedSet(String, String, Double)

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

System.Boolean

Parameters
TypeName
System.StringsetId
System.Stringvalue
System.Doublescore

AddItemToSortedSet(String, String, Int64)

View Source
Declaration
public bool AddItemToSortedSet(string setId, string value, long score)
Returns

System.Boolean

Parameters
TypeName
System.StringsetId
System.Stringvalue
System.Int64score

AddRangeToSortedSet(String, List<String>, Double)

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

System.Boolean

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

AddRangeToSortedSet(String, List<String>, Int64)

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

System.Boolean

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

RemoveItemFromSortedSet(String, String)

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

System.Boolean

Parameters
TypeName
System.StringsetId
System.Stringvalue

RemoveItemsFromSortedSet(String, List<String>)

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

System.Int64

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

PopItemWithLowestScoreFromSortedSet(String)

View Source
Declaration
public string PopItemWithLowestScoreFromSortedSet(string setId)
Returns

System.String

Parameters
TypeName
System.StringsetId

PopItemWithHighestScoreFromSortedSet(String)

View Source
Declaration
public string PopItemWithHighestScoreFromSortedSet(string setId)
Returns

System.String

Parameters
TypeName
System.StringsetId

SortedSetContainsItem(String, String)

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

System.Boolean

Parameters
TypeName
System.StringsetId
System.Stringvalue

IncrementItemInSortedSet(String, String, Double)

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

System.Double

Parameters
TypeName
System.StringsetId
System.Stringvalue
System.DoubleincrementBy

IncrementItemInSortedSet(String, String, Int64)

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

System.Double

Parameters
TypeName
System.StringsetId
System.Stringvalue
System.Int64incrementBy

GetItemIndexInSortedSet(String, String)

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Stringvalue

GetItemIndexInSortedSetDesc(String, String)

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Stringvalue

GetAllItemsFromSortedSet(String)

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

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

Parameters
TypeName
System.StringsetId

GetAllItemsFromSortedSetDesc(String)

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

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

Parameters
TypeName
System.StringsetId

GetRangeFromSortedSet(String, Int32, Int32)

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

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

Parameters
TypeName
System.StringsetId
System.Int32fromRank
System.Int32toRank

GetRangeFromSortedSetDesc(String, Int32, Int32)

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

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

Parameters
TypeName
System.StringsetId
System.Int32fromRank
System.Int32toRank

GetAllWithScoresFromSortedSet(String)

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

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

Parameters
TypeName
System.StringsetId

GetRangeWithScoresFromSortedSet(String, Int32, Int32)

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

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

Parameters
TypeName
System.StringsetId
System.Int32fromRank
System.Int32toRank

GetRangeWithScoresFromSortedSetDesc(String, Int32, Int32)

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

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

Parameters
TypeName
System.StringsetId
System.Int32fromRank
System.Int32toRank

GetRangeFromSortedSetByLowestScore(String, String, String)

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

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

Parameters
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore

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

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

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

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

GetRangeFromSortedSetByLowestScore(String, Double, Double)

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

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

Parameters
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

GetRangeFromSortedSetByLowestScore(String, Int64, Int64)

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

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

Parameters
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

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

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

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

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

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

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

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

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

GetRangeWithScoresFromSortedSetByLowestScore(String, String, String)

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

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

Parameters
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore

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

View Source
Declaration
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
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByLowestScore(String, Double, Double)

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

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

Parameters
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

GetRangeWithScoresFromSortedSetByLowestScore(String, Int64, Int64)

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

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

Parameters
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

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

View Source
Declaration
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
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

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

View Source
Declaration
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
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeFromSortedSetByHighestScore(String, String, String)

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

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

Parameters
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore

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

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

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

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

GetRangeFromSortedSetByHighestScore(String, Double, Double)

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

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

Parameters
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

GetRangeFromSortedSetByHighestScore(String, Int64, Int64)

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

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

Parameters
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

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

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

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

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

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

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

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

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

GetRangeWithScoresFromSortedSetByHighestScore(String, String, String)

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

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

Parameters
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore

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

View Source
Declaration
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
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

GetRangeWithScoresFromSortedSetByHighestScore(String, Double, Double)

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

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

Parameters
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

GetRangeWithScoresFromSortedSetByHighestScore(String, Int64, Int64)

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

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

Parameters
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

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

View Source
Declaration
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
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

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

View Source
Declaration
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
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

RemoveRangeFromSortedSet(String, Int32, Int32)

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Int32minRank
System.Int32maxRank

RemoveRangeFromSortedSetByScore(String, Double, Double)

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

System.Int64

Parameters
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

RemoveRangeFromSortedSetByScore(String, Int64, Int64)

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

GetSortedSetCount(String)

View Source
Declaration
public long GetSortedSetCount(string setId)
Returns

System.Int64

Parameters
TypeName
System.StringsetId

GetSortedSetCount(String, String, String)

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

System.Int64

Parameters
TypeName
System.StringsetId
System.StringfromStringScore
System.StringtoStringScore

GetSortedSetCount(String, Double, Double)

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

System.Int64

Parameters
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

GetSortedSetCount(String, Int64, Int64)

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

GetItemScoreInSortedSet(String, String)

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

System.Double

Parameters
TypeName
System.StringsetId
System.Stringvalue

StoreIntersectFromSortedSets(String, String[])

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

System.Int64

Parameters
TypeName
System.StringintoSetId
System.String[]setIds

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

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

System.Int64

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

StoreUnionFromSortedSets(String, String[])

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

System.Int64

Parameters
TypeName
System.StringintoSetId
System.String[]setIds

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

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

System.Int64

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

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

View Source
Declaration
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
TypeName
System.StringsetId
System.Stringstart
System.Stringend
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

SearchSortedSetCount(String, String, String)

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Stringstart
System.Stringend

RemoveRangeFromSortedSetBySearch(String, String, String)

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

System.Int64

Parameters
TypeName
System.StringsetId
System.Stringstart
System.Stringend

Inherited Methods

Append(String, Byte[])

View Source
Declaration
public long Append(string key, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Byte[]value

AssertServerVersionNumber()

View Source
Declaration
public int AssertServerVersionNumber()
Returns

System.Int32

BgRewriteAof()

View Source
Declaration
public void BgRewriteAof()

BgSave()

View Source
Declaration
public void BgSave()

BitCount(String)

View Source
Declaration
public long BitCount(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

BLPop(String, Int32)

View Source
Declaration
public byte[][] BLPop(string listId, int timeOutSecs)
Returns

System.Byte[][]

Parameters
TypeName
System.StringlistId
System.Int32timeOutSecs

BLPop(String[], Int32)

View Source
Declaration
public byte[][] BLPop(string[] listIds, int timeOutSecs)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]listIds
System.Int32timeOutSecs

BLPopValue(String, Int32)

View Source
Declaration
public byte[] BLPopValue(string listId, int timeOutSecs)
Returns

System.Byte[]

Parameters
TypeName
System.StringlistId
System.Int32timeOutSecs

BLPopValue(String[], Int32)

View Source
Declaration
public byte[][] BLPopValue(string[] listIds, int timeOutSecs)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]listIds
System.Int32timeOutSecs

BRPop(String, Int32)

View Source
Declaration
public byte[][] BRPop(string listId, int timeOutSecs)
Returns

System.Byte[][]

Parameters
TypeName
System.StringlistId
System.Int32timeOutSecs

BRPop(String[], Int32)

View Source
Declaration
public byte[][] BRPop(string[] listIds, int timeOutSecs)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]listIds
System.Int32timeOutSecs

BRPopLPush(String, String, Int32)

View Source
Declaration
public byte[] BRPopLPush(string fromListId, string toListId, int timeOutSecs)
Returns

System.Byte[]

Parameters
TypeName
System.StringfromListId
System.StringtoListId
System.Int32timeOutSecs

BRPopValue(String, Int32)

View Source
Declaration
public byte[] BRPopValue(string listId, int timeOutSecs)
Returns

System.Byte[]

Parameters
TypeName
System.StringlistId
System.Int32timeOutSecs

BRPopValue(String[], Int32)

View Source
Declaration
public byte[][] BRPopValue(string[] listIds, int timeOutSecs)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]listIds
System.Int32timeOutSecs

CalculateSha1(String)

View Source
Declaration
public string CalculateSha1(string luaBody)
Returns

System.String

Parameters
TypeName
System.StringluaBody

ChangeDb(Int64)

View Source
Declaration
public void ChangeDb(long db)
Parameters
TypeName
System.Int64db

ClientGetName()

View Source
Declaration
public string ClientGetName()
Returns

System.String

ClientKill(String)

View Source
Declaration
public void ClientKill(string clientAddr)
Parameters
TypeName
System.StringclientAddr

ClientKill(String, String, String, String)

View Source
Declaration
public long ClientKill(string addr = null, string id = null, string type = null, string skipMe = null)
Returns

System.Int64

Parameters
TypeName
System.Stringaddr
System.Stringid
System.Stringtype
System.StringskipMe

ClientList()

View Source
Declaration
public byte[] ClientList()
Returns

System.Byte[]

ClientPause(Int32)

View Source
Declaration
public void ClientPause(int timeOutMs)
Parameters
TypeName
System.Int32timeOutMs

ClientSetName(String)

View Source
Declaration
public void ClientSetName(string name)
Parameters
TypeName
System.Stringname

CmdLog(Byte[][])

View Source
Declaration
protected void CmdLog(byte[][] args)
Parameters
TypeName
System.Byte[][]args

ConfigGet(String)

View Source
Declaration
public byte[][] ConfigGet(string pattern)
Returns

System.Byte[][]

Parameters
TypeName
System.Stringpattern

ConfigResetStat()

View Source
Declaration
public void ConfigResetStat()

ConfigRewrite()

View Source
Declaration
public void ConfigRewrite()

ConfigSet(String, Byte[])

View Source
Declaration
public void ConfigSet(string item, byte[] value)
Parameters
TypeName
System.Stringitem
System.Byte[]value

ConvertToBytes(String[])

View Source
Declaration
protected byte[][] ConvertToBytes(string[] keys)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]keys

CreatePipelineCommand()

View Source
Declaration
public RedisPipelineCommand CreatePipelineCommand()
Returns

ServiceStack.Redis.Pipeline.RedisPipelineCommand

CreateSubscription()

View Source
Declaration
public virtual IRedisSubscription CreateSubscription()
Returns

ServiceStack.Redis.IRedisSubscription

DebugSegfault()

View Source
Declaration
public void DebugSegfault()

DebugSleep(Double)

View Source
Declaration
public void DebugSleep(double durationSecs)
Parameters
TypeName
System.DoubledurationSecs

Decr(String)

View Source
Declaration
public long Decr(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

DecrBy(String, Int32)

View Source
Declaration
public long DecrBy(string key, int count)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32count

Del(Byte[])

View Source
Declaration
public long Del(byte[] key)
Returns

System.Int64

Parameters
TypeName
System.Byte[]key

Del(String)

View Source
Declaration
public long Del(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

Del(String[])

View Source
Declaration
public long Del(params string[] keys)
Returns

System.Int64

Parameters
TypeName
System.String[]keys

Dispose()

View Source
Declaration
public virtual void Dispose()

Dispose(Boolean)

View Source
Declaration
protected virtual void Dispose(bool disposing)
Parameters
TypeName
System.Booleandisposing

DisposeTimers()

View Source
Declaration
public static void DisposeTimers()

Dump(String)

View Source
Declaration
public byte[] Dump(string key)
Returns

System.Byte[]

Parameters
TypeName
System.Stringkey

Echo(String)

View Source
Declaration
public string Echo(string text)
Returns

System.String

Parameters
TypeName
System.Stringtext

Eval(String, Int32, Byte[][])

View Source
Declaration
public byte[][] Eval(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns

System.Byte[][]

Parameters
TypeName
System.StringluaBody
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalCommand(String, Int32, Byte[][])

View Source
Declaration
public RedisData EvalCommand(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns

ServiceStack.Redis.RedisData

Parameters
TypeName
System.StringluaBody
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalInt(String, Int32, Byte[][])

View Source
Declaration
public long EvalInt(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns

System.Int64

Parameters
TypeName
System.StringluaBody
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalSha(String, Int32, Byte[][])

View Source
Declaration
public byte[][] EvalSha(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns

System.Byte[][]

Parameters
TypeName
System.Stringsha1
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalShaCommand(String, Int32, Byte[][])

View Source
Declaration
public RedisData EvalShaCommand(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns

ServiceStack.Redis.RedisData

Parameters
TypeName
System.Stringsha1
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalShaInt(String, Int32, Byte[][])

View Source
Declaration
public long EvalShaInt(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns

System.Int64

Parameters
TypeName
System.Stringsha1
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalShaStr(String, Int32, Byte[][])

View Source
Declaration
public string EvalShaStr(string sha1, int numberKeysInArgs, params byte[][] keys)
Returns

System.String

Parameters
TypeName
System.Stringsha1
System.Int32numberKeysInArgs
System.Byte[][]keys

EvalStr(String, Int32, Byte[][])

View Source
Declaration
public string EvalStr(string luaBody, int numberKeysInArgs, params byte[][] keys)
Returns

System.String

Parameters
TypeName
System.StringluaBody
System.Int32numberKeysInArgs
System.Byte[][]keys

Exists(String)

View Source
Declaration
public long Exists(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

ExpectSuccess()

View Source
Declaration
protected void ExpectSuccess()

ExpectSuccessFn()

View Source
Declaration
protected long ExpectSuccessFn()
Returns

System.Int64

Expire(Byte[], Int32)

View Source
Declaration
public bool Expire(byte[] key, int seconds)
Returns

System.Boolean

Parameters
TypeName
System.Byte[]key
System.Int32seconds

Expire(String, Int32)

View Source
Declaration
public bool Expire(string key, int seconds)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
System.Int32seconds

ExpireAt(String, Int64)

View Source
Declaration
public bool ExpireAt(string key, long unixTime)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
System.Int64unixTime

Finalize()

View Source
Declaration
protected void Finalize()

FlushAll()

View Source
Declaration
public void FlushAll()

FlushDb()

View Source
Declaration
public void FlushDb()

GeoAdd(String, RedisGeo[])

View Source
Declaration
public long GeoAdd(string key, params RedisGeo[] geoPoints)
Returns

System.Int64

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

GeoAdd(String, Double, Double, String)

View Source
Declaration
public long GeoAdd(string key, double longitude, double latitude, string member)
Returns

System.Int64

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

GeoDist(String, String, String, String)

View Source
Declaration
public double GeoDist(string key, string fromMember, string toMember, string unit = null)
Returns

System.Double

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

GeoHash(String, String[])

View Source
Declaration
public string[] GeoHash(string key, params string[] members)
Returns

System.String[]

Parameters
TypeName
System.Stringkey
System.String[]members

GeoPos(String, String[])

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

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

Parameters
TypeName
System.Stringkey
System.String[]members

GeoRadius(String, Double, Double, Double, String, Boolean, Boolean, Boolean, Nullable<Int32>, Nullable<Boolean>)

View Source
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
TypeName
System.Stringkey
System.Doublelongitude
System.Doublelatitude
System.Doubleradius
System.Stringunit
System.BooleanwithCoords
System.BooleanwithDist
System.BooleanwithHash
System.Nullable<System.Int32>count
System.Nullable<System.Boolean>asc

GeoRadiusByMember(String, String, Double, String, Boolean, Boolean, Boolean, Nullable<Int32>, Nullable<Boolean>)

View Source
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
TypeName
System.Stringkey
System.Stringmember
System.Doubleradius
System.Stringunit
System.BooleanwithCoords
System.BooleanwithDist
System.BooleanwithHash
System.Nullable<System.Int32>count
System.Nullable<System.Boolean>asc

Get(Byte[])

View Source
Declaration
public byte[] Get(byte[] key)
Returns

System.Byte[]

Parameters
TypeName
System.Byte[]key

Get(String)

View Source
Declaration
public byte[] Get(string key)
Returns

System.Byte[]

Parameters
TypeName
System.Stringkey

GetBit(String, Int32)

View Source
Declaration
public long GetBit(string key, int offset)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32offset

GetBytes(String)

View Source
Declaration
public byte[] GetBytes(string key)
Returns

System.Byte[]

Parameters
TypeName
System.Stringkey

GetEntryType(String)

View Source
Declaration
public RedisKeyType GetEntryType(string key)
Returns

ServiceStack.Redis.RedisKeyType

Parameters
TypeName
System.Stringkey

GetRange(String, Int32, Int32)

View Source
Declaration
public byte[] GetRange(string key, int fromIndex, int toIndex)
Returns

System.Byte[]

Parameters
TypeName
System.Stringkey
System.Int32fromIndex
System.Int32toIndex

GetSet(String, Byte[])

View Source
Declaration
public byte[] GetSet(string key, byte[] value)
Returns

System.Byte[]

Parameters
TypeName
System.Stringkey
System.Byte[]value

HDel(Byte[], Byte[])

View Source
Declaration
public long HDel(byte[] hashId, byte[] key)
Returns

System.Int64

Parameters
TypeName
System.Byte[]hashId
System.Byte[]key

HDel(String, Byte[])

View Source
Declaration
public long HDel(string hashId, byte[] key)
Returns

System.Int64

Parameters
TypeName
System.StringhashId
System.Byte[]key

HDel(String, Byte[][])

View Source
Declaration
public long HDel(string hashId, byte[][] keys)
Returns

System.Int64

Parameters
TypeName
System.StringhashId
System.Byte[][]keys

HExists(String, Byte[])

View Source
Declaration
public long HExists(string hashId, byte[] key)
Returns

System.Int64

Parameters
TypeName
System.StringhashId
System.Byte[]key

HGet(Byte[], Byte[])

View Source
Declaration
public byte[] HGet(byte[] hashId, byte[] key)
Returns

System.Byte[]

Parameters
TypeName
System.Byte[]hashId
System.Byte[]key

HGet(String, Byte[])

View Source
Declaration
public byte[] HGet(string hashId, byte[] key)
Returns

System.Byte[]

Parameters
TypeName
System.StringhashId
System.Byte[]key

HGetAll(String)

View Source
Declaration
public byte[][] HGetAll(string hashId)
Returns

System.Byte[][]

Parameters
TypeName
System.StringhashId

HIncrby(String, Byte[], Int32)

View Source
Declaration
public long HIncrby(string hashId, byte[] key, int incrementBy)
Returns

System.Int64

Parameters
TypeName
System.StringhashId
System.Byte[]key
System.Int32incrementBy

HIncrby(String, Byte[], Int64)

View Source
Declaration
public long HIncrby(string hashId, byte[] key, long incrementBy)
Returns

System.Int64

Parameters
TypeName
System.StringhashId
System.Byte[]key
System.Int64incrementBy

HIncrbyFloat(String, Byte[], Double)

View Source
Declaration
public double HIncrbyFloat(string hashId, byte[] key, double incrementBy)
Returns

System.Double

Parameters
TypeName
System.StringhashId
System.Byte[]key
System.DoubleincrementBy

HKeys(String)

View Source
Declaration
public byte[][] HKeys(string hashId)
Returns

System.Byte[][]

Parameters
TypeName
System.StringhashId

HLen(String)

View Source
Declaration
public long HLen(string hashId)
Returns

System.Int64

Parameters
TypeName
System.StringhashId

HMGet(String, Byte[][])

View Source
Declaration
public byte[][] HMGet(string hashId, params byte[][] keys)
Returns

System.Byte[][]

Parameters
TypeName
System.StringhashId
System.Byte[][]keys

HMSet(String, Byte[][], Byte[][])

View Source
Declaration
public void HMSet(string hashId, byte[][] keys, byte[][] values)
Parameters
TypeName
System.StringhashId
System.Byte[][]keys
System.Byte[][]values

HScan(String, UInt64, Int32, String)

View Source
Declaration
public ScanResult HScan(string hashId, ulong cursor, int count = 10, string match = null)
Returns

ServiceStack.Redis.ScanResult

Parameters
TypeName
System.StringhashId
System.UInt64cursor
System.Int32count
System.Stringmatch

HSet(Byte[], Byte[], Byte[])

View Source
Declaration
public long HSet(byte[] hashId, byte[] key, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.Byte[]hashId
System.Byte[]key
System.Byte[]value

HSet(String, Byte[], Byte[])

View Source
Declaration
public long HSet(string hashId, byte[] key, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringhashId
System.Byte[]key
System.Byte[]value

HSetNX(String, Byte[], Byte[])

View Source
Declaration
public long HSetNX(string hashId, byte[] key, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringhashId
System.Byte[]key
System.Byte[]value

HVals(String)

View Source
Declaration
public byte[][] HVals(string hashId)
Returns

System.Byte[][]

Parameters
TypeName
System.StringhashId

Incr(String)

View Source
Declaration
public long Incr(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

IncrBy(String, Int32)

View Source
Declaration
public long IncrBy(string key, int count)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32count

IncrBy(String, Int64)

View Source
Declaration
public long IncrBy(string key, long count)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Int64count

IncrByFloat(String, Double)

View Source
Declaration
public double IncrByFloat(string key, double incrBy)
Returns

System.Double

Parameters
TypeName
System.Stringkey
System.DoubleincrBy

IsSocketConnected()

View Source
Declaration
public bool IsSocketConnected()
Returns

System.Boolean

Keys(String)

View Source
Declaration
public byte[][] Keys(string pattern)
Returns

System.Byte[][]

Parameters
TypeName
System.Stringpattern

LIndex(String, Int32)

View Source
Declaration
public byte[] LIndex(string listId, int listIndex)
Returns

System.Byte[]

Parameters
TypeName
System.StringlistId
System.Int32listIndex

LInsert(String, Boolean, Byte[], Byte[])

View Source
Declaration
public void LInsert(string listId, bool insertBefore, byte[] pivot, byte[] value)
Parameters
TypeName
System.StringlistId
System.BooleaninsertBefore
System.Byte[]pivot
System.Byte[]value

LLen(String)

View Source
Declaration
public long LLen(string listId)
Returns

System.Int64

Parameters
TypeName
System.StringlistId

Log(String, Object[])

View Source
Declaration
protected void Log(string fmt, params object[] args)
Parameters
TypeName
System.Stringfmt
System.Object[]args

LPop(String)

View Source
Declaration
public byte[] LPop(string listId)
Returns

System.Byte[]

Parameters
TypeName
System.StringlistId

LPush(String, Byte[])

View Source
Declaration
public long LPush(string listId, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringlistId
System.Byte[]value

LPush(String, Byte[][])

View Source
Declaration
public long LPush(string listId, byte[][] values)
Returns

System.Int64

Parameters
TypeName
System.StringlistId
System.Byte[][]values

LPushX(String, Byte[])

View Source
Declaration
public long LPushX(string listId, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringlistId
System.Byte[]value

LRange(String, Int32, Int32)

View Source
Declaration
public byte[][] LRange(string listId, int startingFrom, int endingAt)
Returns

System.Byte[][]

Parameters
TypeName
System.StringlistId
System.Int32startingFrom
System.Int32endingAt

LRem(String, Int32, Byte[])

View Source
Declaration
public long LRem(string listId, int removeNoOfMatches, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringlistId
System.Int32removeNoOfMatches
System.Byte[]value

LSet(String, Int32, Byte[])

View Source
Declaration
public void LSet(string listId, int listIndex, byte[] value)
Parameters
TypeName
System.StringlistId
System.Int32listIndex
System.Byte[]value

LTrim(String, Int32, Int32)

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

MergeAndConvertToBytes(String[], String[])

View Source
Declaration
protected byte[][] MergeAndConvertToBytes(string[] keys, string[] args)
Returns

System.Byte[][]

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

MGet(Byte[][])

View Source
Declaration
public byte[][] MGet(params byte[][] keys)
Returns

System.Byte[][]

Parameters
TypeName
System.Byte[][]keys

MGet(String[])

View Source
Declaration
public byte[][] MGet(params string[] keys)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]keys

Migrate(String, Int32, String, Int32, Int64)

View Source
Declaration
public void Migrate(string host, int port, string key, int destinationDb, long timeoutMs)
Parameters
TypeName
System.Stringhost
System.Int32port
System.Stringkey
System.Int32destinationDb
System.Int64timeoutMs

Move(String, Int32)

View Source
Declaration
public bool Move(string key, int db)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
System.Int32db

MSet(Byte[][], Byte[][])

View Source
Declaration
public void MSet(byte[][] keys, byte[][] values)
Parameters
TypeName
System.Byte[][]keys
System.Byte[][]values

MSet(String[], Byte[][])

View Source
Declaration
public void MSet(string[] keys, byte[][] values)
Parameters
TypeName
System.String[]keys
System.Byte[][]values

MSetNx(Byte[][], Byte[][])

View Source
Declaration
public bool MSetNx(byte[][] keys, byte[][] values)
Returns

System.Boolean

Parameters
TypeName
System.Byte[][]keys
System.Byte[][]values

MSetNx(String[], Byte[][])

View Source
Declaration
public bool MSetNx(string[] keys, byte[][] values)
Returns

System.Boolean

Parameters
TypeName
System.String[]keys
System.Byte[][]values

ObjectIdleTime(String)

View Source
Declaration
public long ObjectIdleTime(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

OnConnected()

View Source
Declaration
public virtual void OnConnected()

ParseDouble(Byte[])

View Source
Declaration
public static double ParseDouble(byte[] doubleBytes)
Returns

System.Double

Parameters
TypeName
System.Byte[]doubleBytes

Persist(String)

View Source
Declaration
public bool Persist(string key)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey

PExpire(Byte[], Int64)

View Source
Declaration
public bool PExpire(byte[] key, long ttlMs)
Returns

System.Boolean

Parameters
TypeName
System.Byte[]key
System.Int64ttlMs

PExpire(String, Int64)

View Source
Declaration
public bool PExpire(string key, long ttlMs)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
System.Int64ttlMs

PExpireAt(String, Int64)

View Source
Declaration
public bool PExpireAt(string key, long unixTimeMs)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
System.Int64unixTimeMs

PfAdd(String, Byte[][])

View Source
Declaration
public bool PfAdd(string key, params byte[][] elements)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
System.Byte[][]elements

PfCount(String)

View Source
Declaration
public long PfCount(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

PfMerge(String, String[])

View Source
Declaration
public void PfMerge(string toKeyId, params string[] fromKeys)
Parameters
TypeName
System.StringtoKeyId
System.String[]fromKeys

Ping()

View Source
Declaration
public bool Ping()
Returns

System.Boolean

PSetEx(String, Int64, Byte[])

View Source
Declaration
public void PSetEx(string key, long expireInMs, byte[] value)
Parameters
TypeName
System.Stringkey
System.Int64expireInMs
System.Byte[]value

PSubscribe(String[])

View Source
Declaration
public byte[][] PSubscribe(params string[] toChannelsMatchingPatterns)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]toChannelsMatchingPatterns

PTtl(String)

View Source
Declaration
public long PTtl(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

Publish(String, Byte[])

View Source
Declaration
public long Publish(string toChannel, byte[] message)
Returns

System.Int64

Parameters
TypeName
System.StringtoChannel
System.Byte[]message

PUnSubscribe(String[])

View Source
Declaration
public byte[][] PUnSubscribe(params string[] fromChannelsMatchingPatterns)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]fromChannelsMatchingPatterns

Quit()

View Source
Declaration
public void Quit()

RandomKey()

View Source
Declaration
public string RandomKey()
Returns

System.String

RawCommand(Byte[][])

View Source
Declaration
public RedisData RawCommand(params byte[][] cmdWithBinaryArgs)
Returns

ServiceStack.Redis.RedisData

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

RawCommand(Object[])

View Source
Declaration
public RedisData RawCommand(params object[] cmdWithArgs)
Returns

ServiceStack.Redis.RedisData

Parameters
TypeName
System.Object[]cmdWithArgs

RawCommandAsync(CancellationToken, Object[])

View Source
Declaration
protected ValueTask<RedisData> RawCommandAsync(CancellationToken token, params object[] cmdWithArgs)
Returns

ValueTask<ServiceStack.Redis.RedisData>

Parameters
TypeName
System.Threading.CancellationTokentoken
System.Object[]cmdWithArgs

ReadDouble()

View Source
Declaration
public double ReadDouble()
Returns

System.Double

ReadLine()

View Source
Declaration
protected string ReadLine()
Returns

System.String

ReadLong()

View Source
Declaration
public long ReadLong()
Returns

System.Int64

ReceiveMessages()

View Source
Declaration
public byte[][] ReceiveMessages()
Returns

System.Byte[][]

Rename(String, String)

View Source
Declaration
public void Rename(string oldKeyName, string newKeyName)
Parameters
TypeName
System.StringoldKeyName
System.StringnewKeyName

RenameNx(String, String)

View Source
Declaration
public bool RenameNx(string oldKeyName, string newKeyName)
Returns

System.Boolean

Parameters
TypeName
System.StringoldKeyName
System.StringnewKeyName

ResetSendBuffer()

reset buffer index in send buffer

View Source
Declaration
public void ResetSendBuffer()

Restore(String, Int64, Byte[])

View Source
Declaration
public byte[] Restore(string key, long expireMs, byte[] dumpValue)
Returns

System.Byte[]

Parameters
TypeName
System.Stringkey
System.Int64expireMs
System.Byte[]dumpValue

Role()

View Source
Declaration
public RedisText Role()
Returns

ServiceStack.Redis.RedisText

RPop(String)

View Source
Declaration
public byte[] RPop(string listId)
Returns

System.Byte[]

Parameters
TypeName
System.StringlistId

RPopLPush(String, String)

View Source
Declaration
public byte[] RPopLPush(string fromListId, string toListId)
Returns

System.Byte[]

Parameters
TypeName
System.StringfromListId
System.StringtoListId

RPush(String, Byte[])

View Source
Declaration
public long RPush(string listId, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringlistId
System.Byte[]value

RPush(String, Byte[][])

View Source
Declaration
public long RPush(string listId, byte[][] values)
Returns

System.Int64

Parameters
TypeName
System.StringlistId
System.Byte[][]values

RPushX(String, Byte[])

View Source
Declaration
public long RPushX(string listId, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringlistId
System.Byte[]value

SAdd(String, Byte[])

View Source
Declaration
public long SAdd(string setId, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

SAdd(String, Byte[][])

View Source
Declaration
public long SAdd(string setId, byte[][] values)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[][]values

Save()

View Source
Declaration
public void Save()

SaveAsync()

View Source
Declaration
public void SaveAsync()

Scan(UInt64, Int32, String)

View Source
Declaration
public ScanResult Scan(ulong cursor, int count = 10, string match = null)
Returns

ServiceStack.Redis.ScanResult

Parameters
TypeName
System.UInt64cursor
System.Int32count
System.Stringmatch

SCard(String)

View Source
Declaration
public long SCard(string setId)
Returns

System.Int64

Parameters
TypeName
System.StringsetId

ScriptExists(Byte[][])

View Source
Declaration
public byte[][] ScriptExists(params byte[][] sha1Refs)
Returns

System.Byte[][]

Parameters
TypeName
System.Byte[][]sha1Refs

ScriptFlush()

View Source
Declaration
public void ScriptFlush()

ScriptKill()

View Source
Declaration
public void ScriptKill()

ScriptLoad(String)

View Source
Declaration
public byte[] ScriptLoad(string luaBody)
Returns

System.Byte[]

Parameters
TypeName
System.StringluaBody

SDiff(String, String[])

View Source
Declaration
public byte[][] SDiff(string fromSetId, params string[] withSetIds)
Returns

System.Byte[][]

Parameters
TypeName
System.StringfromSetId
System.String[]withSetIds

SDiffStore(String, String, String[])

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

SendExpectCode(Byte[][])

View Source
Declaration
protected string SendExpectCode(params byte[][] cmdWithBinaryArgs)
Returns

System.String

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectComplexResponse(Byte[][])

View Source
Declaration
protected RedisData SendExpectComplexResponse(params byte[][] cmdWithBinaryArgs)
Returns

ServiceStack.Redis.RedisData

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectComplexResponseAsync(CancellationToken, Byte[][])

View Source
Declaration
protected ValueTask<RedisData> SendExpectComplexResponseAsync(CancellationToken token, params byte[][] cmdWithBinaryArgs)
Returns

ValueTask<ServiceStack.Redis.RedisData>

Parameters
TypeName
System.Threading.CancellationTokentoken
System.Byte[][]cmdWithBinaryArgs

SendExpectData(Byte[][])

View Source
Declaration
protected byte[] SendExpectData(params byte[][] cmdWithBinaryArgs)
Returns

System.Byte[]

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectDeeplyNestedMultiData(Byte[][])

View Source
Declaration
protected object[] SendExpectDeeplyNestedMultiData(params byte[][] cmdWithBinaryArgs)
Returns

System.Object[]

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectDouble(Byte[][])

View Source
Declaration
protected double SendExpectDouble(params byte[][] cmdWithBinaryArgs)
Returns

System.Double

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectLong(Byte[][])

View Source
Declaration
protected long SendExpectLong(params byte[][] cmdWithBinaryArgs)
Returns

System.Int64

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectMultiData(Byte[][])

View Source
Declaration
protected byte[][] SendExpectMultiData(params byte[][] cmdWithBinaryArgs)
Returns

System.Byte[][]

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectString(Byte[][])

View Source
Declaration
protected string SendExpectString(params byte[][] cmdWithBinaryArgs)
Returns

System.String

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectStringAsync(CancellationToken, Byte[][])

View Source
Declaration
protected ValueTask<string> SendExpectStringAsync(CancellationToken token, params byte[][] cmdWithBinaryArgs)
Returns

ValueTask<System.String>

Parameters
TypeName
System.Threading.CancellationTokentoken
System.Byte[][]cmdWithBinaryArgs

SendExpectStringDictionaryList(Byte[][])

View Source
Declaration
protected List<Dictionary<string, string>> SendExpectStringDictionaryList(params byte[][] cmdWithBinaryArgs)
Returns

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

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendExpectSuccess(Byte[][])

View Source
Declaration
protected void SendExpectSuccess(params byte[][] cmdWithBinaryArgs)
Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendReceive<T>(Byte[][], Func<T>, Action<Func<T>>, Boolean, String)

View Source
Declaration
protected T SendReceive<T>(byte[][] cmdWithBinaryArgs, Func<T> fn, Action<Func<T>> completePipelineFn = null, bool sendWithoutRead = false, string operation = "")
Returns

<T>

Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs
System.Func<<T>>fn
System.Action<System.Func<<T>>>completePipelineFn
System.BooleansendWithoutRead
System.Stringoperation
Type Parameters
  • T

SendUnmanagedExpectSuccess(Byte[][])

Send command outside of managed Write Buffer

View Source
Declaration
protected void SendUnmanagedExpectSuccess(params byte[][] cmdWithBinaryArgs)
Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendWithoutRead(Byte[][])

View Source
Declaration
protected void SendWithoutRead(params byte[][] cmdWithBinaryArgs)
Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

SendWithoutReadAsync(CancellationToken, Byte[][])

View Source
Declaration
protected ValueTask SendWithoutReadAsync(CancellationToken token, params byte[][] cmdWithBinaryArgs)
Returns

ValueTask

Parameters
TypeName
System.Threading.CancellationTokentoken
System.Byte[][]cmdWithBinaryArgs

SentinelFailover(String)

View Source
Declaration
public void SentinelFailover(string masterName)
Parameters
TypeName
System.StringmasterName

SentinelGetMasterAddrByName(String)

View Source
Declaration
public List<string> SentinelGetMasterAddrByName(string masterName)
Returns

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

Parameters
TypeName
System.StringmasterName

SentinelMaster(String)

View Source
Declaration
public Dictionary<string, string> SentinelMaster(string masterName)
Returns

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

Parameters
TypeName
System.StringmasterName

SentinelMasters()

View Source
Declaration
public List<Dictionary<string, string>> SentinelMasters()
Returns

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

SentinelSentinels(String)

View Source
Declaration
public List<Dictionary<string, string>> SentinelSentinels(string masterName)
Returns

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

Parameters
TypeName
System.StringmasterName

SentinelSlaves(String)

View Source
Declaration
public List<Dictionary<string, string>> SentinelSlaves(string masterName)
Returns

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

Parameters
TypeName
System.StringmasterName

Set(Byte[], Byte[], Int32, Int64)

View Source
Declaration
public void Set(byte[] key, byte[] value, int expirySeconds, long expiryMs = 0L)
Parameters
TypeName
System.Byte[]key
System.Byte[]value
System.Int32expirySeconds
System.Int64expiryMs

Set(String, Byte[])

View Source
Declaration
public void Set(string key, byte[] value)
Parameters
TypeName
System.Stringkey
System.Byte[]value

Set(String, Byte[], Boolean, Int32, Int64)

View Source
Declaration
public bool Set(string key, byte[] value, bool exists, int expirySeconds = 0, long expiryMs = 0L)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
System.Byte[]value
System.Booleanexists
System.Int32expirySeconds
System.Int64expiryMs

Set(String, Byte[], Int32, Int64)

View Source
Declaration
public void Set(string key, byte[] value, int expirySeconds, long expiryMs = 0L)
Parameters
TypeName
System.Stringkey
System.Byte[]value
System.Int32expirySeconds
System.Int64expiryMs

SetBit(String, Int32, Int32)

View Source
Declaration
public long SetBit(string key, int offset, int value)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32offset
System.Int32value

SetEx(Byte[], Int32, Byte[])

View Source
Declaration
public void SetEx(byte[] key, int expireInSeconds, byte[] value)
Parameters
TypeName
System.Byte[]key
System.Int32expireInSeconds
System.Byte[]value

SetEx(String, Int32, Byte[])

View Source
Declaration
public void SetEx(string key, int expireInSeconds, byte[] value)
Parameters
TypeName
System.Stringkey
System.Int32expireInSeconds
System.Byte[]value

SetNX(String, Byte[])

View Source
Declaration
public long SetNX(string key, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Byte[]value

SetRange(String, Int32, Byte[])

View Source
Declaration
public long SetRange(string key, int offset, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Int32offset
System.Byte[]value

Shutdown()

View Source
Declaration
public void Shutdown()

ShutdownNoSave()

View Source
Declaration
public void ShutdownNoSave()

SInter(String[])

View Source
Declaration
public byte[][] SInter(params string[] setIds)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]setIds

SInterStore(String, String[])

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

SIsMember(String, Byte[])

View Source
Declaration
public long SIsMember(string setId, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

SlaveOf(String, Int32)

View Source
Declaration
public void SlaveOf(string hostname, int port)
Parameters
TypeName
System.Stringhostname
System.Int32port

SlaveOfNoOne()

View Source
Declaration
public void SlaveOfNoOne()

Slowlog(Nullable<Int32>)

View Source
Declaration
public object[] Slowlog(int? top)
Returns

System.Object[]

Parameters
TypeName
System.Nullable<System.Int32>top

SlowlogReset()

View Source
Declaration
public void SlowlogReset()

SMembers(String)

View Source
Declaration
public byte[][] SMembers(string setId)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId

SMove(String, String, Byte[])

View Source
Declaration
public void SMove(string fromSetId, string toSetId, byte[] value)
Parameters
TypeName
System.StringfromSetId
System.StringtoSetId
System.Byte[]value

Sort(String, SortOptions)

View Source
Declaration
public byte[][] Sort(string listOrSetId, SortOptions sortOptions)
Returns

System.Byte[][]

Parameters
TypeName
System.StringlistOrSetId
ServiceStack.Redis.SortOptionssortOptions

SPop(String)

View Source
Declaration
public byte[] SPop(string setId)
Returns

System.Byte[]

Parameters
TypeName
System.StringsetId

SPop(String, Int32)

View Source
Declaration
public byte[][] SPop(string setId, int count)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Int32count

SRandMember(String)

View Source
Declaration
public byte[] SRandMember(string setId)
Returns

System.Byte[]

Parameters
TypeName
System.StringsetId

SRandMember(String, Int32)

View Source
Declaration
public byte[][] SRandMember(string setId, int count)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Int32count

SRem(String, Byte[])

View Source
Declaration
public long SRem(string setId, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

SRem(String, Byte[][])

View Source
Declaration
public long SRem(string setId, byte[][] values)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[][]values

SScan(String, UInt64, Int32, String)

View Source
Declaration
public ScanResult SScan(string setId, ulong cursor, int count = 10, string match = null)
Returns

ServiceStack.Redis.ScanResult

Parameters
TypeName
System.StringsetId
System.UInt64cursor
System.Int32count
System.Stringmatch

StrLen(String)

View Source
Declaration
public long StrLen(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

Subscribe(String[])

View Source
Declaration
public byte[][] Subscribe(params string[] toChannels)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]toChannels

SUnion(String[])

View Source
Declaration
public byte[][] SUnion(params string[] setIds)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]setIds

SUnionStore(String, String[])

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

Time()

View Source
Declaration
public byte[][] Time()
Returns

System.Byte[][]

Ttl(String)

View Source
Declaration
public long Ttl(string key)
Returns

System.Int64

Parameters
TypeName
System.Stringkey

Type(String)

View Source
Declaration
public string Type(string key)
Returns

System.String

Parameters
TypeName
System.Stringkey

UnSubscribe(String[])

View Source
Declaration
public byte[][] UnSubscribe(params string[] fromChannels)
Returns

System.Byte[][]

Parameters
TypeName
System.String[]fromChannels

UnWatch()

View Source
Declaration
public void UnWatch()

Watch(String[])

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

WriteAllToSendBuffer(Byte[][])

View Source
Declaration
public void WriteAllToSendBuffer(params byte[][] cmdWithBinaryArgs)
Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

WriteCommandToSendBuffer(Byte[][])

Command to set multiple binary safe arguments

View Source
Declaration
protected void WriteCommandToSendBuffer(params byte[][] cmdWithBinaryArgs)
Parameters
TypeName
System.Byte[][]cmdWithBinaryArgs

WriteToSendBuffer(Byte[])

View Source
Declaration
public void WriteToSendBuffer(byte[] cmdBytes)
Parameters
TypeName
System.Byte[]cmdBytes

ZAdd(String, List<KeyValuePair<Byte[], Double>>)

View Source
Declaration
public long ZAdd(string setId, List<KeyValuePair<byte[], double>> pairs)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Byte[],System.Double>>pairs

ZAdd(String, List<KeyValuePair<Byte[], Int64>>)

View Source
Declaration
public long ZAdd(string setId, List<KeyValuePair<byte[], long>> pairs)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Byte[],System.Int64>>pairs

ZAdd(String, Double, Byte[])

View Source
Declaration
public long ZAdd(string setId, double score, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Doublescore
System.Byte[]value

ZAdd(String, Int64, Byte[])

View Source
Declaration
public long ZAdd(string setId, long score, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Int64score
System.Byte[]value

ZCard(String)

View Source
Declaration
public long ZCard(string setId)
Returns

System.Int64

Parameters
TypeName
System.StringsetId

ZCount(String, Double, Double)

View Source
Declaration
public long ZCount(string setId, double min, double max)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Doublemin
System.Doublemax

ZCount(String, Int64, Int64)

View Source
Declaration
public long ZCount(string setId, long min, long max)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Int64min
System.Int64max

ZIncrBy(String, Double, Byte[])

View Source
Declaration
public double ZIncrBy(string setId, double incrBy, byte[] value)
Returns

System.Double

Parameters
TypeName
System.StringsetId
System.DoubleincrBy
System.Byte[]value

ZIncrBy(String, Int64, Byte[])

View Source
Declaration
public double ZIncrBy(string setId, long incrBy, byte[] value)
Returns

System.Double

Parameters
TypeName
System.StringsetId
System.Int64incrBy
System.Byte[]value

ZInterStore(String, String[])

View Source
Declaration
public long ZInterStore(string intoSetId, params string[] setIds)
Returns

System.Int64

Parameters
TypeName
System.StringintoSetId
System.String[]setIds

ZInterStore(String, String[], String[])

View Source
Declaration
public long ZInterStore(string intoSetId, string[] setIds, string[] args)
Returns

System.Int64

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

ZLexCount(String, String, String)

View Source
Declaration
public long ZLexCount(string setId, string min, string max)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Stringmin
System.Stringmax

ZRange(String, Int32, Int32)

View Source
Declaration
public byte[][] ZRange(string setId, int min, int max)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Int32min
System.Int32max

ZRangeByLex(String, String, String, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public byte[][] ZRangeByLex(string setId, string min, string max, int? skip = null, int? take = null)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Stringmin
System.Stringmax
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRangeByScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public byte[][] ZRangeByScore(string setId, double min, double max, int? skip, int? take)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Doublemin
System.Doublemax
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRangeByScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public byte[][] ZRangeByScore(string setId, long min, long max, int? skip, int? take)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Int64min
System.Int64max
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRangeByScoreWithScores(String, Double, Double, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public byte[][] ZRangeByScoreWithScores(string setId, double min, double max, int? skip, int? take)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Doublemin
System.Doublemax
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRangeByScoreWithScores(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public byte[][] ZRangeByScoreWithScores(string setId, long min, long max, int? skip, int? take)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Int64min
System.Int64max
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRangeWithScores(String, Int32, Int32)

View Source
Declaration
public byte[][] ZRangeWithScores(string setId, int min, int max)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Int32min
System.Int32max

ZRank(String, Byte[])

View Source
Declaration
public long ZRank(string setId, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

ZRem(String, Byte[])

View Source
Declaration
public long ZRem(string setId, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

ZRem(String, Byte[][])

View Source
Declaration
public long ZRem(string setId, byte[][] values)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[][]values

ZRemRangeByLex(String, String, String)

View Source
Declaration
public long ZRemRangeByLex(string setId, string min, string max)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Stringmin
System.Stringmax

ZRemRangeByRank(String, Int32, Int32)

View Source
Declaration
public long ZRemRangeByRank(string setId, int min, int max)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Int32min
System.Int32max

ZRemRangeByScore(String, Double, Double)

View Source
Declaration
public long ZRemRangeByScore(string setId, double fromScore, double toScore)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.DoublefromScore
System.DoubletoScore

ZRemRangeByScore(String, Int64, Int64)

View Source
Declaration
public long ZRemRangeByScore(string setId, long fromScore, long toScore)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Int64fromScore
System.Int64toScore

ZRevRange(String, Int32, Int32)

View Source
Declaration
public byte[][] ZRevRange(string setId, int min, int max)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Int32min
System.Int32max

ZRevRangeByScore(String, Double, Double, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public byte[][] ZRevRangeByScore(string setId, double min, double max, int? skip, int? take)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Doublemin
System.Doublemax
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRevRangeByScore(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public byte[][] ZRevRangeByScore(string setId, long min, long max, int? skip, int? take)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Int64min
System.Int64max
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRevRangeByScoreWithScores(String, Double, Double, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public byte[][] ZRevRangeByScoreWithScores(string setId, double min, double max, int? skip, int? take)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Doublemin
System.Doublemax
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRevRangeByScoreWithScores(String, Int64, Int64, Nullable<Int32>, Nullable<Int32>)

View Source
Declaration
public byte[][] ZRevRangeByScoreWithScores(string setId, long min, long max, int? skip, int? take)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Int64min
System.Int64max
System.Nullable<System.Int32>skip
System.Nullable<System.Int32>take

ZRevRangeWithScores(String, Int32, Int32)

View Source
Declaration
public byte[][] ZRevRangeWithScores(string setId, int min, int max)
Returns

System.Byte[][]

Parameters
TypeName
System.StringsetId
System.Int32min
System.Int32max

ZRevRank(String, Byte[])

View Source
Declaration
public long ZRevRank(string setId, byte[] value)
Returns

System.Int64

Parameters
TypeName
System.StringsetId
System.Byte[]value

ZScan(String, UInt64, Int32, String)

View Source
Declaration
public ScanResult ZScan(string setId, ulong cursor, int count = 10, string match = null)
Returns

ServiceStack.Redis.ScanResult

Parameters
TypeName
System.StringsetId
System.UInt64cursor
System.Int32count
System.Stringmatch

ZScore(String, Byte[])

View Source
Declaration
public double ZScore(string setId, byte[] value)
Returns

System.Double

Parameters
TypeName
System.StringsetId
System.Byte[]value

ZUnionStore(String, String[])

View Source
Declaration
public long ZUnionStore(string intoSetId, params string[] setIds)
Returns

System.Int64

Parameters
TypeName
System.StringintoSetId
System.String[]setIds

ZUnionStore(String, String[], String[])

View Source
Declaration
public long ZUnionStore(string intoSetId, string[] setIds, string[] args)
Returns

System.Int64

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

Implements