Client:
Python (redis-py)
Node.js (node-redis)
ioredis
Java-Sync (Jedis)
Lettuce-Sync
Java-Async (Lettuce)
Java-Reactive (Lettuce)
Go (go-redis)
C#-Sync (NRedisStack)
C#-Async (NRedisStack)
PHP (Predis)
Ruby (redis-rb)
Rust-Sync (redis-rs)
Rust-Async (redis-rs)
suglen (
key : str // The suggestion dictionary key
) → int // The size of the suggestion dictionary
Possible errors
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
client.ft.sugLen (
key : RedisArgument // The suggestion dictionary key
) → number // The size of the suggestion dictionary
Possible errors
WRONGTYPE : SimpleError (test with err.message.startsWith('WRONGTYPE'))
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ioredis has no dedicated method for this command. Send it with call.
ftSugLen (
key : String // The suggestion dictionary key
) → long // The size of the suggestion dictionary
Possible errors
WRONGTYPE : JedisDataException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ftSuglen (
key : K // the suggestion dictionary key
) → Long // the current size of the suggestion dictionary
Possible errors
WRONGTYPE : RedisCommandExecutionException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ftSuglen (
key : K // the suggestion dictionary key
) → RedisFuture<Long> // the current size of the suggestion dictionary
Possible errors
WRONGTYPE : RedisCommandExecutionException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ftSuglen (
key : K // the suggestion dictionary key
) → Mono<Long> // the current size of the suggestion dictionary
Possible errors
WRONGTYPE : RedisCommandExecutionException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
FTSugLen (
ctx : context.Context ,
key : string // The suggestion dictionary key
) → *IntCmd // The size of the suggestion dictionary
Possible errors
WRONGTYPE : redis.Error (test with redis.HasErrorPrefix(err, "WRONGTYPE"))
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
SugLen (
key : string // The suggestion dictionary key
) → long // The number of suggestions in the dictionary
Possible errors
WRONGTYPE : RedisServerException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
SugLenAsync (
key : string // The suggestion dictionary key
) → Task<long> // The number of suggestions in the dictionary
Possible errors
WRONGTYPE : RedisServerException
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ftsuglen (
$key : string // The suggestion dictionary key
) → int // The number of suggestions in the dictionary
Possible errors
WRONGTYPE : Predis\Response\ServerException (test with $e->getErrorType() === 'WRONGTYPE')
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ft_suglen (
key : String // the suggestion dictionary key
) → Integer // the number of suggestions
Possible errors
WRONGTYPE : Redis::WrongTypeError
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
redis-rs has no dedicated method for this command. Send it with redis::cmd.
redis-rs has no dedicated method for this command. Send it with redis::cmd.