use of com.aerospike.client.AerospikeClient in project XRTB by benmfaul.
the class RedissonClient method get.
/**
* Given a key, return the string value.
* @param skey String.
* @return String. The value of the key.
*/
public String get(String skey) throws Exception {
if (ae == null) {
return (String) cache.peek(skey);
}
AerospikeClient client = ae.getClient();
if (client == null) {
throw new Exception("NULL POINTER FOR GET");
}
Key key = new Key("test", "cache", skey);
Record record = null;
record = client.get(null, key);
if (record == null) {
return null;
}
return (String) record.bins.get("value");
}
Aggregations