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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:24:53+00:00 2026-06-10T20:24:53+00:00

How does caching works with App Engine? Is it enough just to add the

  • 0

How does caching works with App Engine? Is it enough just to add the @Cached annotation:

@Cached
public class MyEntity {
    @Id Long id;
    ...
}

However, from Objectify docs:

“Objectify’s global cache support prior to v3.1 suffered from synchronization problems under contention. Do not use it for entities which require transactional integrity, and you are strongly advised to apply an expiration period to all cache values.”

Does it mean that if I have a code that have this form below I should not use it?

DAOT.repeatInTransaction(new Transactable() {
        @Override
        public void run(DAOT daot)
        {
                Counter count = daot.ofy().find(Counter.class, COUNTER_ID);
                count.increment();
                daot.ofy().put(count);
        }
});
  • 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-10T20:24:54+00:00Added an answer on June 10, 2026 at 8:24 pm

    Objectify tries as hard as it can to make its global cache support as transactional as possible:

    The cache in 3.1 has been rewritten from scratch to provide near-transactional consistency with the datastore.

    If your request or task runs right up against the deadline limit, for example, there is a possibility that a write could make it to the datastore but not update the cache:

    The cache is near-transactional. Under normal operation, the cache will not go out of sync with the datastore, even under heavy contention.
    The exception to this is DeadlineExceededException at the 30s (10m for tasks) hard deadline. If Google kills your process before the cache update occurs, there’s nothing we can do.

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

Sidebar

Related Questions

How does query caching works and how does it improves performance in nHibernate?
For a caching mechanism for my Rails app I am setting a class variable
How does apache handle caching of certain files, and is it possible to explicitly
Does anyone have any advice on which method is better when caching data in
I'm writing a caching API in PHP. It does everything I need it to
What is actually the purpose of offline mode. does it somehow manages the caching
I'm wondering how caching works with content negotiation based API. Since the to get
I'm using Jinja2 templates with Bottle.py and Google App Engine's dev_appserver for development. I
Someone who understands how rails caching works can really help me out here. Here's
I am a little confused about how ORM caching works with respects to the

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.