What are the "optimal" parameters for creating an AppFabric cache when you will be storing session state in the cache? MSDN Cache-Related Commands
Powershell command line:
New-Cache [-CacheName] <String> [-Eviction <String>] [-Expirable <String>] [-Force [<SwitchParameter>]] [-NotificationsEnabled <String>] [-Secondaries <Int32>] [-TimeToLive <Int64>]
- CacheName: < application name >-session-state
- Secondaries: 1 (High Availability turned on in case of server failure)
- Eviction: ?
- Expireable: ?
- TimeToLive: ?
- Force: ?
- NotificationsEnabled: ?
Since I don't want my sessions to be removed unless the session has been abandoned either via code or Session Timeout...
For eviction, I would think "None" and for expireable, I would think False.
I have tested and calling Session.Abandon does remove the object from the cache. I have also tested to see if by extending my session, the session object in cache is also extended. This does seem to work the "correct" way.