Redis provider settings reference
Use this table of Redis provider settings to configure your session state.
Use the following configuration options when you configure a shared or private session state in Sitecore:
Setting | Description | For example |
---|---|---|
connectionString (1) | Contains the connection string that Sitecore uses to connect to the session database. Edit to specify the session state database that you want to use. You can use a connection string name from |
|
compression | Indicates that you want session state data to be compressed. The default value is | compression="false" |
settingsClassName (2) | Contains an assembly qualified class name that includes the |
|
settingsMethodName (2) | Contains a method name that is defined in the |
|
host (3) | Specifies your cache endpoint. |
|
port (3) | Uses either your non-ssl port or your ssl port, depending on the ssl settings. |
|
accessKey (3) | Uses either the primary or secondary access key for your cache. |
|
ssl (3) | Secures that the cache/client communicates with ssl, if you ensure the value is set to ImportantMake sure you specify the correct port. |
|
connectionTimeoutInmilliseconds (3) | Allows you to override the |
|
operationTimeoutInMilliseconds (3) | Allows you to override the |
|
throwOnError | Specifies whether to throw an exception in the event of a failure if you set the value to |
|
retryTimeoutInMilliseconds | Specifies the maximum duration for the failed operations to retry during the |
|
databaseID | Specifies which database to use for the cache output data. If a database is not specified, the default value is |
|
applicationName | Indicates whether the type of session state is private or shared. The default is empty. |
|
pollingEnabled | Specifies whether to enable processing of expired sessions. The default value is |
|
pollingInterval | Specifies the time interval in seconds that the session state provider uses to check if any sessions have expired. The default value is |
|
pollingOnSlaves | Specifies which servers to scan for expired sessions. For example, if there are no Redis slave servers, it will scan the master servers for expired sessions. The default value is |
|
pollingBatchSize | Specifies the number of keys iterated with every call to the Redis cache, when you retrieve keys from the key space. The default value is |
|
pollingExpirationTimeout | Specifies the interval of time that the expired session is locked, (so that it is not used during Session End processing). The default value in seconds is |
|
pollingMaxExpiredSessionsPerSecond | Limits the number of expired sessions that are processed per second. The default value is NoteThe value |
|
Key
(1) Specify the 'Redis'
connection string in connectionString.
(2) (Optional) Instead of using the connectionString
configuration, you can use: settingsClassName
, settingsMethodName
.
(3) (Optional) Instead of using the connectionString
configuration, you can use: host
, port
, accessKey
, ssl
, connectionTimeoutInMilliseconds
, and operationTimeoutInMilliseconds
.
Note
If you enable pollingOnSlaves
, you must set allowAdmin="true"
when specifying the connection to a standalone Redis server with replication configured.
For further information use the walkthrough: configuring a shared session state database using the Redis provider or the walkthrough: configuring a private session state database using the Redis provider.