<commit_before><a id="topic_523F6DE33FE54307BBE8F83BB7D9355D"></a>

# <span class="keyword">Geode</span> Redis Adapter

The <span class="keyword">Geode</span> Redis adapter allows <span class="keyword">Geode</span> to function as a drop-in replacement for a Redis data store, letting Redis applications take advantage of <span class="keyword">Geode</span>’s scaling capabilities without changing their client code. Redis clients connect to a <span class="keyword">Geode</span> server in the same way they connect to a Redis server, using an IP address and a port number.

-   **[Using the Redis Adapter](../tools_modules/redis_adapter.html#using-the-redis-adapter)**

-   **[How the Redis Adapter Works](../tools_modules/redis_adapter.html#how-the-redis-adapter-works)**

-   **[Advantages of Geode over a Redis Server](../tools_modules/redis_adapter.html#advantages-of-geode-over-redis)**

## Using the Redis Adapter

To use the Redis Adapter, you will need three pieces of information:

1.  The port number through which clients will communicate
2.  The IP address of the host where the server is to reside
3.  A choice of which attributes you will use for a <span class="keyword">Geode</span> partitioned region

The IP address and port number should be the same ones coded in the Redis clients.

In order to take advantage of <span class="keyword">Geode</span>’s scaling capabilities, you should specify the <span class="keyword">Geode</span> region as one of the types that use the PARTITION data policy. PARTITION is the default. Other possibilities include PARTITION\_REDUNDANT and PARTITION\_PERSISTENT. (See [“Region Shortcuts Quick Reference”](../reference/topics/region_shortcuts_table.html) for a complete list.)

To implement a <span class="keyword">Geode</span> instance using the Redis Adapter:

1.  Install <span class="keyword">Geode</span> on the system where the server is to reside.
2.  Use gfsh to start a <span class="keyword">Geode</span> server, specifying the three configuration options described above:
    -   Use `--redis-port` to specify the port. This parameter is required -- the <span class="keyword">Geode</span> server will listen on this port for Redis commands.
    -   Use `--redis-bind-address` to specify the IP address of the server host. This parameter is optional. If not specified, the default is determined from the /etc/hosts file.
    -   Use `--J=-Dgemfireredis.regiontype` to specify the region type. This parameter is optional. If not specified, regiontype is set to PARTITION.<commit_msg>Review Tools and Modules Redis Adapter section of Geode markdown [#126097315]<commit_after>---
title: <span class="keyword">Geode</span> Redis Adapter
---
<a id="topic_523F6DE33FE54307BBE8F83BB7D9355D"></a>


The <span class="keyword">Geode</span> Redis adapter allows <span class="keyword">Geode</span> to function as a drop-in replacement for a Redis data store, letting Redis applications take advantage of <span class="keyword">Geode</span>’s scaling capabilities without changing their client code. Redis clients connect to a <span class="keyword">Geode</span> server in the same way they connect to a Redis server, using an IP address and a port number.

-   **[Using the Redis Adapter](#using-the-redis-adapter)**

-   **[How the Redis Adapter Works](#how-the-redis-adapter-works)**

-   **[Advantages of Geode over a Redis Server](redis_adapter.html#advantages-of-geode-over-redis)**

## Using the Redis Adapter

To use the Redis Adapter, you will need three pieces of information:

1.  The port number through which clients will communicate
2.  The IP address of the host where the server is to reside
3.  A choice of which attributes you will use for a <span class="keyword">Geode</span> partitioned region

The IP address and port number should be the same ones coded in the Redis clients.

In order to take advantage of <span class="keyword">Geode</span>’s scaling capabilities, you should specify the <span class="keyword">Geode</span> region as one of the types that use the PARTITION data policy. PARTITION is the default. Other possibilities include PARTITION\_REDUNDANT and PARTITION\_PERSISTENT. (See [“Region Shortcuts Quick Reference”](../reference/topics/region_shortcuts_table.html) for a complete list.)

To implement a <span class="keyword">Geode</span> instance using the Redis Adapter:

1.  Install <span class="keyword">Geode</span> on the system where the server is to reside.
2.  Use gfsh to start a <span class="keyword">Geode</span> server, specifying the three configuration options described above:
    -   Use `--redis-port` to specify the port. This parameter is required -- the <span class="keyword">Geode</span> server will listen on this port for Redis commands.
    -   Use `--redis-bind-address` to specify the IP address of the server host. This parameter is optional. If not specified, the default is determined from the /etc/hosts file.
    -   Use `--J=-Dgemfireredis.regiontype` to specify the region type. This parameter is optional. If not specified, regiontype is set to PARTITION.
{'fraction_non_alphanumeric': 0.0941199684293607, 'fraction_numerical': 0.011247040252565114, 'mean_word_length': 4.689113355780022, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2352376', 'n_tokens_mistral': 1448, 'n_tokens_neox': 1404, 'n_words': 619}