Functions for cache read, check, write, lru, eviction