Skip to content

erpeng/redis-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

redis-modules

redis modules

move module to redis source code directory

  cp modulename.c $RedisSource/src/modules/

compile module

gcc -fPIC -std=gnu99 -c -o modulename.o modulename.c
ld -o modulename.so modulename.o -shared -Bsymbolic -lc

load module

127.0.0.1:6379> module load $RedisSource/src/modules/modulename.so
OK

module list

pushpersistenceinfo.c

  • pushpersistenceinfo.timer: open a 5s timer to publish persistence info to pinfo channel
  • pushpersistenceinfo.stop: stop the timer

About

redis modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages