com.lordofthejars.nosqlunit.redis.embedded
Interface RedisDatatypeOperations

All Known Implementing Classes:
HashDatatypeOperations, ListDatatypeOperations, SetDatatypeOperations, SortsetDatatypeOperations, StringDatatypeOperations

public interface RedisDatatypeOperations


Method Summary
 void addExpirationAt(byte[] key, long time, TimeUnit unit)
           
 void addExpirationTime(byte[] key, long duration, TimeUnit unit)
           
 Long del(byte[]... keys)
           
 boolean exists(byte[] key)
           
 void flushAllKeys()
           
 long getNumberOfKeys()
           
 List<byte[]> keys()
           
 long remainingTime(byte[] key)
           
 boolean removeExpiration(byte[] key)
           
 boolean renameKey(byte[] key, byte[] newKey)
           
 List<byte[]> sort(byte[] key)
           
 ExpirationDatatypeOperations.TtlState timedoutState(byte[] key)
           
 String type()
           
 

Method Detail

getNumberOfKeys

long getNumberOfKeys()

flushAllKeys

void flushAllKeys()

del

Long del(byte[]... keys)

exists

boolean exists(byte[] key)

renameKey

boolean renameKey(byte[] key,
                  byte[] newKey)

addExpirationTime

void addExpirationTime(byte[] key,
                       long duration,
                       TimeUnit unit)

addExpirationAt

void addExpirationAt(byte[] key,
                     long time,
                     TimeUnit unit)

timedoutState

ExpirationDatatypeOperations.TtlState timedoutState(byte[] key)

removeExpiration

boolean removeExpiration(byte[] key)

remainingTime

long remainingTime(byte[] key)

keys

List<byte[]> keys()

type

String type()

sort

List<byte[]> sort(byte[] key)


Copyright © 2012. All Rights Reserved.