from diskcache import Cache cache = Cache(".cache") # Creates a folder named 'cache'