Skip to content

Commit

Permalink
methods renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita committed Aug 5, 2015
1 parent 7b6a51f commit f6572e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/redisson/RedissonKeys.java
Expand Up @@ -41,7 +41,7 @@ public RedissonKeys(CommandExecutor commandExecutor) {
} }


@Override @Override
public Iterable<String> keysIterableByPattern(final String pattern) { public Iterable<String> getKeysByPattern(final String pattern) {
List<Iterable<String>> iterables = new ArrayList<Iterable<String>>(); List<Iterable<String>> iterables = new ArrayList<Iterable<String>>();
for (final Integer slot : commandExecutor.getConnectionManager().getEntries().keySet()) { for (final Integer slot : commandExecutor.getConnectionManager().getEntries().keySet()) {
Iterable<String> iterable = new Iterable<String>() { Iterable<String> iterable = new Iterable<String>() {
Expand All @@ -56,7 +56,7 @@ public Iterator<String> iterator() {
} }


@Override @Override
public Iterable<String> keysIterable() { public Iterable<String> getKeys() {
List<Iterable<String>> iterables = new ArrayList<Iterable<String>>(); List<Iterable<String>> iterables = new ArrayList<Iterable<String>>();
for (final Integer slot : commandExecutor.getConnectionManager().getEntries().keySet()) { for (final Integer slot : commandExecutor.getConnectionManager().getEntries().keySet()) {
Iterable<String> iterable = new Iterable<String>() { Iterable<String> iterable = new Iterable<String>() {
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/redisson/core/RKeys.java
Expand Up @@ -20,7 +20,7 @@
public interface RKeys extends RKeysAsync { public interface RKeys extends RKeysAsync {


/** /**
* Get keys by pattern using iterator. Keys traversing with SCAN operation * Get all keys by pattern using iterator. Keys traversing with SCAN operation
* *
* Supported glob-style patterns: * Supported glob-style patterns:
* h?llo subscribes to hello, hallo and hxllo * h?llo subscribes to hello, hallo and hxllo
Expand All @@ -29,14 +29,14 @@ public interface RKeys extends RKeysAsync {
* *
* @return * @return
*/ */
Iterable<String> keysIterableByPattern(String pattern); Iterable<String> getKeysByPattern(String pattern);


/** /**
* Get keys using iterator. Keys traversing with SCAN operation * Get all keys using iterator. Keys traversing with SCAN operation
* *
* @return * @return
*/ */
Iterable<String> keysIterable(); Iterable<String> getKeys();


/** /**
* Get random key * Get random key
Expand Down

0 comments on commit f6572e3

Please sign in to comment.