• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mp911de / lettuce / 1171 / 1
87%
master: 92%

Build:
Build:
LAST BUILD BRANCH: 5.x
DEFAULT BRANCH: master
Ran 17 Oct 2016 01:18PM UTC
Files 298
Run time 16s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Oct 2016 01:11PM UTC coverage: 86.86%. First build
PROFILE=netty-40

push

travis-ci

mp911de
Investigate on dynamic Redis Commands API

Redis exposes a huge amount of API methods that all available in different command interfaces. Those interfaces carry a lot of different methods with overloads so using the API always requires searching for the right method.

Users can declare their own command interfaces and argument sequences where the command name is derived from the method name or provided with `@Command`. Introduction of new commands does not require users to wait for a new lettuce release but they can invoke commands through own declaration. That interface could be also supporting different key and value types, depending on the use-case.

Commands are executed applying synchronization, asynchronous and in a reactive fashion, depending on the method declaration.

Example:

public interface TestInterface {

    String get(String key); // Synchronous Execution of GET

    @Command("GET")
    byte[] getAsBytes(String key); // Synchronous Execution of GET returning data as byte array

    @Command("SET") // synchronous execution applying a Timeout
    String setSync(String key, String value, Timeout timeout);

    Future<String> set(String key, String value); // asynchronous SET execution

    @Command("SET")
    Mono<String> setReactive(String key, String value); // reactive SET execution using SetArgs

    @CommandNaming(split = DOT) // support for Redis Module command notation -> NR.RUN
    double nrRun(String key, int... indexes);
}

RedisCommandFactory factory = new RedisCommandFactory(connection);

MyRedisCommands commands = factory.getCommands(MyRedisCommands.class);

String value = commands.get("key");

11661 of 13425 relevant lines covered (86.86%)

0.87 hits per line

Source Files on job 1171.1 (PROFILE=netty-40)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1171
  • Travis Job 1171.1
  • 0628b600 on github
  • Next Job for PROFILE=netty-40 on issue/371-dynamic-redis-api (#1177.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc