Caching Application Block

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
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.
 
Back
Top