cache key to str