support maxmemory and maxmemory policy