anchor.diff:      ?STATE = ets:new(?STATE, [set, protected, named_table]),
       ?BY_USER = ets:new(?BY_USER, [set, protected, named_table]),
       ?BY_ATIME = ets:new(?BY_ATIME, [ordered_set, private, named_table]),
  +    AuthDbName = config:get("couch_httpd_auth", "authentication_db"),
       process_flag(trap_exit, true),
       ok = config:listen_for_changes(?MODULE, nil),
  -    {ok, Notifier} = couch_db_update_notifier:start_link(fun handle_db_event/1),
  +    {ok, Listener} = couch_event:link_listener(
  +            ?MODULE, handle_db_event, nil, [{dbname, AuthDbName}]
  +        ),
       State = #state{
  -        db_notifier = Notifier,
  +        event_listener = Listener,
           max_cache_size = list_to_integer(
               config:get("couch_httpd_auth", "auth_cache_size", "50")
           )
  
positive.code:     max_cache_size = 0,
      cache_size = 0,
      db_notifier = nil,
      db_mon_ref = nil
  }).
  
  
  
negative.code: -export([code_change/3, terminate/2]).
  
  -export([handle_config_change/5]).
  -export([handle_db_event/3]).
  
  -include_lib("couch/include/couch_db.hrl").
  -include("couch_js_functions.hrl").
  