From: Christophe Jaillet Date: Sun, 8 Apr 2018 08:36:09 +0000 (+0000) Subject: Initial doc for the sosache_redis module. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c74876ff7a5976faaa8da7c2f77f99a4e46fb75;p=apache Initial doc for the sosache_redis module. Corrections and improvements welcome. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1828626 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_socache_redis.xml b/docs/manual/mod/mod_socache_redis.xml new file mode 100644 index 0000000000..8afcc18f76 --- /dev/null +++ b/docs/manual/mod/mod_socache_redis.xml @@ -0,0 +1,121 @@ + + + + + + + + + +mod_socache_redis +Redis based shared object cache provider. +Extension +mod_socache_redis.c +socache_redis_module + + +

mod_socache_redis is a shared object cache provider + which provides for creation and access to a cache backed by the + Redis + high-performance, distributed memory object caching system. +

+ + +

This shared object cache provider's "create" method requires a + comma separated list of memcached host/port specifications. If using + this provider via another modules configuration (such as + SSLSessionCache), provide + the list of servers as the optional "arg" parameter.

+ + + SSLSessionCache redis:redis.example.com:12345,redis2.example.com:12345 + + +

Details of other shared object cache providers can be found + here. +

+ +
+ + +RedisConnPoolTTL +TTL used for the connection pool with the Redis server(s) +RedisConnPoolTTL num[units] +RedisConnPoolTTL 15s + +server config +virtual host + +Available in Apache 2.5 and later + + +

Set the time to keep idle connections with the Redis server(s) + alive (threaded platforms only).

+ +

Valid values for RedisConnPoolTTL are times + up to one hour. 0 means no timeout.

+ +

This timeout defaults to units of seconds, but accepts + suffixes for milliseconds (ms), seconds (s), minutes (min), and hours (h). +

+ + + +# Set a timeout of 10 minutes +RedisConnPoolTTL 10min +# Set a timeout of 60 seconds +RedisConnPoolTTL 60 + + +
+
+ + +RedisTimeout +R/W timeout used for the connection with the Redis server(s) +RedisTimeout num[units] +RedisTimeout 5s + +server config +virtual host + +Available in Apache 2.5 and later + + +

Set the Read/Write timeout used for the connection with the Redis + server(s).

+ +

Valid values for RedisTimeout are times + up to one hour. 0 means no timeout.

+ +

This timeout defaults to units of seconds, but accepts + suffixes for milliseconds (ms), seconds (s), minutes (min), and hours (h). +

+ + + +# Set a timeout of 10 minutes +RedisTimeout 10min +# Set a timeout of 60 seconds +RedisTimeout 60 + + +
+
+ +
diff --git a/docs/manual/socache.xml b/docs/manual/socache.xml index 61499b0d30..c6e6907545 100644 --- a/docs/manual/socache.xml +++ b/docs/manual/socache.xml @@ -56,6 +56,9 @@
"memcache" (mod_socache_memcache)
This makes use of the memcached high-performance, distributed memory object caching system.
+
"redis" (mod_socache_redis)
+
This makes use of the Redis + high-performance, distributed memory object caching system.
"shmcb" (mod_socache_shmcb)
This makes use of a high-performance cyclic buffer inside a shared memory segment.