forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRedisClientCacheManager.cs
More file actions
45 lines (40 loc) · 1.27 KB
/
IRedisClientCacheManager.cs
File metadata and controls
45 lines (40 loc) · 1.27 KB
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
45
//
// 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 IRedisClientCacheManager
: 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();
}
}