Package top.codef.redisdao
Class AbstractValueDao
java.lang.Object
top.codef.redisdao.AbstractRedisDDao
top.codef.redisdao.AbstractValueDao
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
void
void
void
setIfAbsent
(String key, String value) setIfAbsent
(String key, String value, Duration duration) Methods inherited from class top.codef.redisdao.AbstractRedisDDao
deleteKey, expire, hasKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface top.codef.redisdao.interfaces.RedisDao
getStringRedisTemplate
-
Constructor Details
-
AbstractValueDao
public AbstractValueDao()
-
-
Method Details
-
createValueOperation
- Returns:
-
set
- Parameters:
key
-value
-time
-unit
-
-
set
- Parameters:
key
-value
-time
-
-
set
- Parameters:
key
-value
-
-
setIfAbsent
- Parameters:
key
-value
-- Returns:
-
setIfAbsent
- Parameters:
key
-value
-duration
-- Returns:
-
get
- Parameters:
key
-- Returns:
-
getExpire
- Parameters:
key
-unit
-- Returns:
-