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 7824891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:45:08+00:00 2026-06-02T08:45:08+00:00

Does app engine’s memcache.get() return a reference or deep copy? The reason I ask

  • 0

Does app engine’s “memcache.get()” return a reference or deep copy?

The reason I ask is because I’d like to know if I need to call memcache.set() after I’ve modified an object.

For example:

# INITALIZE
t_var = {}
t_var['foo'] = 1
memcache.set('some_key', t_var)

# LATER ON...
t_var = memcache.get('some_key')
t_var['foo'] = 2

# EVEN LATER ON...
t_var = memcache.get('some_key')
print t_var['foo']

Is does print t-var['foo'] display a ‘1’ or a ‘2’?

  • 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-06-02T08:45:09+00:00Added an answer on June 2, 2026 at 8:45 am

    Objects are serialized (using pickle by default) before being sent to memcached. Thus, the objects you get back are necessarily copies. This is because memcached is a separate process from the Python interpreter and, furthermore, knows nothing of Python objects specifically.

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

Sidebar

Related Questions

Why does it seem like Google App Engine isn’t setting appropriate cache-friendly headers (like
Does anybody know how to make http request from Google App Engine without waiting
In app-engine-patch ( http://code.google.com/p/app-engine-patch/ ) ... How on earth does the sample application know
Since Google App Engine is a PaaS does it use any hypervisor? it is
Google App Engine doesn't support SSL for custom domains. Does this mean that it's
In this example from the App Engine docs , why does the example declare
Does Google's App Engine have excessive downtime, specifically with regards to datastore writes? Additionally,
Does anybody have an idea why Google App Engine permits only a single thread
Does anyone know of the easiest way to add payment to your Google app
Early reports of JRuby on Google App Engine indicate that ActiveRecord does not work

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.