Skip to content

Questions about in-memory caching #865

Answered by JWCook
finBitorg asked this question in Q&A
Discussion options

You must be logged in to vote

Some options are:

  • A basic in-memory cache (backend='memory')
  • A SQLite in-memory database (backend=SQLiteCache(use_memory=True))
  • If you wanted to, using one of the options above, you could manually read/write to storage when you choose (for example only on application startup/shutdown).

Requests-cache currently doesn't have an option to limit the cache to a specific size, but that is a feature I've considered adding.

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JWCook
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #846 on August 25, 2023 17:36.