ioredis library

Classes

Redis
RedisCommandBatch<T extends RedisCommandBatch<T>>
Shared builder for RedisMulti and RedisPipeline. It queues commands. Use call for any command that has no method here. Results are raw replies (for example HGETALL gives a flat list).
RedisConnection
RedisMulti
Transaction. All commands run on one connection inside MULTI ... EXEC. The whole block is sent in one write.
RedisOptions
RedisPipeline
Pipeline. All commands are sent in one write on one connection.
RedisSetOption
RedisSubscriber

Typedefs

RedisBytesSubscriberCallback = void Function(String channel, Uint8List message)
RedisPatternBytesSubscriberCallback = void Function(String pattern, String channel, Uint8List message)
RedisPatternSubscriberCallback = void Function(String pattern, String channel, String? message)
RedisScanResult = ({String cursor, List<String> items})
Result of SCAN, HSCAN, SSCAN and ZSCAN. cursor is '0' when the scan is done. items is a flat list (field, value, ... for HSCAN and member, score, ... for ZSCAN).
RedisSubscriberCallback = void Function(String channel, String? message)

Exceptions / Errors

RedisError
An error reply from Redis, like ERR wrong number of arguments.