Skip to content

Added API Endpoint Cache Feature

Pre-release
Pre-release
Compare
Choose a tag to compare
@MuhammedKpln MuhammedKpln released this 14 Jun 21:02
· 5 commits to cache since this release

As all of you know getting data from three diffrent apis takes some time, and for each search no one wants to bother with that wait time. So i come up with caching the api endpoint solution which makes search very very fast and you can now search while you are offline(I know you won't need it if you don't have any network connection. But hey, it's a feature not a bug)

To be able to use it you need to add --enableCache argument at the end of the command

Like this:
./chob vlc --enableCache

So this will create a chob folder on your home directory which contains 4 diffrent files. 3 for api endpoints and 1 is for updating the cache based on interval.

By default updating the cache value is 1 day, you can change it by adding updateInterval argument like this:

./chob vlc --enableCache --updateInterval 7
This will update .updateAt file to update your api endpoint caches every 7 days.

Here is a comparision:

Changelog

  • Added cache manager to cache api endpoints for faster search