redis-server <$conf-file> --loadmodule <path>/crdt.so
redis-cli module load <path>/crdt.so
redis-cli set key val
redis-cli get key
redis-cli crdt.get key
- For temporary used mem/struct, using
Redis Module's
auto memory alloc. - For permanent used mem/struct, pass a flag to tell function whether to copy or take directly
make distclean
make OPTIMIZATION=-O0 MALLOC=libc
tclsh8.5 tests/test_crdt.tcl --valgrind --clients 1