added maxmemory policy to class too