Skip to content

Connection Interfaces

Mark Paluch edited this page Aug 11, 2014 · 2 revisions

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.

Clone this wiki locally