Re: Generics in Cache
- From: Bob Grommes <bob@xxxxxxxxxxxxxx>
- Date: Thu, 12 Jan 2006 19:17:40 -0700
Putting something in the cache doesn't involve serializing it. The cache (and the session and application objects) are just collections that you're adding to.
Perhaps you're thinking of ViewState, which requires that objects added to it be serializable because their references aren't added to ViewState, a serialized copy is added. This allows the object contents to be stored in the viewstate.
I don't know where you read that generics can't be serialized. Check this out:
www.devx.com/dotnet/Article/30158/0/page/2
--Bob
INeedADip wrote:
Can I put a generic List<MyObject> in cache? I read that generics can't be serialized..
Can I cache them? Can I return them from Web Services?
.
- Follow-Ups:
- Re: Generics in Cache
- From: INeedADip
- Re: Generics in Cache
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Generics in Cache
- References:
- Generics in Cache
- From: INeedADip
- Generics in Cache
- Prev by Date: Re: design discussion: when to throw exceptions
- Next by Date: Re: big confusion
- Previous by thread: Generics in Cache
- Next by thread: Re: Generics in Cache
- Index(es):