Este contenido no está disponible en el idioma seleccionado.
Hot Rod .NET Client Guide
Configure and use Hot Rod .NET/C# clients
Abstract
Red Hat Data Grid Copiar enlaceEnlace copiado en el portapapeles!
Data Grid is a high-performance, distributed in-memory data store.
- Schemaless data structure
- Flexibility to store different objects as key-value pairs.
- Grid-based data storage
- Designed to distribute and replicate data across clusters.
- Elastic scaling
- Dynamically adjust the number of nodes to meet demand without service disruption.
- Data interoperability
- Store, retrieve, and query data in the grid from different endpoints.
Data Grid documentation Copiar enlaceEnlace copiado en el portapapeles!
Documentation for Data Grid is available on the Red Hat customer portal.
Data Grid downloads Copiar enlaceEnlace copiado en el portapapeles!
Access the Data Grid Software Downloads on the Red Hat customer portal.
You must have a Red Hat account to access and download Data Grid software.
Making open source more inclusive Copiar enlaceEnlace copiado en el portapapeles!
Red Hat is committed to replacing problematic language in our code, documentation, and web properties. We are beginning with these four terms: master, slave, blacklist, and whitelist. Because of the enormity of this endeavor, these changes will be implemented gradually over several upcoming releases. For more details, see our CTO Chris Wright’s message.
Chapter 1. Installing and configuring the Hot Rod .NET/C# client Copiar enlaceEnlace copiado en el portapapeles!
Install the Hot Rod .NET/C# client on Microsoft Windows systems where you use .NET Framework to interact with Data Grid clusters via the RemoteCache
API.
1.1. Installing Hot Rod .NET/C# clients Copiar enlaceEnlace copiado en el portapapeles!
Data Grid provides an installation package to install the Hot Rod .NET/C# client on Windows.
Prerequisites
- Any operating system on which Microsoft supports the .NET Framework
- .NET Framework 4.6.2 or later
- Windows Visual Studio 2015 or later
Procedure
-
Download
redhat-datagrid-<version>-hotrod-dotnet-client.msi
from the Data Grid Software Downloads. - Launch the MSI installer for the Hot Rod .NET/C# client and follow the interactive wizard through the installation process.
1.2. Configuration and Remote Cache Manager APIs Copiar enlaceEnlace copiado en el portapapeles!
Use the ConfigurationBuilder
API to configure Hot Rod .NET/C# client connections and the RemoteCacheManager
API to obtain and configure remote caches.
Basic configuration
Authentication
Encryption
Cross-site failover
ConfigurationBuilder builder = new ConfigurationBuilder(); builder.AddServer().Host("127.0.0.1").Port(11222); // Configure a remote cluster and node when using cross-site failover. builder.AddCluster("nyc").AddClusterNode("192.0.2.0", 11322);
ConfigurationBuilder builder = new ConfigurationBuilder();
builder.AddServer().Host("127.0.0.1").Port(11222);
// Configure a remote cluster and node when using cross-site failover.
builder.AddCluster("nyc").AddClusterNode("192.0.2.0", 11322);
Near caching
ConfigurationBuilder builder = new ConfigurationBuilder(); builder.AddServer().Host("127.0.0.1").Port(11222); // Enable near-caching for the client. builder.NearCache().Mode(NearCacheMode.INVALIDATED).MaxEntries(10);
ConfigurationBuilder builder = new ConfigurationBuilder();
builder.AddServer().Host("127.0.0.1").Port(11222);
// Enable near-caching for the client.
builder.NearCache().Mode(NearCacheMode.INVALIDATED).MaxEntries(10);