extract cache key