anchor.diff:  
   -include("match_stream.hrl").
   
  --record(state, {redis :: pid()}).
  +-define(REDIS_CONNECTIONS, 200).
  +
  +-record(state, {redis :: [pid()]}).
   -opaque state() :: #state{}.
   
   -export([create/1, update/2, all/0, get/1, delete/1, log/1, history/1]).
  
positive.code:     #match_stream_event.timestamp,
      lists:foldl(
        fun(Key, Acc) ->
                case erldis:get(State#state.redis, Key) of
                  nil -> Acc;
                  Bin -> [erlang:binary_to_term(Bin)|Acc]
                end
        end, [], Keys));
  handle_call({get, MatchId}, State) ->
    Key = <<"match-", MatchId/binary>>,
    case erldis:get(State#state.redis, Key) of
      nil -> not_found;
      MatchBin -> erlang:binary_to_term(MatchBin)
    end.
negative.code:               {ok, T} -> T;
                undefined -> 500
              end,
    Redis =
      lists:map(
        fun(_) ->
                {ok, Conn} =
                  case {application:get_env(redis_pwd), application:get_env(redis_db)} of
                    {undefined, undefined} ->
                      erldis_client:start_link();
                    {undefined, {ok, Db}} ->
                      erldis_client:start_link(Db);
                    {{ok, Pwd}, undefined} ->
                      erldis_client:start_link(Host, Port, Pwd);
                    {{ok, Pwd}, {ok, Db}} ->
                      erldis_client:start_link(Host, Port, Pwd, [{timeout, Timeout}], Db)
                  end,
                Conn
        end, lists:seq(1, ?REDIS_CONNECTIONS)),
    ?INFO("Database initialized~n", []),
    {ok, #state{redis = Redis}}.
  
  %% @hidden
  -spec handle_call(tuple(), reference(), state()) -> {reply, {ok, term()} | {throw, term()}, state()}.
  handle_call(Request, From, State) ->
    [RedisConn|Redis] = State#state.redis,
    proc_lib:spawn_link(
      fun() ->
              Res =
                try handle_call(Request, RedisConn) of
                  ok -> ok;
                  Result -> {ok, Result}
                catch
  