# crdt-module **Repository Path**: mirrors_ctripcorp/crdt-module ## Basic Information - **Project Name**: crdt-module - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-15 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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 ```