Question

J'ai mis en place la gestion de sesion avec cache distribué Velocity. J'ai 3 serveurs hébergeant le cache et créé le cache nommé avec

new-cache Sessions -Secondaries 1 TTL 1440

et ce qui suit est dans mon fichier web.config

<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>

Toute aide serait appréciée.

Était-ce utile?

La solution

On dirait ites sont évincés se. Par défaut caches sont evictable, i.e., les éléments stockés dans le cache peuvent être évincés. Vous devez créer un cache non evictable en utilisant la commande nouvelle cache. Exemple: Nouveau-Cache -Eviction Aucun

Définissez les autres propriétés du cache comme cela est nécessaire.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top