Skip navigation
JBossDeveloper
Log in
Register
JBoss Community Archive (Read Only)
Home
Content
Places
Search
Cancel
Error: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page.
Please note: a moderator needs to approve your content before it can be published.
Edit Message 'Cache.put with Timespan doesnt evicy teh cache entry.'
in
Infinispan
Name:
Email:
Subject
Content
<body><p>I and testing teh cache fucntionalities of which i am trying to add an entry which shoudl be cleared up after teh given time span. This doesnt seem to work. Have i misunderstood teh API ?</p><p></p><p>The code lools as follows which i am calling in a loop</p><p></p><p> Cache cache = manager.getCache("orderCache");</p><p> cache.put(key, value, 3L, TimeUnit.MILLISECONDS);</p><p> System.out.println("size" + cache.size());</p><p></p><p>The size of cache is same as loop interation . Shouldnt the entry be cleared ?</p><p></p><p>My cache configuration is as follows</p><p></p><p></p><p> <namedCache name="orderCache"></p><p> <clustering mode="distribution"></p><p> <sync/></p><p> <hash</p><p> numOwners="2"</p><p> rehashWait="120000"</p><p> rehashRpcTimeout="600000"</p><p> /></p><p> </clustering></p><p> </namedCache></p></body>
Add a message to indicate when changes were made and by whom
Message was edited by: Guest
In a Place
Reach a specific audience or organize your posts by subject or group.
Infinispan
Change
Please select a place to post to
Show location change in streams
Please note: a moderator needs to approve your content before it can be published.
Tags
Tag your content to make it easier to find
Categories
Help others find your content by selecting relevant categories
Community Contributed Articles
Design Documents
Meeting Notes
Suggested Category
We recommend you select this category because one or more of the following tags are being used:
Post
Cancel