Dinar  Gataullin
Dinar Gataullin

Reputation: 19

How cache data from SQL-database with python?

I have queries result from Postgresql which I want to be cached. I can't use external soft like memcached. How I can do it with python with standard library? Or may be with third party python module.

Upvotes: 1

Views: 1298

Answers (1)

eandersson
eandersson

Reputation: 26352

If you want to use a 3rd party library you could take a look at dogpile.cache. It will allow you to cache things like data from SQL databases in memory, and in addition you can choose from different backends. This is good in case you want to use something more scalable in the future.

Upvotes: 1

Related Questions