An open API service indexing awesome lists of open source software.

https://github.com/ctripcorp/crdt-module


https://github.com/ctripcorp/crdt-module

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

## How to

### Set up

#### at startup
`redis-server <$conf-file> --loadmodule /crdt.so`

#### already started
`redis-cli module load /crdt.so`

### Use
`redis-cli set key val`

`redis-cli get key`
`redis-cli crdt.get key`

## Develop

### Mem Alloc/Free
- 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

### Mem Leak Check

``` makefile
make distclean
make OPTIMIZATION=-O0 MALLOC=libc
tclsh8.5 tests/test_crdt.tcl --valgrind --clients 1
```