Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Redis-triggle is a redis branch add the triggle system in to redis, triggles create by lua script
C Tcl Ruby Other

This branch is 49 commits ahead, 2388 commits behind antirez:unstable

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
deps
src
tests
utils
.gitignore
00-RELEASENOTES
BUGS
CONTRIBUTING
COPYING
Changelog
INSTALL
MANIFESTO
Makefile
README
redis.conf
runtest
sentinel.conf

README

Where to find complete Redis documentation?
-------------------------------------------
Redis-triggle command

triggleadd dbid trigglename triggleevent scripts

triggle events include two types events: 
(1) before cmds exec, use cmds+ing eg: deling,seting,hseting,etc....
(2) after cmd exec, use cmds+ed eg: deled,seted,hseted,etc......
scripts use lua 
(1) include the basic lua functions
(2) include the redis.call(cmds)
(3) include the redis.log
for example
"
local id=Redis.call('get',KEYS[1])
if id~=nil then
    Redis.call('publish','system',id);
end
in the redis triggle system KEYS can be the cmds when call the related triggle,
eg, when then cmd "set foo 123" calls triggles, the KEYS[1]='set' KEYS[2]=foo KEY[3]=123
or use the delete_expire triggle (special triggle when the key expired from redis), KEYS[1]="expired key"

triggllist dbid trigglename
view the triggle detail

triggledel dbid trigglename
del the triggle



crestxu@gmail.com 
6/9/2012
---------
Enjoy!
Something went wrong with that request. Please try again.