cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musall, Maik" <>
Subject Re: Cache Groups
Date Wed, 08 Nov 2017 10:56:50 GMT
Hi Lon,

have you read this?

I added this module to my server runtime builder (stripped down to the relevant bit for this

Module cachePropertiesModule = new Module() {
	public void configure( Binder binder ) {
		MapBuilder<String> props = binder.bindMap( String.class, Constants.PROPERTIES_MAP
		props.put( Constants.SERVER_CONTEXTS_SYNC_PROPERTY, "false" );


> Am 08.11.2017 um 01:40 schrieb Lon Varscsak <>:
> Hey all,
> I’ve been using cache groups to do refreshing of object lists and it
> occurred to me today that this refresh is across all object contexts in my
> application.  So if User A has a list of orders for their account and that
> is cached with the group “orderHistory” and User B also has a list of
> orders in “orderHistory”, running a refresh query will result in ALL users
> refreshing their orderHistory caches.
> I’m not sure that this is what I want.  How have you solved this
> situation?  Do you care? :P  I was thinking about doing something like
> WEB_SESSION_ID+cacheGroup…maybe this has some downsides I’m unaware of.
> Any feedback is appreciated.
> -Lon

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message