Add DSN parsing support to the Cache class