Author |
Message
|
SapanaK |
Posted: Mon Sep 17, 2012 2:32 am Post subject: IA91 Cache Functionality - item expiry |
|
|
Newbie
Joined: 17 Sep 2012 Posts: 9
|
We are using IA91 supportpack in our project for its in-memory cache functionality. Context -
1. Only ESQL api's are being used, there is no cache node.
2. Items in cache are expected to expire at midnight.
I have observed that items in cache expire few hundred milliseconds prior to expected time, has anyone else experienced this? |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Sep 17, 2012 5:00 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Why is this a problem? If it is a problem, expire your messages at 12:01. Or better yet, use solidDb, a Singleton, or a Java HashMap. All these are accessible from ESQL and give you more finite control. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
SapanaK |
Posted: Mon Sep 17, 2012 5:19 am Post subject: |
|
|
Newbie
Joined: 17 Sep 2012 Posts: 9
|
Thanks for your reply. This is a problem becuase our application rely on finding data only in cache. If not found in cache it doesn't do further database lookup before concluding that item is not found.
I will get the expiryTime changed, but wanted to know at high level to what extent is it guaranteed to be accurate - meaning to specified seconds/minutes etc, so that I can safely move it accordingly. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Sep 17, 2012 5:31 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
SapanaK wrote: |
to what extent is it guaranteed to be accurate |
If you read the disclaimer on the support pak there is an explicit statement:
Quote: |
Category 2 SupportPacs are provided in good faith and AS-IS. There is no warranty or further service implied or committed and any supplied sample code is not supported via IBM product service channels. |
Use a Singleton or a HashMap if you want a guarantee. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 17, 2012 5:42 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
lancelotlinc wrote: |
Use a Singleton or a HashMap if you want a guarantee. |
Or move to WMBv8 where the caching functionality is in the product rather than a Cat 2 support pac. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|