This package provides an implementation of the Tachyon Drive StorageDriver interface from the tachyon-drive package that uses Redis as the underlying storage provider.
To install this package, run the following command:
npm install tachyon-drive-redis tachyon-drive
Usage To use this package, you first need to create an instance of the RedisStorageDriver class, passing in the following parameters:
const redis = createClient({ ...options }).withTypeMapping({
[RESP_TYPES.BLOB_STRING]: Buffer,
});
const driver = new RedisStorageDriver(
{ name: "RedisStorageDriver", redis, key: "store-key" },
bufferSerializer,
);