public interface NoSql
| Modifier and Type | Method and Description |
|---|---|
Any |
get(String key)
Retreives the value associated with the given key.
|
boolean |
remove(String key)
Removes the value associated with the given key.
|
boolean |
set(String key,
Any value)
Stores a value associated with the given key.
|
boolean |
set(String key,
Any value,
int expire)
Stores a value associated with the given key.
|
boolean set(String key,
Any value)
key - the key that will be associated with the itemvalue - the variable to store. Strings and integers are stored as is, other types are stored serializedboolean set(String key,
Any value,
int expire)
key - the key that will be associated with the itemvalue - the variable to store. Strings and integers are stored as is, other types are stored serializedexpire - Expiration time of the item. If it's equal to zero, the item will never expire. It can be a Unix timestamp or a number of seconds starting from current time, but in the latter case the number of seconds may not exceed 2592000 (30 days)Any get(String key)
key - the key to fetchboolean remove(String key)
key - the key to remove