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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:58:00+00:00 2026-06-01T13:58:00+00:00

I am using objectify on appengine with the java runtime. I am also using

  • 0

I am using objectify on appengine with the java runtime. I am also using memcache via the @Cached annotation for several entities. My question is about the behavior of the objectify when putting objects into the datastore. When putting an entity that has the @Cached annotation, is the memcache updated? Or any existing cached data for that entity now out of sync with the datastore. I would like to have the memcache updated when I put an object into the datastore, however I don’t know if objectify does this by default or if I need to write this myself. If the memcache is updated, then I can have a much higher expiration time(or no expiration) for my data. FYI I am not using transactions.

  • 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-01T13:58:02+00:00Added an answer on June 1, 2026 at 1:58 pm

    When you use @Cached, Objectify handles all updates to the memcache for you in a near-transactionally safe manner. It’s “near-transactional” because while it won’t fall apart under contention, there are rare circumstances under which it could go out of sync – for example, if you hit a DeadlineExceededException or OutOfMemoryException and Google terminates your VM.

    Long expiration times are reasonable for most types of cached data.

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

Sidebar

Related Questions

I'm using objectify's @Cached annotations on my entities. Obviously, this means that any time
I am using objectify-appengine framework for querying. Here is my simplified problem: Consider these
I am using objectify 3.1 on appengine and attempting to do a ancestor query.
I am using Objective-C in my app and I have a question about multiple
I'm using GAE/Java with Objectify, and I'm trying to find the fastest way to
i have a quick question about objectify - this may be in the actual
I am doing a website about places to visit using java, gwt, gae, gwt-platform
I'm currently using a Gwt CellTable, bound to my GAE/Objectify backend via RPC calls.
I'm working on an app engine project (java). I'm using the jdo interface. I
Though i am using Objective-C syntax, the question language agnostic. Assuming the following declaration

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.