/// <summary> /// GEOADD : https://redis.io/commands/geoadd /// </summary> public Task <bool> AddAsync(double longitude, double latitude, T member, TimeSpan?expiry = null, CommandFlags flags = CommandFlags.None) { expiry = expiry ?? this.DefaultExpiry; var entry = new RedisGeoEntry <T>(longitude, latitude, member); return(this.AddAsync(entry, expiry, flags)); }
//- [x] GeoAddAsync //- [x] GeoDistanceAsync //- [x] GeoHashAsync //- [x] GeoPositionAsync //- [x] GeoRadiusAsync //- [x] GeoRemoveAsync /// <summary> /// GEOADD : https://redis.io/commands/geoadd /// </summary> public Task <bool> AddAsync(RedisGeoEntry <T> value, TimeSpan?expiry = null, CommandFlags flags = CommandFlags.None) { expiry = expiry ?? this.DefaultExpiry; var entry = value.ToNonGenerics(this.Connection.Converter); return(this.ExecuteWithExpiryAsync ( (db, a) => db.GeoAddAsync(a.key, a.entry, a.flags), (key: this.Key, entry, flags), expiry, flags )); }