Hibernate version: 1.2.1.400
Hello
I am hosting many instances of the same ASP.NET application on the web server, and I need 2-nd level cache solution.
Tried SysCache but it consumed far too much server memory than I can spend on this, I started to get OutOfMemory exceptions.
Now I am trying to set up
MemCache on separate machine. I configured two test instances to connect to MemCache server. And - surprise - they started to "cross-load" the objects , resulting in total mess (one application loaded objects from second instance and vice versa). After setting up log4net I discovered that MemCacheProvider does not distingush instances, eg. :
Code:
Cache lookup: interfejsLib.User, interfejsLib, Version=2.3.2939.35557, Culture=neutral, PublicKeyToken=null#1
Two instances use the same cache key, so it is possible that one application gets objects from second application's database :(
Because documentation of
MemCacheProvider is very .... short, I ask you for help -
is there any way to make separate "space" or something , one for every instance/database ? Running many memcache processes is not a solution , because I have over 50 application instances and there will be more in future.
Thanks in advance.