Skip to main content

RedisScripts

Assembly: ServiceStack.Redis.dll
View Source
Declaration
public class RedisScripts : ScriptMethods

Properties

RedisManager

View Source
Declaration
public IRedisClientsManager RedisManager { get; set; }

Inherited Properties

Context

View Source
Declaration
public ScriptContext Context { get; set; }

InvokerCache

View Source
Declaration
public ConcurrentDictionary<string, MethodInvoker> InvokerCache { get; }

Pages

View Source
Declaration
public ISharpPages Pages { get; set; }

Methods

useRedis(ScriptScopeContext, String)

View Source
Declaration
public IgnoreResult useRedis(ScriptScopeContext scope, string redisConnection)
Returns

ServiceStack.Script.IgnoreResult

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringredisConnection

redisCall(ScriptScopeContext, Object)

View Source
Declaration
public object redisCall(ScriptScopeContext scope, object redisCommand)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectredisCommand

redisCall(ScriptScopeContext, Object, Object)

View Source
Declaration
public object redisCall(ScriptScopeContext scope, object redisCommand, object options)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectredisCommand
System.Objectoptions

redisSearchKeys(ScriptScopeContext, String)

View Source
Declaration
public List<RedisSearchResult> redisSearchKeys(ScriptScopeContext scope, string query)
Returns

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

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringquery

redisSearchKeys(ScriptScopeContext, String, Object)

View Source
Declaration
public List<RedisSearchResult> redisSearchKeys(ScriptScopeContext scope, string query, object options)
Returns

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

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringquery
System.Objectoptions

redisInfo(ScriptScopeContext)

View Source
Declaration
public Dictionary<string, string> redisInfo(ScriptScopeContext scope)
Returns

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

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope

redisInfo(ScriptScopeContext, Object)

View Source
Declaration
public Dictionary<string, string> redisInfo(ScriptScopeContext scope, object options)
Returns

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

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectoptions

redisConnectionString(ScriptScopeContext)

View Source
Declaration
public string redisConnectionString(ScriptScopeContext scope)
Returns

System.String

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope

redisConnection(ScriptScopeContext)

View Source
Declaration
public Dictionary<string, object> redisConnection(ScriptScopeContext scope)
Returns

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

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope

redisToConnectionString(ScriptScopeContext, Object)

View Source
Declaration
public string redisToConnectionString(ScriptScopeContext scope, object connectionInfo)
Returns

System.String

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectconnectionInfo

redisToConnectionString(ScriptScopeContext, Object, Object)

View Source
Declaration
public string redisToConnectionString(ScriptScopeContext scope, object connectionInfo, object options)
Returns

System.String

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectconnectionInfo
System.Objectoptions

redisChangeConnection(ScriptScopeContext, Object)

View Source
Declaration
public string redisChangeConnection(ScriptScopeContext scope, object newConnection)
Returns

System.String

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectnewConnection

redisChangeConnection(ScriptScopeContext, Object, Object)

View Source
Declaration
public string redisChangeConnection(ScriptScopeContext scope, object newConnection, object options)
Returns

System.String

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.ObjectnewConnection
System.Objectoptions

redisSearchKeysAsJson(ScriptScopeContext, String, Object)

View Source
Declaration
public string redisSearchKeysAsJson(ScriptScopeContext scope, string query, object options)
Returns

System.String

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringquery
System.Objectoptions

Inherited Methods

GetInvoker(String, Int32, InvokerType)

View Source
Declaration
public MethodInvoker GetInvoker(string name, int argsCount, InvokerType type)
Returns

ServiceStack.MethodInvoker

Parameters
TypeName
System.Stringname
System.Int32argsCount
ServiceStack.Script.InvokerTypetype

QueryFilters(String)

View Source
Declaration
public List<MethodInfo> QueryFilters(string filterName)
Returns

System.Collections.Generic.List<System.Reflection.MethodInfo>

Parameters
TypeName
System.StringfilterName