v0.4.0 * add Redis_LPUSH as a macro (for now) * add LPUSHX & LPOP * add LINDEX & LINSERT
|pirms 1 gada|
|azuresphere||pirms 1 gada|
|src||pirms 1 gada|
|test||pirms 1 gada|
|.gitignore||pirms 1 gada|
|LICENSE||pirms 1 gada|
|README.md||pirms 1 gada|
Yet Another Redis Library
A couple dev kits arrived that wanted for a POSIX C Redis library, so this is a port of arduino-redis into straight-C. Some day, that library will consume this one & morph into just a nice C++ facade.
Given the simple MCU platforms being targetted, a “bring your own file descriptor” interface
seemed like it would do nicely. To that end,
typedefed simply to
int, a.k.a. a
file descriptor. It could be a socket FD, a pipe FD, even an actual file descriptor
if you’re so inclined. Anything that can be
write(2)-en to. BYOFD!
Should build & run on any POSIX platform.
clang -o yarl_test -Wall -Werror -I./src ./src/*.c ./test/test.c
-DDEBUG=1to generate debugging logging
-O0 -g2to disable optimizations and generate symbols, to enable debugging via
Requires the Azure Sphere SDK (so also Windows & VS17 or VS19).
The VS project in the
azuresphere directory is preconfigured to build a static library named
libyarl.a in the standard build output location.
See this project for an example of consuming yarl as a build dependency.