fix for #343 and dsn in constructor

this pr fixes multi caches problem spotted in issue #343,
i also added dsn to Cache constructor for more convenience