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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:24:38+00:00 2026-06-14T04:24:38+00:00

Client Cache Configuration – <region name=test refid=PROXY> <region-attributes> <cache-listener> <class-name>com.test.cache.SimpleCacheListener</class-name> </cache-listener> </region-attributes> </region> For

  • 0

Client Cache Configuration –

<region name="test" refid="PROXY">
    <region-attributes>
        <cache-listener>
            <class-name>com.test.cache.SimpleCacheListener</class-name>
        </cache-listener>
    </region-attributes>
</region>

For the above client side configuration , I have used a CacheListener which listens to events on this cache “test”.

The issue that i am facing is even on update event , i.e putting a different value for same key in cache , an afterCreate Event is fired.

i.e.

region.put("test key","test value")

and

region.put("test key","test updated value")

both generate an afterCreateEvent in Listener.

EDITED

Let me be little bit more clear on what i want to achieve here.I want my client side to be notified while making an entry that whether that entry is already there in the Cache Server or not.

for e.g.

If Entry [Test,Value] already exists on Cache Server for a region, then while making a put [Test,Value1] client should know that this is an update and this should be done irrespective of that entry being there in client cache or not.

I tried something like this-

<region name="test" refid="PROXY" >
        <region-attributes data-policy="normal">
        <!--  <region-attributes> -->
        <subscription-attributes interest-policy="all"/>
            <cache-listener>
                <class-name>com.cache.test.SimpleCacheListener</class-name>
            </cache-listener>
        </region-attributes>

    </region>

After making above changes, it detects the update events but only if the same client just made an entry and try updating it and not for earlier created entries.

Please help and let me know if i am missing something.

  • 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-14T04:24:39+00:00Added an answer on June 14, 2026 at 4:24 am

    I just answered your question on the VMware discussion forum for GemFire:

    http://communities.vmware.com/thread/424682?tstart=0

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

Sidebar

Related Questions

Starting with no cache on server or client FIRST REQUEST GET /post/1 HTTP/1.1 HTTP/1.1
Are there any ways to cache secured data at client side such that it
We have a 3 machine cache cluster running with SQL configuration provider. The service
I am creating a http client cache, but I have a doubt about the
I want to cache data on the client. What is the best algorithm/data structure
I want to cache web services response XML at client side. How can i
I'm trying to store an object into Cache like: Dictionary<Guid, Decimal> cacheSubscribers = client.Get<Dictionary<Guid,
I have a SQL server and couple Windows clients and cache of some tables
Client clientAlias = null; Note noteAlias = null; Comment commentAlias = null; query.JoinAlias(() =>
Client is requesting a Lightbox gallery which will, on click, provide image, description and

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.