public class RedisAssociationCache extends Object implements AssociationCache
JdbcServerAssociationStore
,
Copyright 2006-2008 Sxip Identity Corporation, licensed under Apache License 2.0.Constructor and Description |
---|
RedisAssociationCache(String cacheId,
redis.clients.jedis.JedisPool jedisPool,
AssociationStringMapFormat format) |
Modifier and Type | Method and Description |
---|---|
org.openid4java.association.Association |
get(String key) |
String |
nextId() |
void |
put(String key,
org.openid4java.association.Association association) |
void |
remove(String key) |
public RedisAssociationCache(String cacheId, redis.clients.jedis.JedisPool jedisPool, AssociationStringMapFormat format)
public String nextId()
nextId
in interface AssociationCache
public void put(String key, org.openid4java.association.Association association)
put
in interface AssociationCache
key
- key to store the association underassociation
- association to store@Nullable public org.openid4java.association.Association get(String key)
get
in interface AssociationCache
key
- the key of the association to fetchpublic void remove(String key)
remove
in interface AssociationCache
key
- the key that the association to delete is stored underCopyright © 2020 Atlassian. All rights reserved.