From 468c62f71c9550974147c0d91e3037fdbb141872 Mon Sep 17 00:00:00 2001 From: fahreddinozcan Date: Thu, 15 Feb 2024 12:42:51 +0300 Subject: [PATCH] fix: geocommand export location --- pkg/pipeline.ts | 72 ++++++++++++++++++++++++------------------------- pkg/redis.ts | 72 ++++++++++++++++++++++++------------------------- 2 files changed, 72 insertions(+), 72 deletions(-) diff --git a/pkg/pipeline.ts b/pkg/pipeline.ts index df28135c..dfdb48a7 100644 --- a/pkg/pipeline.ts +++ b/pkg/pipeline.ts @@ -412,6 +412,42 @@ export class Pipeline[] = []> { flushdb = (...args: CommandArgs) => this.chain(new FlushDBCommand(args, this.commandOptions)); + /** + * @see https://redis.io/commands/geoadd + */ + geoadd = (...args: CommandArgs) => + this.chain(new GeoAddCommand(args, this.commandOptions)); + + /** + * @see https://redis.io/commands/geodist + */ + geodist = (...args: CommandArgs) => + this.chain(new GeoDistCommand(args, this.commandOptions)); + + /** + * @see https://redis.io/commands/geopos + */ + geopos = (...args: CommandArgs) => + this.chain(new GeoPosCommand(args, this.commandOptions)); + + /** + * @see https://redis.io/commands/geohash + */ + geohash = (...args: CommandArgs) => + this.chain(new GeoHashCommand(args, this.commandOptions)); + + /** + * @see https://redis.io/commands/geosearch + */ + geosearch = (...args: CommandArgs) => + this.chain(new GeoSearchCommand(args, this.commandOptions)); + + /** + * @see https://redis.io/commands/geosearchstore + */ + geosearchstore = (...args: CommandArgs) => + this.chain(new GeoSearchStoreCommand(args, this.commandOptions)); + /** * @see https://redis.io/commands/get */ @@ -1233,42 +1269,6 @@ export class Pipeline[] = []> { forget: (...args: CommandArgs) => this.chain(new JsonForgetCommand(args, this.commandOptions)), - /** - * @see https://redis.io/commands/geoadd - */ - geoadd: (...args: CommandArgs) => - this.chain(new GeoAddCommand(args, this.commandOptions)), - - /** - * @see https://redis.io/commands/geodist - */ - geodist: (...args: CommandArgs) => - this.chain(new GeoDistCommand(args, this.commandOptions)), - - /** - * @see https://redis.io/commands/geopos - */ - geopos: (...args: CommandArgs) => - this.chain(new GeoPosCommand(args, this.commandOptions)), - - /** - * @see https://redis.io/commands/geohash - */ - geohash: (...args: CommandArgs) => - this.chain(new GeoHashCommand(args, this.commandOptions)), - - /** - * @see https://redis.io/commands/geosearch - */ - geosearch: (...args: CommandArgs) => - this.chain(new GeoSearchCommand(args, this.commandOptions)), - - /** - * @see https://redis.io/commands/geosearchstore - */ - geosearchstore: (...args: CommandArgs) => - this.chain(new GeoSearchStoreCommand(args, this.commandOptions)), - /** * @see https://redis.io/commands/json.get */ diff --git a/pkg/redis.ts b/pkg/redis.ts index a891f10d..70125ee7 100644 --- a/pkg/redis.ts +++ b/pkg/redis.ts @@ -261,42 +261,6 @@ export class Redis { forget: (...args: CommandArgs) => new JsonForgetCommand(args, this.opts).exec(this.client), - /** - * @see https://redis.io/commands/geoadd - */ - geoadd: (...args: CommandArgs) => - new GeoAddCommand(args, this.opts).exec(this.client), - - /** - * @see https://redis.io/commands/geopos - */ - geopos: (...args: CommandArgs) => - new GeoPosCommand(args, this.opts).exec(this.client), - - /** - * @see https://redis.io/commands/geodist - */ - geodist: (...args: CommandArgs) => - new GeoDistCommand(args, this.opts).exec(this.client), - - /** - * @see https://redis.io/commands/geohash - */ - geohash: (...args: CommandArgs) => - new GeoHashCommand(args, this.opts).exec(this.client), - - /** - * @see https://redis.io/commands/geosearch - */ - geosearch: (...args: CommandArgs) => - new GeoSearchCommand(args, this.opts).exec(this.client), - - /** - * @see https://redis.io/commands/geosearchstore - */ - geosearchstore: (...args: CommandArgs) => - new GeoSearchStoreCommand(args, this.opts).exec(this.client), - /** * @see https://redis.io/commands/json.get */ @@ -548,6 +512,42 @@ export class Redis { flushdb = (...args: CommandArgs) => new FlushDBCommand(args, this.opts).exec(this.client); + /** + * @see https://redis.io/commands/geoadd + */ + geoadd = (...args: CommandArgs) => + new GeoAddCommand(args, this.opts).exec(this.client); + + /** + * @see https://redis.io/commands/geopos + */ + geopos = (...args: CommandArgs) => + new GeoPosCommand(args, this.opts).exec(this.client); + + /** + * @see https://redis.io/commands/geodist + */ + geodist = (...args: CommandArgs) => + new GeoDistCommand(args, this.opts).exec(this.client); + + /** + * @see https://redis.io/commands/geohash + */ + geohash = (...args: CommandArgs) => + new GeoHashCommand(args, this.opts).exec(this.client); + + /** + * @see https://redis.io/commands/geosearch + */ + geosearch = (...args: CommandArgs) => + new GeoSearchCommand(args, this.opts).exec(this.client); + + /** + * @see https://redis.io/commands/geosearchstore + */ + geosearchstore = (...args: CommandArgs) => + new GeoSearchStoreCommand(args, this.opts).exec(this.client); + /** * @see https://redis.io/commands/get */