fixed depricated cache adapter