few comments added

pull/255/head
Nikita 10 years ago
parent bd7469d7fb
commit 8468b6c098

@ -221,10 +221,24 @@ public class Redisson implements RedissonClient {
return new RedissonSortedSet<V>(commandExecutor, name);
}
/**
* Returns Redis Sorted Set instance by name
*
* @param name
* @return
*/
public <V> RScoredSortedSet<V> getScoredSortedSet(String name) {
return new RedissonScoredSortedSet<V>(commandExecutor, name);
}
/**
* Returns String based Redis Sorted Set instance by name
* All elements are inserted with the same score during addition,
* in order to force lexicographical ordering
*
* @param name
* @return
*/
public RLexSortedSet getLexSortedSet(String name) {
return new RedissonLexSortedSet(commandExecutor, name);
}

@ -25,6 +25,7 @@ import org.redisson.core.RBucketAsync;
import org.redisson.core.RDequeAsync;
import org.redisson.core.RHyperLogLogAsync;
import org.redisson.core.RKeysAsync;
import org.redisson.core.RLexSortedSet;
import org.redisson.core.RListAsync;
import org.redisson.core.RMapAsync;
import org.redisson.core.RQueueAsync;
@ -98,6 +99,12 @@ public class RedissonBatch implements RBatch {
return new RedissonScoredSortedSet<V>(executorService, name);
}
@Override
public RLexSortedSet getLexSortedSet(String name) {
return new RedissonLexSortedSet(executorService, name);
}
@Override
public RScriptAsync getScript() {
return new RedissonScript(executorService);

@ -106,8 +106,22 @@ public interface RedissonClient {
*/
<V> RSortedSet<V> getSortedSet(String name);
/**
* Returns Redis Sorted Set instance by name
*
* @param name
* @return
*/
<V> RScoredSortedSet<V> getScoredSortedSet(String name);
/**
* Returns String based Redis Sorted Set instance by name
* All elements are inserted with the same score during addition,
* in order to force lexicographical ordering
*
* @param name
* @return
*/
RLexSortedSet getLexSortedSet(String name);
/**

@ -113,8 +113,24 @@ public interface RBatch {
*/
RAtomicLongAsync getAtomicLongAsync(String name);
/**
* Returns Redis Sorted Set instance by name
*
* @param name
* @return
*/
<V> RScoredSortedSet<V> getScoredSortedSet(String name);
/**
* Returns String based Redis Sorted Set instance by name
* All elements are inserted with the same score during addition,
* in order to force lexicographical ordering
*
* @param name
* @return
*/
RLexSortedSet getLexSortedSet(String name);
/**
* Returns script operations object
*

Loading…
Cancel
Save