public class PHPMemcacheSessionLocator extends AbstractMemcachedSessionLocator
failureMode| 构造器和说明 |
|---|
PHPMemcacheSessionLocator() |
PHPMemcacheSessionLocator(HashAlgorithm hashAlgorithm) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getHash(int size,
String key) |
long |
getNext(int size,
long start) |
Session |
getSessionByKey(String key)
Returns a session by special key.
|
void |
setHashAlgorighm(HashAlgorithm hashAlgorithm) |
void |
updateSessions(Collection<Session> list)
Update sessions when session was added or removed.
|
setFailureModepublic PHPMemcacheSessionLocator()
public PHPMemcacheSessionLocator(HashAlgorithm hashAlgorithm)
public final void setHashAlgorighm(HashAlgorithm hashAlgorithm)
public final long getHash(int size,
String key)
public final Session getSessionByKey(String key)
MemcachedSessionLocatorpublic final long getNext(int size,
long start)
public final void updateSessions(Collection<Session> list)
MemcachedSessionLocatorlist - The newer sessionsCopyright © 2013. All Rights Reserved.