public static Dictionary<string, List<YourType>> TheCache = new ...

On a static class? eg YourType.Cache["foo"] could even do it, tho I'd say
it'd be a bit better to put it in it's own class (YourTypeCache? Naming
things is.... fun :) )


I usually feed things into views, or they talk to a central singleton class
(eg for database access or to get a single client to talk to a REST
service). those often cache for me, too - to save on the network calls.

On Wed, Jul 11, 2012 at 4:10 PM, Mike Murdock <[email protected]> wrote:

>  What the best ways to cache a generic list data between views.****
>
> ** **
>
> *Michael Murdock *
> *Software Engineer*
>
> (865) 482-1999
> (865) 481-0921 fax
> www.allmeds.com****
>
> ** **
>
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>


-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop.
http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding!
http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to