Question

I have some client-server application. And as one of its part, I need to implement a paginal approach on client side. I am making data footprint from db (I'm using MongoDB with 10gen's driver) on server-side and then give part of the footprint on client's request.

I have a problem with storing the footprint. I can't store it on server as local variable, because it simply don't save any data after completing method. I figured out that the footprint data can be stored as a MongoDB cache. But I don't know how it works.

Googling didn't made any progress for me. So can anybody explain me how to implement this MongoDB caching in C#?

Was it helpful?

Solution

According to Sergio's and Craig's answers in comments to my question I assume that easiest way "to cache" some data in MongoDB is to create separate collection for storing data. Or (if it's not an option, as in my case) to use built-in ASP.NET cache.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top