PokeAPI / pokebase

Python 3 wrapper for Pokéapi v2
BSD 3-Clause "New" or "Revised" License
286 stars 53 forks source link

Do I have to manually cache data? #61

Open KiwiFlavoredApollo opened 4 months ago

KiwiFlavoredApollo commented 4 months ago

Hello, I have a question about caching data. I wonder if I have to manually call pokebase.cache.save() to save cache.

When sending pokebase.pokemon("charmander") multiple times to Python console, it seems to be requesting data from the server even after the first request.

*I haven't confirmed precisely whether the api call actually tries to retrieve data from the server. I am just guessing since I have to wait couple of seconds before pokebase.pokemon() returns console prompt