Class RedisBase
java.lang.Object
com.github.fppt.jedismock.storage.RedisBase
Created by Xiaolu on 2015/4/20.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCachedLuaScript(String sha1, String script) voidaddSubscriber(Slice channel, RedisClient client) booleancachedLuaScriptExists(String sha1) voidclear()voiddeleteValue(Slice key) voiddeleteValue(Slice key1, Slice key2) booleanvoidgetCachedLuaScript(String sha1) getClock()getDeadline(Slice key) intlonggetPsubscribers(Slice channel) getPSubscriptions(RedisClient client) getRMString(Slice key) getSubscribers(Slice channel) getSubscriptions(RedisClient client) keys()voidmarkKeyModified(Slice key) voidvoidvoidputValue(Slice key, RMDataStructure value) voidputValue(Slice key, RMDataStructure value, Long ttl) voidputValueWithoutClearingTtl(Slice key, RMDataStructure value) booleanremovePSubscriber(Slice channel, RedisClient client) booleanremoveSubscriber(Slice channel, RedisClient client) longsetDeadline(Slice key, long deadline) longvoidsubscribeByPattern(Slice pattern, RedisClient client) voidunwatchSingleKey(OperationExecutorState state, Slice key) voidwatch(OperationExecutorState state, Slice key)
-
Constructor Details
-
RedisBase
-
-
Method Details
-
getClock
-
keys
-
getValue
-
getStream
-
getSet
-
getZSet
-
getList
-
getHash
-
getHLL
-
getRMString
-
getBitMap
-
getSlice
-
getSlice
-
getFieldsAndValuesReadOnly
-
getTTL
-
setTTL
-
setDeadline
-
getDeadline
-
clear
public void clear() -
putSlice
-
putSlice
-
putValueWithoutClearingTtl
-
putValue
-
putValue
-
deleteValue
-
deleteValue
-
addSubscriber
-
subscribeByPattern
-
removeSubscriber
-
removePSubscriber
-
getSubscribers
-
getPsubscribers
-
getNumpat
public int getNumpat() -
getChannels
-
getSubscriptions
-
getPSubscriptions
-
exists
-
type
-
watch
-
unwatchSingleKey
-
markKeyModified
-
getProtoMaxBulkLen
public long getProtoMaxBulkLen() -
getCachedLuaScript
-
cachedLuaScriptExists
-
flushCachedLuaScrips
public void flushCachedLuaScrips() -
addCachedLuaScript
-