renamed Buffer class to Cache