Commit d4be9a3b authored by Marc Gravell's avatar Marc Gravell

Implement ZUNIONSTORE and ZINTERSTORE

parent e4370fa9
......@@ -63,6 +63,7 @@
<Reference Include="System.IO.Compression" />
</ItemGroup>
<ItemGroup>
<Compile Include="StackExchange\Redis\Aggregate.cs" />
<Compile Include="StackExchange\Redis\RedisChannel.cs" />
<Compile Include="StackExchange\Redis\Bitwise.cs" />
<Compile Include="StackExchange\Redis\ClientFlags.cs" />
......
namespace StackExchange.Redis
{
/// <summary>
/// Specifies how elements should be aggregated when combining sorted sets
/// </summary>
public enum Aggregate
{
/// <summary>
/// The values of the combined elements are added
/// </summary>
Sum,
/// <summary>
/// The least value of the combined elements is used
/// </summary>
Min,
/// <summary>
/// The greatest value of the combined elements is used
/// </summary>
Max
}
}
......@@ -44,6 +44,10 @@ public static readonly RedisValue
DESC = "DESC",
ALPHA = "ALPHA",
STORE = "STORE",
WEIGHTS = "WEIGHTS",
MIN = "MIN",
MAX = "MAX",
AGGREGATE = "AGGREGATE",
// DO NOT CHANGE CASE: these are configuration settings and MUST be as-is
databases = "databases",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment