Permalink
Browse files

Fix cache adapter name bug

  • Loading branch information...
1 parent 48c0764 commit 30a3b8ab3cd24328fbf0576d4143f6349fa27b5b @jgordor jgordor committed May 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/boss_cache.erl
View
@@ -10,7 +10,8 @@ start() ->
start([{adapter, Adapter}, {cache_servers, [{"127.0.0.1", 11211, 1}]}]).
start(Options) ->
- Adapter = proplists:get_value(adapter, Options, boss_cache_adapter_memcached_bin),
+ AdapterName = proplists:get_value(adapter, Options, memcached_bin),
+ Adapter = list_to_atom(lists:concat(["boss_cache_adapter_", AdapterName])),
Adapter:start(Options),
boss_cache_sup:start_link(Options).

0 comments on commit 30a3b8a

Please sign in to comment.