developer747
developer747

Reputation: 15958

asp.net cache and virtual directory

Suppose I have an asp.net application "A" in IIS and "A" has two virtual directories (applications) "B" and "C" under it. We know that system.web.cache class is instantiated once for every application. Now

1>Will cache created under "B" be accessible to "C"?

2>Will cache created under "B" be accessible to "A" and vice versa?

Upvotes: 1

Views: 592

Answers (1)

Olaf
Olaf

Reputation: 10247

Generally, no. Caching can't cross Application boundaries. If you want to do that (or even cache across physical machines), you can use tools like memcached or Velocity by Microsoft.

Upvotes: 3

Related Questions