Package com.caucho.distcache

Examples of com.caucho.distcache.AbstractCache


    if (_sessionStore != null)
      _sessionStore.setIdleTimeoutMillis(_sessionTimeout);

    if (_isPersistenceEnabled) {
      AbstractCache sessionCache = AbstractCache.getMatchingCache("resin:session");
       
      if (sessionCache == null) {
        sessionCache = new ClusterByteStreamCache();
       
        sessionCache.setName("resin:session");
        sessionCache.setBackup(_isSaveBackup);
        sessionCache.setTriplicate(_isSaveTriplicate);
        sessionCache = sessionCache.createIfAbsent();
       
        if (isAlwaysLoadSession())
          sessionCache.setLocalReadTimeoutMillis(20);
      }

      _sessionStore = sessionCache;
    }
View Full Code Here


  public final void initStore()
  {
    if (_authStore != null)
      return;

    AbstractCache authStore = AbstractCache.getMatchingCache(
      "resin:authenticator");

    if (authStore == null) {
      authStore = new ClusterByteStreamCache();

      authStore.setIdleTimeoutMillis(Period.FOREVER);
      authStore.setExpireTimeoutMillis(Period.FOREVER);

      authStore.setName("resin:authenticator");
      authStore.setScopeMode(AbstractCache.Scope.POD);
      authStore.setBackup(true);
      authStore.setTriplicate(true);

      authStore = authStore.createIfAbsent();
    }

    _authStore = authStore;
  }
View Full Code Here

    if (_sessionStore != null)
      _sessionStore.setIdleTimeoutMillis(_sessionTimeout);

    if (_isPersistenceEnabled) {
      AbstractCache sessionCache = new ClusterByteStreamCache();

      sessionCache.setName("resin:session");
      sessionCache.setBackup(_isSaveBackup);
      sessionCache.setTriplicate(_isSaveTriplicate);
      sessionCache.init();

      _sessionStore = sessionCache;
    }

    if (_cookiePath != null) {
View Full Code Here

TOP

Related Classes of com.caucho.distcache.AbstractCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.