-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
IRedisClientsManager.cs
44 lines (39 loc) · 1.26 KB
/
IRedisClientsManager.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// https://github.com/ServiceStack/ServiceStack.Redis
// ServiceStack.Redis: ECMA CLI Binding to the Redis key-value storage system
//
// Authors:
// Demis Bellot (demis.bellot@gmail.com)
//
// Copyright 2017 ServiceStack, Inc. All Rights Reserved.
//
// Licensed under the same terms of ServiceStack.
//
using System;
using ServiceStack.Caching;
namespace ServiceStack.Redis
{
public interface IRedisClientsManager : IDisposable
{
/// <summary>
/// Returns a Read/Write client (The default) using the hosts defined in ReadWriteHosts
/// </summary>
/// <returns></returns>
IRedisClient GetClient();
/// <summary>
/// Returns a ReadOnly client using the hosts defined in ReadOnlyHosts.
/// </summary>
/// <returns></returns>
IRedisClient GetReadOnlyClient();
/// <summary>
/// Returns a Read/Write ICacheClient (The default) using the hosts defined in ReadWriteHosts
/// </summary>
/// <returns></returns>
ICacheClient GetCacheClient();
/// <summary>
/// Returns a ReadOnly ICacheClient using the hosts defined in ReadOnlyHosts.
/// </summary>
/// <returns></returns>
ICacheClient GetReadOnlyCacheClient();
}
}