i
This is not the latest version of this document; to access the latest version, click here.
Official Content

Configures the location of the Distributed Cache server. You must specify one or more host:port pairs (separated by spaces) or, in the case of Redis with the Java Generator, a complete Redis URI (i.e. redis://clientid:password@localhost:6379?ssl=true&db=1).

Scope

Generators: .NET, .NET Framework, Java
Level: Generator

Description

In a distributed caching environment, the Cache Location property allows configuring the server and port where the Cache system is operating. 

Therefore, after configuring the Cache Provider property to 'Redis' or 'Memcached', the Cache Location property will be available to enter any valid location depending on the distributed caching system specified in the Cache Provider property.

If more than one location has to be specified, the locations should be separated by empty spaces.

Runtime/Design time

This property applies only at design time.

Samples

The following are valid Cache Location values:

.NET / .NET Framework

  • Memcached and Redis
    Cache Location = server1:11211 server2:11211

Java

  • Memcached
    Cache Location = server1:11211 server2:11211
  • Redis
    Cache Location = redis://clientid:password@localhost:6379?ssl=true&db=1
     
    Note: The cache must always target logical database 1. Keep db=1 unchanged.

Memcached uses port 11211 by default, and Redis uses 6379. Change them only if your servers use different ones.

How to apply changes

To apply the corresponding changes when the property value is configured, Build any object.

See Also

Cache Provider property
Cache Username property
Cache Password property

Last update: March 2025 | © GeneXus. All rights reserved. GeneXus Powered by Globant