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 classRedisConnector.DefaultNested classes/interfaces inherited from interface one.microstream.afs.blobstore.BlobStoreConnector
BlobStoreConnector.Abstract<B> -
Method Summary
Static Methods Modifier and Type Method Description static RedisConnectorCaching(io.lettuce.core.RedisClient client)Pseudo-constructor method which creates a newRedisConnectorwith cache.static RedisConnectorCaching(String redisUri)Pseudo-constructor method which creates a newRedisConnectorwith cache.static RedisConnectorNew(io.lettuce.core.RedisClient client)Pseudo-constructor method which creates a newRedisConnector.static RedisConnectorNew(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 newRedisConnectorwith 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 newRedisConnectorwith cache.- Parameters:
client- Redis client connection- Returns:
- a new
RedisConnector
-