-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration Parameters
pietro partescano edited this page Apr 29, 2014
·
10 revisions
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="Redis.Cache.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<applicationSettings>
<Redis.Cache.Properties.Settings>
<setting name="DefaultAbsoluteExpiration" serializeAs="String">
<value>00:00:00</value>
</setting>
<setting name="DefaultSlidingExpiration" serializeAs="String">
<value>00:00:00</value>
</setting>
<setting name="RedisConnectionString" serializeAs="String">
<value>127.0.0.1:6379</value>
<!-- redis0:6379,redis1:6380, :: Node Redis Server
keepAlive=180,
version=2.8.8,
$CLIENT=,$CLUSTER=,$CONFIG=,$ECHO=,$INFO=,$PING= :: Renaming Commands (Please view here: https://github.com/StackExchange/StackExchange.Redis/blob/master/Docs/Configuration.md)
-->
</setting>
<setting name="RedisDatabase" serializeAs="String">
<value>0</value>
</setting>
<setting name="TypeStorage" serializeAs="String">
<value>UseList</value>
</setting>
<setting name="UseCompression" serializeAs="String">
<value>False</value>
</setting>
</Redis.Cache.Properties.Settings>
</applicationSettings>
</configuration>
Set default absolute expiration of keys and values.
Format: TimaStamp (hh:mm:ss)
Set default sliding expiration of keys and values. Every time keys and values are read, the sliding expiration is updated of value set.
Is possible to set “Sliding expiration” and “Absolute expiration” at the same time.
Format: TimaStamp (hh:mm:ss)
Sample:
Set Key 1:
- Sliding Expiration set to: 00:00:05
- Absolute Expiration set to: 00:00:15
First Access Key 1:
- Sliding Expiration set to: 00:00:05 + 00:00:05 == 00:00:10
- Absolute Expiration set to: 00:00:15
Second Access Key 1:
- Sliding Expiration set to: 00:00:10 + 00:00:05 == 00:00:15
- Absolute Expiration set to: 00:00:15
Third Access Key 1: Key is DELETED
- Sliding Expiration set to: 00:00:15 + 00:00:05 == 00:00:20 > Absolute Expiration
- Absolute Expiration set to: 00:00:15
Please view here: https://github.com/StackExchange/StackExchange.Redis/blob/master/Docs/Configuration.md
Sample:
redis0:6379,redis1:6380, keepAlive=180, version=2.8.8, $CLIENT=,$CLUSTER=,$CONFIG=,$ECHO=,$INFO=,$PING=
- redis0:6379,redis1:6380, :: Node/s Redis Server
- keepAlive=180 :: keep alive
- version=2.8.8 :: Redis Server version
- $CLIENT=,$CLUSTER=,$CONFIG=,$ECHO=,$INFO=,$PING= :: Renaming Commands
Number of database in Redis Server
Only value supported: UseList
If True active compression for values.