Skip to content

Commit

Permalink
fix: geocommand export location (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
fahreddinozcan authored Feb 15, 2024
1 parent 660d7a7 commit 9bd1ff4
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 72 deletions.
72 changes: 36 additions & 36 deletions pkg/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,42 @@ export class Pipeline<TCommands extends Command<any, any>[] = []> {
flushdb = (...args: CommandArgs<typeof FlushDBCommand>) =>
this.chain(new FlushDBCommand(args, this.commandOptions));

/**
* @see https://redis.io/commands/geoadd
*/
geoadd = (...args: CommandArgs<typeof GeoAddCommand>) =>
this.chain(new GeoAddCommand(args, this.commandOptions));

/**
* @see https://redis.io/commands/geodist
*/
geodist = (...args: CommandArgs<typeof GeoDistCommand>) =>
this.chain(new GeoDistCommand(args, this.commandOptions));

/**
* @see https://redis.io/commands/geopos
*/
geopos = (...args: CommandArgs<typeof GeoPosCommand>) =>
this.chain(new GeoPosCommand(args, this.commandOptions));

/**
* @see https://redis.io/commands/geohash
*/
geohash = (...args: CommandArgs<typeof GeoHashCommand>) =>
this.chain(new GeoHashCommand(args, this.commandOptions));

/**
* @see https://redis.io/commands/geosearch
*/
geosearch = (...args: CommandArgs<typeof GeoSearchCommand>) =>
this.chain(new GeoSearchCommand(args, this.commandOptions));

/**
* @see https://redis.io/commands/geosearchstore
*/
geosearchstore = (...args: CommandArgs<typeof GeoSearchStoreCommand>) =>
this.chain(new GeoSearchStoreCommand(args, this.commandOptions));

/**
* @see https://redis.io/commands/get
*/
Expand Down Expand Up @@ -1233,42 +1269,6 @@ export class Pipeline<TCommands extends Command<any, any>[] = []> {
forget: (...args: CommandArgs<typeof JsonForgetCommand>) =>
this.chain(new JsonForgetCommand(args, this.commandOptions)),

/**
* @see https://redis.io/commands/geoadd
*/
geoadd: (...args: CommandArgs<typeof GeoAddCommand>) =>
this.chain(new GeoAddCommand(args, this.commandOptions)),

/**
* @see https://redis.io/commands/geodist
*/
geodist: (...args: CommandArgs<typeof GeoDistCommand>) =>
this.chain(new GeoDistCommand(args, this.commandOptions)),

/**
* @see https://redis.io/commands/geopos
*/
geopos: (...args: CommandArgs<typeof GeoPosCommand>) =>
this.chain(new GeoPosCommand(args, this.commandOptions)),

/**
* @see https://redis.io/commands/geohash
*/
geohash: (...args: CommandArgs<typeof GeoHashCommand>) =>
this.chain(new GeoHashCommand(args, this.commandOptions)),

/**
* @see https://redis.io/commands/geosearch
*/
geosearch: (...args: CommandArgs<typeof GeoSearchCommand>) =>
this.chain(new GeoSearchCommand(args, this.commandOptions)),

/**
* @see https://redis.io/commands/geosearchstore
*/
geosearchstore: (...args: CommandArgs<typeof GeoSearchStoreCommand>) =>
this.chain(new GeoSearchStoreCommand(args, this.commandOptions)),

/**
* @see https://redis.io/commands/json.get
*/
Expand Down
72 changes: 36 additions & 36 deletions pkg/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,42 +261,6 @@ export class Redis {
forget: (...args: CommandArgs<typeof JsonForgetCommand>) =>
new JsonForgetCommand(args, this.opts).exec(this.client),

/**
* @see https://redis.io/commands/geoadd
*/
geoadd: (...args: CommandArgs<typeof GeoAddCommand>) =>
new GeoAddCommand(args, this.opts).exec(this.client),

/**
* @see https://redis.io/commands/geopos
*/
geopos: (...args: CommandArgs<typeof GeoPosCommand>) =>
new GeoPosCommand(args, this.opts).exec(this.client),

/**
* @see https://redis.io/commands/geodist
*/
geodist: (...args: CommandArgs<typeof GeoDistCommand>) =>
new GeoDistCommand(args, this.opts).exec(this.client),

/**
* @see https://redis.io/commands/geohash
*/
geohash: (...args: CommandArgs<typeof GeoHashCommand>) =>
new GeoHashCommand(args, this.opts).exec(this.client),

/**
* @see https://redis.io/commands/geosearch
*/
geosearch: (...args: CommandArgs<typeof GeoSearchCommand>) =>
new GeoSearchCommand(args, this.opts).exec(this.client),

/**
* @see https://redis.io/commands/geosearchstore
*/
geosearchstore: (...args: CommandArgs<typeof GeoSearchStoreCommand>) =>
new GeoSearchStoreCommand(args, this.opts).exec(this.client),

/**
* @see https://redis.io/commands/json.get
*/
Expand Down Expand Up @@ -548,6 +512,42 @@ export class Redis {
flushdb = (...args: CommandArgs<typeof FlushDBCommand>) =>
new FlushDBCommand(args, this.opts).exec(this.client);

/**
* @see https://redis.io/commands/geoadd
*/
geoadd = (...args: CommandArgs<typeof GeoAddCommand>) =>
new GeoAddCommand(args, this.opts).exec(this.client);

/**
* @see https://redis.io/commands/geopos
*/
geopos = (...args: CommandArgs<typeof GeoPosCommand>) =>
new GeoPosCommand(args, this.opts).exec(this.client);

/**
* @see https://redis.io/commands/geodist
*/
geodist = (...args: CommandArgs<typeof GeoDistCommand>) =>
new GeoDistCommand(args, this.opts).exec(this.client);

/**
* @see https://redis.io/commands/geohash
*/
geohash = (...args: CommandArgs<typeof GeoHashCommand>) =>
new GeoHashCommand(args, this.opts).exec(this.client);

/**
* @see https://redis.io/commands/geosearch
*/
geosearch = (...args: CommandArgs<typeof GeoSearchCommand>) =>
new GeoSearchCommand(args, this.opts).exec(this.client);

/**
* @see https://redis.io/commands/geosearchstore
*/
geosearchstore = (...args: CommandArgs<typeof GeoSearchStoreCommand>) =>
new GeoSearchStoreCommand(args, this.opts).exec(this.client);

/**
* @see https://redis.io/commands/get
*/
Expand Down

0 comments on commit 9bd1ff4

Please sign in to comment.