Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / November 2003

Tip: Looking for answers? Try searching our database.

Creating Cache object trouble

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexander Inochkin - 13 Nov 2003 11:04 GMT
Hi!

Please help me to create my own Cache() object...
When I create like this
     System.Web.Caching _ca = new System.Web.Caching.Cache();
I get not null _ca object but cannot use this object. NullReferenceException
occured.
How can I create my own Cache object?

Alexander Inochkin.
Alvin Bruney - 13 Nov 2003 16:53 GMT
why do you want to create your own cache object? Why is the cache object not
working for you?

Cache.Insert(object blah)

Signature

-----------
Got TidBits?
Get it here: www.networkip.net/tidbits

> Hi!
>
[quoted text clipped - 6 lines]
>
> Alexander Inochkin.
Jerry III - 13 Nov 2003 18:07 GMT
How about reading other posts in this group first? There's only a single
cache object per application domain.

Jerry

> Hi!
>
[quoted text clipped - 6 lines]
>
> Alexander Inochkin.
Alexander Inochkin - 14 Nov 2003 10:28 GMT
I'm very sorry, but I didn't find messages about this in this group for last
month...

> How about reading other posts in this group first? There's only a single
> cache object per application domain.
Could you send me links where I can read more about this...

Thanks.
> How about reading other posts in this group first? There's only a single
> cache object per application domain.
[quoted text clipped - 12 lines]
> >
> > Alexander Inochkin.
MSFT - 18 Nov 2003 09:10 GMT
Hi Alex,

Have you got the answer for the question?

Luke
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Alexander Inochkin - 18 Nov 2003 15:36 GMT
No... I didn't find any about this...

> Hi Alex,
>
[quoted text clipped - 6 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Alexander Inochkin - 18 Nov 2003 15:41 GMT
No.. I haven't find anything about it...
Maybe you could help me...

> Have you got the answer for the question?
>
> Luke
> Microsoft Online Support
MSFT - 19 Nov 2003 09:32 GMT
Hi Alexander,

Only one instance of cache is created per application domain, and it
remains valid as long as the application domain remains active. So you
can't create additional one in your program. For more about cache object,
you can refer to:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemwebcachingcacheclasstopic.asp

Luke
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.