Question

I've set up sesion management with Velocity distributed cache. I have 3 servers hosting the cache and created the named cache with

new-cache Sessions -Secondaries 1 TTL 1440

and the following is in my web.config file

<section name="dataCacheClient"
type="Microsoft.Data.Caching.DataCacheClientSection,&#xD;&#xA;   cacheBaseLibrary"
allowLocation="true"
allowDefinition="Everywhere"/>

    <sessionState mode="Custom" customProvider="Velocity" >
        <providers>
            <add
              name="Velocity"
                       type="Microsoft.Data.Caching.DataCacheSessionStoreProvider"
              cacheName="Sessions"/>
        </providers>
    </sessionState>

Any help would be appreciated.

Was it helpful?

Solution

Looks like ites are getting evicted. By default caches are evictable, i.e, items stored in the cache can be evicted. You should create a non-evictable cache using the new-cache command. Example: New-Cache -Eviction None

Set other cache properties as is required.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top