Package one.microstream.afs.redis
Interface RedisConnector
- All Superinterfaces:
AutoCloseable
,BlobStoreConnector
- All Known Implementing Classes:
RedisConnector.Default
public interface RedisConnector extends BlobStoreConnector
Connector for Redis which utilizes the Lettuce client.
First create a Lettuce Redis client.
RedisClient client = ... BlobStoreFileSystem fileSystem = BlobStoreFileSystem.New( RedisConnector.New(client) );
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RedisConnector.Default
Nested classes/interfaces inherited from interface one.microstream.afs.blobstore.BlobStoreConnector
BlobStoreConnector.Abstract<B>
-
Method Summary
Static Methods Modifier and Type Method Description static RedisConnector
Caching(io.lettuce.core.RedisClient client)
Pseudo-constructor method which creates a newRedisConnector
with cache.static RedisConnector
Caching(String redisUri)
Pseudo-constructor method which creates a newRedisConnector
with cache.static RedisConnector
New(io.lettuce.core.RedisClient client)
Pseudo-constructor method which creates a newRedisConnector
.static RedisConnector
New(String redisUri)
Pseudo-constructor method which creates a newRedisConnector
.Methods inherited from interface one.microstream.afs.blobstore.BlobStoreConnector
close, copyFile, createDirectory, createFile, deleteFile, directoryExists, fileExists, fileSize, moveFile, readData, readData, truncateFile, visitChildren, writeData
-
Method Details
-
New
Pseudo-constructor method which creates a newRedisConnector
.- Parameters:
redisUri
- url to connect to- Returns:
- a new
RedisConnector
-
Caching
Pseudo-constructor method which creates a newRedisConnector
with cache.- Parameters:
redisUri
- url to connect to- Returns:
- a new
RedisConnector
-
New
Pseudo-constructor method which creates a newRedisConnector
.- Parameters:
client
- Redis client connection- Returns:
- a new
RedisConnector
-
Caching
Pseudo-constructor method which creates a newRedisConnector
with cache.- Parameters:
client
- Redis client connection- Returns:
- a new
RedisConnector
-