Skip to content

Connection Interfaces

ebaas edited this page Jun 8, 2017 · 1 revision

Connection Interfaces

Redis supports 400+ commands. These commands are grouped within multiple interfaces:

  • RedisClusterConnection
  • RedisHashesConnection
  • RedisKeysConnection
  • RedisListsConnection
  • RedisScriptingConnection
  • RedisServerConnection
  • RedisSetsConnection
  • RedisSortedSetsConnection
  • RedisStringsConnection

Every of these interfaces is available though the connect() method. Same applies for the async interfaces:

  • RedisClusterAsyncConnection
  • RedisHashesAsyncConnection
  • RedisKeysAsyncConnection
  • RedisListsAsyncConnection
  • RedisScriptingAsyncConnection
  • RedisServerAsyncConnection
  • RedisSetsAsyncConnection
  • RedisSortedSetsAsyncConnection
  • RedisStringsAsyncConnection

These interfaces are implemented by the merged connection classes of RedisConnection for the sync execution and RedisAsyncConnection for async execution which are also available using connect() or connectAsync(). The grouping is derived from the redis command grouping.