Commit 3f120d27 authored by William Davis's avatar William Davis

Started work on GeoEntry type

parent 6b747c59
......@@ -44,6 +44,10 @@ public interface IDatabase : IRedis, IDatabaseAsync
/// <remarks>http://redis.io/commands/debug-object</remarks>
RedisValue DebugObject(RedisKey key, CommandFlags flags = CommandFlags.None);
int GeoAdd(RedisKey key,RedisValue latitude, RedisValue longitude,RedisValue name)
/// <summary>
/// Decrements the number stored at field in the hash stored at key by decrement. If key does not exist, a new key holding a hash is created. If field does not exist or holds a string that cannot be interpreted as integer, the value is set to 0 before the operation is performed.
/// </summary>
......
......@@ -2431,4 +2431,4 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes
}
}
}
}
}
......@@ -4,6 +4,40 @@
namespace StackExchange.Redis
{
public struct GeoEntry : IEquatable<SortedSetEntry>, IComparable, IComparable<SortedSetEntry>
{
internal readonly RedisValue element;
internal readonly double latitude;
internal readonly double longitude;
/// <summary>
/// Initializes a GeoEntry value
/// </summary>
public GeoEntry(RedisValue element, double latitude, double longitude)
{
this.element = element;
this.latitude = latitude;
this.longitude = longitude;
}
public bool Equals(SortedSetEntry other)
{
throw new NotImplementedException();
}
public int CompareTo(object obj)
{
throw new NotImplementedException();
}
public int CompareTo(SortedSetEntry other)
{
throw new NotImplementedException();
}
}
/// <summary>
/// Describes a sorted-set element with the corresponding value
/// </summary>
......
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