Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Explicitly configure the diskStore element in ehcache.xml

Ramakrishna Udupa
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I'm using Eh-cache for core_java Project which deals on Threads. I want to store the elements to diskStore, if overflow happens. For that I've to mention external file system(to store elements). How to configure in ehcache.xml to a file-system. Can anybody please send the ehcache.xml which contains all configurable attributes. By default it takes the path like C:\Users\Admin\AppData\Local\Temp. I want to store those overflowed cache elements in D:/users/etc.,

I'm storing information in cache like this,

When thread created with a name like Tfirst, Tsecond etc., I put all information for that particular thread in cache with key as Thread name and value as list(Which contains all information about that thread). How to retrieve/get those(one by one/randomly) cached objects from the cache?

Ramakrishna K.C
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic