Fix memcache session data cache module
This commit is contained in:
parent
443e99c3fb
commit
bb73aea67b
|
@ -10,7 +10,7 @@ maven://org.slf4j/slf4j-api/1.6.6|lib/xmemcached/slf4j-api-1.6.6.jar
|
|||
|
||||
[lib]
|
||||
lib/jetty-memcached-sessions-${jetty.version}.jar
|
||||
lib/xmemcached
|
||||
lib/xmemcached/*.jar
|
||||
|
||||
[license]
|
||||
Xmemcached is an open source project hosted on Github and released under the Apache 2.0 license.
|
||||
|
|
|
@ -46,8 +46,8 @@ public class MemcachedSessionDataMap implements SessionDataMap
|
|||
|
||||
|
||||
/**
|
||||
* @param host
|
||||
* @param port
|
||||
* @param host address of memcache server
|
||||
* @param port address of memcache server
|
||||
*/
|
||||
public MemcachedSessionDataMap(String host, String port)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,9 @@
|
|||
<!-- ===================================================================== -->
|
||||
|
||||
<Call name="removeBean">
|
||||
<Ref id="sessionDataStoreFactory"/>
|
||||
<Arg>
|
||||
<Ref id="sessionDataStoreFactory"/>
|
||||
</Arg>
|
||||
</Call>
|
||||
|
||||
|
||||
|
@ -17,7 +19,7 @@
|
|||
<Arg>
|
||||
<New class="org.eclipse.jetty.server.session.CachingSessionDataStoreFactory">
|
||||
<Set name="sessionStoreFactory"><Ref id="sessionDataStoreFactory"/></Set>
|
||||
<Set name="sessionDataMapFactory"><Ref id="sessionDataMapFatory"/></Set>
|
||||
<Set name="sessionDataMapFactory"><Ref id="sessionDataMapFactory"/></Set>
|
||||
</New>
|
||||
</Arg>
|
||||
</Call>
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.eclipse.jetty.server.session;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import org.eclipse.jetty.util.component.AbstractLifeCycle;
|
||||
import org.eclipse.jetty.util.component.ContainerLifeCycle;
|
||||
|
||||
/**
|
||||
* CachingSessionDataStore
|
||||
|
@ -42,7 +42,7 @@ import org.eclipse.jetty.util.component.AbstractLifeCycle;
|
|||
* possible that failures can result in cache inconsistency.
|
||||
*
|
||||
*/
|
||||
public class CachingSessionDataStore extends AbstractLifeCycle implements SessionDataStore
|
||||
public class CachingSessionDataStore extends ContainerLifeCycle implements SessionDataStore
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -64,7 +64,9 @@ public class CachingSessionDataStore extends AbstractLifeCycle implements Sessio
|
|||
public CachingSessionDataStore (SessionDataMap cache, SessionDataStore store)
|
||||
{
|
||||
_cache = cache;
|
||||
addBean(_cache,true);
|
||||
_store = store;
|
||||
addBean(_store,true);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue