GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Ivan Sagalaev :flag_wbw: (isagalaev@mastodon.social)'s status on Saturday, 24-Feb-2024 17:33:49 JSTIvan Sagalaev :flag_wbw:Ivan Sagalaev :flag_wbw:

    Looking for a #Python library that would cache the most fresh responses of HTTP requests and only return cached ones in case of connection or server errors.

    requests-cache doesn't do the trick: it either returns stale responses or crashes on connection errors.

    Doesn't have to be HTTP-specific, really. Think of it as a general memoization with failover. But lru_cache from stdlib also doesn't work as it prefers the cached value over the available fresh one.

    Last chance before I write my own!

    In conversationabout a year ago from mastodon.socialpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.