cache for local and memcache