2009-12-01 6 views
0

저는 Velocity 분산 캐시로 세션 관리를 설정했습니다. 나는 캐시를 호스팅 3 개 서버를 가지고Velocity가 단 몇 분만에 세션을 잃는 이유는 무엇입니까?

new-cache Sessions -Secondaries 1 TTL 1440 

로 명명 된 캐시를 생성하고, 다음은 어떤 도움을 주시면 감사하겠습니다 내 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> 

입니다.

답변

1

아이 스티가 퇴거당하는 것처럼 보입니다. 기본적으로 캐시는 제거 가능합니다. 즉, 캐시에 저장된 항목을 제거 할 수 있습니다. new-cache 명령을 사용하여 비출착 캐시를 만들어야합니다. 예 : 새 캐시 - 예외 없음

필요한 경우 다른 캐시 속성을 설정하십시오.

관련 문제