Skip to content

Commit

Permalink
Polishing #1271
Browse files Browse the repository at this point in the history
Forward-port of GEO read-only commands.
  • Loading branch information
mp911de committed Apr 23, 2020
1 parent 7fbf9cb commit 4375f2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static Set<CommandType> getReadOnlyCommands() {

enum CommandName {
ASKING, BITCOUNT, BITPOS, CLIENT, COMMAND, DUMP, ECHO, EVAL, EVALSHA, EXISTS, //
GEODIST, GEOPOS, GEORADIUS, GEORADIUSBYMEMBER, GEOHASH, GET, GETBIT, //
GEODIST, GEOPOS, GEORADIUS, GEORADIUS_RO, GEORADIUSBYMEMBER, GEORADIUSBYMEMBER_RO, GEOHASH, GET, GETBIT, //
GETRANGE, HEXISTS, HGET, HGETALL, HKEYS, HLEN, HMGET, HSCAN, HSTRLEN, //
HVALS, INFO, KEYS, LINDEX, LLEN, LRANGE, MGET, PFCOUNT, PTTL, //
RANDOMKEY, READWRITE, SCAN, SCARD, SCRIPT, //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@
import io.lettuce.core.protocol.ProtocolKeyword;

/**
* Tests for {@link ReadOnlyCommands}.
*
* @author Mark Paluch
*/
class ReadOnlyCommandsUnitTests {

@Test
void testCount() {
assertThat(ReadOnlyCommands.getReadOnlyCommands()).hasSize(76);
assertThat(ReadOnlyCommands.getReadOnlyCommands()).hasSize(78);
}

@Test
Expand Down

0 comments on commit 4375f2e

Please sign in to comment.