Redis
This is an enterprise feature. |
<dependency>
<groupId>one.microstream</groupId>
<artifactId>microstream-enterprise-afs-redis</artifactId>
<version>05.00.02-MS-GA</version>
</dependency>
String redisUri = "redis://localhost:6379/0";
BlobStoreFileSystem fileSystem = BlobStoreFileSystem.New(
RedisConnector.Caching(redisUri)
);
EmbeddedStorage.start(fileSystem.ensureDirectoryPath("microstream_storage"));
Configuration
When using external configuration Redis can be set as follows.
microstream-storage.properties
storage-filesystem.redis.uri=redis://localhost:6379/0
Property | Description |
---|---|
redis.uri |
The RedisURI contains the host/port and can carry authentication/database details. On a successful connect you get authenticated, and the database is selected afterward. This applies also after re-establishing a connection after a connection loss. |