fixes multi caches problem spotted in issue #343
added dsn to Cache constructor
Merge pull request #352 from KOTRET/cache_destructor

DSN in constructor (Issue #343)