linsert(
name: KeyT,
where: str,
refvalue: str,
value: str
) → Union[Awaitable[int], int]
Possible errors
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
No method signature available for this client.
linsert(
key: RedisKey,
before: "BEFORE",
pivot: string | Buffer | number,
element: string | Buffer | number,
callback?: Callback<number>
) → Result<number, Context>
linsert(
key: RedisKey,
after: "AFTER",
pivot: string | Buffer | number,
element: string | Buffer | number,
callback?: Callback<number>
) → Result<number, Context>
Possible errors
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
linsert(
key: byte[],
where: ListPosition, // can be BEFORE or AFTER
value: byte[] pivot final byte[] // the value
) → long // The length of the list after the insert operation, or -1 when the value pivot was not found
linsert(
key: String,
where: ListPosition, // can be BEFORE or AFTER
value: String pivot final String // the value
) → long // The length of the list after the insert operation, or -1 when the value pivot was not found
linsert(
key: String,
where: ListPosition, // can be BEFORE or AFTER
pivot: String, // reference value
value: String // the value
) → long // The length of the list after the insert operation, or -1 when the value pivot was not found
linsert(
key: K, // the key.
before: boolean, // the before.
pivot: V, // the pivot.
value: V // the value.
) → Long // Long integer-reply the length of the list after the insert operation, or -1 when the value pivot was not found.
linsert(
key: K, // the key.
before: boolean, // the before.
pivot: V, // the pivot.
value: V // the value.
) → RedisFuture<Long> // Long integer-reply the length of the list after the insert operation, or -1 when the value pivot was not found.
linsert(
key: K, // the key.
before: boolean, // the before.
pivot: V, // the pivot.
value: V // the value.
) → Mono<Long> // Long integer-reply the length of the list after the insert operation, or -1 when the value pivot was not found.
LInsert(
ctx: context.Context,
key: Any,
op: string,
pivot: Any,
value: interface{}
) → *IntCmd
Possible errors
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
ListInsertAfter(
key: RedisKey, // The key of the list.
pivot: RedisValue, // The value to insert after.
value: RedisValue, // The value to insert.
flags: CommandFlags // The flags to use for this operation.
) → long // The length of the list after the insert operation, or -1 when the value pivot was not found.
ListInsertBefore(
key: RedisKey, // The key of the list.
pivot: RedisValue, // The value to insert before.
value: RedisValue, // The value to insert.
flags: CommandFlags // The flags to use for this operation.
) → long // The length of the list after the insert operation, or -1 when the value pivot was not found.
ListInsertAfterAsync(
key: RedisKey, // The key of the list.
pivot: RedisValue, // The value to insert after.
value: RedisValue, // The value to insert.
flags: CommandFlags // The flags to use for this operation.
) → Task<long> // The length of the list after the insert operation, or -1 when the value pivot was not found.
ListInsertBeforeAsync(
key: RedisKey, // The key of the list.
pivot: RedisValue, // The value to insert before.
value: RedisValue, // The value to insert.
flags: CommandFlags // The flags to use for this operation.
) → Task<long> // The length of the list after the insert operation, or -1 when the value pivot was not found.
linsert(
$key: string,
$whence: mixed,
$pivot: mixed,
$value: mixed
) → int
linsert(
key: String,
where: String, Symbol, // BEFORE or AFTER
pivot: String, // reference element
value: String
) → Integer // length of the list after the insert operation, or -1 when the element pivot was not found
linsert_before(
key: K,
pivot: P,
value: V
) → (isize)
linsert_after(
key: K,
pivot: P,
value: V
) → (isize)
Possible errors
- ERR syntax error:
ErrorKind::Server(ServerErrorKind::ResponseError)
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.
linsert_before(
key: K,
pivot: P,
value: V
) → (isize)
linsert_after(
key: K,
pivot: P,
value: V
) → (isize)
Possible errors
- ERR syntax error:
ErrorKind::Server(ServerErrorKind::ResponseError)
See Redis error messages for what each error means. Other errors, such as connection errors, aren't listed.