Interface IDbContext
Interface of DbContextBase contract
Namespace: StoneCo.Framework.Data.Redis.Contexts
Assembly: cs.temp.dll.dll
Syntax
public interface IDbContext
Properties
Database
Database field.
Declaration
IDatabase Database { get; }
Property Value
Type | Description |
---|---|
IDatabase | Instance of StackExchange.Redis.IDatabase object. |
PartialIdsNamespace
Partial namespace Ids field.
Declaration
string PartialIdsNamespace { get; }
Property Value
Type | Description |
---|---|
System.String | String formatted like '$"Collections:IDs:{RedisOptions.Collection}:"'. |
PartialNamespace
Partial namespace field.
Declaration
string PartialNamespace { get; }
Property Value
Type | Description |
---|---|
System.String | String formatted like '$"Collections:{RedisOptions.Collection}:'. |
Methods
GetKeys(String, Int32)
Go to redis and get keys of a uri.
Declaration
IEnumerable<RedisKey> GetKeys(string pattern, int quantity)
Parameters
Type | Name | Description |
---|---|---|
System.String | pattern | Pattern string to naviagate on URI. |
System.Int32 | quantity | Max Number of itens that will be returned. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<RedisKey> | List of StackExchange.Redis.RedisKey object. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Pattern parameter should have a value. |
System.ArgumentOutOfRangeException | Quantity parameter must be more than zero. |