This patchs solves the adapter name bug in boss_cache not working from boss_db repo movement.
Boss_cache still does not work, the pollboy integration has problems:
boss_cache_controller (called from poolboy in boss_cache_sup:init/1) expects:
I changed this in erlmc:start/1 but I think that this is no ok: if erlmc has its own pool management, we are duplicating?
I need some help here about the design.
Fix cache adapter name bug
Ah, dang. I forgot about erlmc's server-balancing layer when doing the poolboy refactor.
The best solution for now might be to rip out poolboy from boss_cache and just let erlmc work its magic.
The best solution long-term would be to move the server-balancing logic from erlmc into boss_cache so that you could use other caching servers without affecting the cache architecture. Then the memcached_bin adapter would use erlmc_conn instead of erlmc. But since there is only one cache adapter this is probably more trouble than it is worth at the moment.
Merge pull request #15 from jgordor/master
Fix cache adapter name bug & help to try to fix boss_cache pool problem
Actually, I spoke too soon; I think the problem was just me confusing start and init. Try these:
Now works, thanks!
I will be testing the cache for sessions and db heavily for a soon to be public project.