/
IRedisSet.cs
32 lines (29 loc) · 1004 Bytes
/
IRedisSet.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
//
// 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.Collections.Generic;
using ServiceStack.Model;
namespace ServiceStack.Redis;
public interface IRedisSet
: ICollection<string>, IHasStringId
{
List<string> GetRangeFromSortedSet(int startingFrom, int endingAt);
HashSet<string> GetAll();
string Pop();
void Move(string value, IRedisSet toSet);
HashSet<string> Intersect(params IRedisSet[] withSets);
void StoreIntersect(params IRedisSet[] withSets);
HashSet<string> Union(params IRedisSet[] withSets);
void StoreUnion(params IRedisSet[] withSets);
HashSet<string> Diff(IRedisSet[] withSets);
void StoreDiff(IRedisSet fromSet, params IRedisSet[] withSets);
string GetRandomEntry();
}