@SuppressWarnings("rawtypes")
public Set keySet(Object firstKey, Object secondKey) {
try {
Set<Object> keys = Sets.newLinkedHashSet();
exchange.clear();
Exchange iteratorExchange = new Exchange(exchange);
iteratorExchange.append(firstKey);
iteratorExchange.append(secondKey);
iteratorExchange.append(Key.BEFORE);
while (iteratorExchange.next(false)) {
keys.add(iteratorExchange.getKey().indexTo(-1).decode());
}
return keys;
} catch (Exception e) {
throw new IllegalStateException("Fail to get keys from cache " + name, e);
}