Caching Application Block

G

Guest

I tried to use CAB in my smart client application to store cache using memory
mapped file. I want to create cache in a disk resident storage type so that
when application closes or the pc reboots, I can still continue working on
the data by accessing the cache. The CAB that I have downloaded stores cache
in-memory only.

Please help.
 
G

Guest

Look at the SqlServerCacheStorage, MmfCacheStorage and SingletonCacheStorage
classes in the CAB. They all provide mechanisms to persist the cache.
Probably the one you want is SqlServerCacheStorage but that depends on your
app.

Sujit D'Mello
 
G

Guest

Hi Sujit! Thanks for replying. I think the MmfCacheStorage class only stores
cache in memory. It does not create files at all.. I want to store the cache
as bin file or nat file. I tried to use the MmfCacheStorage but when I
closed the application and tried to retrieve the data from the cache, the
value returns to nothing. Do i have to create a code creating a file and
insert it in MmfCacheStorage? I could not fully understand the code, i'm just
new to vb.net.

Please help.
Many thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top