|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.springframework.data.redis.support.collections.RedisProperties
public class RedisProperties
Properties extension for a Redis back-store. Useful for reading (and storing) properties inside a Redis hash.
Particularly useful inside a Spring container for hooking into Spring's property placeholder or
PropertiesFactoryBean.
Properties,
PropertiesLoaderSupport,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class java.util.Properties |
|---|
defaults |
| Constructor Summary | |
|---|---|
RedisProperties(BoundHashOperations<String,String,String> boundOps)
Constructs a new RedisProperties instance. |
|
RedisProperties(Properties defaults,
BoundHashOperations<String,String,String> boundOps)
Constructs a new RedisProperties instance. |
|
RedisProperties(Properties defaults,
String key,
RedisOperations<String,?> operations)
Constructs a new RedisProperties instance. |
|
RedisProperties(String key,
RedisOperations<String,?> operations)
Constructs a new RedisProperties instance. |
|
| Method Summary | |
|---|---|
void |
clear()
|
Object |
clone()
|
boolean |
contains(Object value)
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Enumeration<Object> |
elements()
|
Set<Map.Entry<Object,Object>> |
entrySet()
|
boolean |
equals(Object o)
|
Boolean |
expire(long timeout,
TimeUnit unit)
Sets the key time-to-live/expiration. |
Boolean |
expireAt(Date date)
Sets the key time-to-live/expiration. |
Object |
get(Object key)
|
Long |
getExpire()
Returns the expiration of this key. |
String |
getKey()
Returns the key associated with this entity. |
RedisOperations<String,?> |
getOperations()
Returns the underlying Redis operations used by the backing implementation. |
DataType |
getType()
Returns the associated Redis type. |
int |
hashCode()
|
Double |
increment(Object key,
double delta)
|
Long |
increment(Object key,
long delta)
|
boolean |
isEmpty()
|
Enumeration<Object> |
keys()
|
Set<Object> |
keySet()
|
Boolean |
persist()
Removes the expiration (if any) of the key. |
Enumeration<?> |
propertyNames()
|
Object |
put(Object key,
Object value)
|
void |
putAll(Map<? extends Object,? extends Object> t)
|
Object |
putIfAbsent(Object key,
Object value)
|
Object |
remove(Object key)
|
boolean |
remove(Object key,
Object value)
|
void |
rename(String newKey)
Renames the key. |
Object |
replace(Object key,
Object value)
|
boolean |
replace(Object key,
Object oldValue,
Object newValue)
|
int |
size()
|
void |
storeToXML(OutputStream os,
String comment)
|
void |
storeToXML(OutputStream os,
String comment,
String encoding)
|
Collection<Object> |
values()
|
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, load, load, loadFromXML, save, setProperty, store, store, stringPropertyNames |
| Methods inherited from class java.util.Hashtable |
|---|
rehash, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RedisProperties(BoundHashOperations<String,String,String> boundOps)
RedisProperties instance.
public RedisProperties(String key,
RedisOperations<String,?> operations)
RedisProperties instance.
key - operations -
public RedisProperties(Properties defaults,
BoundHashOperations<String,String,String> boundOps)
RedisProperties instance.
defaults - boundOps -
public RedisProperties(Properties defaults,
String key,
RedisOperations<String,?> operations)
RedisProperties instance.
defaults - key - operations - | Method Detail |
|---|
public Object get(Object key)
get in interface Map<Object,Object>get in class Hashtable<Object,Object>
public Object put(Object key,
Object value)
put in interface Map<Object,Object>put in class Hashtable<Object,Object>public void putAll(Map<? extends Object,? extends Object> t)
putAll in interface Map<Object,Object>putAll in class Hashtable<Object,Object>public Enumeration<?> propertyNames()
propertyNames in class Propertiespublic void clear()
clear in interface Map<Object,Object>clear in class Hashtable<Object,Object>public Object clone()
clone in class Hashtable<Object,Object>public boolean contains(Object value)
contains in class Hashtable<Object,Object>public boolean containsKey(Object key)
containsKey in interface Map<Object,Object>containsKey in class Hashtable<Object,Object>public boolean containsValue(Object value)
containsValue in interface Map<Object,Object>containsValue in class Hashtable<Object,Object>public Enumeration<Object> elements()
elements in class Hashtable<Object,Object>public Set<Map.Entry<Object,Object>> entrySet()
entrySet in interface Map<Object,Object>entrySet in class Hashtable<Object,Object>public boolean equals(Object o)
equals in interface Map<Object,Object>equals in class Hashtable<Object,Object>public int hashCode()
hashCode in interface Map<Object,Object>hashCode in class Hashtable<Object,Object>public boolean isEmpty()
isEmpty in interface Map<Object,Object>isEmpty in class Hashtable<Object,Object>public Enumeration<Object> keys()
keys in class Hashtable<Object,Object>public Set<Object> keySet()
keySet in interface Map<Object,Object>keySet in class Hashtable<Object,Object>public Object remove(Object key)
remove in interface Map<Object,Object>remove in class Hashtable<Object,Object>public int size()
size in interface Map<Object,Object>size in class Hashtable<Object,Object>public Collection<Object> values()
values in interface Map<Object,Object>values in class Hashtable<Object,Object>
public Long increment(Object key,
long delta)
increment in interface RedisMap<Object,Object>
public Double increment(Object key,
double delta)
increment in interface RedisMap<Object,Object>public RedisOperations<String,?> getOperations()
RedisStore
getOperations in interface RedisStore
public Boolean expire(long timeout,
TimeUnit unit)
BoundKeyOperations
expire in interface BoundKeyOperations<String>timeout - expiration valueunit - expiration unit
public Boolean expireAt(Date date)
BoundKeyOperations
expireAt in interface BoundKeyOperations<String>date - expiration date
public Long getExpire()
BoundKeyOperations
getExpire in interface BoundKeyOperations<String>public String getKey()
BoundKeyOperations
getKey in interface BoundKeyOperations<String>public DataType getType()
BoundKeyOperations
getType in interface BoundKeyOperations<String>public Boolean persist()
BoundKeyOperations
persist in interface BoundKeyOperations<String>public void rename(String newKey)
BoundKeyOperations
rename in interface BoundKeyOperations<String>newKey - new key
public Object putIfAbsent(Object key,
Object value)
putIfAbsent in interface ConcurrentMap<Object,Object>
public boolean remove(Object key,
Object value)
remove in interface ConcurrentMap<Object,Object>
public boolean replace(Object key,
Object oldValue,
Object newValue)
replace in interface ConcurrentMap<Object,Object>
public Object replace(Object key,
Object value)
replace in interface ConcurrentMap<Object,Object>
public void storeToXML(OutputStream os,
String comment,
String encoding)
throws IOException
storeToXML in class PropertiesIOException
public void storeToXML(OutputStream os,
String comment)
throws IOException
storeToXML in class PropertiesIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||