Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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