What are the โoptimalโ options for creating an AppFabric cache when you store session state in the cache? MSDN Cache Related Commands
Powershell Command Prompt:
New-Cache [-CacheName] <String> [-Eviction <String>] [-Expirable <String>] [-Force [<SwitchParameter>]] [-NotificationsEnabled <String>] [-Secondaries <Int32>] [-TimeToLive <Int64>]
- CacheName: <application name> -session-state
- Secondary: 1 (high availability enabled when the server crashes)
- Eviction:?
- Expires :?
- TimeToLive :?
- Force:?
- NotificationsEnabled :?
Since I do not want my sessions to be deleted if the session was not deleted using the code or session timeout ...
For eviction, I would have thought โNoโ and for the expiration, I think, False.
I tested and called Session.Abandon removes the object from the cache. I also checked if my session is expanding, the session object in the cache is also expanding. This seems to work "correctly."
Mike schall
source share