xuchunyang / github-stars.el

An Emacs Package for browsing your Github Stars
20 stars 1 forks source link

support cache stars #3

Closed tshu-w closed 3 years ago

tshu-w commented 3 years ago

fetching stars take a litte time, could you support cache stars like helm-github-stars.

xuchunyang commented 3 years ago

The stars is already cached during the Emacs session via the variable github-stars.

You can restore the value when Emacs starts to prepare the cache, e.g., using the builtin library savehist's savehist-additional-variables (I assume it supports Hash Table) or use some 3rd party libraries such as https://elpa.gnu.org/packages/persist.html