a simple cache using lru algthorim