aboutsummaryrefslogtreecommitdiff
path: root/jim-redis.c
AgeCommit message (Collapse)AuthorFilesLines
2025-07-16core: Add Jim_RegisterCommand()Steve Bennett1-4/+3
and wrappers Jim_RegisterCmd, Jim_RegisterSimpleCmd and Jim_RegisterSubCmd Allows usage, help and flags when registering commands. Allows for JIM_CMD_ISPROC, JIM_CMD_ISALIAS, JIM_CMD_ISCHANNEL 'info usage' and (later) 'info help' Now every command doesn't need to check min/max and print usage. This also adds support for 'info aliases', 'info channels' and 'exists -channel'. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2025-07-16redis: check redis command for taintSteve Bennett1-1/+5
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2023-02-13redis: Add -async supportSteve Bennett1-5/+39
Supports communication with redis as part of an event loop Signed-off-by: Steve Bennett <steveb@workware.net.au>
2022-05-17jim-redis: Add support for -typeSteve Bennett1-15/+50
For retrieving type information of return values. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2022-04-12jim-redis: Enable TCP_KEEPALIVESteve Bennett1-0/+2
This is the default already for newer versions of redis. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2021-02-20redis: avoid over-allocating memorySteve Bennett1-6/+7
Should not make any difference in practice, but the allocations should be size * (argc - 1) not size * argc - 1 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2021-01-10package: add ABI version checkingSteve Bennett1-3/+1
jim.h now includes JIM_ABI_VERSION that should be incremented whenever the ABI changes. Then all loadable modules should call Jim_CheckAbiVersion() to make sure they are loaded against the correct version. Add Jim_PackageProvideCheck() that does both Jim_CheckAbiVersion() and Jim_PackageProvide() to simplify the implementation of loadable extensions. Also rename the "big" sqlite3 extension to just sqlite to avoid a naming conflict with the smaller jim-sqlite3 extension. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2020-12-14redis: Check for error on NULL replySteve Bennett1-1/+4
A command may return NULL, but set an error (e.g. Server closed the connection). In this case, make sure to return the error. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2020-11-15redis: Add simple redis client extensionSteve Bennett1-0/+168
Using the hiredis client library. Synchronous API only. Signed-off-by: Steve Bennett <steveb@workware.net.au>