Keyspace events notification API.

This commit is contained in:
antirez
2013-01-23 16:23:33 +01:00
parent 153766e137
commit 212edbc409
7 changed files with 108 additions and 3 deletions

View File

@ -445,6 +445,23 @@ slowlog-log-slower-than 10000
# You can reclaim memory used by the slow log with SLOWLOG RESET.
slowlog-max-len 128
############################# Event notification ##############################
# Redis can notify Pub/Sub clients about events happening in the key space.
# This feature is documented at http://redis.io/topics/keyspace-events
#
# For instance if keyspace events notification is enabled, and a client
# performs a DEL operation on key "foo" stored in the Database 0, two
# messages will be published via Pub/Sub:
#
# PUBLISH __keyspace@0__:foo del
# PUBLISH __keyevent@0__:del foo
#
# While the overhead of this feature is relatively small most users don't
# need it so it is disabled by default. You can enable it setting the
# following configuration option to yes.
notify-keyspace-events no
############################### ADVANCED CONFIG ###############################
# Hashes are encoded using a memory efficient data structure when they have a