public interface RObject extends RObjectAsync
Modifier and Type | Method and Description |
---|---|
boolean |
delete()
Deletes the object
|
String |
getName()
Returns name of object
|
boolean |
isExists()
Check object existence
|
void |
migrate(String host,
int port,
int database)
Transfer an object from source Redis instance to destination Redis instance
|
boolean |
move(int database)
Move object to another database
|
void |
rename(String newName)
Rename current object key to
newName |
boolean |
renamenx(String newName)
Rename current object key to
newName
only if new key is not exists |
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync
void migrate(String host, int port, int database)
host
- - destination hostport
- - destination portdatabase
- - destination databaseboolean move(int database)
database
- true
if key was moved else false
String getName()
boolean delete()
void rename(String newName)
newName
newName
- boolean renamenx(String newName)
newName
only if new key is not existsnewName
- boolean isExists()
true
if object exists and false
otherwiseCopyright © 2014–2016. All rights reserved.