Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6656949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:42:18+00:00 2026-05-26T01:42:18+00:00

In the simplest terms, how do I set up redis for caching on my

  • 0

In the simplest terms, how do I set up redis for caching on my django project?

I’ve been trying to figure out caching for the last week now and the pieces are just not falling into place.

What do I need to do to get caching up and running. Just take care of headers and install redis??

The various tutorials and introductions all seem take for granted fundamental steps that are preventing me from understanding how to implement caching. Isn’t this ubiquitous? How does someone learn about this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:42:19+00:00Added an answer on May 26, 2026 at 1:42 am

    Ok, so maybe the connection you are missing is that once you have redis running, and you have the ability to set and get value to and from it using the python http://github.com/andymccurdy/redis-py you can start doing thing like this:

    (pseudo-code to keep it simple)

    client_request_for_data():
        check if redis has this data already under a specific "key"
           True:
              * GET value from redis using "key"
              * return it!
           False:
              * Do the normal process of building the data
              * SET it into redis with a unique "key", with maybe an EXPIRE time
              * return it!
    

    The idea here being that you start to wrap your existing code in spots where you generate results for the client request, into something that first checks if a key exists and return it if it does.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Distilling this project down to the simplest of terms; Users click a button, a
An application consists of one or more processes. A process, in the simplest terms,
What's the simplest way to connect and query a database for a set of
What's the simplest way of blocking a thread until a file has been unlocked
I wrote the simplest WYSIWYG in js/jquery: http://jsfiddle.net/XnSWF/ Works perfectly (eg. set to write
I'm developing rails on localhost and wondering what is the simplest way, in terms
I have been working on a project that dynamically creates a javascript file using
The simplest way to transform an in-proc COM server into an out-proc COM server
I just want to interpolate, in the simplest possible terms, a 3D dataset. Linear
What's the simplest way to perform a set subtraction given two arrays in C#?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.